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.
Dave, >Date: Tue, 23 Sep 2003 15:58:46 -0400 >From: Dave Sill <address@hidden> >Organization: Oak Ridge National Lab, Oak Ridge, Tenn., USA >To: Steve Emmerson <address@hidden> >Subject: Re: 20030923: netcdf-perl build problem The above message contained the following: > I did that and got essentially the same thing. Then I did "make > realclean" and tried again from scratch. Got farther this time. > > A. SunOS datan 5.6 Generic_105181-34 sun4u sparc SUNW,Ultra-250 > > B. 1.2.2 > > C. gcc is /usr/local/bin/gcc > > 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/local/bin/perl > checking for perl manual page directory... /usr/local/man > checking for value of perl POLLUTE variable... 0 > checking for neqn... neqn > checking for tbl... tbl > checking for C compiler... gcc > checking type of operating system... sunos5 > checking for tar flags... -chof > checking for netCDF header-file... -I/usr/local/include > checking for netCDF library... -L/usr/local/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/local/bin/perl Makefile.PL POLLUTE=0 > Checking if your kit is complete... > Looks good > Writing Makefile for NetCDF > > G. make.log > > make[1]: Entering directory `/opt/local/src/netcdf-perl-1.2.2/src' > make[2]: Entering directory `/opt/local/src/netcdf-perl-1.2.2/src' > > making `dynamic' in directory /opt/local/src/netcdf-perl-1.2.2/src/perl > > make[3]: Entering directory `/opt/local/src/netcdf-perl-1.2.2/src/perl' > /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap > /usr/local/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 -B/usr/ccs/bin/ -c -I/usr/local/include -fno-strict-aliasing > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.2.2\" > -DXS_VERSION=\"1.2.2\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" > NetCDF.c > In file included from /usr/local/include/arpa/inet.h:68, > from /usr/local/lib/perl5/5.8.0/sun4-solaris/CORE/perl.h:616, > from NetCDF.xs:17: > /usr/local/include/sys/bitypes.h:26: warning: redefinition of `int8_t' > /usr/include/sys/int_types.h:62: warning: `int8_t' previously declared here > /usr/local/include/sys/bitypes.h:27: warning: redefinition of `int16_t' > /usr/include/sys/int_types.h:68: warning: `int16_t' previously declared here > /usr/local/include/sys/bitypes.h:28: warning: redefinition of `int32_t' > /usr/include/sys/int_types.h:69: warning: `int32_t' previously declared here > Running Mkbootstrap for NetCDF () > chmod 644 NetCDF.bs > rm -f blib/arch/auto/NetCDF/NetCDF.so > LD_RUN_PATH="/usr/local/lib" gcc -B/usr/ccs/bin/ -G -L/usr/local/lib > NetCDF.o -o blib/arch/auto/NetCDF/NetCDF.so -L/usr/local/lib -lnetcdf > gcc: file path prefix `/usr/ccs/bin/' never used > 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 `/opt/local/src/netcdf-perl-1.2.2/src/perl' > > returning to directory /opt/local/src/netcdf-perl-1.2.2/src > > make[2]: Leaving directory `/opt/local/src/netcdf-perl-1.2.2/src' > make[1]: Leaving directory `/opt/local/src/netcdf-perl-1.2.2/src' > test ! -f perl/so_locations || chmod a+w perl/so_locations > > H. test.log > > make[1]: Entering directory `/opt/local/src/netcdf-perl-1.2.2/src' > > making `test' in directory /opt/local/src/netcdf-perl-1.2.2/src/perl > > make[2]: Entering directory `/opt/local/src/netcdf-perl-1.2.2/src/perl' > cp NetCDF.pm blib/lib/NetCDF.pm > AutoSplitting blib/lib/NetCDF.pm (blib/lib/auto/NetCDF) > PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl > Creating netCDF file...........................ok > Setting fill mode..............................ok > Defining fixed dimensions......................ok > Defining fixed variables.......................ok > Writing global attribute.......................ok > Writing variable attributes....................ok > Defining record dimension......................ok > Defining record variables......................ok > Ending definition..............................ok > Writing fixed variable values..................ok > Synchronizing netCDF I/O.......................ok > Writing record values..........................ok > Closing netCDF file............................ok > Opening netCDF file for reading................ok > Inquiring about netCDF file....................ok > Checking global attribute name.................ok > Checking global attribute value................ok > Getting second dimension ID....................ok > Checking second dimension information..........ok > Checking fixed variable ID.....................ok > Checking fixed variable information............ok > Checking last value of first record variable...Segmentation Fault - core > dumped > make[2]: *** [test_dynamic] Error 139 > make[2]: Leaving directory `/opt/local/src/netcdf-perl-1.2.2/src/perl' > make[1]: *** [perl/test] Error 1 > make[1]: Leaving directory `/opt/local/src/netcdf-perl-1.2.2/src' > make: *** [test] Error 2 I've seen this before and, for the life of me, I can't figure-out what's wrong (and not for lack of trying). The problem doesn't seem to occur in actual use, however -- only in testing. I suggest that you go ahead and install the netcdf-perl package and use it. Let me know, however, if you encounter this problem again. Regards, Steve Emmerson