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

20030128: netcdf-perl install on Sun



Wayne,

> To: address@hidden
> cc: address@hidden,
> cc: address@hidden
> From: Wayne Gibson <address@hidden>
> Subject: netcdf-perl install on Sun
> Organization: Oregon State University

The above message contained the following:

> I've tried in vain to install the NetCDF perl package and have no other
> recourse than to ask for some help.
> 
> The process failed on "make test"(step H), although I'm getting a
> message when running "make perl/test" (step F) about the parameter
> POLLUTE.and am uncertain how critical that is.

I was able to duplicate your problem by using perl version 5.005003.  A
more recent release (version 5.6.0) however, didn't have any problems.
I suspect that porting the netCDF-perl package to more recent releases
of the perl package resulted in a backward incompatibility.

Is there any chance that you could install a more recent version of
perl?

BTW, I would never use /usr/ucb/cc for anything.

> Here is the requested information:
> 
> A) uname -a
> ------------
> SunOS thunder 5.8 Generic_108528-12 sun4u sparc SUNW,Sun-Blade-1000
> 
> B) VERSION
> ------------
> 1.2.2
> 
> C) which cc
> ------------
> /usr/lang/bin/cc
>  
>  which is a symbolic link to
>  
> /home/server/local/lang-solaris2x-forte-6.2/SUNWspro/WS6U2/bin/cc
> 
> 
> In addition("cc -V" output),
> 
> Sun WorkShop 6 update 2 C 5.3 Patch 111679-05 2002/02/07
> 
> 
> D) configure.log
> ------------
> creating cache ./config.cache
> checking for catman... catman
> checking for manual-page index command... catman -w -M $(MANDIR)
> checking for perl utility... /usr/bin/perl
> checking for perl manual page directory... /usr/perl5/man
> checking for value of perl POLLUTE variable... 1
> checking for neqn... neqn
> checking for tbl... tbl
> checking for C compiler... /usr/lang/WS6U2/bin/cc
> checking type of operating system... sunos5
> checking for tar flags... -chof
> checking for netCDF header-file... -I/home/thunder/apps/netcdf/include
> checking for netCDF library... -L/home/thunder/apps/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'
> 
> E) config.log
> ------------
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:593: checking for catman
> configure:635: checking for manual-page index command
> configure:686: checking for perl utility
> configure:694: checking for perl manual page directory
> configure:712: checking for value of perl POLLUTE variable
> configure:759: checking for neqn
> configure:791: checking for tbl
> configure:1132: checking for C compiler
> configure:1186: checking type of operating system
> configure:1263: checking for tar flags
> configure:1279: checking for netCDF header-file
> configure:1306: checking for netCDF library
> configure:1335: checking for package version
> 
> F) makefile.log
> ------------
> cd perl && /usr/bin/perl Makefile.PL POLLUTE=1
> Checking if your kit is complete...
> Looks good
> 'POLLUTE' is not a known MakeMaker parameter name.
> Writing Makefile for NetCDF
> 
> G) make.log
> ------------
> make[1]: Entering directory `/home/thunder/apps/netcdf-perl-1.2.2/src'
> make[2]: Entering directory `/home/thunder/apps/netcdf-perl-1.2.2/src'
> 
> making `dynamic' in directory /home/thunder/apps/netcdf-perl-1.2.2/src/perl
> 
> make[3]: Entering directory `/home/thunder/apps/netcdf-perl-1.2.2/src/perl'
> /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 
> /usr/perl5/
> 5.00503/ExtUtils/xsubpp  -typemap /usr/perl5/5.00503/ExtUtils/typemap 
> NetCDF.xs 
> >xstmp.c && mv xstmp.c NetCDF.c
> Please specify prototyping behavior for NetCDF.xs (see perlxs manual)
> cc -c -I/home/thunder/apps/netcdf/include  -xO3 -xdepend    
> -DVERSION=\"1.2.2\" 
> -DXS_VERSION=\"1.2.2\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE  NetCDF.c
> "NetCDF.xs", line 824: warning: improper pointer/integer combination: arg #2
> "NetCDF.xs", line 2251: warning: improper pointer/integer combination: op "="
> 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="/home/thunder/apps/netcdf/lib" cc -o 
> blib/arch/auto/NetCDF/NetCDF.s
> o -R/home/thunder/apps/netcdf/lib -G NetCDF.o    
> -L/home/thunder/apps/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 `/home/thunder/apps/netcdf-perl-1.2.2/src/perl'
> 
> returning to directory /home/thunder/apps/netcdf-perl-1.2.2/src
> 
> make[2]: Leaving directory `/home/thunder/apps/netcdf-perl-1.2.2/src'
> make[1]: Leaving directory `/home/thunder/apps/netcdf-perl-1.2.2/src'
> test ! -f perl/so_locations || chmod a+w perl/so_locations
> 
> H) test.log
> ------------
> make[1]: Entering directory `/home/thunder/apps/netcdf-perl-1.2.2/src'
> 
> making `test' in directory /home/thunder/apps/netcdf-perl-1.2.2/src/perl
> 
> make[2]: Entering directory `/home/thunder/apps/netcdf-perl-1.2.2/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 /usr/bin/perl -Iblib/arch -Iblib/lib 
> -I/usr/perl5/5.00503/sun4
> -solaris -I/usr/perl5/5.00503 test.pl
> Can't locate warnings.pm in @INC (@INC contains: blib/arch blib/lib 
> /usr/perl5/5
> .00503/sun4-solaris /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 
> /usr/perl
> 5/5.00503/sun4-solaris /usr/perl5/5.00503 
> /usr/perl5/site_perl/5.005/sun4-solari
> s /usr/perl5/site_perl/5.005 .) at test.pl line 3.
> BEGIN failed--compilation aborted at test.pl line 3.
> make[2]: *** [test_dynamic] Error 2
> make[2]: Leaving directory `/home/thunder/apps/netcdf-perl-1.2.2/src/perl'
> make[1]: *** [perl/test] Error 1
> make[1]: Leaving directory `/home/thunder/apps/netcdf-perl-1.2.2/src'
> make: *** [test] Error 2
> 
> PERL INFORMATION (/usr/bin/perl -V)
> -----------------------------------
> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>   Platform:
>     osname=solaris, osvers=2.8, archname=sun4-solaris
>     uname='sunos localhost 5.8 sun4u sparc sunw,ultra-1 '
>     hint=previous, useposix=true, d_sigaction=define
>     usethreads=undef useperlio=undef d_sfio=undef
>   Compiler:
>     cc='cc', optimize='-xO3 -xdepend', gccversion=
>     cppflags=''
>     ccflags =''
>     stdchar='char', d_stdstdio=define, usevfork=false
>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>     alignbytes=8, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =''
>     libpth=/lib /usr/lib /usr/ccs/lib
>     libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>     libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R 
> /usr/perl5/5.00503/sun4-solaris/CORE'
>     cccdlflags='-KPIC', lddlflags='-G'
> 
> 
> Characteristics of this binary (from libperl): 
>   Built under solaris
>   Compiled at Dec 22 1999 00:00:57
>   @INC:
>     /usr/perl5/5.00503/sun4-solaris
>     /usr/perl5/5.00503
>     /usr/perl5/site_perl/5.005/sun4-solaris
>     /usr/perl5/site_perl/5.005
> 
> -------------------------------------------------------------
> 
> A few more comments.
> 
> perl was precompiled on our system with what appears to be the compiler at 
> /usr/ucb/cc.  In reading email archives, it was suggested that that same 
> version 
> of the C compiler be used.  I tried that as well as the SUN C compiler that 
> comes with the Workshop suite with no success.  That includes recompiling the 
> NetCDF libraries to be used with C, FORTRAN, or C++.
> 
> Our NetCDF package is "netcdf-3.5.0".
> 
> Your help is appreciated.
> 
> Wayne
> 
> -----------------------
> Wayne Gibson
> Oregon State University
> address@hidden
> (541) 737-5696
> 
> 
> ------- End of Forwarded Message

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