[gdal-dev] building error on libgdal.so

Even Rouault even.rouault at mines-paris.org
Thu Aug 30 13:25:26 PDT 2012


Le jeudi 30 août 2012 22:04:33, Lauri Kajan a écrit :
> Hi all,
> 
> I'm trying to build GDAL 1.9.1 from source on Ubuntu 12.04 but I get an
> error. I configured gdal with ./configure --with-threads --with-python
> --with-odbc --with-pg
> 
> Here is the error message?
> 
> libtool: link: g++ .libs/gdal_translate.o .libs/commonutils.o -o
> .libs/gdal_translate  /home/l/asennukset/gdal-1.9.1/.libs/libgdal.so
> -L/usr/local/lib -L/usr/lib /usr/local/lib/libgeos_c.so
> /usr/local/lib/libgeos.so /usr/lib/x86_64-linux-gnu/libexpat.so -lpq
> -lz -lpthread -lrt -ldl
> /home/l/asennukset/gdal-1.9.1/.libs/libgdal.so: undefined reference to
> `OGRCreateExpatXMLParser()'
> collect2: ld returned 1 exit status
> make[1]: *** [gdal_translate] Error 1
> make[1]: *** Waiting for unfinished jobs....
> /home/l/asennukset/gdal-1.9.1/.libs/libgdal.so: undefined reference to
> `OGRCreateExpatXMLParser()'
> collect2: ld returned 1 exit status
> make[1]: *** [gdalinfo] Error 1
> make[1]: Leaving directory `/home/l/asennukset/gdal-1.9.1/apps'
> make: *** [apps-target] Error 2
> 
> Am I missing some dependency?
> I have already installed Postgis and with that libxml2-dev. If this
> has anything to do with that.
> 
> Could anybody help me with this?

Looks like there is an issue with expat. Shouldn't happen, but perhaps you 
have made several build attempts without proper cleaning. Make sure that you 
have installed the developement package for libexpat, and configure, make 
clean, make

> 
> 
> 
> Thanks
> 
> Lauri
> _______________________________________________
> 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