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

Re: 19981222: problems with installation



>To: address@hidden
>From: Convection <address@hidden>
>Subject: problems with installation
>Organization: atm_ncu
>Keywords: 199812221416.HAA18761

Hi,

> Thank you for your reply.
> I have tried to do all the steps in the "REPORTING PROBLEMS" section,
> and I have some problems with those steps next to "configure".
> 
> After executed the command "make", I got these messages from the screen:
> 
> "./posixio.c", line 113.9: 1506-007 (S) Struct or union stat is
> undefined.
> "./posixio.c", line 114.17: 1506-045 (S) Undeclared identifier sb.
> "./posixio.c", line 1115.16: 1506-045 (S) Undeclared identifier O_RDWR.
> "./posixio.c", line 1115.23: 1506-045 (S) Undeclared identifier O_CREAT.
> 
> "./posixio.c", line 1132.17: 1506-045 (S) Undeclared identifier O_EXCL.
> "./posixio.c", line 1134.17: 1506-045 (S) Undeclared identifier O_TRUNC.
> 
> "./posixio.c", line 1210.37: 1506-045 (S) Undeclared identifier O_RDWR.
> "./posixio.c", line 1210.46: 1506-045 (S) Undeclared identifier
> O_RDONLY.
> 
> Is it something wrong with "posixio.c"?  What should I do now?
> Thanks for help!
> 
> -------------------------------------------------------------------------------------
> 
> The bug report:
> 
>  A.  AIX  storm 2 3 000029947000
> 
>  B.  version 3.4
> 
>  C.  C compiler: /usr/bin/xlc
>        Fortran compiler: /usr/bin/xlf
> 
>  D.  See attach file 'configure.log'.
> 
>  E.  See attach file 'config.log'.
> 
>  F.  See attach file 'make.log'.
> 
>  G.  See attach file 'test.log'.
> 
>  H.  See attach file 'install.log'.

I hadn't noticed before that you have a very old version of AIX (3.2).
We have AIX 4.2 here, so we cannot duplicate the problem, but I found
an earlier support message using the search through the netCDF support
email archive that's available at the bottom of the netCDF home page.
I just search for "Undeclared identifier O_RDWR", and it finds the
following support reply for a similar AIX 3.5 problem:

   http://www.unidata.ucar.edu/glimpse/netcdf/2265

That suggests the following will work:

... the posixio.c module requires not only ANSI but also POSIX
defines, so you need the -D_POSIX_SOURCE flag on compile lines.  To do
this:

  1.  rm config.cache
  2.  define CPPFLAGS as "-D_POSIX_SOURCE -DNDEBUG" in your environment
      before invoking configure.
  3.  make clean
  4.  Run the configure script: ./configure
  5.  make all test install

I hope this works.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu