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

970326: netCDFPerl compilation (solaris)



Robert,

> To: address@hidden
> From: address@hidden (Robert Deloura)
> Subject: netCDFPerl compilation
> Organization: NOAA/PMEL
> Keywords: 199703270013.RAA26294

In the above message, you wrote:

> I am having a very frustrating time trying to compile Version 1.1 of 
> netCDFPerl.  Here are some of the standard bits of information you'll want.
> I'll comment afterwards.
> 
> 
> Output of 'uname -a':
> - ---------------------
> SunOS corona 5.5 Generic sun4d sparc SUNW,SPARCserver-1000
> 
> 
> The contents of file 'VERSION':
> - -------------------------------
> 1.1
> 
> 
> Output from executing the 'configure' script:
> - ---------------------------------------------
> creating cache ./config.cache
> checking for catman... catman
> checking for perl utility... /opt/src/perl5.003/perl
> checking for perl manual page directory... /opt/man
> checking for C compiler... /opt/SUNWspro/bin/cc
> checking for neqn... neqn
> checking for tbl... tbl
> 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.1
> 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'

The above looks OK.

> 
> 
> The file 'config.log':
> - ----------------------
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> 
> Output from the command 'make all' (if possible)
> - ------------------------------------------------
> cd perl && /opt/src/perl5.003/perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Writing Makefile for NetCDF
> 
> making `dynamic' in directory /opt/src/netcdf-perl-1.1/src/perl
> 
> /opt/src/perl5.003/perl -I/opt/lib/perl5.003/sun4-solaris/5.003 
> -I/opt/lib/perl5.003 /opt/lib/perl5.003/ExtUtils/xsubpp  -typemap 
> /opt/lib/perl5.003/ExtUtils/typemap NetCDF.xs >NetCDF.tc && mv NetCDF.tc 
> NetCDF.c
> Please specify prototyping behavior for NetCDF.xs (see perlxs manual)
> /opt/SUNWspro/bin/cc -c -I/usr/local/include -I/usr/local/include -O     
> -DVERSION=\"1.1\"  -DXS_VERSION=\"1.1\" -Kpic 
> -I/opt/lib/perl5.003/sun4-solaris/5.003/CORE  NetCDF.c
> "NetCDF.c", line 61: syntax error before or at: nclong
> "NetCDF.c", line 61: cannot recover from previous errors
> cc: acomp failed for NetCDF.c
> *** Error code 2
> make: Fatal error: Command failed for target `NetCDF.o'
> Current working directory /opt/src/netcdf-perl-1.1/src/perl
> *** Error code 1
> make: Fatal error: Command failed for target `perl/dynamic'
> Current working directory /opt/src/netcdf-perl-1.1/src
> *** Error code 1
> make: Fatal error: Command failed for target `decision'
> Current working directory /opt/src/netcdf-perl-1.1/src
> *** Error code 1
> make: Fatal error: Command failed for target `all'

It appears that the netCDF header file `/usr/local/include/netcdf.h'
doesn't define the type `nclong'.  This is, of course, impossible.

What version of the netCDF package do you have?

Is the type `nclong' defined in `/usr/local/include/netcdf.h'?

--------
Steve Emmerson   <address@hidden>