netCDF on HP Series 700?

Greetings,

This is patch #1 for version 2.0 of the netCDF package (alias SDM patch
#11).  It accomplishes the following:

BUG FIXES

    Correct usage of the XDR_LD macro is added to all appropriate
    program-building rules in all appropriate sub-Makefiles.  This is
    needed for proper program-creation under the IRIX operating-system.

    Corrects the major.minor revision ID for SunOS sharable libraries
    to 2.01, 

ENHANCEMENTS

    Adds support for the creation of the netCDF Fortran interface under
    the IRIX operating-system.

MISCELLANEOUS

    Creates the patchlevel file PATCHLEVEL.

This patch-file is designed to be applied from the top-level directory
via Larry Wall's patch(1) utility, e.g.

        $ cd /usr/local/sdm/src/netcdf
        $ patch -p0 < this_file

The "-p0" option is necessary.

You may apply this patch, or, alternatively, obtain the latest distribution
(with all patches applied) via anonymous FTP:

        host:   unidata.ucar.edu
        files:  pub/netcdf.tar.Z

Regards,
Support      <support@xxxxxxxxxxxxxxxx>


*** /dev/null   Mon Nov 11 14:54:30 1991
--- PATCHLEVEL  Mon Nov 11 15:34:45 1991
***************
*** 0 ****
--- 1 ----
+ 1

==================================================================
RCS file: src/RCS/Makefile,v
retrieving revision 1.20
diff -c -r1.20 src/Makefile
*** /tmp/RCSAa01162     Tue Nov 19 09:01:27 1991
--- src/Makefile        Tue Nov 19 08:58:12 1991
***************
*** 1,4 ****
! # $Id: Makefile,v 1.20 1991/10/31 23:31:59 russ Exp $
  #
  #          Makefile for Network CDF library
  #
--- 1,4 ----
! # $Id: Makefile,v 1.22 1991/11/19 15:58:12 steve Exp $
  #
  #          Makefile for Network CDF library
  #
***************
*** 57,63 ****
  LIB_SO                = lib$(NAME).so
  LIB_O         = lib$(NAME).o
  LIB_G         = lib$(NAME)_g.a
- VERSIONID     = version
  INCLUDES      = -I`if [ -z "$(XDR_INC)" ]; then echo ../xdr; else \
                    echo $(XDR_INC); fi`
  DEFINES               
--- 57,62 ----
***************
*** 64,73 ****
  CPPOPTS               = $(INCLUDES) $(DEFINES)
  CFLAGS                = $(CPPOPTS) $(COPTS)
  SHELL         = /bin/sh
! GET_RELNO     =  `sed -n '/.*[^0-9]\([0-9][0-9]*\.[0-9][0-9]*\).*/s//\1/p' \
!                   $(VERSIONID).c`
  ARFLAGS               = ruv
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac`
  # For debugging:
  #SYSLIBS              = -lxdr_g.a /usr/lib/debug/malloc.o
  
--- 63,71 ----
  CPPOPTS               = $(INCLUDES) $(DEFINES)
  CFLAGS                = $(CPPOPTS) $(COPTS)
  SHELL         = /bin/sh
! RELEASE_NO    =  2.01#        <Major>.<minor> release number
  ARFLAGS               = ruv
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac` $(XDR_LD)
  # For debugging:
  #SYSLIBS              = -lxdr_g.a /usr/lib/debug/malloc.o
  
***************
*** 74,88 ****
  MANIFEST      = Makefile alloc.h array.c attr.c cdf.c \
                    cdftest.c descrip.mms dim.c error.c error.h globdef.c \
                    file.c htons.mar iarray.c local_nc.h netcdf.h ntohs.mar \
!                   putget.c sharray.c string.c test.cdf.sav var.c \
!                   $(VERSIONID).c
  CSRCS         = array.c attr.c cdf.c dim.c file.c iarray.c error.c \
!                   globdef.c putget.c sharray.c string.c var.c \
!                   $(VERSIONID).c
  HSRCS         = local_nc.h netcdf.h alloc.h error.h
  OBJS          = array.o attr.o cdf.o dim.o file.o iarray.o error.o \
!                   globdef.o putget.o sharray.o string.o var.o \
!                   $(VERSIONID).o
  SA_OBJS               = globdef.o
  
  LIBMODS               = $(OBJS)
--- 72,83 ----
  MANIFEST      = Makefile alloc.h array.c attr.c cdf.c \
                    cdftest.c descrip.mms dim.c error.c error.h globdef.c \
                    file.c htons.mar iarray.c local_nc.h netcdf.h ntohs.mar \
