NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi John, > I am having difficulty makeing netcdf on an IBM-Risc/6000. > I welcome any suggestions. ... > Making `all' in /home/ibm/jcunnin/GMT/netcdf/src > /bin/cc -I`if [ -z "/usr/include/rpc" ]; then echo ../xdr; else \ > echo /usr/include/rpc; fi` -O -c array.c > "./alloc.h", line 10.14: 1506-132 (S) Function malloc cannot be > redeclared. > For AIX 3.2, you will need the appended patch to two files in the current distribution (which was tested on AIX 3.1). Apply this patch from the top-level netcdf directory via Larry Wall's patch(1) utility, e.g. $ cd /usr/local/src/unidata/netcdf $ patch < this_file or you can apply the patch manually, since it only involves adding two lines and deleting one line. --Russ diff -c1 ncgen/ncgen.y~ ncgen/ncgen.y *** ncgen/ncgen.y~ Mon Dec 23 13:42:05 1991 --- ncgen/ncgen.y Tue Sep 8 13:46:21 1992 *************** *** 12,13 **** --- 12,14 ---- #endif + #include <stdlib.h> #include <string.h> *************** *** 14,17 **** #include "ncgen.h" - - extern char* malloc(); --- 15,16 ---- diff -c1 src/local_nc.h~ src/local_nc.h *** src/local_nc.h~ Mon Dec 23 13:42:33 1991 --- src/local_nc.h Tue Sep 8 13:34:37 1992 *************** *** 73,74 **** --- 73,75 ---- #ifdef _AIX + #define STDC_INCLUDES #define SYSTEM_XDR_INCLUDES
netcdfgroup
archives: