[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFPerl #ZVB-855062]: problems compiling netcdf-perl on SLES 10



Christian,

> thanks, your tip from yesterday worked fine. but now i have problems
> compiling netcdf-perl on SLES 10 on another machine.
> here again are the points a-h
>
> A.  Linux satu 2.6.16.21-0.8-xen #1 SMP Mon Jul 3 18:25:39 UTC 2006
> x86_64 x86_64 x86_64 GNU/Linux
> B.  attachement
> C.  /usr/bin/cc
> D.  attachement
> E.  attachement
> F.  attachement
> G.  attachement
> H.  attachement

The file "make.log" contained the following:

cc  -shared -L/usr/local/lib64 NetCDF.o  -o blib/arch/auto/NetCDF/NetCDF.so
\
   -L/usr/local/NETCDF-3.6.2/lib -lnetcdf       \

/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
/usr/local/NETCDF-3.6.2/lib/libnetcdf.a(putget.o): relocation R_X86_64_32S
against `a local symbol' can not be used when making a shared object; recompile
with -fPIC
/usr/local/NETCDF-3.6.2/lib/libnetcdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

I suspect that the netCDF library wasn't compiled with the "-fPIC"
option.  I'm afraid that you'll have to rebuild the netCDF library
using that option before you can build the netCDF-Perl module.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: ZVB-855062
Department: Support netCDF Perl
Priority: Normal
Status: Closed