!                   putget.c sharray.c string.c test.cdf.sav var.c
  CSRCS         = array.c attr.c cdf.c dim.c file.c iarray.c error.c \
!                   globdef.c putget.c sharray.c string.c var.c
  HSRCS         = local_nc.h netcdf.h alloc.h error.h
  OBJS          = array.o attr.o cdf.o dim.o file.o iarray.o error.o \
!                   globdef.o putget.o sharray.o string.o var.o
  SA_OBJS               = globdef.o
  
  LIBMODS               = $(OBJS)
***************
*** 156,167 ****
  # Sharable library.  Note that this target might actually create a non-
  # sharable library.
  #
! sharable_lib:                 $(VERSIONID).c
        @case "$(OS)" in \
            aix*) \
                $(MAKE) $(MFLAGS) $(MY_MFLAGS) LIBMODS=$(LIB_O) $(LIB_A);; \
            sunos*) \
-               relno=$(GET_RELNO); \
                $(MAKE) $(MFLAGS) \
                    AR="$(AR)" \
                    CC="$(CC)" \
--- 151,161 ----
  # Sharable library.  Note that this target might actually create a non-
  # sharable library.
  #
! sharable_lib:
        @case "$(OS)" in \
            aix*) \
                $(MAKE) $(MFLAGS) $(MY_MFLAGS) LIBMODS=$(LIB_O) $(LIB_A);; \
            sunos*) \
                $(MAKE) $(MFLAGS) \
                    AR="$(AR)" \
                    CC="$(CC)" \
***************
*** 176,184 ****
                    WANT_FORTRAN_NETCDF="$(WANT_FORTRAN_NETCDF)" \
                    XDR_INC="$(XDR_INC)" \
                    XDR_LD="$(XDR_LD)" \
!                   RELEASE_NO=$$relno \
!                   $(LIB_SA).$$relno \
!                   $(LIB_SO).$$relno;; \
            *)  echo 1>&2 "Don't know how to make a shared-library under" \
                    '"$(OS)"'; \
                echo 1>&2 "Making a non-sharable library instead"; \
--- 170,178 ----
                    WANT_FORTRAN_NETCDF="$(WANT_FORTRAN_NETCDF)" \
                    XDR_INC="$(XDR_INC)" \
                    XDR_LD="$(XDR_LD)" \
!                   RELEASE_NO="$(RELEASE_NO)" \
!                   $(LIB_SA).$(RELEASE_NO) \
!                   $(LIB_SO).$(RELEASE_NO);; \
            *)  echo 1>&2 "Don't know how to make a shared-library under" \
                    '"$(OS)"'; \
                echo 1>&2 "Making a non-sharable library instead"; \
***************
*** 238,247 ****
            aix*) \
                $(MAKE) $(MFLAGS) $(MY_MFLAGS) $(LIBDIR)/$(LIB_A);; \
            sunos*) \
!               relno=$(GET_RELNO); \
!               $(MAKE) $(MFLAGS) $(MY_MFLAGS) RELEASE_NO=$$relno \
!                   $(LIBDIR)/$(LIB_SA).$$relno \
!                   $(LIBDIR)/$(LIB_SO).$$relno;; \
            *)  echo 1>&2 "Don't know how to make a shared-library under" \
                    '"$(OS)"'; \
                echo 1>&2 "Installing non-sharable library instead"; \
--- 232,240 ----
            aix*) \
                $(MAKE) $(MFLAGS) $(MY_MFLAGS) $(LIBDIR)/$(LIB_A);; \
            sunos*) \
!               $(MAKE) $(MFLAGS) $(MY_MFLAGS) RELEASE_NO=$(RELEASE_NO) \
!                   $(LIBDIR)/$(LIB_SA).$(RELEASE_NO) \
!                   $(LIBDIR)/$(LIB_SO).$(RELEASE_NO);; \
            *)  echo 1>&2 "Don't know how to make a shared-library under" \
                    '"$(OS)"'; \
                echo 1>&2 "Installing non-sharable library instead"; \

==================================================================
RCS file: ncgen/RCS/Makefile,v
retrieving revision 1.32
diff -c -r1.32 ncgen/Makefile
*** /tmp/RCSAa06943     Wed Nov  6 15:59:02 1991
--- ncgen/Makefile      Wed Nov  6 15:58:35 1991
***************
*** 2,8 ****
  #
  #   See netcdf/README file for copying and redistribution conditions.
  #
