[gdal-dev] Re: Cannot build on linux

peisheng zhaops at hotmail.com
Thu May 29 17:50:54 EDT 2008


I also can not compiling GDAL. 

I want to install all GDAL, NetCDF and HDF under my own directory, then use

./configure --without-ogdi
--with-netcdf=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs
--with-proj=/usr/local
--with-hdf4=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs
--with-hdf5=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs --without-python
--without-perl --prefix=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs
--with-libtiff=internal

But I got some errors:

/usr/local/lib/libnetcdf.a(attr.o)(.text+0x366): In function `NC_findattr':
: multiple definition of `NC_findattr'
/usr/local//lib/libmfhdf.a(attr.o)(.text+0x124): first defined here
/usr/bin/ld: Warning: size of symbol `NC_findattr' changed from 121 in
/usr/local//lib/libmfhdf.a(attr.o) to 133 in /usr/local/lib/libnetcdf.a(attr.o)
/usr/local/lib/libnetcdf.a(putget.o)(.text+0x0): In function `nctypelen':
: multiple definition of `nctypelen'
/usr/local//lib/libmfhdf.a(array.o)(.text+0xec): first defined here
/usr/bin/ld: Warning: size of symbol `nctypelen' changed from 103 in
/usr/local//lib/libmfhdf.a(array.o) to 53 in /usr/local/lib/libnetcdf.a(putget.o)
/usr/local/lib/libnetcdf.a(nc.o)(.text+0x67): In function `NC_check_id':
: multiple definition of `NC_check_id'
/usr/local//lib/libmfhdf.a(file.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `NC_check_id' changed from 76 in
/usr/local//lib/libmfhdf.a(file.o) to 53 in /usr/local/lib/libnetcdf.a(nc.o)
/usr/local/lib/libnetcdf.a(var.o)(.text+0x47f): In function `NC_var_shape':
: multiple definition of `NC_var_shape'
/usr/local//lib/libmfhdf.a(var.o)(.text+0x1b0): first defined here
/usr/bin/ld: Warning: size of symbol `NC_var_shape' changed from 563 in
/usr/local//lib/libmfhdf.a(var.o) to 292 in /usr/local/lib/libnetcdf.a(var.o)
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/tools/gdaac/TS2/www/maptest/pzhao/gdal/gdal-1.5.1'
make: *** [check-lib] Error 2

It seems it is looking for netcdf and hdf in system directory, although I
specify to use netcdf and hdf located at my own directory







More information about the gdal-dev mailing list