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

960422: NetCDF build under OpenVMS6.1



Steve,

>Date: Mon, 22 Apr 96 15:07:52 -0600 
>From: Steve Penton <address@hidden>
>Organization: . 
>To: Steve Emmerson <address@hidden>
>Subject: 960422: NetCDF build under OpenVMS6.1 
>Keywords: 199604192334.AA13327

In the above message you wrote:

>       Nope, that didn't do the trick. Do you maintain an ftp site where
> I can download the prebuilt olb files ?

Sorry, no.  We don't have an OpenVMS system in-house so we don't attempt
to make a binary distribution.  (The OpenVMS system that we use for
porting is remote.)

It seems possible, however, that the error

        mode_t umask(mode_t __old_mask);
    ...........^
    %CC-E-DECLARATION, Invalid declaration.
    at line number 256 in module STDLIB of text library 
SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;2

is due to `mode_t' not being defined when the uname() declaration is
encountered in <stdlib.h>.  If so, then the problem might be fixed by
including the header file that defines `mode_t' in the netCDF C source
files before those same files include <stdlib.h>.

The following files explicitly include <stdlib.h>:

    ./fortran/vms/jackets.c
    ./libsrc/xdrffio.c
    ./libsrc/cdftest.c
    ./ncdump/ncdump.c
    ./ncdump/vardata.c
    ./ncdump/dumplib.c
    ./ncgen/vmstab.c
    ./ncgen/vms_yy.c
    ./ncgen/load.c
    ./ncgen/msofttab.c
    ./ncgen/genlib.c
    ./nctest/rec.c
    ./nctest/slabs.c
    ./nctest/dimtests.c
    ./nctest/emalloc.c
    ./nctest/vardef.c
    ./nctest/varget.c
    ./nctest/varput.c
    ./nctest/vartests.c
    ./nctest/vputget.c
    ./nctest/vargetg.c
    ./nctest/add.c
    ./nctest/varputg.c
    ./nctest/vputgetg.c
    ./nctest/atttests.c
    ./nctest/cdftests.c
    ./xdr/xdrtest.c
    ./xdr/xdr.c
    ./xdr/xdrarray.c

Try adding a `#include <sys/types.h>' before the include of <stdlib.h>
to the above files.  (Actually, I'd just try it for the file that
emitted the first error message to see if this will work -- probably in
the xdr/ subdirectory)

Please let me know if this helps.

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