! #   $Id: Makefile,v 1.32 1991/11/05 23:18:50 russ Exp $
  #
  #     Makefile for ncgen(1).
  #
--- 2,8 ----
  #
  #   See netcdf/README file for copying and redistribution conditions.
  #
! #   $Id: Makefile,v 1.33 1991/11/06 22:58:34 steve Exp $
  #
  #     Makefile for ncgen(1).
  #
***************
*** 22,27 ****
--- 22,28 ----
  #                             for SGI workstations.
  WANT_FORTRAN_NETCDF   = yes#  Fortran jacket is included in netCDF library? 
  #                                 `yes' or `no'.
+ XDR_LD        =#                      ld(1)-specification of XDR library.
  
  # End of anticipated macros
  
***************
*** 36,42 ****
        INSTALL="$(INSTALL)" \
        OS="$(OS)" \
        SHELL="$(SHELL)" \
!       WANT_FORTRAN_NETCDF="$(WANT_FORTRAN_NETCDF)"
  
  BINDIR                = $(DESTDIR)/bin
  LIBDIR                = $(DESTDIR)/lib
--- 37,44 ----
        INSTALL="$(INSTALL)" \
        OS="$(OS)" \
        SHELL="$(SHELL)" \
!       WANT_FORTRAN_NETCDF="$(WANT_FORTRAN_NETCDF)" \
!       XDR_LD="$(XDR_LD)"
  
  BINDIR                = $(DESTDIR)/bin
  LIBDIR                = $(DESTDIR)/lib
***************
*** 49,55 ****
  SHELL         = /bin/sh
  FFLAGS                = $(FOPTS)
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac`
  
  CSRCS         = main.c generate.c load.c ncgentab.c escapes.c \
                    getfill.c init.c close.c derror.c \
--- 51,57 ----
  SHELL         = /bin/sh
  FFLAGS                = $(FOPTS)
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac` $(XDR_LD)
  
  CSRCS         = main.c generate.c load.c ncgentab.c escapes.c \
                    getfill.c init.c close.c derror.c \

==================================================================
RCS file: ncdump/RCS/Makefile,v
retrieving revision 1.19
diff -c -r1.19 ncdump/Makefile
*** /tmp/RCSAa07018     Wed Nov  6 16:01:53 1991
--- ncdump/Makefile     Wed Nov  6 16:01:29 1991
***************
*** 2,8 ****
  #
  #   See netcdf/README file for copying and redistribution conditions.
  #
! #   $Id: Makefile,v 1.19 1991/09/25 15:49:03 steve Exp $
  #
  # Makefile for ncdump
  #
--- 2,8 ----
  #
  #   See netcdf/README file for copying and redistribution conditions.
  #
! #   $Id: Makefile,v 1.20 1991/11/06 23:01:28 steve Exp $
  #
  # Makefile for ncdump
  #
***************
*** 18,23 ****
--- 18,24 ----
  SHELL = /bin/sh#              Which shell to use.  Unset => make(1) default.
  #                             As far as we know, this macro is only necessary
  #                             for SGI workstations.
+ XDR_LD        =#                      ld(1)-specification of XDR library.
  
  # End of anticipated macros
  
***************
*** 29,35 ****
        DESTDIR="$(DESTDIR)" \
        INSTALL="$(INSTALL)" \
        OS="$(OS)" \
!       SHELL="$(SHELL)"
  
  BINDIR                = $(DESTDIR)/bin
  LIBDIR                = $(DESTDIR)/lib
--- 30,37 ----
        DESTDIR="$(DESTDIR)" \
        INSTALL="$(INSTALL)" \
        OS="$(OS)" \
!       SHELL="$(SHELL)" \
!       XDR_LD="$(XDR_LD)"
  
  BINDIR                = $(DESTDIR)/bin
  LIBDIR                = $(DESTDIR)/lib
***************
*** 40,46 ****
  CFLAGS                = $(CPPOPTS) $(COPTS)
  SHELL         = /bin/sh
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac`
  
  CSRCS         =  ncdump.c vardata.c lput.c error.c
  OBJS          =  ncdump.o vardata.o lput.o error.o
--- 42,48 ----
  CFLAGS                = $(CPPOPTS) $(COPTS)
  SHELL         = /bin/sh
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac` $(XDR_LD)
  
  CSRCS         =  ncdump.c vardata.c lput.c error.c
  OBJS          =  ncdump.o vardata.o lput.o error.o

