[mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree'

MIT Sea Grant mitseagrant at gmail.com
Wed Jan 5 13:46:27 PST 2011


Thank you, and apologies for the delay in response.

Unfortunately, gdal is giving the same undefined reference error. Using:

./configure --libdir=/usr/lib64 --with-ogr --with-png=internal
--with-jpeg=internal --with-geotiff=internal --with-libtiff=internal
--with-gif=internal --with-libz=internal
--with-curl=/usr/bin/curl-config
--with-geos=/usr/local/bin/geos-config --with-pg=/usr/bin/pg_config
--with-expat=/usr/lib64 && make && make install

I get:

...
libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo
/usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so  -Wl,-rpath
-Wl,/usr/lib64
/usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so: undefined
reference to `GEOSFree'
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory `/usr/local/src/20101216-builds/gdal-1.7.3/apps'
make: *** [apps-target] Error 2

So then I re-configure, excluding --with-libdir and it builds fine,
but MapServer still gives the error.

Not sure what next. Any further advice appreciated...

On Thu, Dec 23, 2010 at 8:37 AM, Patricio Cifuentes Ithal
<pcifuentes at siigsa.cl> wrote:
> Re-compiling gdal...
>
> ./configure --libdir=/usr/lib64/
>
> And all the libraries necesarie recompiling
>
> Patricio Cifuentes Ithal
> Ingeniero en Informática
> Unidad de Informática
> Fono : 02 - 334 73 69
> www.siigsa.cl
>
> -----Mensaje original-----
> De: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de MIT Sea Grant
> Enviado el: miércoles, 22 de diciembre de 2010 17:17
> Para: mapserver-users at lists.osgeo.org
> Asunto: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined
> reference to `GEOSFree'
>
> Hello,
>
> We are getting the following Make error when trying to build on Red
> Hat Enterprise Linux 5 (x86_64):
> /usr/local/lib/libgdal.so: undefined reference to `GEOSFree'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
> We think we have everything linked correctly, but the problem
> persists. Any help appreciated.
>
> Thanks,
>
> Greg
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
> Este mensaje ha sido analizado por MailScanner
> en busca de virus y otros contenidos peligrosos,
> y se considera que está limpio.
>
>
> --
> Este mensaje ha sido analizado por MailScanner
> en busca de virus y otros contenidos peligrosos,
> y se considera que está limpio.
>
>



More information about the MapServer-users mailing list