<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">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.<br></div><br><br><br><hr id="stopSpelling">> From: ivan.lucenao@pmldnet.com<br>> To: zhaops@hotmail.com; gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] Re: Cannot build on linux<br>> Date: Fri, 30 May 2008 00:06:14 +0000<br>> <br>> 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.<br>> <br>> > -------Original Message-------<br>> > From: peisheng <zhaops@hotmail.com><br>> > Subject: [gdal-dev] Re: Cannot build on linux<br>> > Sent: May 29 '08 21:50<br>> > <br>> > <br>> > I also can not compiling GDAL.<br>> > <br>> > I want to install all GDAL, NetCDF and HDF under my own directory, then use<br>> > <br>> > ./configure --without-ogdi<br>> > --with-netcdf=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs<br>> > --with-proj=/usr/local<br>> > --with-hdf4=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs<br>> > --with-hdf5=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs --without-python<br>> > --without-perl --prefix=/tools/gdaac/TS2/www/maptest/pzhao/supportlibs<br>> > --with-libtiff=internal<br>> > <br>> > But I got some errors:<br>> > <br>> > /usr/local/lib/libnetcdf.a(attr.o)(.text+0x366): In function `NC_findattr':<br>> > : multiple definition of `NC_findattr'<br>> > /usr/local//lib/libmfhdf.a(attr.o)(.text+0x124): first defined here<br>> > /usr/bin/ld: Warning: size of symbol `NC_findattr' changed from 121 in<br>> > /usr/local//lib/libmfhdf.a(attr.o) to 133 in /usr/local/lib/libnetcdf.a(attr.o)<br>> > /usr/local/lib/libnetcdf.a(putget.o)(.text+0x0): In function `nctypelen':<br>> > : multiple definition of `nctypelen'<br>> > /usr/local//lib/libmfhdf.a(array.o)(.text+0xec): first defined here<br>> > /usr/bin/ld: Warning: size of symbol `nctypelen' changed from 103 in<br>> > /usr/local//lib/libmfhdf.a(array.o) to 53 in /usr/local/lib/libnetcdf.a(putget.o)<br>> > /usr/local/lib/libnetcdf.a(nc.o)(.text+0x67): In function `NC_check_id':<br>> > : multiple definition of `NC_check_id'<br>> > /usr/local//lib/libmfhdf.a(file.o)(.text+0x0): first defined here<br>> > /usr/bin/ld: Warning: size of symbol `NC_check_id' changed from 76 in<br>> > /usr/local//lib/libmfhdf.a(file.o) to 53 in /usr/local/lib/libnetcdf.a(nc.o)<br>> > /usr/local/lib/libnetcdf.a(var.o)(.text+0x47f): In function `NC_var_shape':<br>> > : multiple definition of `NC_var_shape'<br>> > /usr/local//lib/libmfhdf.a(var.o)(.text+0x1b0): first defined here<br>> > /usr/bin/ld: Warning: size of symbol `NC_var_shape' changed from 563 in<br>> > /usr/local//lib/libmfhdf.a(var.o) to 292 in /usr/local/lib/libnetcdf.a(var.o)<br>> > collect2: ld returned 1 exit status<br>> > make[1]: *** [libgdal.la] Error 1<br>> > make[1]: Leaving directory `/tools/gdaac/TS2/www/maptest/pzhao/gdal/gdal-1.5.1'<br>> > make: *** [check-lib] Error 2<br>> > <br>> > It seems it is looking for netcdf and hdf in system directory, although I<br>> > specify to use netcdf and hdf located at my own directory<br>> > <br>> > <br>> > <br>> > <br>> > <br>> > _______________________________________________<br>> > gdal-dev mailing list<br>> > gdal-dev@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/gdal-dev<br>> > <br><br /><hr />Change the world with e-mail. <a href='http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld' target='_new'>Join the i’m Initiative from Microsoft.</a></body>
</html>