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

20030408:udunits.so and perl 5.8



Barry,

> To: address@hidden
> From: Barry McInnes <address@hidden>
> Subject: udunits.so and perl 5.8
> Organization: UCAR/Unidata

The above message contained the following:

> with perl 5.8 I am getting
> /tmp/cal2dbl_test.pl "days since 1800-01-01 00:00:0.0" 1800 1 1
> ld.so.1: /usr/local/bin/perl: fatal: relocation error: file 
> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/UDUNITS/UDUNITS.so: 
> symbol perl_get_sv: referenced symbol not found
> Killed
> #
> It seems 5.005 used perl_get_sv but 5.8 uses Perl_get_sv
> 
> How do I get the UDUNITS lib to work with 5.8 ?
> thanks barry

I get a different error in a similar environment:

    $ uname -srm
    SunOS 5.8 sun4u
    $ perl -v

    This is perl, v5.8.0 built for sun4-solaris
    ...
    $ zcat ~ftp/pub/netcdf/netcdf-perl/netcdf-perl-1.2.2.tar.Z | pax -r
    $ cd netcdf-perl-1.2.2/src
    $ CPP_NETCDF=-I/upc/netcdf/include LD_NETCDF='-L/upc/netcdf/lib -lnetcdf' 
PERL=/opt/perl5.8/bin/perl PERL_MANDIR=/opt/perl5.8/man ./configure 
&>configure.log
    $ make test

    making `test' in directory /tmp/netcdf-perl-1.2.2/src/perl

    cp NetCDF.pm blib/lib/NetCDF.pm
    AutoSplitting blib/lib/NetCDF.pm (blib/lib/auto/NetCDF)
    PERL_DL_NONLAZY=1 /opt/perl5.8/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
    Creating netCDF file...........................ok
    Setting fill mode..............................ok
    Defining fixed dimensions......................ok
    Defining fixed variables.......................ok
    Writing global attribute.......................ok
    Writing variable attributes....................ok
    Defining record dimension......................ok
    Defining record variables......................ok
    Ending definition..............................ok
    Writing fixed variable values..................ok
    Synchronizing netCDF I/O.......................ok
    Writing record values..........................ok
    Closing netCDF file............................ok
    Opening netCDF file for reading................ok
    Inquiring about netCDF file....................ok
    Checking global attribute name.................ok
    Checking global attribute value................ok
    Getting second dimension ID....................ok
    Checking second dimension information..........ok
    Checking fixed variable ID.....................ok
    Checking fixed variable information............ok
    Checking last value of first record variable...*** Error code 139
    make: Fatal error: Command failed for target `test_dynamic'
    Current working directory /tmp/netcdf-perl-1.2.2/src/perl
    *** Error code 1
    make: Fatal error: Command failed for target `perl/test'
    Current working directory /tmp/netcdf-perl-1.2.2/src
    *** Error code 1
    make: Fatal error: Command failed for target `test'

The error that I get has been seen before with perl 5.8.  No one seems
to know what the problem is.  I'm going to investigate it today.

In the meantime, you might try rebuilding the netcdf-perl package
against perl 5.8 (if you haven't already).  I suspect that might 
transform your problem into mine.

> Barry Mc Innes
> Email: address@hidden
> Phone: 303-4976231 FAX: 303-4977013
> Smail: NOAA/CDC
>         325 Broadway R/CDC1
>         Boulder CO 80305

Regards,
Steve Emmerson