This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Michael, > To: address@hidden > From: Michael Vrencur <address@hidden> > Subject: netCDFPerl "make test" fails > Organization: UCAR/Unidata > Keywords: 200010182122.e9ILMk425549 The above message contained the following: > A: --------------------------------------------------->>> > root@raptor[/]# uname -a > HP-UX raptor B.10.20 A 9000/802 448623321 two-user license > > B: --------------------------------------------------->>> > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# more VERSION > 1.2.1 > > C: --------------------------------------------------->>> > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# which cc > /usr/bin/cc > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# ls -l /usr/bin/cc > lr-xr-xr-t 1 root sys 17 Aug 6 1999 /usr/bin/cc -> > /opt/ansic/bin/cc > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# ls -l > /opt/ansic/bin/cc > -rwxr-xr-x 2 bin bin 253952 Feb 10 1999 > /opt/ansic/bin/cc > > D: --------------------------------------------------->>> > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# more configure.log > creating cache ./config.cache > checking for manual-page index command... > checking for perl utility... /usr/local/perl5.003_01/bin/perl > checking for perl manual page directory... /usr/local/perl5.003_01/man > checking for neqn... neqn > checking for tbl... tbl > checking for c89... c89 > checking type of operating system... hpux10 > checking for tar flags... -chof > checking for netCDF header-file... -I/usr/local/netcdf/include > checking for netCDF library... /usr/local/netcdf/lib > 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 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > 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: --------------------------------------------------->>> > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# more config.log > 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:686: checking for perl utility > configure:694: checking for perl manual page directory > configure:746: checking for neqn > configure:778: checking for tbl > configure:873: checking for c89 > 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 > > F: --------------------------------------------------->>> > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# more makefile.log > cd perl && /usr/local/perl5.003_01/bin/perl Makefile.PL > POLLUTE=1 > Checking if your kit is complete... > Looks good > 'POLLUTE' is not a known MakeMaker parameter name. > Unrecognized argument in LIBS ignored: '/usr/local/netcdf/lib' > Writing Makefile for NetCDF > > G: --------------------------------------------------->>> > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# more make.log > > making `dynamic' in directory /mstage/vrencur/netcdf-perl-1.2.1/src/perl > > /usr/local/perl5.003_01/bin/perl > -I/usr/local/perl5.003_01/lib/PA-RISC1. > 1/5.00301 -I/usr/local/perl5.003_01/lib > /usr/local/perl5.003_01/lib/ExtUtils/xsu > bpp -typemap /usr/local/perl5.003_01/lib/ExtUtils/typemap NetCDF.xs > >NetCDF.tc > && mv NetCDF.tc NetCDF.c > Please specify prototyping behavior for NetCDF.xs (see perlxs manual) > cc -c -I/usr/local/netcdf/include -D_HPUX_SOURCE -Aa > -I/usr/local/includ > e -O -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" +z > -I/usr/local/perl5.003_01 > /lib/PA-RISC1.1/5.00301/CORE NetCDF.c > cc: "NetCDF.c", line 954: warning 527: Integral value implicitly > converted to po > inter in assignment. > Running Mkbootstrap for NetCDF () > chmod 644 NetCDF.bs > LD_RUN_PATH="" ld -o ./blib/arch/auto/NetCDF/NetCDF.sl -b > -L/usr/local/l > ib NetCDF.o > ld: (Warning) At least one PA 2.0 object file (NetCDF.o) was detected. > The linke > d output may not run on a PA 1.x system. > chmod 755 ./blib/arch/auto/NetCDF/NetCDF.sl > cp NetCDF.bs ./blib/arch/auto/NetCDF/NetCDF.bs > chmod 644 ./blib/arch/auto/NetCDF/NetCDF.bs > > returning to directory /mstage/vrencur/netcdf-perl-1.2.1/src > > test ! -f perl/so_locations || chmod a+w perl/so_locations > > H: --------------------------------------------------->>> > > root@raptor[/mstage/vrencur/netcdf-perl-1.2.1/src]# more test.log > > making `test' in directory /mstage/vrencur/netcdf-perl-1.2.1/src/perl > > cp NetCDF.pm ./blib/lib/NetCDF.pm > AutoSplitting NetCDF (./blib/lib/auto/NetCDF) > LD_RUN_PATH="" ld -o ./blib/arch/auto/NetCDF/NetCDF.sl -b > -L/usr/local/l > ib NetCDF.o > ld: (Warning) At least one PA 2.0 object file (NetCDF.o) was detected. > The linke > d output may not run on a PA 1.x system. > chmod 755 ./blib/arch/auto/NetCDF/NetCDF.sl > cp NetCDF.bs ./blib/arch/auto/NetCDF/NetCDF.bs > chmod 644 ./blib/arch/auto/NetCDF/NetCDF.bs > PERL_DL_NONLAZY=1 /usr/local/perl5.003_01/bin/perl -I./blib/arch > -I./bli > b/lib -I/usr/local/perl5.003_01/lib/PA-RISC1.1/5.00301 > -I/usr/local/perl5.003_01 > /lib test.pl > Can't load './blib/arch/auto/NetCDF/NetCDF.sl' for module NetCDF: > Unresolved ext > ernal at /usr/local/perl5.003_01/lib/DynaLoader.pm line 140. > > at test.pl line 3 > BEGIN failed--compilation aborted at test.pl line 3. > *** Error exit code 215 It's difficult to say, exactly, what the problem is. It does look, however, like there's an incompatibility between perl and the netCDF extension module. I know that HP-UX systems support multiple processor architectures (PA-RISC 1.x, PA-RISC 2.0). It could be that perl was compiled using one architecture (PA-RISC 1.x?) a while back, then the compiler changed to use a different architecture (PA-RISC 2.0?). If this is true, then the solution will be to use the same architecture for compiling all three packages (perl, netCDF, netCDF-Perl). > -- > Michael Vrencur > FSL/NOAA System Administrator > address@hidden > 303.497.7526 Regards, Steve Emmerson <http://www.unidata.ucar.edu>