This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> To: address@hidden > From: address@hidden (Mary Haley) > Subject: possible problems compiling netcdf-3.3 on HP machine > Keywords: 199705222142.PAA27010 > > Hi there, > > I downloaded the netcdf-3.3 source today and successfully built it > on a few platforms (Sun, Cray, DEC Alpha). One thing I noticed is that > I have to remove the config.cache file before I can run ./configure to > set it up for a different platform. > > Anyway, when I run ./configure on an HP 700 series machine running > HPUX 10.01 and try to compile netCDF, I get the following error > message: > > > savage[54] uname -a > HP-UX savage B.10.01 A 9000/720 2015974785 two-user license > savage[55] ./configure --prefix=/fs/scd/home1/ncargd/dev/HP9k720_HPUX_B_10_01 > creating cache ./config.cache > checking for m4... m4 > checking for xlc... no > checking for c89... c89 > checking C compiler... works > checking for how to make dependencies... false > checking for CC... CC > checking C++ compiler "CC"... works > checking for fort77... fort77 > checking for math library > ... > creating ./config.status > creating macros.make > creating libsrc/ncconfig.h > libsrc/ncconfig.h is unchanged > creating fortran/netcdf-cpp.inc > fortran/netcdf-cpp.inc is unchanged > savage[56] make all install > > Making `all' in directory /auto/fs/scd/home1/ncargd/test/local/src/netcdf-3.3/src/libsrc > > c89 -c -O -I. -DNDEBUG attr.c > cpp: "stdsyms.h", line 39: warning 2001: Redefinition of macro _INCLUDE_POSIX_SOURCE. > cc: "/usr/include/stddef.h", line 26: error 1642: Duplicate type specifier "int": ignored. > cc: "/usr/include/stddef.h", line 26: warning 554: Declarator is missing. > *** Error exit code 1 > > Stop. > *** Error exit code 1 > > Do you know what the problem might be? > > Thanks, > > Mary > address@hidden > x1254 Try the following: 1) setenv CC "cc -Aa -D_HPUX_SOURCE" 2) remove config.cache 3) running configure again 4) make .... Please let us know how it goes, we aren't up to HPUX 10 here, yet. -glenn