[Gdal-dev] Compiling under Linux Standard Base

Curt, WE7U archer at eskimo.com
Wed Dec 6 11:02:17 EST 2006


I'm having difficulties in disabling some of the options in GDAL via
configure.  For instance these don't appear to work:

    --without-libtiff
    --without-geotiff

If I try to disable libtiff, configure picks it up from the system.
I don't want to use the external library instead of the internal, I
want it disabled entirely.

If I try to disable geotiff configure bombs out before completing.
If I specify "/opt/lsb/lib" as the directory configure isn't seeing
it even though libgeotiff.a is there.

I have libgeotiff/libtiff compiled into my application so I don't
currently need them in GDAL.  In fact I'm trying to disable pretty
much every raster option 'cuz I'm really only after the OGR stuff at
the moment.

I'm still plugging along trying to compile GDAL under LSB.  No luck
so far, but I have many things left to try.  The compile currently
bombs out here:

make[1]: Entering directory `/home/src/lsb/gdal-1.3.2b2/ogr'
/bin/sh /home/archer/src/lsb/gdal-1.3.2b2/libtool --mode=link lsbc++  ogrinfo.o /home/archer/src/lsb/gdal-1.3.2b2/libgdal.la -o ogrinfo
lsbc++ ogrinfo.o -o ogrinfo /home/archer/src/lsb/gdal-1.3.2b2/.libs/libgdal.a /usr/local/lib/libproj.so -lrt -ldl /usr/lib/libstdc++.so
/usr/lib/libstdc++.so: undefined reference to `__freelocale at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__wcscoll_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__strtold_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__strtof_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__strxfrm_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__towupper_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__udivdi3 at GLIBC_2.0'
/usr/lib/libstdc++.so: undefined reference to `__newlocale at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__strtod_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__umoddi3 at GLIBC_2.0'
/usr/lib/libstdc++.so: undefined reference to `__iswctype_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `lseek64 at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__strcoll_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__strftime_l at GLIBC_2.3'
/usr/lib/libstdc++.so: undefined reference to `__duplocale at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__wcsxfrm_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__towlower_l at GLIBC_2.1'
/usr/lib/libstdc++.so: undefined reference to `__wcsftime_l at GLIBC_2.3'
/usr/lib/libstdc++.so: undefined reference to `__nl_langinfo_l at GLIBC_2.2'
/usr/lib/libstdc++.so: undefined reference to `__uselocale at GLIBC_2.3'
/usr/lib/libstdc++.so: undefined reference to `__wctype_l at GLIBC_2.1'

I can't for the life of me figure out why it's picking up some of
the system libraries:  I specified alternate directories to
configure and it shouldn't be looking in /usr/local/lib or /usr/lib
for libraries.  That's why I'm getting the undefined references 'cuz
it's depending on non-LSB libraries in this case.

The whole idea behind LSB is that I must only depend upon the
libraries distributed with LSB.  I can compile my own libraries, but
they must in turn depend only on LSB or on others that I've compiled
that depend only upon LSB libraries.  The end result is a portable
executable across Linux systems.

--
Curt, WE7U.   APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Gdal-dev mailing list