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.
Mark, >Date: Tue, 16 Apr 2002 21:03:46 +0100 >From: Mark Mitchell <address@hidden> >Organization: UCAR/Unidata >To: Steve Emmerson <address@hidden> >Subject: Re: 20020416: PERL NetCDF problem: compiling NetCDF.c on HP-UX 10 >system >Keywords: 200204162104.g3GL4Da29271 The above message contained the following: > The files resulting from the "make" command in the perl/ subdirectory > are attached. > Thanks, > Mark > filename="make.log" > mkdir blib > mkdir blib/lib > mkdir blib/arch > mkdir blib/arch/auto > mkdir blib/arch/auto/NetCDF > 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) > /usr/contrib/bin/perl -I/usr/local/perl5.6/lib/5.6.0/PA-RISC1.1 > -I/usr/local/perl5.6/lib/5.6.0 /usr/local/perl5.6/lib/5.6.0/ExtUtils/xsubpp > -typemap /usr/local/perl5.6/lib/5.6.0/ExtUtils/typemap NetCDF.xs > NetCDF.xsc > && mv NetCDF.xsc NetCDF.c > gcc -c -I/usr/local/netcdf/include -D_HPUX_SOURCE -L/lib/pa1.1 > -DUINT32_MAX_BROKEN -fno-strict-aliasing -I/usr/local/include -DPERL_POLLUTE > -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic > -I/usr/local/perl5.6/lib/5.6.0/PA-RISC1.1/CORE NetCDF.c > *** Error exit code 1 > filename="error.log" > Please specify prototyping behavior for NetCDF.xs (see perlxs manual) > cc1: Invalid option `-fno-strict-aliasing' > Stop. It appears from the above that the gcc compiler doesn't like the "-fno-strict-aliasing" option. I can't find that option in our gcc manual page. We need to determine where it came from. Use the following command $ perl -V to see if your perl utility was compiled using that option. Regards, Steve Emmerson <http://www.unidata.ucar.edu>