[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 19990204: failure to compile netCDF in AIX3.2
- Subject: Re: 19990204: failure to compile netCDF in AIX3.2
- Date: Thu, 04 Feb 1999 13:08:43 -0700
------- Forwarded Message
Date: Thu, 04 Feb 1999 13:07:38 -0700
From: Russ Rew <address@hidden>
To: Qing Sun <address@hidden>
Subject: Re: 19990204: failure to compile netCDF in AIX3.2
>To: address@hidden
>From: Qing Sun <address@hidden>
>Subject: failure to compile netCDF in AIX3.2
>Organization: .
>Keywords: 199902040309.UAA29893
Hi Qing Sun,
> Hi, I was not able to go thru the 'make' step. The required items are
> attached below, including:
>
> A) Standard output of "uname -a";
> B) The contents of the file VERSION;
> C) The absolute pathnames of compilers;
> D) The standard output when running "./configure --prefix=/uam/io";
> E) The file "config.log" generated;
> F) The standard output when running 'make'.
...
> A) Standard output of "uname -a":
>
> AIX rocky 2 3 000087757000
...
> Making `all' in directory /uam/sunq/io/netcdf-3.4/src/libsrc
>
> xlc -c -O -I. -DNDEBUG attr.c
> xlc -c -O -I. -DNDEBUG dim.c
> xlc -c -O -I. -DNDEBUG error.c
> xlc -c -O -I. -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
> xlc -c -O -I. -DNDEBUG nc.c
> xlc -c -O -I. -DNDEBUG ncio.c
> "./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.
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
6. make test
7. make install
If you run into more problems with the above, please send the details
to address@hidden. Thanks.
- --Russ
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
------- End of Forwarded Message