[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(Fwd) Re: Problem with netCDF on HPUX 10.20 and cc



> Keywords: 199806241439.IAA10195
--- Forwarded mail from Markus Werle <address@hidden>

Date: Thu, 25 Jun 1998 16:40:06 +0200
From: Markus Werle <address@hidden>
To: Steve Emmerson <address@hidden>,
        "Glenn P. Davis" <address@hidden>
Subject: Re: Problem with netCDF on HPUX 10.20 and cc

Steve Emmerson wrote:

> The above does not follow the recomended settings in the INSTALL file
> for HP-UX B.10.20.  Did you try the recommended settings and did they
> not work?
>
>

Sorry, but in my INSTALL file there are no settings for HPUX-10.20,
but only for HPUX 9, and these did not work.

"Glenn P. Davis" <address@hidden> told me the solution
via address@hidden:

citation:
--------------------------------------------------------
The problem is that the configure script
is not detecting the definition of 'ptrdiff_t'
and directing ncconfig.h to provide one.

You can work around this by commenting out
the line
#define ptrdiff_t int
in libsrc/ncconfig.h

-glenn
--------------------------------------------------------

This resolves the cc problem immediately.

Now the C++ Compiler was killed by - not really an error ... hugh.
I recommend You change the following in further distributions:

No one expects that CFLAGS and CXXFLAGS are concatenated in
macros.make. Since You ask the user to set these flags in INSTALL
they should indeed be independent.
Why? Because I use aCC, a new ANSI C++ Compiler from hp,
which is much more ANSI-compliant than any other stuff
(like CC or g++) on my system, but has totally
different flags (e.g. does not know the option -Aa)

I changed the line in macros.make and got it!

CFLAGS  = +DAportable -D_INCLUDE_POSIX_SOURCE -Aa
#CXXFLAGS = $(CFLAGS) +DAportable
CXXFLAGS = +DAportable

Just for info: my successful configuration
(successful in combination with the above changes):

setenv CPPFLAGS -v
setenv CC /bin/cc
setenv CFLAGS "+DAportable -D_INCLUDE_POSIX_SOURCE -Aa"
setenv FC /opt/fortran/bin/f77
setenv FFLAGS "-w +DAportable"
setenv CXX /opt/aCC/bin/aCC
setenv CXXFLAGS +DAportable


make test ran through without any problems.
Now I will try some optimization ...

Thanks for Your efforts, Your quick answer
and for this really great library!


Yours,

Markus



---End of forwarded mail from Markus Werle <address@hidden>