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

Maciej Sieczka tutey at o2.pl
Sun Jul 9 12:36:44 EDT 2006


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



GDAL's last words:

g++ ogrinfo.o
-o .libs/ogrinfo  /home/shoofi/src/straight/gdal/.libs/libgdal.so
-L/usr/local//lib -L/usr/local/lib -lmfhdf -ldf -L/usr/lib -lpq -lrt
-ldl -lpthread -Wl,--rpath
-Wl,/usr/local//lib /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSBoundary' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSCrosses' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSConvexHull' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSOverlaps' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSGetCentroid' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSDistance' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSDifference' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSWithin' /home/shoofi/src/straight/gdal/.libs/libgdal.so: undefined
reference to
`GEOSIntersects' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`initGEOS' /home/shoofi/src/straight/gdal/.libs/libgdal.so: undefined
reference to
`GEOSGeomToWKB_buf' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSIntersection' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSTouches' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSSymDifference' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSGeom_destroy' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSGeomFromWKB_buf' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to
`GEOSBuffer' /home/shoofi/src/straight/gdal/.libs/libgdal.so: undefined
reference to
`GEOSUnion' /home/shoofi/src/straight/gdal/.libs/libgdal.so: undefined
reference to
`GEOSContains' /home/shoofi/src/straight/gdal/.libs/libgdal.so:
undefined reference to `GEOSDisjoint' collect2: ld returned 1 exit
status make[1]: *** [ogrinfo] Błąd 1 make[1]: Opuszczenie katalogu
`/home/shoofi/src/straight/gdal/ogr' make: *** [ogr-apps] Błąd 2

Maciek



More information about the Gdal-dev mailing list