[gdal-dev] Re: Cannot build on linux
Lucena, Ivan
ivan.lucena at pmldnet.com
Thu May 29 22:37:18 EDT 2008
Check the order of search path:
% g++ -print-search-dirs
I guess that the linker is getting to the wrong libmfhdf.a first because of the search directory precedence.
> -------Original Message-------
> From: zhao peisheng <zhaops at hotmail.com>
> Subject: RE: [gdal-dev] Re: Cannot build on linux
> Sent: May 30 '08 01:49
>
> I recomplie the HDF without NetCDF support under my own directory. In
> configuration of GDAL, I specify to use these recompiled HDF and NetCDF.
> But the error still shows using the HDF and NetCDF under system directory,
> not the one under my own directory.
>
>
> --------------------
> > From: ivan.lucenao at pmldnet.com
> > To: zhaops at hotmail.com; gdal-dev at lists.osgeo.org
> > Subject: Re: [gdal-dev] Re: Cannot build on linux
> > Date: Fri, 30 May 2008 00:06:14 +0000
> >
> > I am not an specialist on that topic but I believe that you need to
> recompile the HDF libraries wihout NetCDF support in order to use the
> NetCDF driver. Maybe that is what "multiple definition" is about.
> >
> > > -------Original Message-------
> > > From: peisheng <zhaops at hotmail.com>
> > > Subject: [gdal-dev] Re: Cannot build on linux
> > > Sent: May 29 '08 21:50
> > >
> > >
> > > 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
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > gdal-dev mailing list
> > > gdal-dev at lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> > >
>
>
> --------------------
> Change the world with e-mail. [LINK:
> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld]
> Join the im Initiative from Microsoft.
More information about the gdal-dev
mailing list