==================================================================
RCS file: nctest/RCS/Makefile,v
retrieving revision 1.16
diff -c -r1.16 nctest/Makefile
*** /tmp/RCSAa07089     Wed Nov  6 16:03:54 1991
--- nctest/Makefile     Wed Nov  6 16:03:26 1991
***************
*** 2,8 ****
  #   Copyright 1989, University Corporation for Atmospheric Research
  #   See netcdf/README file for copying and redistribution conditions.
  #
! #   $Id: Makefile,v 1.16 1991/09/25 15:51:57 steve Exp $
  #********************************************************************/
  #
  # Makefile for netcdf exhaustive test
--- 2,8 ----
  #   Copyright 1989, University Corporation for Atmospheric Research
  #   See netcdf/README file for copying and redistribution conditions.
  #
! #   $Id: Makefile,v 1.17 1991/11/06 23:03:26 steve Exp $
  #********************************************************************/
  #
  # Makefile for netcdf exhaustive test
***************
*** 17,22 ****
--- 17,23 ----
  SHELL = /bin/sh#              Which shell to use.  Unset => make(1) default.
  #                             As far as we know, this macro is only necessary
  #                             for SGI workstations.
+ XDR_LD        =#                      ld(1)-specification of XDR library.
  
  # End of anticipated macros
  
***************
*** 30,36 ****
  CPPOPTS               = $(INCLUDES) $(DEFINES)
  CFLAGS                = $(CPPOPTS) $(COPTS)
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac`
  
  .c.o:
        $(CC) $(CFLAGS) -c $<
--- 31,37 ----
  CPPOPTS               = $(INCLUDES) $(DEFINES)
  CFLAGS                = $(CPPOPTS) $(COPTS)
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac` $(XDR_LD)
  
  .c.o:
        $(CC) $(CFLAGS) -c $<

==================================================================
RCS file: fortran/RCS/Makefile,v
retrieving revision 1.29
diff -c -r1.29 fortran/Makefile
*** /tmp/RCSAa07278     Wed Nov  6 16:06:11 1991
--- fortran/Makefile    Wed Nov  6 16:05:43 1991
***************
*** 1,4 ****
! # $Id: Makefile,v 1.29 1991/10/09 21:11:34 russ Exp $
  #
  # Makefile for test fortran driver and fortran jackets
  
--- 1,4 ----
! # $Id: Makefile,v 1.30 1991/11/06 23:05:42 steve Exp $
  #
  # Makefile for test fortran driver and fortran jackets
  
***************
*** 19,24 ****
--- 19,25 ----
  SHELL = /bin/sh#              Which shell to use.  Unset => make(1) default.
  #                             As far as we know, this macro is only necessary
  #                             for SGI workstations.
+ XDR_LD        =#                      ld(1)-specification of XDR library.
  
  # End of anticipated macros
  
***************
*** 36,42 ****
        OS="$(OS)" \
        OS_TYPE="$(GET_OS_TYPE)" \
        RANLIB="$(RANLIB)" \
!       SHELL="$(SHELL)"
  
  # Directories:
  LIBDIR                = $(DESTDIR)/lib
--- 37,44 ----
        OS="$(OS)" \
        OS_TYPE="$(GET_OS_TYPE)" \
        RANLIB="$(RANLIB)" \
!       SHELL="$(SHELL)" \
!       XDR_LD="$(XDR_LD)"
  
  # Directories:
  LIBDIR                = $(DESTDIR)/lib
