Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

Re: 20050707: netCDF Perl Interface - Netcdf Perl Build Error



Chuck,

> To: support-netcdf-perl@xxxxxxxxxxxxxxxx
> From: "Chuck Peng" <cbpeng@xxxxxxxxx>
> Subject: netCDF Perl Interface - Netcdf Perl Build Error
> Organization: UCAR/Unidata
> Keywords: 200507071506.j67F6TKv011108

The above message contained the following:

> Institution: Nexus Geosciences
> Package Version: 1.2.3
> Operating System: SuSe Linux 9.3
> Hardware Information: AMD Athlon 64
> Inquiry: Can not pass Make. It works on 32 bit Athlon machine. Problem is on 64 bit hardware.  Compiler is gcc 3.3.5 20050117
> 
> 
> Thanks for your help
> 
> Chuck Peng
> Nexus Geosciences Inc.
> 
> 
> netcdf-perl-1.2.3/src> make
> make[1]: Entering directory `/home/cpeng/third_parties/netcdf-perl-1.2.3/src'
> make[2]: Entering directory `/home/cpeng/third_parties/netcdf-perl-1.2.3/src'
> 
> making `dynamic' in directory /home/cpeng/third_parties/netcdf-perl-1.2.3/src/perl
> 
> make[3]: Entering directory `/home/cpeng/third_parties/netcdf-perl-1.2.3/src/perl'
> make[3]: Warning: File `NetCDF.o' has modification time 2.7e+06 s in the future

Odd.  Did you do a "make distclean" before the "make"?

> rm -f blib/arch/auto/NetCDF/NetCDF.so
> LD_RUN_PATH="" cc  -shared -L/usr/local/lib64 NetCDF.o  -o blib/arch/auto/NetCDF/NetCDF.so   -L/usr/lib64 -lnetcdf
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libnetcdf.a(v2i.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> /usr/lib64/libnetcdf.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: *** [blib/arch/auto/NetCDF/NetCDF.so] Error 1
> make[3]: Leaving directory `/home/cpeng/third_parties/netcdf-perl-1.2.3/src/perl'
> make[2]: *** [perl/dynamic] Error 1
> make[2]: Leaving directory `/home/cpeng/third_parties/netcdf-perl-1.2.3/src'
> make[1]: *** [decision] Error 2
> make[1]: Leaving directory `/home/cpeng/third_parties/netcdf-perl-1.2.3/src'
> make: *** [all] Error 2

It could be that the netCDF library wasn't compiled in a way that would
allow it to be linked into a sharable library.  Can you tell if the
"-fPIC" option was used to compile the netCDF library?

Regards,
Steve Emmerson


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690