[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: netcdf config problems with HP-UX 10.2
- Subject: Re: netcdf config problems with HP-UX 10.2
- Date: Mon, 14 Jul 97 09:30:34 -0600
Mary,
>Date: 12 Jul 1997 02:04:22 -0400
>From: Mary Cairns <address@hidden>
>Organization: NOAA/NWS
>To: address@hidden (Return requested)
>Subject: netcdf config problems with HP-UX 10.2
>Keywords: 199707031902.NAA19781
In the above message, you wrote:
> I am trying to conifigure netcdf on my HP-UX 10.2 machine (HP 715/64),
> and I continue to have problems. I tried your suggestion, which was
> to define certain flags, esp. CC=c89 to get rid of my "signed" keyword
> problem. Now, that seemed to work, but other problems continue.
>
> I have included the new config.log file, and also I tried to do a
> "make" to see what happened, but there were too many errors to work.
> I have also included the output from that "make" command...
>
> *******************************
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> configure:1017: c89 -c -O -DNDEBUG conftest.c 1>&5
> configure:1217: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1316: fort77 -c -O -w conftest.f
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
Interesting. Looks like you should set FFLAGS to something like '-O3'
(i.e. something with a number in it).
> ignored
> conftest.f:
> MAIN:
> configure:1415: fort77 -o conftest -O -w conftest.F -lU77
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> /var/tmp/fcpFAAa16786:
> MAIN:
> configure:1456: fort77 -c -O -w conftest.f
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftest.f:
> MAIN:
> configure:1491: fort77 -c -O -w conftest.f
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftest.f:
> sub:
> configure:1514: fort77 -c -O -w conftest.f
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftest.f:
> sub:
> configure:1548: c89 -c -DNDEBUG -O conftest.c
> configure:1550: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1552: ./conftest
> configure:1590: c89 -c -DNDEBUG -O conftest.c
> configure:1592: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1594: ./conftest
> configure:1632: c89 -c -DNDEBUG -O conftest.c
> configure:1634: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1636: ./conftest
> configure:1678: c89 -c -DNDEBUG -O conftest.c
> configure:1680: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1682: ./conftest
> configure:1720: c89 -c -DNDEBUG -O conftest.c
> configure:1722: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1724: ./conftest
> configure:1764: c89 -c -DNDEBUG -O conftest.c
> configure:1766: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1768: ./conftest
> configure:1806: c89 -c -DNDEBUG -O conftest.c
> configure:1808: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1810: ./conftest
> configure:1848: c89 -c -DNDEBUG -O conftest.c
> configure:1850: fort77 -o conftest -O -w -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2
> conftestf.f conftest.o
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftestf.f:
> MAIN:
> configure:1852: ./conftest
> configure:1882: fort77 -c -O -w conftest.f
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftest.f:
> MAIN:
> configure:1903: fort77 -c -O -w conftest.f
> fort77: POSIX mandates an explicit optimization level setting on the -O
> option;
> ignored
> conftest.f:
> MAIN:
> configure:1943: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c -lc 1>&5
> /usr/ccs/bin/ld: Unsatisfied symbols:
> tanh (code)
> configure:1977: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c -lm 1>&5
> configure:2072: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2106: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2156: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2204: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2238: c89 -c -O -DNDEBUG conftest.c 1>&5
> cc: "configure", line 2234: error 1574: Unknown size for "s".
> cc: "configure", line 2234: error 1530: Undefined struct or union.
> configure:2270: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2322: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2351: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2416: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2634: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2672: c89 -c -O -DNDEBUG conftest.c 1>&5
> cc: "configure", line 2667: error 1000: Unexpected symbol: "endian".
> cc: "configure", line 2667: error 1588: "bogus" undefined.
> configure:2718: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2756: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2790: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2824: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2858: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2892: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2930: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
> configure:2968: c89 -o conftest -O -DNDEBUG -L /usr/lib/X11R5 -L
> /usr/lib/Motif1.2 conftest.c 1>&5
>
> ***********************************************
>
>
Seeing the file 'config.log' can be useful, but what I really needed to
see was the standard output and error output of the configure script.
> delmar: 21 % make
>
> Making `all' in directory /users/gempak/temp/netcdf-3.3.1/src/libsrc
>
> c89 -c -O -I. -DNDEBUG nc.c
> cc: "nc.c", line 834: error 1588: "EEXIST" undefined.
> cc: "nc.c", line 834: error 1563: Expression in if must be scalar.
Interesting. Apparently your "/usr/include/errno.h" header file doesn't
have a default definition for the macro EEXIST.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
> ******************************************************************
>
> Can you please help me get any further? I still don't know enough to
> really tell if this is a netcdf problem, or that the new 10.2 system
> is set up so drastically different that netcdf is looking for files
> and/or variables in much different places.
>
> I did try one more thing, which was to download netcdf-2.4.3, and go
> through the same process on the HP with 10.2....I got very similar
> errors...and again errors in the .configure command, and the make.
Try the following:
1. Go to the top-level netcdf-3 source directory.
2. Execute the command "make clean".
3. Remove the file "config.cache" if it exists.
4. Set the following environment variables to the indicated values:
CPPFLAGS='-DNDEBUG -D_HPUX_SOURCE'
CC=c89
CFLAGS=-O
FC=fort77
FFLAGS='-O3 -w'
The "_HPUX_SOURCE" should handle the "EEXIST" problem and the
"-O3" should mollify the fort77(1) compiler.
5. Execute the configure script.
Redirect standard output and standard error to a file.
If an error occurs, then stop and send me the file.
6. Execute the command "make"
Redirect standard output and standard error to a file.
If an error occurs, then stop and send me the file.
>
> Is there a way I might call next week after I see your response? Or
> do you all prefer going through email all the time?
We prefer email because then the problem and its resolution go into our
on-line tracking system.
--------
Steve Emmerson <http://www.unidata.ucar.edu>