[Gdal-dev] "collect2: ld returned 1 exit status" building ogrinfo

Mateusz Loskot mateusz at loskot.net
Sun Jul 9 18:07:00 EDT 2006


Maciej Sieczka wrote:
> Hi,
> 
> Today's (2006.07.09) GDAL CVS fails to build at ogrinfo.
> 
> Ubuntu Dapper (6.06 LTS)
> 
> $ geos-config --version
> 2.2.3
> 
> $ g++ --version
> g++ (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
> 
> ./configure --with-hdf4=/usr/local/lib --with-libz=internal
> --with-png=internal --with-libtiff=internal --with-geotiff=internal
> --with-jpeg=internal --with-gif=internal --with-geos=yes
> --with-pg=/usr/bin/pg_config --with-sqlite
> 
> [...]

FYI, recently, OGR has been ported to GEOS C API, so GEOS >= 2.2.0
version is required.

Please, try to pass complete path to geos-config in
--with-geos=/path/to/geos-config
instead of giving simple yes.

Maybe ./configure is finding old geos-config somewhere in your filesystem.

I'm building GDAL a few times a day and it works.

If full path to geos-config won't help, please give me a note
because I'm supposed to fix this bug ;-) as I ported OGR to GEOS C API.

cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list