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

20030109: Compile netcdf-perl-1.2.1 under RedHat Linux 8.0



Eirh-Yu Hsie,

>Date: Fri, 3 Jan 2003 15:10:02 -0700 (MST)
>From: Eirh-Yu Hsie <address@hidden>
>Organization: Aeronomy Laboratory/NOAA
>To: address@hidden
>Subject: Re: 20030103: Compile netcdf-perl-1.2.1 under RedHat Linux 8.0 

The above message contained the following:

> Both set POLLUTE=0:
> 
> hsielinux:[54]% make
> make[1]: Entering directory `/usr/local/src/netcdf-perl-1.2.1/src'
> make[2]: Entering directory `/usr/local/src/netcdf-perl-1.2.1/src'
> cd perl && /usr/bin/perl Makefile.PL POLLUTE=0
> Checking if your kit is complete...
> Looks good
> Writing Makefile for NetCDF
> 
> making `dynamic' in directory /usr/local/src/netcdf-perl-1.2.1/src/perl
> 
> make[3]: Entering directory `/usr/local/src/netcdf-perl-1.2.1/src/perl'
> /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap 
> /usr/lib/perl5/5.8.0/ExtUtils/typemap  NetCDF.xs > NetCDF.xsc && mv 
> NetCDF.xsc 
> NetCDF.c
> Please specify prototyping behavior for NetCDF.xs (see perlxs manual)
> gcc -c  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 
> -march=i386 
> -mcpu=i686   -DVERSION=\"\" -DXS_VERSION=\"\" -fpic 
> "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   NetCDF.c
> cc1: warning: changing search order for system directory "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system directory
> NetCDF.xs: In function `pv_data':
> NetCDF.xs:823: `na' undeclared (first use in this function)
> NetCDF.xs:823: (Each undeclared identifier is reported only once
> NetCDF.xs:823: for each function it appears in.)
> NetCDF.xs: In function `XS_NetCDF_attput':
> NetCDF.xs:2251: `na' undeclared (first use in this function)
> make[3]: *** [NetCDF.o] Error 1
> make[3]: Leaving directory `/usr/local/src/netcdf-perl-1.2.1/src/perl'
> make[2]: *** [perl/dynamic] Error 1
> make[2]: Leaving directory `/usr/local/src/netcdf-perl-1.2.1/src'
> make[1]: *** [decision] Error 2
> make[1]: Leaving directory `/usr/local/src/netcdf-perl-1.2.1/src'
> make: *** [all] Error 2
> 
> 
> or delete that variable:
> 
> make[1]: Entering directory `/usr/local/src/netcdf-perl-1.2.1/src'
> make[2]: Entering directory `/usr/local/src/netcdf-perl-1.2.1/src'
> cd perl && /usr/bin/perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Writing Makefile for NetCDF
> 
> making `dynamic' in directory /usr/local/src/netcdf-perl-1.2.1/src/perl
> 
> make[3]: Entering directory `/usr/local/src/netcdf-perl-1.2.1/src/perl'
> /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap 
> /usr/lib/perl5/5.8.0/ExtUtils/typemap  NetCDF.xs > NetCDF.xsc && mv 
> NetCDF.xsc 
> NetCDF.c
> Please specify prototyping behavior for NetCDF.xs (see perlxs manual)
> gcc -c  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 
> -march=i386 
> -mcpu=i686   -DVERSION=\"\" -DXS_VERSION=\"\" -fpic 
> "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   NetCDF.c
> cc1: warning: changing search order for system directory "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system directory
> NetCDF.xs: In function `pv_data':
> NetCDF.xs:823: `na' undeclared (first use in this function)
> NetCDF.xs:823: (Each undeclared identifier is reported only once
> NetCDF.xs:823: for each function it appears in.)
> NetCDF.xs: In function `XS_NetCDF_attput':
> NetCDF.xs:2251: `na' undeclared (first use in this function)
> make[3]: *** [NetCDF.o] Error 1
> make[3]: Leaving directory `/usr/local/src/netcdf-perl-1.2.1/src/perl'
> make[2]: *** [perl/dynamic] Error 1
> make[2]: Leaving directory `/usr/local/src/netcdf-perl-1.2.1/src'
> make[1]: *** [decision] Error 2
> make[1]: Leaving directory `/usr/local/src/netcdf-perl-1.2.1/src'
> make: *** [all] Error 2
> 
> 
> Give me the same results.
> 
> Hsie
> 
> -------------------------
> Eirh-Yu Hsie
> Aeronomy Laboratory/NOAA
> 325 Broadway, R/AL4
> Boulder, CO  80305-3328
> voice:  303-497-3275
> fax:    303-497-5373

I fixed some problems with the package having to do with perl 5.005 and
5.6.0.  It now build on an in-house system that is similar to yours:

    $ uname -sr
    Linux 2.4.18-14smp
    $ gcc --version
    gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
    ...

The build does fail the "make test", however:

    $ make test
    make[1]: Entering directory `/tmp/netcdf-perl/src'

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

    make[2]: Entering directory `/tmp/netcdf-perl/src/perl'
    cp setfill.pl blib/lib/setfill.pl
    cp vardef.pl blib/lib/vardef.pl
    cp globatt.pl blib/lib/globatt.pl
    cp NetCDF.pm blib/lib/NetCDF.pm
    AutoSplitting blib/lib/NetCDF.pm (blib/lib/auto/NetCDF)
    cp rec.pl blib/lib/rec.pl
    cp varput1.pl blib/lib/varput1.pl
    PERL_DL_NONLAZY=1 /usr/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...make[2]: *** [test_dynamic] 
Segmentation fault
    make[2]: Leaving directory `/tmp/netcdf-perl/src/perl'
    make[1]: *** [perl/test] Error 1
    make[1]: Leaving directory `/tmp/netcdf-perl/src'
    make: *** [test] Error 2

It doesn't fail on our other (different) in-house systems, however.

Because this version is at least better than the previous one, I've
released it as version 1.2.2 of the NetCDFPerl package. You can get it
at

    ftp://ftp.unidata.ucar.edu/pub/netcdf-perl/netcdf-perl-1.2.2.tar.Z

Try it. It could be that the above problem won't be a problem for
you -- even if the "make test" fails.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>