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

Re: 20000329: netcdfperl 1.2 installation problem



Patrick,

>Date: Wed, 29 Mar 2000 13:44:32 +0000
>From: "Patrick O'Leary" <address@hidden>
>Organization: NOAA/FSL
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20000329: netcdfperl 1.2 installation problem
>Keywords: 200003291844.LAA23106

In the above message, you wrote:

> The variable in the relevant position is "na".

This indicates that you aren't getting the correct definition of the
"SvPV(pv, na)" macro at at line 823 of NetCDF.xs.  It should become the
following after C preprocessing:

    ( ( ( pv ) -> sv_flags & 0x00040000 ) ? ( ( Perl_na = ( ( XPV * ) ( pv ) -> 
sv_any ) -> xpv_cur ) , ( ( XPV * ) ( pv ) -> sv_any ) -> xpv_pv ) : 
Perl_sv_2pv ( pv , & Perl_na ) )

I don't know why you're not getting the correct translation.  It could
be a problem the header file that defines the SvPV macro.  On my system, 
that macro is defined in

    /usr/local/lib/perl5/sun4-solaris/5.004/CORE/XSUB.h

Alternatively, it could be a problem with your C preprocessor not correctly
expanding the SvPV macro.  Are you using a Standard C conforming compiler?

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>