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

MIT Sea Grant mitseagrant at gmail.com
Mon Jan 10 11:38:09 EST 2011


Hi,

Thanks! I read too quickly: I saw "mapserver" but my mind retained
"gdal." In any case, all seems to be good. I re-built geos and gdal,
and then built mapserver successfully.

Thanks again,

Greg

P.S. - Apologies to the list if this comes as a separate thread. Gmail
seems to not reply-to correctly.

On Thu, Jan 6, 2011 at 10:40 AM, Patricio Cifuentes Ithal
<pcifuentes at siigsa.cl> wrote:
> Hi!,
> Recompilling gdal and all libraries necesaries for mapserver with
> ./configure --with-libdir=/usr/lib64
>
> Patricio Cifuentes Ithal
> Ingeniero en Informática
> Unidad de Informática
> Fono : 02 - 334 73 69
> www.siigsa.cl
>
> -----Mensaje original-----
> De: MIT Sea Grant [mailto:mitseagrant at gmail.com]
> Enviado el: miércoles, 05 de enero de 2011 18:46
> Para: pcifuentes at siigsa.cl
> CC: mapserver-users at lists.osgeo.org
> Asunto: Re: [mapserver-users] make error: /usr/local/lib/libgdal.so:
> undefined reference to `GEOSFree'
>
> 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