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

20010116: Installing netCDF 3.5.0 on HP-UX 11.11 using f90



Papp,

Thanks for your information on how to install the netCDF package on an
HP-UX B.11.11 system using /opt/fortran90/bin/f90. We've saved it in our
support-email database to help others in a similar situation.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>

>Date: Wed, 16 Jan 2002 15:58:58 +0100 (MET)
>From: Papp Gabor <address@hidden>
>Organization: ?
>To: address@hidden
>Subject: Re: 20010111: Installing netCDF 3.5 on HP-UX 11.11
>Keywords: 200201110928.g0B9SEx16759
>
> Dear Steve Emmerson,
> 
> eventually I successfully installed both netCDF
> and GMT packages. I applied what you suggested
> and also I had to make a few modifications during
> installation. I send you the macros.make file I
> used. I have to mention that I was forced to rename
> NETCDF.mod file (in f90 folder) because 'make install'
> was searching netcdf.mod instead. Although the system
> seems to be OK there were some error messages in 
> 'configure' step when the byte order was checked
> (bigendian or not). So the config.log file is
> included as well.
> 
> With my best regards,
> 
> Gábor Papp
> Sopron, Hungary
> 
> ***** macros.make ******
> # $Id: macros.make.in,v 1.32 2001/03/13 17:41:33 steve Exp $
> 
> # The purpose of this file is to contain common make(1) macros.
> # It should be processed by every execution of that utility.
> 
> 
> # POSIX shell.  Shouldn't be necessary -- but is under IRIX 5.3.
> SHELL           = /bin/sh
> 
> 
> # Installation Directories:
> SRCDIR          = /home/papp/netcdf-3.5.0/src
> prefix          = /home/papp/netcdf-3.5.0
> exec_prefix     = $(prefix)
> INCDIR          = $(exec_prefix)/include
> LIBDIR          = $(exec_prefix)/lib
> BINDIR          = $(exec_prefix)/bin
> MANDIR          = $(prefix)/man
> 
> 
> # Preprocessing:
> M4              = m4
> M4FLAGS         = -B10000
> CPP             = /usr/bin/cc -E
> CPPFLAGS        = $(INCLUDES) $(DEFINES) -DNDEBUG
> FPP             = 
> FPPFLAGS        = 
> CXXCPPFLAGS     = $(CPPFLAGS)
> 
> 
> # Compilation:
> CC              = /usr/bin/cc
> CXX             = 
> FC              = /opt/fortran90/bin/f90
> F90             = /opt/fortran90/bin/f90
> CFLAGS          = -O
> CXXFLAGS        = 
> FFLAGS          = 
> F90FLAGS        = 
> NETCDF.MOD      = netcdf.mod
> CC_MAKEDEPEND   = false
> COMPILE.c       = $(CC) -c $(CFLAGS) $(CPPFLAGS)
> COMPILE.cxx     = $(CXX) -c $(CXXFLAGS) $(CXXCPPFLAGS)
> COMPILE.f       = $(FC) -c $(FFLAGS)
> COMPILE.F90     = $(F90) -c $(F90FLAGS)
> # The following command isn't available on some systems; therefore, the
> # `.F.o' rule is relatively complicated.
> COMPILE.F       = $(COMPILE.f) $(FPPFLAGS)
> 
> 
> # Linking:
> MATHLIB         = -lm
> FLIBS           = -lU77
> F90LIBS         = 
> LIBS            = 
> F90LDFLAGS      = $(LDFLAGS)
> LINK.c          = $(CC) -o $@ $(CFLAGS) $(LDFLAGS)
> LINK.cxx        = $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS)
> LINK.F          = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS)
> LINK.f          = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS)
> LINK.F90        = $(F90) -o $@ $(F90FLAGS) $(F90LDFLAGS)
> 
> 
> # Manual pages:
> WHATIS          = whatis
> # The following macro should be empty on systems that don't
> # allow users to create their own manual-page indexes.
> MAKEWHATIS_CMD  = 
> 
> 
> # Misc. Utilities:
> AR              = ar
> 
> 
> # Misc. Utilities:
> AR              = ar
> ARFLAGS         = cru
> RANLIB          = ranlib
> TARFLAGS        = -chf
> 
> 
> # Dummy macros: used only as placeholders to silence GNU make.  They are
> # redefined, as necessary, in subdirectory makefiles.
> HEADER          = dummy_header
> HEADER1         = dummy_header1
> HEADER2         = dummy_header2
> HEADER3         = dummy_header3
> LIBRARY         = dummy_library.a
> MANUAL          = dummy_manual
> PROGRAM         = dummy_program
> 
> 
> # Distribution macros:
> FTPDIR          = /home/ftp/pub/$(PACKAGE)
> FTPBINDIR       = /home/ftp/pub/binary/dummy_system
> VERSION         = dummy_version
> 
> ***** config.log ***********
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:928: checking for top-level source-directory
> configure:938: checking for m4 preprocessor
> configure:945: checking for m4
> configure:1012: checking m4 flags
> configure:1085: checking C compiler "/usr/bin/cc"
> configure:1094: /usr/bin/cc -c -O -DNDEBUG conftest.c 1>&5
> configure:1121: checking how to make dependencies
> configure:1189: checking for CC
> configure:1189: checking for cxx
> configure:1189: checking for c++
> configure:1189: checking for g++
> configure:1189: checking for gcc
> configure:1294: checking how to run the C preprocessor
> configure:1315: /usr/bin/cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1383: checking user-defined Fortran-77 compiler 
> "/opt/fortran90/bin/f90"
> configure:1389: /opt/fortran90/bin/f90 -c  conftest.f
> conftest.f
>    main program 
> 
> 2 Lines Compiled
> configure:1548: checking for Fortran .F compiler
> 
> configure:1558: checking if Fortran-77 compiler handles *.F files
> configure:1569: /opt/fortran90/bin/f90 -o conftest  conftest.F 
> /var/tmp/fcpAAAa19587.F
>    main program 
> 
> 8 Lines Compiled
> /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:1608: checking user-defined Fortran-90 compiler 
> "/opt/fortran90/bin/f90"
> configure:1615: /opt/fortran90/bin/f90 -c  conftest.f90
> conftest.f90
>    external subroutine FOO
> 
> 3 Lines Compiled
> configure:1751: checking for nm utility
> configure:1758: checking for nm
> configure:1825: checking nm flags
> configure:1841: checking for C-equivalent to Fortran routine "SUB"
> configure:1847: /opt/fortran90/bin/f90 -c  conftest.f
> conftest.f
>    main program 
> 
> 2 Lines Compiled
> configure:1876: checking for Fortran "byte"
> configure:1883: /opt/fortran90/bin/f90 -c  conftest.f
> conftest.f
>    external subroutine SUB
> 
> 3 Lines Compiled
> configure:1900: checking for Fortran "integer*2"
> configure:1907: /opt/fortran90/bin/f90 -c  conftest.f
> conftest.f
>    external subroutine SUB
> 
> 3 Lines Compiled
> configure:1933: checking if Fortran "byte" is C "signed char"
> configure:1942: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:1944: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:1946: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:1948: ./conftest
> configure:1981: checking if Fortran "byte" is C "short"
> configure:1990: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:1992: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:1994: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:1996: ./conftest
> configure:2029: checking if Fortran "byte" is C "int"
> configure:2038: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2040: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2042: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2044: ./conftest
> configure:2077: checking if Fortran "byte" is C "long"
> configure:2086: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2088: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2090: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2092: ./conftest
> configure:2129: checking if Fortran "integer*2" is C "short"
> configure:2138: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2140: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2142: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2144: ./conftest
> configure:2177: checking if Fortran "integer*2" is C "int"
> configure:2186: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2188: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2190: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2192: ./conftest
> configure:2225: checking if Fortran "integer*2" is C "long"
> configure:2234: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2236: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2238: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2240: ./conftest
> configure:2275: checking if Fortran "integer" is C "int"
> configure:2284: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2286: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2288: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2290: ./conftest
> configure:2323: checking if Fortran "real" is C "float"
> configure:2332: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2334: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2336: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2338: ./conftest
> configure:2371: checking if Fortran "doubleprecision" is C "double"
> configure:2380: /usr/bin/cc -c -DNDEBUG -O conftest.c
> configure:2382: /opt/fortran90/bin/f90  -c conftestf.f
> conftestf.f
>    main program 
> 
> 4 Lines Compiled
> configure:2384: /opt/fortran90/bin/f90 -o conftest   conftestf.o conftest.o 
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftestf.o) was 
> detected. The linke
> d output may not run on a PA 1.x system.
> configure:2386: ./conftest
> configure:2413: checking for Fortran-equivalent to netCDF "byte"
> configure:2420: /opt/fortran90/bin/f90 -c  conftest.f
> conftest.f
>    main program 
> 
> 2 Lines Compiled
> configure:2435: checking for Fortran-equivalent to netCDF "short"
> configure:2442: /opt/fortran90/bin/f90 -c  conftest.f
> conftest.f
>    main program 
> 
> 2 Lines Compiled
> configure:2462: checking for math library
> configure:2466: checking for tanh in -lc
> configure:2485: /usr/bin/cc -o conftest -O -DNDEBUG  conftest.c -lc   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.
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    tanh (code)
> configure: failed program was:
> #line 2474 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char tanh();
> 
> int main() {
> tanh()
> ; return 0; }
> configure:2504: checking for tanh in -lm
> configure:2523: /usr/bin/cc -o conftest -O -DNDEBUG  conftest.c -lm   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:2555: checking for ar utility
> configure:2562: checking for ar
> configure:2629: checking ar flags
> configure:2638: checking for nm utility
> configure:2680: checking for nm
> configure:2712: checking nm flags
> configure:2722: checking for ranlib
> configure:2751: checking for stdlib.h
> configure:2761: /usr/bin/cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2788: checking for sys/types.h
> configure:2798: /usr/bin/cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2824: checking for strerror
> configure:2852: /usr/bin/cc -o conftest -O -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:2877: checking for working ftruncate()
> configure:2930: /usr/bin/cc -o conftest -O -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:2952: checking for working alloca.h
> configure:2964: /usr/bin/cc -o conftest -O -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:2985: checking for alloca
> configure:3018: /usr/bin/cc -o conftest -O -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:3184: checking for st_blksize in struct stat
> configure:3197: /usr/bin/cc -c -O -DNDEBUG conftest.c 1>&5
> configure:3219: checking for IEEE floating point format
> configure:3257: /usr/bin/cc -o conftest -O -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:3278: checking for ANSI C header files
> configure:3291: /usr/bin/cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:3358: /usr/bin/cc -o conftest -O -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:3382: checking for size_t
> configure:3415: checking for off_t
> configure:3448: checking for ssize_t
> configure:3481: checking for ptrdiff_t
> configure:3514: checking for uchar
> configure:3547: checking whether char is unsigned
> configure:3586: /usr/bin/cc -o conftest -O -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: failed program was:
> #line 3576 "configure"
> #include "confdefs.h"
> /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
> #if !defined(__STDC__) || __STDC__ != 1
> #define volatile
> #endif
> main() {
>   volatile char c = 255; exit(c < 0);
> }
> configure:3610: checking whether byte ordering is bigendian
> configure:3628: /usr/bin/cc -c -O -DNDEBUG conftest.c 1>&5
> cc: "configure", line 3623: error 1000: Unexpected symbol: "endian".
> cc: "configure", line 3623: error 1588: "bogus" undefined.
> configure: failed program was:
> #line 3617 "configure"
> #include "confdefs.h"
> #include <sys/types.h>
> #include <sys/param.h>
> int main() {
> 
> #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
>  bogus endian macros
> #endif
> ; return 0; }
> configure:3676: /usr/bin/cc -o conftest -O -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: failed program was:
> #line 3663 "configure"
> #include "confdefs.h"
> main () {
>   /* Are we little or big endian?  From Harbison&Steele.  */
>   union
>   {
>     long l;
>     char c[sizeof (long)];
>   } u;
>   u.l = 1;
>   exit (u.c[sizeof (long) - 1] == 1);
> }
> configure:3700: checking size of short
> configure:3719: /usr/bin/cc -o conftest -O -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:3739: checking size of int
> configure:3758: /usr/bin/cc -o conftest -O -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:3778: checking size of long
> configure:3797: /usr/bin/cc -o conftest -O -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:3817: checking size of float
> configure:3836: /usr/bin/cc -o conftest -O -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:3856: checking size of double
> configure:3875: /usr/bin/cc -o conftest -O -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:3895: checking size of off_t
> configure:3918: /usr/bin/cc -o conftest -O -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:3938: checking size of size_t
> configure:3961: /usr/bin/cc -o conftest -O -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:4062: checking for manual-page index command
> configure:4066: checking binary distribution directory