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

[netCDFPerl #YNF-283034]: Help on instalation of perl module PDL-NetCDF



Fernando,

> I have successfully compiled NetCDF version 3.6.1 into a SGI Altix
> BX3700.  I've successfully run all the tests that comes with the
> package and installed it.
> 
> When I tried to install perl module PDL-NetCDF-0.91, I got the
> following error:
> 
> khepra:/usr/local/2install/perl/PDL-NetCDF-0.91 # perl Makefile.PL
> Found libnetcdf.a at /usr/local/netcdf/lib/libnetcdf.a
> Found netcdf.h at /usr/local/netcdf/include/netcdf.h
> Defining bool=int (linux seems to need this)
> Writing Makefile for PDL::NetCDF
> khepra:/usr/local/2install/perl/PDL-NetCDF-0.91 # make
> cc -c  -I/usr/lib/perl5/site_perl/5.8.3/ia64-linux-thread-multi/PDL/Core
> -I/usr/local/netcdf/include -Dbool=int -g -O2 -fmessage-length=0 -Wall -Wall 
> -pipe
> -DVERSION=\"0.91\" -DXS_VERSION=\"0.91\" -fPIC
> "-I/usr/lib/perl5/5.8.3/ia64-linux-thread-multi/CORE"   NetCDF.c
> In file included from 
> /usr/lib/perl5/5.8.3/ia64-linux-thread-multi/CORE/perl.h:1807,
> from NetCDF.xs:6:
> /usr/lib/perl5/5.8.3/ia64-linux-thread-multi/CORE/handy.h:85:1: warning: 
> "bool" redefined
> <command line>:4:1: warning: this is the location of the previous definition
> Running Mkbootstrap for PDL::NetCDF ()
> chmod 644 NetCDF.bs
> rm -f blib/arch/auto/PDL/NetCDF/NetCDF.so
> LD_RUN_PATH="" cc  -shared NetCDF.o   -o blib/arch/auto/PDL/NetCDF/NetCDF.so
> -L/usr/local/netcdf/lib -lnetcdf
> /usr/lib/gcc-lib/ia64-suse-linux/3.3.3/../../../../ia64-suse-linux/bin/ld:
> /usr/local/netcdf/lib/libnetcdf.a(nc.o): @gprel relocation against dynamic 
> symbol
> default_create_format
> /usr/lib/gcc-lib/ia64-suse-linux/3.3.3/../../../../ia64-suse-linux/bin/ld:
> /usr/local/netcdf/lib/libnetcdf.a(nc.o): @gprel relocation against dynamic 
> symbol
> default_create_format
> /usr/lib/gcc-lib/ia64-suse-linux/3.3.3/../../../../ia64-suse-linux/bin/ld:
> /usr/local/netcdf/lib/libnetcdf.a(nc.o): @gprel relocation against dynamic 
> symbol
> default_create_format
> collect2: ld returned 1 exit status
> make: *** [blib/arch/auto/PDL/NetCDF/NetCDF.so] Error 1

I did find this in the netCDF-perl support email by searching on "gprel":

    http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg02751.html

I suggest following its advice and letting me know what you find.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: YNF-283034
Department: Support netCDF Perl
Priority: Normal
Status: Closed