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

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



Eirh-Yu Hsie,

> To: Unidata Support <address@hidden>
> From: Eirh-Yu Hsie <address@hidden>
> Subject: Compile netcdf-perl-1.2.1 under RedHat Linux 8.0
> Organization: Aeronomy Laboratory/NOAA

The above message contained the following:

> I need some help to compile netcdf-perl-1.2.1 package under RedHat Linux 
> 8.0 (kernel version 2.4.18-19.8.0, gcc version 3.2)
> Netcdf version 3.5.0 is installed under /usr/local.
> 
> Attached are the make output file and mu CUSTOMIZE file:
> 
> hsielinux:[172]% cat  make.log1
> 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'
> 
> 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 -DPERL_POLLUTE  -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 `XS_NetCDF_inquire':
> NetCDF.xs:1825: parse error before '(' token
> NetCDF.xs:1829: `rd' undeclared (first use in this function)
> NetCDF.xs:1829: (Each undeclared identifier is reported only once
> NetCDF.xs:1829: for each function it appears in.)
> NetCDF.xs: In function `XS_NetCDF_varinq':
> NetCDF.xs:1962: parse error before '(' token
> 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

This problem has been reported before.

Please go to

    <http://www.unidata.ucar.edu/cgi-bin/msgout?/glimpse/netcdf-perl/126>

to see my resonse and a possible work-around for your situation.

Please let me know if this helps.

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