[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030923: netcdf-perl build problem
- Subject: 20030923: netcdf-perl build problem
- Date: Tue, 23 Sep 2003 13:44:26 -0600
Dave,
>Date: Tue, 23 Sep 2003 15:14:23 -0400
>From: Dave Sill <address@hidden>
>Organization: Oak Ridge National Lab, Oak Ridge, Tenn., USA
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20030919: netcdf-perl build problem
The above message contained the following:
> Thanks for your prompt response. Unfortunately, I'm still having
> trouble with the build.
>
> Steve Emmerson <address@hidden> wrote:
> >
> >I suspect that your version of the perl(1) utility is too old and
> >recommend that you update it.
>
> OK, I've installed 5.8. Now I'm having a different problem.
Different is good.
> 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
>
> configure.in configure.log
> root@datan# cat configure.log
> loading cache ./config.cache
> checking for catman... (cached) 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
I think the last line above is the problem. I suspect that the value
for the POLLUTE variable should be 1.
> checking for neqn... (cached) neqn
> checking for tbl... (cached) 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
> 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
> 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'
> 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.c:25:
> /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
> NetCDF.c: In function `XS_NetCDF_constant':
> NetCDF.c:1781: `na' undeclared (first use in this function)
> NetCDF.c:1781: (Each undeclared identifier is reported only once
> NetCDF.c:1781: for each function it appears in.)
...
Errors like the above show up if the code is handled by a relatively
recent version of perl (with the new naming conventions) and the POLLUTE
variable is 0.
Try the following:
1. Go to the top-level source directory.
2. Perform steps 3 through 5 described near the end of the file
INSTALL.
3. Ensure that the environment variable POLLUTE is set to 1, e.g.,
export POLLUTE=1
or
setenv POLLUTE 1
depending on your user-shell.
4. Perform steps 6 through 9 described near the end of the file
INSTALL.
Please let me know if this helps.
Regards,
Steve Emmerson