[gdal-dev] GDAL v1.5.1 compile error on RHEL5.
joet at securitypunk.com
Fri May 23 11:51:19 EDT 2008
GDAL v1.5.1 does not compile on my 64-bit RedHat Enterprise Linux 5
/usr/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libgdal.la] Error 1
Whats going on is that the linker is building a 64-bit library, but
was passed the 32-bit version of libexpat in /usr/lib/libexpat.so. The
correct behavior would be to link to /usr/lib64/libexpat.so. I worked
around this problem by manually editing the GDALmake.opt file and
changing the /usr/lib reference to /usr/lib64 in the LIBS variable.
After that, doing 'make' again compiles the package just fine.
Please let me know if you need any more information to debug this.
More information about the gdal-dev