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: Mahesh Rajan <address@hidden> >Subject: NetCDF port to Exemplar X-Class -- help requested >Organization: . >Keywords: 199802032122.OAA22705 Hi Mahesh, > Need help. Here are the details you want. > > uname -a > HP-UX neptune B.10.01 U 9000/889 71467 unlimited-user license > > VERSION: 3.4a > > output of configure: > - ------------------------------------------- > loading cache ./config.cache > checking for m4... m4 > checking user-defined C compiler "/usr/bin/c89" > > checking C compiler... works > checking how to make dependencies... false > checking for /usr/bin/CC... /usr/bin/CC > checking C++ compiler "/usr/bin/CC"... works > checking how to run the C preprocessor... /usr/bin/c89 -E > checking user-defined Fortran compiler "/usr/bin/f77"... configure: > warning: /us > r/bin/f77 failed to compile test program > checking for Fortran .F compiler... > checking for Fortran preprocessor... /usr/bin/c89 -E > checking for math library > checking for -lc... no > checking for -lm... yes > checking for ar... ar > checking for ranlib... ranlib > checking for stdlib.h... yes > checking for sys/types.h... yes > checking for strerror... yes > checking for ftruncate... yes > checking whether cross-compiling... no > checking for working alloca.h... yes > checking for alloca... yes > checking for st_blksize in struct stat... no > checking for IEEE floating point format... yes > checking for ANSI C header files... yes > checking for size_t... yes > checking for off_t... no > checking for ssize_t... no > checking for ptrdiff_t... yes > checking for uchar... no > checking whether char is unsigned... no > checking whether byte ordering is bigendian... yes > checking size of short... 2 > checking size of int... 4 > checking size of long... 4 > checking size of float... 4 > checking size of double... 8 > checking size of off_t... 4 > checking size of size_t... 4 > checking for manual-page index command... > checking binary distribution directory... > /home/ftp/pub/binary/dummy_system > updating cache ./config.cache > creating ./config.status > creating macros.make > udcreating fortran/nfconfig.inc > creating libsrc/ncconfig.h > - ----------------------------- > path name for compilers: > > /usr/bin/cc > /opt/fortran/bin/f77 > /usr/bin/CC > /usr/contrib/bin/c++ > - -------------------------------- > The contents of config.log > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:1017: /usr/bin/c89 -c -g -DNDEBUG conftest.c 1>&5 > configure:1150: /usr/bin/CC -c -DNDEBUG conftest.C 1>&5 > configure:1217: /usr/bin/c89 -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:1316: /usr/bin/f77 -c -g conftest.f > ./configure[1315]: /usr/bin/f77: not found. > configure:2077: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c -lc > 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > /usr/ccs/bin/ld: Unsatisfied symbols: > tanh (code) > configure:2111: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c -lm > 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2206: /usr/bin/c89 -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:2240: /usr/bin/c89 -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:2290: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2338: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was detected. The linked output may not run on a PA 1.x system. > configure:2371: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2399: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2447: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2615: /usr/bin/c89 -c -g -DNDEBUG conftest.c 1>&5 > cc: "configure", line 2611: error 1574: Unknown size for "s". > cc: "configure", line 2611: error 1530: Undefined struct or union. > configure:2673: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2702: /usr/bin/c89 -E -DNDEBUG conftest.c >/dev/null > 2>conftest.out > configure:2767: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > configure:2985: /usr/bin/c89 -o conftest -g -DNDEBUG conftest.c 1>&5 > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) > was dete > cted. The linked output may not run on a PA 1.x system. > - ---------------------------- > Standard out of "make" > > Making `all' in directory /home/mrajan/netcdf/netcdf-3.4a/src/libsrc > > /usr/bin/c89 -c -g -I. -DNDEBUG nc.c > cc: "nc.c", line 857: error 1588: "EEXIST" undefined. > cc: "nc.c", line 857: error 1563: Expression in if must be scalar. > *** Error exit code 1 ... > SO WHERE IS EEXIST defined? You will need the "-D_HPUX_SOURCE" compiler flag. We have found that the following works on our new HP-UX B.10.20 system: CPPFLAGS='-D_HPUX_SOURCE -DNDEBUG' CC=c89 CFLAGS=-O FC=fort77 FFLAGS='-O3 -w' We only had an HP-UX 9 system when version 3.3.1 was released, but have some updates for other systems that weren't included with that version at http://www.unidata.ucar.edu/packages/netcdf/other-builds.html which is linked from our "Known Problems with the netCDF 3.3.1 Distribution" web page at http://www.unidata.ucar.edu/packages/netcdf/known_problems.html --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu