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

Re: 20030306: NetCDFperl INSTALL problem <address@hidden>



Hi Steve,

Thanks for the response.

1) The /model/yuy/netcdf-3.5.0/lib/libnetcdf.a does exist.

Anyways, I now tried to install it on LINUX box (I will stick on LINUX for the installation). This time, I got errors again. Here are the info you may need for the help:

A) uname -a:  Linux aquarius1.gsfc.nasa.gov 2.4.18-26.8.0 #1 Mon Feb 24 10:21:42 EST 2003 i686 i686 i386 GNU/Linux

B) VERSION: 1.2.1

c) which cc : /usr/bin/cc    (it is actually a link to /usr/bin/gcc)

D, E, H, G) see the attached files.

The error appears at "make" step, compiling the NetCDF.c process. This is the error from make.log file:

"/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/home/yuy/netcdf-3.5.0/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=\"^A^B^A\" -DXS_VERSION=\"^A^B^A\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   NetCDF.c
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
 

We are stucked here right now. Your help will be greatly appreciated!
 

Bob Yu
 
 
 
 

Steve Emmerson wrote:

Bob,

> I still have problem on install the NetCDFPErl. basically, I gor error
> when do the make.
>
> A) uname -a : HP-UX nemo B.11.00 A 9000/785 2001716988 two-user license
> B) Version : 1.2.1
> C) type cc : cc is a tracked alias for /usr/bin/cc
> D) configure.log  attached
> E)config.log". attached
> F)makefile.log    attached
> G)make.log   attached
>
> I tried this:
> chane perl/Makefile the line
> #LD_RUN_PATH="$(LD_RUN_PATH)" $(LD)  $(LDDLFLAGS) $(LDFROM)
> $(OTHERLDFLAGS) -o $@ $(MYEXTLIB)
> $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST)
>
> to be
>  LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) $(PERL_ARCHIVE) $(LDLOADLIBS)
> $(LDDLFLAGS) $(LDFROM) $(OTH
> ERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST)
>
> I got make.log2
> and test.log  (failed here)
>
> I thank you in advance for the help.
...

> making `dynamic' in directory /model/yuy/LAS/las6.0/xml/perl/modules/netcdf-perl-1.2.1/perl
>
>       /usr/contrib/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC1.1 -I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap /opt/perl5/lib/5.6.1/ExtUtils/typemap NetCDF.xs > NetCDF.xsc && mv NetCDF.xsc NetCDF.c
> Please specify prototyping behavior for NetCDF.xs (see perlxs manual)
>       cc -c -I/model/yuy/netcdf-3.5.0/include -Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE  -O +Onolimit    -DVERSION=\"\"  -DXS_VERSION=\"\" +z -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE  NetCDF.c
> Running Mkbootstrap for NetCDF ()
>       chmod 644 NetCDF.bs
>       rm -f blib/arch/auto/NetCDF/NetCDF.sl
>       LD_RUN_PATH="/model/yuy/netcdf-3.5.0/lib" ld  -b -s -a shared NetCDF.o  -o blib/arch/auto/NetCDF/NetCDF.sl   -L/model/yuy/netcdf-3.5.0/lib -lnetcdf
> ld: Can't find library: "netcdf"

Odd.  Does the netCDf library

    /model/yuy/netcdf-3.5.0/lib/libnetcdf.a

exist?  Does it have the netCDF modules in it?

> Yu, Yunyue
>
>
>
> --
> (Bob) Yunyue YU
> Code 971, Goddard Space Flight Center
> Greenbelt, MD 20771
> (301)614-6850  address@hidden

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

-- 
(Bob) Yunyue YU
Code 971, Goddard Space Flight Center
Greenbelt, MD 20771
(301)614-6850  address@hidden
 
creating cache ./config.cache
checking for manual-page index command... 
checking for perl... perl
checking for perl manual page directory... /usr/local/man
checking for neqn... neqn
checking for tbl... tbl
checking for C compiler... /usr/bin/gcc
checking type of operating system... linux
checking for tar flags... -chof
checking for netCDF header-file... -I/home/yuy/netcdf-3.5.0/include
checking for netCDF library... -L//home/yuy/netcdf-3.5.0/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'
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:635: checking for manual-page index command
configure:648: checking for perl
configure:694: checking for perl manual page directory
configure:746: checking for neqn
configure:778: checking for tbl
configure:1119: checking for C compiler
configure:1173: checking type of operating system
configure:1250: checking for tar flags
configure:1266: checking for netCDF header-file
configure:1293: checking for netCDF library
configure:1322: checking for package version
cd perl && perl Makefile.PL POLLUTE=1
Writing Makefile for NetCDF
make[1]: Entering directory `/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1'
make[2]: Entering directory `/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1'

making `dynamic' in directory 
/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1/perl

make[3]: Entering directory 
`/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1/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/home/yuy/netcdf-3.5.0/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
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 
`/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1/perl'
make[2]: *** [perl/dynamic] Error 1
make[2]: Leaving directory `/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1'
make[1]: *** [decision] Error 2
make[1]: Leaving directory `/home/yuy/las/xml/perl/modules/netcdf-perl-1.2.1'
make: *** [all] Error 2