[gdal-dev] Cannot build on linux

Andrew Brooks arb at sat.dundee.ac.uk
Thu May 29 06:35:35 EDT 2008


Sorry I was too hasty and hadn't attached the messages before sending!

One box has: HDF-4.2r1-4mdk and netcdf-devel-3.6.1-0.beta3.1mdk, the other has neither.

The box with both gives errors like:
/usr/lib/libnetcdf.a(attr.o): In function `NC_findattr':
attr.c:(.text+0x690): multiple definition of `NC_findattr'
/usr/lib/libmfhdf.a(attr.o):attr.c:(.text+0x1a0): first defined here
/usr/bin/ld: Warning: size of symbol `NC_findattr' changed from 130
in /usr/lib/libmfhdf.a(attr.o) to 179 in /usr/lib/libnetcdf.a(attr.o)

The box with neither gives errors like:
gdal-1.5.2/.libs/libgdal.so: undefined reference to `nc_open'
gdal-1.5.2/.libs/libgdal.so: undefined reference to `Vinitialize'
gdal-1.5.2/.libs/libgdal.so: undefined reference to `GRendaccess'
gdal-1.5.2/.libs/libgdal.so: undefined reference to `SDfindattr'
gdal-1.5.2/.libs/libgdal.so: undefined reference to `XML_SetElementHandler'

I've tried both of these and get the same result:
./configure --without-expat --without-hdf4 --without-hdf5 --without-netcdf
  ./configure --with-expat=no --with-hdf4=no --with-hdf5=no --with-netcdf=no

Since FWtools is no longer being maintained I fear I'm going to have to
replicate its whole build process in order to produce an up-to-date set of
programs with equivalent functionality!

Andrew


More information about the gdal-dev mailing list