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

[netCDFPerl #WPU-615012]: PDL-NetCDF-0.93 make problem



Graham,

> We are trying to install PDL-NetCDF-0.93 on a linux box, for a
> scientist here at CIRES,  with PDL 2.4.3 already installed and we run
> into the following make error:
> 
> # make
> /opt/ActivePerl-5.8/bin/perl-static -I/opt/ActivePerl-5.8/site/lib
> "-MPDL::PP qw/PDL::NetCDF PDL::NetCDF NetCDF/" netcdf.pd
> cp NetCDF.pm blib/lib/PDL/NetCDF.pm
> /opt/ActivePerl-5.8/bin/perl-static
> /opt/ActivePerl-5.8/lib/ExtUtils/xsubpp  -typemap
> /opt/ActivePerl-5.8/lib/ExtUtils/typemap -typemap
> /opt/ActivePerl-5.8/site/lib/PDL/Core/typemap.pdl -typemap typemap
> NetCDF.xs > NetCDF.xsc && mv NetCDF.xsc NetCDF.c
> gcc -c  -I/opt/ActivePerl-5.8/site/lib/PDL/Core -I/usr/local/include
> -Dbool=int -g -O2   -DVERSION=\"0.93\" -DXS_VERSION=\"0.93\" -fPIC
> "-I/opt/ActivePerl-5.8/lib/CORE"   NetCDF.c
> In file included from /opt/ActivePerl-5.8/lib/CORE/perl.h:2247,
> from NetCDF.xs:6:
> /opt/ActivePerl-5.8/lib/CORE/handy.h:85:1: warning: "bool" redefined
> <command line>:1:1: warning: this is the location of the previous
> definition
> NetCDF.xs: In function `XS_PDL__NetCDF_nc_strerror':
> NetCDF.xs:1687: error: `NC_MAX_NAME' undeclared (first use in this
> function)
> NetCDF.xs:1687: error: (Each undeclared identifier is reported only once
> NetCDF.xs:1687: error: for each function it appears in.)
> NetCDF.xs:1688: warning: assignment makes pointer from integer without a
> cast
> make: *** [NetCDF.o] Error 1
> 
> I have tried undefining the Boolean variable, but still get the same
> error.  Is this a common problem, or am I missing some modules. We are
> running Perl-5.8.8.

The problem isn't with "bool" but, rather, with the lack of a definition
for the C macro NC_MAX_NAME.  This should be defined in the public
netCDF header-file.  What does the following command output?

    grep NC_MAX_NAME /usr/local/include/netcdf.h

> I appreciate your time and response on this.
> 
> Thanks
> Graham Mountain
> 
> (303) 492-5529
> address@hidden


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: WPU-615012
Department: Support netCDF Perl
Priority: Normal
Status: Closed