[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20020214: Problems instaling netCDF on AIX 3
- Subject: 20020214: Problems instaling netCDF on AIX 3
- Date: Thu, 14 Feb 2002 08:56:10 -0700
Dear Jose Lopes,
> From: "Departamento de Fisica" <address@hidden>
> Subject: Problems instaling netCDF
> Organization: ?
> Keywords: 200202141020.g1EAK3x13667 netCDF 3.4 AIX
The above message contained the following:
> Dear Sirs,
>
> I had some problems instaling netcdf-3.4 in an IBM AIx Version 3 Risc =
> System 6000 in run ' make' in order to process data for my model. I had =
> use the recommendation concernig 'Other Builds of NetCDF Package'
>
> AIX 3.5
> Kate Hedstrom <address@hidden> reports that the following worked:
>
> CPPFLAGS=3D'-D_POSIX_SOURCE -DNDEBUG -D_ALL_SOURCE'
> CC=xlc
> CFLAGS=-O
> FC=xlf
> FFLAGS=-O
> CXX=xlC
>
> I had the faillure message :
> Making `all' in directory /work3/jflopes/netcdf-3.4/src/libsrc
>
> 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.
> The error code from the last failed command is 1.
>
> Make Quitting.
> The error code from the last failed command is 1.
>
> Make Quitting.
> The error code from the last failed command is 2.
>
> Make Quitting. =20
The "xlc" compilation-line above indicates that the compiler options
"-D_POSIX_SOURCE" and "-D_ALL_SOURCE" were NOT used. I believe this
caused your problem.
Please try the following steps:
1. Go to the top-level source directory.
2. Perorm steps 3 through 5 mentioned near the end of the file
INSTALL.html.
3. Ensure that the environment variable CPPFFLAGS contains the
necessary strings, e.g.
$ export CPPFLAGS='-D_POSIX_SOURCE -DNDEBUG -D_ALL_SOURCE'
or
% setenv CPPFLAGS '-D_POSIX_SOURCE -DNDEBUG -D_ALL_SOURCE'
depending on your user shell.
4. Perform steps 6 through 9 mentioned near the end of the file
INSTALL.html.
Please let me know if this helps.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>