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

Re: NetCDF installation problem: ssize_t definition



Vladimir,

>Date: Fri, 10 Sep 2004 12:35:41 +0200
>From: "Vladimir Meerson" <address@hidden>
>Organization: Israel Meteorological Service
>To: "Steve Emmerson" <address@hidden>
>Subject: Re: NetCDF installation problem 
> Keywords: 200408111149.i7BBnPaW019090 netCDF IRIX

The above message contained the following:

> Result of       /bin/cc -64 -DNDEBUG -E test01.c | grep '^int' | tail   :
> 
> int int;

This indicates that the "ssize_t" typedef is actually a C macro -- in
violation of the Standard (sigh).  You might look at the header-file
<sys/types.h> to see how this symbol is defined and if another
definition is possible.

I just successfully built version 3.5.1 of the netCDF package on our 
IRIX64 system:

    $ uname -a
    IRIX64 flip 6.5 04070317 IP30 mips
    $ CC='/bin/cc -64' CPPFLAGS=-DNDEBUG CFLAGS=-O FC='/bin/f90 -64' FFLAGS=-O 
F90='/bin/f90 -64' CXX='/bin/CC -64' CXXFLAGS=-O ./configure &>configure.log
    $ make &>make.log
    ...

One of the differences between your "configure.log" file and mine is the
following:

    $ diff -w configure.log configure-vladimir.log
    ...
    11c11
    < checking how to run the C preprocessor... /bin/cc -64 -E
    ---
    > checking how to run the C preprocessor... /lib/cpp
    ...

It could be that this difference in the C preprocessor is the cause of
the problem.  I suspect that the difference is due to your licensing
problem.

Please try the following:

    1.  Go to the top-level source-directory;

    2.  Undo any changes you made to the "configure" script.

    3.  Execute the command "make distclean".

    4.  Set the following environment variables to the indicated values:

            CPP='/bin/cc -64 -E'
            CC='/bin/cc -64'
            CPPFLAGS=-DNDEBUG
            CFLAGS=-O
            FPP='/bin/cc -64 -E'
            FC='/bin/f90 -64'
            FFLAGS=-O
            F90='/bin/f90 -64'
            CXX='/bin/CC -64'
            CXXFLAGS=-O

    5.  Perform steps 6 through 9 described at

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

> Regards,
> Vladimir

Regards,
Steve Emmerson