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: Hans Stalpers <address@hidden> >Subject: problems with building NetCDF >Organization: UCAR/Unidata >Keywords: 200210170916.g9H9GE115657 Hi Hans, First, my apologies for taking so long to reply to your question. It was sent when I was out of town, and I missed seeing it when I finally got back to look at my email. > As mentioned I have problems with building the NetCDF > Below you will find settings and the logs. > > Thank you for solving my problem. > > HP-UX denali B.11.11 U 9000/800 560710598 unlimited-user license > > 3.5.1-beta3 > > > CC=/usr/ccs/bin/cc On HP-UX, I don't think /usr/ccs/bin/cc is a standard C compiler. Could you use gcc or a different C compiler that compiles standard C declarations such as "signed char c;" correctly? > lrwxr-xr-x 1 root sys 12 Jun 22 2001 /usr/ccs/bin/cc -> > ./cc_bundled > FC=/opt/fortran/bin/fort77 > -r-xr-xr-x 2 bin bin 233472 May 23 1996 > /opt/fortran/bin/fort77 > CFLAGS=-D_FILE_OFFSET_BITS=64 > FFLAGS=-w > FLIBS=-lU77 > > ====> macros.make is NOT build > > creating cache ./config.cache > checking for top-level source-directory > /dump/netcdf-3.5.1-beta3/src > checking for m4 preprocessor > checking for m4... m4 > checking m4 flags... -B10000 > checking C compiler "/usr/ccs/bin/cc"... works > checking how to make dependencies... false > checking for CC... no > checking for cxx... no > checking for c++... no > checking for g++... no > checking for gcc... no > configure: warning: Could not find working C++ compiler > configure: warning: Setting CXX to the empty string > configure: warning: The C++ interface will not be built > checking how to run the C preprocessor... /usr/ccs/bin/cc -E > checking user-defined Fortran-77 compiler "/opt/fortran/bin/fort77"... works > checking for Fortran .F compiler... > checking if Fortran-77 compiler handles *.F files... yes > checking "/opt/fortran/bin/fort77" as Fortran-90 compiler... failed to build > test program > checking for xlf90... no > checking for f90... no > configure: warning: Could not find working Fortran-90 compiler > configure: warning: The Fortran-90 interface will not be built > checking for nm utility > checking for nm... nm > checking nm flags... > checking for C-equivalent to Fortran routine "SUB"... sub > checking for Fortran "byte"... yes > checking for Fortran "integer*2"... yes > checking if Fortran "byte" is C "signed char"... configure: error: Could not > compile conftest.c ... > configure:1968: /usr/ccs/bin/cc -c -DNDEBUG -D_FILE_OFFSET_BITS=64 conftest.c > (Bundled) cc: "conftest.c", line 2: warning 5: "signed" will become a keyword. > (Bundled) cc: "conftest.c", line 2: error 1000: Unexpected symbol: "signed". The above errors are symptoms of /usr/ccs/bin/cc not correctly recognizing and compiling a standard C declaration of a "signed char". To build for this platform, you will have to either use a conforming C compiler or install a binary library already built for HP-UX 11 at ftp://ftp.unidata.ucar.edu/pub/binary/hpux_11.00-hp9000/netcdf-3.5.0.tar.Z --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu