[gdal-dev] /usr/lib/libexpat.so: could not read symbols: File in
wrong format
Kyle Shannon
ksshannon at gmail.com
Fri Nov 20 18:55:16 EST 2009
As Even wrote to me some time ago:
My guess is that /usr/lib/libexpat.so is a 32bit library. Maybe there's
a /usr/lib64/libexpat.so on your system ? I'm not sure of the filesystem
layout of RedHat's 64bit systems.
If that's the case, use the --with-expat-lib= option of the configure
script.
and I used --with-expat-lib=/usr/lib64 for the option.
# ===================
Kyle Shannon
Physical Science Technician
RMRS Fire Sciences Lab
Fire, Fuels & Smoke - RWU 4405
5775 Highway 10 W.
Missoula, MT 59808
(406)646-6577
kshannon at fs.fed.us
ksshannon at gmail.com
# ===================
On Fri, Nov 20, 2009 at 4:08 PM, Steve Williams <williams at csr.utexas.edu>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:
>
> ./configure --without-python --without-php --without-ruby --without-perl
> --without-jasper \
> --without-curl --without-odbc --with-png=internal --with-libtiff=internal
> --with-libgeotiff=internal \
> --with-jpeg=internal --with-sqlite=no --with-libz=internal
> --without-cfitsio --with-gif=internal --without-netcdf \
> --without-pg --without-hdf4 --without-hdf5 --without-geos --enable-shared
> --prefix=/usr/local/gdal
>
> the last few lines on the failed make are:
>
> make[1]: Entering directory `/usr/local/src/gdal-1.5.4'
> /bin/sh /usr/local/src/gdal-1.5.4/libtool --mode=link g++
> -I/usr/include -lsqlite3 -L/usr/lib -lexpat -lm -lrt -ldl -o
> libgdal.la /usr/local/src/gdal-1.5.4/frmts/o/*.lo
> /usr/local/src/gdal-1.5.4/gcore/*.lo /usr/local/src/gdal-1.5.4/port/*.lo
> /usr/local/src/gdal-1.5.4/alg/*.lo
> /usr/local/src/gdal-1.5.4/ogr/ogrsf_frmts/o/*.lo ./ogr/ogrgeometryfactory.lo
> ./ogr/ogrpoint.lo ./ogr/ogrcurve.lo ./ogr/ogrlinestring.lo
> ./ogr/ogrlinearring.lo ./ogr/ogrpolygon.lo ./ogr/ogrutils.lo
> ./ogr/ogrgeometry.lo ./ogr/ogrgeometrycollection.lo ./ogr/ogrmultipolygon.lo
> ./ogr/ogrsurface.lo ./ogr/ogrmultipoint.lo ./ogr/ogrmultilinestring.lo
> ./ogr/ogr_api.lo ./ogr/ogrfeature.lo ./ogr/ogrfeaturedefn.lo
> ./ogr/ogrfeaturequery.lo ./ogr/ogrfeaturestyle.lo ./ogr/ogrfielddefn.lo
> ./ogr/ogrspatialreference.lo ./ogr/ogr_srsnode.lo ./ogr/ogr_srs_proj4.lo
> ./ogr/ogr_fromepsg.lo ./ogr/ogrct.lo ./ogr/ogr_opt.lo ./ogr/ogr_srs_esri.lo
> ./ogr/ogr_srs_pci.lo ./ogr/ogr_srs_usgs.lo ./ogr/ogr_srs_dict.lo
> ./ogr/ogr_srs_panorama.lo ./ogr/ogr_srs_erm.lo ./ogr/swq.lo
> ./ogr/ogr_srs_validate.lo ./ogr/ogr_srs_xml.lo ./ogr/ograssemblepolygon.lo
> ./ogr/ogr2gmlgeometry.lo ./ogr/gml2ogrgeometry.lo \
> -rpath /usr/local/gdal/lib \
> -no-undefined \
> -version-info 13:4:12
> libtool: link: rm -fr .libs/libgdal.la.lnkscript
> 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 -lsqlite3 -L/usr/lib /usr/lib/libexpat.so -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.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?
>
> --
>
>
> '''
> (O O)
> ,-------------- oOO-(_)-OOo -------------,
> | Stephen Williams |
> | Manager of Computer Services |
> | Center for Space Research |
> | University of Texas at Austin |
> | 3925 W. Braker Ln., Suite 200 |
> | Austin, TX 78759-5321 |
> | 512.471.7235 512.471.3570 (fax) |
> | williams at csr.utexas.edu |
> |____________________ Oooo ______________|
> oooO ( )
> ( ) ) /
> \ ( (_/
> \_)
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091120/23fe7ba2/attachment-0001.html
More information about the gdal-dev
mailing list