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.
Gregg, > From: Gregg Phillips <address@hidden> > Subject: Problems building under HPUX 10.20. > Organization: NOAA/ERL/FSL/MD Boulder, CO > Keywords: 199804151618.KAA15463 netCDF 3.4 build In the above message, you wrote: > I am attempting to build netcdf-3.4 on and HP 735 running HPUX 10.20. I > have the following defined per your install file: > CC=/bin/c89 > CPPFLAGS="-D_HPUX_SOURCE -DNDEBUG" > CFLAGS=-O > FC=/opt/fortran/bin/fort77 # might be /usr/bin/fort77 > instead > FFLAGS="-O3 -w" > CXX=/usr/bin/CC > > I am receiving the following error messages: > > hal /tmphome/src/netcdf-3.4/src 84 > make > make[1]: Entering directory `/tmphome/src/netcdf-3.4/src' > > Making `all' in directory /tmphome/src/netcdf-3.4/src/libsrc > > make[2]: Entering directory `/tmphome/src/netcdf-3.4/src/libsrc' > /bin/c89 -c -O -I. -D_HPUX_SOURCE -DNDEBUG attr.c > cc: "/usr/include/sys/types.h", line 106: error 1000: Unexpected symbol: > "long". > cc: "/usr/include/sys/types.h", line 182: error 1000: Unexpected symbol: > "int". > cc: "/usr/include/sys/types.h", line 200: error 1713: Illegal > redeclaration for identifier "Default_returned_by_error_recovery". > make[2]: *** [attr.o] Error 1 > make[2]: Leaving directory `/tmphome/src/netcdf-3.4/src/libsrc' > make[1]: *** [subdir_target] Error 1 > make[1]: Leaving directory `/tmphome/src/netcdf-3.4/src' > make: *** [libsrc/all] Error 2 > > > Any help would be greatly appreciated. > > Thanks, > > Gregg. > > - ---------------------------------------------------------------------------- > Gregg Phillips address@hidden > NOAA/ERL/FSL/MD Systems Administrator > R/E/FS 6 > 325 Broadway voice: (303) 497-7685 > Boulder, CO 80303 USA fax: (303) 497-3096 Bizarre! We didn't encounter this problem on our "hpux_10.20-hp9000" system using the exact same settings. I wonder if the C compiler could be different. Using the command "swlist", you will see what you are using form the ANSI C compiler. Here's our environment: B3898AA_APZ B.10.20.02 HP C/ANSI C Developer's Bundle for HP-UX 10.20 \ (S700) The "version number" in the above is "B.10.20.02". It appears that we don't have any C compiler patches installed. If your compiler is the same, then would you please send me the output from the execution of the "configure" script. -------- Steve Emmerson <http://www.unidata.ucar.edu>