[gdal-dev] /usr/lib/libexpat.so: could not read symbols: File in wrong format

Frank Warmerdam warmerdam at pobox.com
Fri Nov 20 21:01:30 EST 2009

Steve Williams wrote:
> I am trying to compile gdal as per the instructions of the developer of 
> specialized remote sensing software called gamma 
> (http://www.gamma-rs.ch/).  The platform is a Dell T410 dual Xeon 
> processor system with 8GB of memory, running Redhat Enterprise Linux 
> (RHEL 5.4 x86_64).  The configure goes smoothly, but on the make I am 
> getting the error on the subject line and the make fails.  The configure 
> instructions are very specific from gamma:
> -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.12.4
> /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 `/usr/local/src/gdal-1.5.4'
> make: *** [check-lib] Error 2
> anybody seen this before or have a suggested fix?


I would suggest adding --without-expat to the configure line.  I'm not what
sure is up with your /usr/lib/libexpat.so, but if you don't need it for
anything just avoid it.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list