[gdal-dev] GDAL in 64bits Linux environment

Even Rouault even.rouault at mines-paris.org
Wed Jul 30 14:58:30 EDT 2008


Well, clearly the problem is /usr/lib/libexpat.so that must be 32 bit on your 
distro. It should fetch /usr/lib64/libexpat.so instead. I think someone 
reported similar problem not so long ago on the mailing list. You should 
fetch the archives to see if there was a solution.
Otherwise you can try to patch GDALmake.opt generated by configure to correct 
this, or compile without expat if you don't need KML and GPX read support.

Le Wednesday 30 July 2008 20:52:52 Limei Ran, vous avez écrit :
> Hi Mike:
>
> Thanks for your reply and the following is my error:
> ================================
> libtool: link: creating GNU ld script: .libs/libgdal.la.lnkscript
> libtool: link: g++ -shared -nostdlib
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o
> .libs/libgdal.la.lnkscript  -Wl,-rpath
> -Wl,/nas/uncch/depts/cep/emc/lran/mims/mimssp_8_2008/src/libs/proj-4.6.0/lo
>cal/lib -Wl,-rpath
> -Wl,/nas/uncch/depts/cep/emc/lran/mims/mimssp_8_2008/src/libs/proj-4.6.0/lo
>cal/lib
> -L/nas/uncch/depts/cep/emc/lran/mims/mimssp_8_2008/src/libs/proj-4.6.0/loca
>l/lib
> /nas/uncch/depts/cep/emc/lran/mims/mimssp_8_2008/src/libs/proj-4.6.0/local/
>lib/libproj.so -lsqlite3 -L/usr/lib /usr/lib/libexpat.so -lgif -ljpeg -ltiff
> -lpng -lz -lrt -ldl -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
> -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o
> -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.12.2
> /usr/lib/libexpat.so: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[1]: *** [libgdal.la] Error 1
> make[1]: Leaving directory
> `/nas/uncch/depts/cep/emc/lran/mims/mimssp_8_2008/src/libs/gdal-1.5.2'
> make: *** [check-lib] Error 2
> ====================================
>
> In the old 32bits environment, it worked fine.
>
> Thanks,
>
> Limei
>
> Nidel, Mike wrote:
> >I've gotten it to work using the 1.5 branch. I didn't have to do
> >anything specific to 64-bit
> >as far as I know. What are your errors?
> >
> >Mike
> >
> >>-----Original Message-----
> >>From: gdal-dev-bounces at lists.osgeo.org
> >>[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Limei Ran
> >>Sent: Wednesday, July 30, 2008 2:03 PM
> >>To: gdal-dev at lists.osgeo.org
> >>Subject: [gdal-dev] GDAL in 64bits Linux environment
> >>
> >>Hi:
> >>
> >>I am having some errors in compiling GDAL on our new 64bits
> >>Linux server.  Could you tell me whether gdal1.5.2 has been
> >>tested on 64bit Linux or what I need to change in the configure file?
> >>
> >>Thanks,
> >>
> >>Limei
> >>
> >>_______________________________________________
> >>gdal-dev mailing list
> >>gdal-dev at lists.osgeo.org
> >>http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev




More information about the gdal-dev mailing list