Ticket #140 (closed defect: fixed)

Opened 9 months ago

Last modified 8 months ago

liblas 1.2 linking problems due to --with-hide-internals gdal option

Reported by: frankie Owned by: hobu
Priority: major Milestone: 1.2.1
Component: General Version: 1.2
Keywords: Cc:
LAS Format Version: 1.2

Description

This is the result on sid with the experimental gdal 1.6.1 flavor. Note that i added a -ltiff option explicitly to reduce the number of unresolved symbols.

/bin/sh ../libtool --tag=CXX   --mode=link g++  -Wall -Wno-long-long -pedantic -std=c++98  -O3 -DNDEBUG -version-info 1:0:0 -
Wl,-z,defs -o liblas.la -rpath /usr/lib laserror.lo laspoint.lo lasheader.lo lasvariablerecord.lo lasreader.lo laswriter.lo l
asfile.lo las_c_api.lo lascolor.lo lasspatialreference.lo reader.lo reader10.lo reader11.lo reader12.lo writer.lo writer10.lo
 writer11.lo writer12.lo file.lo gt_wkt_srs.lo  -L/usr/lib -lgeotiff -L/usr/lib -lgdal1.6.0 -ltiff
g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.3.3/crtbeginS.o 
 .libs/laserror.o .libs/laspoint.o .libs/lasheader.o .libs/lasvariablerecord.o .libs/lasreader.o .libs/laswriter.o .libs/lasf
ile.o .libs/las_c_api.o .libs/lascolor.o .libs/lasspatialreference.o .libs/reader.o .libs/reader10.o .libs/reader11.o .libs/r
eader12.o .libs/writer.o .libs/writer10.o .libs/writer11.o .libs/writer12.o .libs/file.o .libs/gt_wkt_srs.o  -Wl,--rpath -Wl,
/tmp/buildd/libhdf4-4.2r4/HDF4_ALT/mfhdf/libsrc/.libs -Wl,--rpath -Wl,/tmp/buildd/libhdf4-4.2r4/HDF4_ALT/hdf/src/.libs -L/usr/lib -lgeotiff /usr/lib/libgdal1.6.0.so -L/usr/lib/mysql /usr/lib/libtiff.so -L/usr/lib/gcc/i486-linux-gnu/4.3.3 -L/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.3.3/../../.. -L/usr/lib/i486-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.3.3/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crtn.o  -Wl,-z -Wl,defs -Wl,-soname -Wl,liblas.so.1 -o .libs/liblas.so.1.0.0
.libs/gt_wkt_srs.o: In function `GTIFSetFromOGISDefn':
gt_wkt_srs.cpp:(.text+0xb89): undefined reference to `SetLinearUnitCitation(gtiff*, char*)'
gt_wkt_srs.cpp:(.text+0xc5f): undefined reference to `SetGeogCSCitation(gtiff*, OGRSpatialReference*, char*, int, short)'
.libs/gt_wkt_srs.o: In function `GTIFMemBufFromWkt':
gt_wkt_srs.cpp:(.text+0x3022): undefined reference to `VSI_TIFFOpen(char const*, char const*)'
.libs/gt_wkt_srs.o: In function `GTIFGetOGISDefn':
gt_wkt_srs.cpp:(.text+0x389d): undefined reference to `GetGeogCSFromCitation(char*, int, geokey_t, char**, char**, char**, char**, char**)'
.libs/gt_wkt_srs.o: In function `.L314':
gt_wkt_srs.cpp:(.text+0x4019): undefined reference to `SetCitationToSRS(gtiff*, char*, int, geokey_t, OGRSpatialReference*, int*)'
gt_wkt_srs.cpp:(.text+0x4179): undefined reference to `SetCitationToSRS(gtiff*, char*, int, geokey_t, OGRSpatialReference*, int*)'
.libs/gt_wkt_srs.o: In function `GTIFWktFromMemBuf':
gt_wkt_srs.cpp:(.text+0x4882): undefined reference to `VSI_TIFFOpen(char const*, char const*)'
collect2: ld returned 1 exit status
make[3]: *** [liblas.la] Error 1
make[3]: Leaving directory `/users/frankie/debian/debian-gis/liblas/liblas-1.2.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/users/frankie/debian/debian-gis/liblas/liblas-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users/frankie/debian/debian-gis/liblas/liblas-1.2.0'
make: *** [build-arch-stamp] Error 2

Change History

Changed 9 months ago by hobu

  • milestone set to 1.2.1

Changed 8 months ago by hobu

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk in r1316 and in the 1.2 branch in r1315. The problem is gt_citation.cpp from GDAL was not included, which gt_wkt_srs.cpp uses.

Changed 8 months ago by hobu

  • status changed from closed to reopened
  • resolution fixed deleted

VSI_TIFFOpen also isn't in the public API and needs to be included.

Changed 8 months ago by hobu

  • status changed from reopened to closed
  • resolution set to fixed

Another attempt r1321 and r1322 for VSI_TIFFOpen

Note: See TracTickets for help on using tickets.