[Gdal-dev] Error compiling gdal-1.3.2: libstdc++.la not found

Patton, Eric epatton at nrcan.gc.ca
Fri Nov 3 11:16:52 EST 2006


Hi,

I'm trying to compile gdal-1.3.2 on Ubuntu Dapper 6.06. The compile runs OK,
with no errors. Here's my configure line:

./configure \
--with-png=internal \
--with-jpeg=internal \
--with-gif=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-libz=internal \
--without-pg \
--without-ogdi \
--without-python \
--without-grass \
--without-libgrass

And the output from configure:

GDAL is now configured for i686-pc-linux-gnu

  Installation directory:    /usr/local
  C compiler:                gcc -O2
  C++ compiler:              g++ -O2

  LIBTOOL support:           yes

  LIBZ support:              internal
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          internal
  NETCDF support:            yes
  LIBPNG support:            internal
  LIBTIFF support:           internal
  LIBGEOTIFF support:        internal
  LIBJPEG support:           internal
  LIBGIF support:            internal
  OGDI support:              no
  HDF4 support:              no
  HDF5 support:              no
  KAKADU support:            no
  JASPER support:            yes (GeoJP2=no)
  ECW support:               no
  MrSID support:             no
  POSTGRESQL support:        no
  MySQL support:             no
  XERCES support:            no
  ODBC support:              yes
  OCI support:               no
  SDE support:               no
  DODS support:              no
  SQLite support:            no
  DWGdirect support          no
  PANORAMA GIS support:      no
  GEOS support:              yes

  Statically link PROJ.4:    no

  Traditional Python:        no
  NG SWIG Bindings:

  enable OGR building:       yes


When I run make, it ends prematurely with the following error (last several
lines from the output):

...<snip>
ranlib .libs/libgdal.a
creating libgdal.la
/bin/sed: can't read /usr/lib/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/libstdc++.la' is not a valid libtool archive
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/usr/local/gdal-1.3.2'
make: *** [check-lib] Error 2

So, it's saying I'm missing libstdc++.la? As far as I can tell, I have the
lastest   libstdc++ installed:

$ cd /usr/lib
$ ls libstdc*

libstdc++-3-libc6.2-2-2.10.0.a
libstdc++-3-libc6.2-2-2.10.0.so
libstdc++-libc6.2-2.a.3 -> libstdc++-3-libc6.2-2-2.10.0.a
libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
libstdc++.so -> libstdc++.so.5
libstdc++.so.0 -> libstdc++.so.5
libstdc++.so.5 -> libstdc++.so.6
libstdc++.so.5.0.7
libstdc++.so.6 -> libstdc++.so.6.0.7
libstdc++.so.6.0.7

Any ideas on how to get around this error?

~ Eric.








More information about the Gdal-dev mailing list