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

Re: 20001114: error installing netCDFPerl



Christian,

>Date: Tue, 14 Nov 2000 13:33:57 -0500 (EST)
>From: Christian Haselgrove <address@hidden>
>Organization: Harvard
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20001114: error installing netCDFPerl 
>Keywords: 200011102116.eAALG8D14244

The above message contained the following:

> For this (second) build, I re-extracted the .tar.Z file into a new
> directory and started over.

Good choice.

I just successfully built and tested the netcdf-perl package on
our Linux system.  I've enclosed the log.  You might look it over;
otherwise, I can't say much because I can't reproduce the problem.

The only notable difference seems to be the compiler: my perl was compiled
using "gcc" while yours seems to have been compiled using "cc".  I don't
how that could affect the results, however.  You might try the following:

    1.  Drop into the "perl/" subdirectory.

    2.  Remove the file "NetCDF.o".

    3.  Edit "Makefile": change the value of the CC macro to "cc".

    4.  Go up one directory.

    5.  Execute the command "make".

    6.  Execute the command "make test".

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

--------Begin log
/tmp: zcat ~/netcdf-perl.tar.Z | tar -xf -
/tmp: cd netcdf-perl-1.2.1/src
/tmp/netcdf-perl-1.2.1/src: uname -a
Linux sunshine.unidata.ucar.edu 2.2.16-22smp #1 SMP Tue Aug 22 16:39:21 EDT 
2000 i686 unknown
/tmp/netcdf-perl-1.2.1/src: CPP_NETCDF=-I/upc/netcdf/include 
LD_NETCDF='-L/upc/netcdf/lib -lnetcdf' PERL=/opt/bin/perl PERL_MANDIR=/opt/man 
./configure
creating cache ./config.cache
checking for manual-page index command... 
checking for perl utility... /opt/bin/perl
checking for perl manual page directory... /opt/man
checking for neqn... neqn
checking for tbl... tbl
checking for c89... no
checking for cc... cc
checking type of operating system... linux
checking for tar flags... -chof
checking for netCDF header-file... -I/upc/netcdf/include
checking for netCDF library... -L/upc/netcdf/lib -lnetcdf
checking for package version... 1.2
updating cache ./config.cache
creating ./config.status
creating Makefile
creating perl/Makefile.PL
creating port/master.mk
creating port/Makefile
expanding `include's in file `Makefile'
expanding `include's in file `perl/Makefile.PL'
expanding `include's in file `port/master.mk'
expanding `include's in file `port/Makefile'
/tmp/netcdf-perl-1.2.1/src: make
make[1]: Entering directory `/tmp/netcdf-perl-1.2.1/src'
make[2]: Entering directory `/tmp/netcdf-perl-1.2.1/src'
cd perl && /opt/bin/perl Makefile.PL POLLUTE=1
Checking if your kit is complete...
Looks good
Writing Makefile for NetCDF

making `dynamic' in directory /tmp/netcdf-perl-1.2.1/src/perl

make[3]: Entering directory `/tmp/netcdf-perl-1.2.1/src/perl'
/opt/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 
/usr/lib/perl5/5.6.0/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.6.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/upc/netcdf/include -fno-strict-aliasing -DPERL_POLLUTE  -O2 
-march=i386 -mcpu=i686     -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC 
-I/usr/lib/perl5/5.6.0/i386-linux/CORE  NetCDF.c
In file included from NetCDF.xs:23:
/usr/include/assert.h:80:16: warning: "assert" redefined
/usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:2049:1: warning: this is the 
location of the previous definition
mkdir blib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/NetCDF
Running Mkbootstrap for NetCDF ()
chmod 644 NetCDF.bs
LD_RUN_PATH="/upc/netcdf/lib" gcc -o blib/arch/auto/NetCDF/NetCDF.so  -shared 
-L/usr/local/lib NetCDF.o    -L/upc/netcdf/lib -lnetcdf 
chmod 755 blib/arch/auto/NetCDF/NetCDF.so
cp NetCDF.bs blib/arch/auto/NetCDF/NetCDF.bs
chmod 644 blib/arch/auto/NetCDF/NetCDF.bs
make[3]: Leaving directory `/tmp/netcdf-perl-1.2.1/src/perl'

returning to directory /tmp/netcdf-perl-1.2.1/src

make[2]: Leaving directory `/tmp/netcdf-perl-1.2.1/src'
make[1]: Leaving directory `/tmp/netcdf-perl-1.2.1/src'
test ! -f perl/so_locations || chmod a+w perl/so_locations
/tmp/netcdf-perl-1.2.1/src: make test
make[1]: Entering directory `/tmp/netcdf-perl-1.2.1/src'

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

make[2]: Entering directory `/tmp/netcdf-perl-1.2.1/src/perl'
mkdir blib/lib
mkdir blib/lib/auto
mkdir blib/lib/auto/NetCDF
cp NetCDF.pm blib/lib/NetCDF.pm
AutoSplitting blib/lib/NetCDF.pm (blib/lib/auto/NetCDF)
PERL_DL_NONLAZY=1 /opt/bin/perl -Iblib/arch -Iblib/lib 
-I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 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...ok
Reading fixed variable values..................ok
Reading fixed variable attributes..............ok
Checking typelen().............................ok
Checking number of record variables............ok
Checking variable IDs..........................ok
Checking variable sizes........................ok
Reading values of record variables.............ok
Closing netCDF file............................ok
make[2]: Leaving directory `/tmp/netcdf-perl-1.2.1/src/perl'

returning to directory /tmp/netcdf-perl-1.2.1/src

make[1]: Leaving directory `/tmp/netcdf-perl-1.2.1/src'
/tmp/netcdf-perl-1.2.1/src: type gcc
gcc is /usr/bin/gcc