***************
*** 56,62 ****
  SHELL         = /bin/sh
  ARFLAGS               = ruv
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac`
  GET_RELNO     =  `sed -n '/.*[^0-9]\([0-9][0-9]*\.[0-9][0-9]*\).*/s//\1/p' \
                        ../src/version.c`
  
--- 58,64 ----
  SHELL         = /bin/sh
  ARFLAGS               = ruv
  NC_LIB                = -L../src -lnetcdf -L$(LIBDIR) -lnetcdf
! SYSLIBS               = `case $(OS) in unicos*) echo -lrpc;; esac` $(XDR_LD)
  GET_RELNO     =  `sed -n '/.*[^0-9]\([0-9][0-9]*\.[0-9][0-9]*\).*/s//\1/p' \
                        ../src/version.c`
  

*** /dev/null   Thu Nov  7 15:49:00 1991
--- fortran/irix0.inc   Thu Nov  7 16:18:23 1991
***************
*** 0 ****
--- 1,25 ----
+ c     machine specific xdr infinity constants 
+ c
+       double precision XDRDINF,XDRFINF
+ c     ifdef vax
+ c
+       parameter(XDRDINF = 1.70141178e+38)
+       parameter(XDRFINF = 1.70141178e+38)
+ c     
+ c     Fill values
+ c     These values are stuffed into newly allocated space as appropriate.
+ c     The hope is that one might use these to notice that a particular dataum
+ c     has not been set.
+ c     
+       integer FILBYTE,FILCHAR, FILSHORT,FILLONG
+       real FILFLOAT
+       double precision FILDOUB
+ c
+ c     Largest Negative value 
+       parameter(FILBYTE = 128)
+       parameter(FILCHAR = 0)
+       parameter(FILSHORT = 32768)
+       parameter(FILLONG = -2147483648)
+ c     IEEE Infinity 
+       parameter(FILFLOAT = XDRFINF)
+       parameter(FILDOUB = XDRDINF)

*** /dev/null   Thu Nov  7 15:49:00 1991
--- fortran/irix.m4     Thu Nov  7 16:18:14 1991
***************
*** 0 ****
--- 1,40 ----
+ divert(-1)
+ 
+ # Name of system platform (for use in comments)
+ define(`M4__SYSTEM', IRIX)
+ 
+ # Special #defines needed for this FORTRAN, e.g. FORTRAN_HAS_NO_SHORT 
+ define(`M4__FORTRAN_DEFINES',`
+ #define FORTRAN_HAS_NO_BYTE
+ ')
+ 
+ # transformation from fortran name to name of C module
+ define(`NAMEF',`$1_') # for Sun and most unixes, just append an underscore
+ 
+ # transformation from string name to corresponding argument name
+ define(`STRINGF',`$1')
+ 
+ # extra arguments, if any, for string length
+ define(`STRINGX',`, $1len')  # one extra stringlen parameter
+ 
+ # declaration to be used for argument name descriptor
+ define(`STRINGD',`
+     char      *$1;    `$2'
+     int               $1`'`len';') # declare argument string with extra 
stringlen parameter
+ 
+ # declarations and initializations of canonical local variables
+ define(`STRINGL',`')
+ 
+ # FORTRAN declaration for a long integer (e.g. integer*4 for Microsoft)
+ define(`LONG_INT',`integer')
+ 
+ # FORTRAN declaration for a short integer (e.g. integer*2)
+ define(`SHORT_INT',`integer*2')
+ 
+ # FORTRAN declaration for an integer byte (e.g. integer*1 or byte)
+ define(`BYTE_INT',`integer')
+ 
+ # FORTRAN declaration for double precision (e.g. real for a Cray)
+ define(`DOUBLE_PRECISION',`double precision')
+ 
+ divert(0)dnl


Mailer: Elm [revision: 66.33]

netCDF on Hewlett Packard Series 700 Workstations
================================================

Has anyone installed netCDF on a Hewlett Packard 700 Series workstation?
We seem to be having a few problems with the Makefiles.  I would
be interested to hear of any experiences.

Graham Heinson
School of Earth Sciences
Flinders University of South Australia
Bedford Park SA 5042
Australia

Tel 08 201 2978
Fax 08 201 2676

USER SUPPORT INQUIRY TRACKING FORM VERSION 2.2a (21 December, 1990)
message_id: 
status: unresolved
forwarded_to: 
related_id's: 

unidata_consultant: 
date: 
time: 

Name: 
email_address: 
Phone: 
Institution: 
Department: 

Unidata_site?(y/n): 

Area of Inquiry: 
   Services: 
     Mail lists:
     Unidata: 
     Workshops: 
     Zephyr: 
   Error Monitoring:
     McIDAS: 
     SDM:
   Hardware: 
     CLEOcable:
     IBM AT or PS2: 
     IBM RS/6000:
     Sun: 
     VAX: 
     Receiving System: 
     Other Hdwr: 
   Software: 
     McIDAS: 
     LDM UNIX: 
     LDM VMS: 
     mcnab:
     WXP: 
     GEMPAK:
     Y0:
     XGKS:
     netCDF: 
     NCAR Graphics: 
     Campus Weather Display:
     Other Sftwr: 
   Networking: 
     Local Area: 
     Wide Area: 
     Email: 
     FTP:
   Other (describe): 

Inquiry Description: 

Inquiry Resolution: 
END


  • 1991 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: