[Liblas-devel] Build error with GDAL 1.6

Robert Coup robert.coup at koordinates.com
Mon Jul 27 23:44:18 EDT 2009


Hey folks,

I think ticket #140 isn't quite fixed.

../src/.libs/liblas.so: undefined reference to `VSI_TIFFOpen(char const*,
char const*)'

This is from building LibLAS 1.2 branch (SVN @1320) on Ubuntu Intrepid,
running:

 - GDAL 1.6, backported from Debian GIS. Just the library and headers, no
source tree.
 - Libgeotiff 1.2.5, backported from Karmic.

VSI_TIFFOpen() is declared in src/gt_wkt_srs.cpp, but there's no definition,
and it's not exposed in the symbols from libgdal1.6.0.so (via nm -g -D
-C) or in the gdal headers.

OT, has anyone made any progress on debian packaging for liblas?

Rob :)

....
Making all in apps
make[1]: Entering directory `/home/rcoup/liblas/svn_1.2/apps'
/bin/bash ../libtool --tag=CC   --mode=link gcc  -Wall -Wno-long-long
-pedantic  -O3 -DNDEBUG   -o lasinfo lasinfo.o lascommon.o
../src/liblas.la-L/usr/lib -lgeotiff -L/usr/lib -lgdal1.6.0
libtool: link: gcc -Wall -Wno-long-long -pedantic -O3 -DNDEBUG -o
.libs/lasinfo lasinfo.o lascommon.o  ../src/.libs/liblas.so -L/usr/lib
-L/usr/lib/mysql -lgeotiff /usr/lib/libgdal1.6.0.so /usr/lib/libgeos_c.so
/usr/lib/libgeos.so /usr/lib/libsqlite3.so /usr/lib/libodbc.so
/usr/lib/libodbcinst.so /usr/lib/libltdl.so /usr/lib/libexpat.so -lxerces-c
/usr/lib/libjasper.so /usr/lib/libhdf5.so -logdi /usr/lib/libgif.so
/usr/lib/libjpeg.so -lpng -lnetcdf -lpq -ldl /usr/lib/libcurl-gnutls.so
/usr/lib/libidn.so -lldap -lrt -lkrb5 -lk5crypto -lcom_err -lgssapi_krb5
/usr/lib/libgnutls.so /usr/lib/libtasn1.so /lib/libgcrypt.so
/usr/lib/libmysqlclient.so -lm -lpthread -lcrypt -lnsl -lz
../src/.libs/liblas.so: undefined reference to `VSI_TIFFOpen(char const*,
char const*)'
collect2: ld returned 1 exit status
make[1]: *** [lasinfo] Error 1
make[1]: Leaving directory `/home/rcoup/liblas/svn_1.2/apps'
make: *** [all-recursive] Error 1

Config stuff:
$ ./configure --with-gdal --with-geotiff=/usr
...
checking for GDAL... GDAL enabled with gdal-config found in PATH
/usr/bin/gdal-config reports version 1.6.1
checking for ST_Create in -lgeotiff... yes
checking for geo_simpletags.h of libgeotiff >= 1.2.5... yes
checking for libgeotiff... yes
...
libLAS configuration summary:

  Version..................: 1.2.0
  Installation directory...: /usr/local
  C compiler...............: gcc -Wall -Wno-long-long -pedantic  -O3
-DNDEBUG
  C++ compiler.............: g++ -Wall -Wno-long-long -pedantic -std=c++98
 -O3 -DNDEBUG
  Debugging support........:
  GDAL support.............: yes
   - gdal-config...........: /usr/bin/gdal-config
   - INCLUDE directories...: -I/usr/include/gdal
  GeoTIFF SRS support......: yes
   - libgeotiff............: external
   - INCLUDE directories...: -I/usr/include/geotiff

  LIBS.....................: -L/usr/lib -lgeotiff -L/usr/lib -lgdal1.6.0

  libLAS - http://liblas.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20090728/b3e36ea4/attachment.html


More information about the Liblas-devel mailing list