up'n running on hp850

Thanks to all who responded to my call for help
in porting netCDF to hpux ... there were many.

I am now successfully compiling and passing all
tests on our hp9000s850 running hpux_8.0.  The notes
following are for those who are interested in one path taken
to to get to this point on the hp 800 series.  I am
a unix beginning-intermediate swimmer so what follows
may not make sense to the experts - but hey, it works for me.
Any additional feedback if something below makes no sense
will be appreciated.

Hopefully netCDF for HP's in all of their flavors will
eventually be supported in the basic netCDF distribution.
We have at our site series 300, 700 and 800 platforms,
I will be testing this stuff out on the 300 and 700
platforms as soon as I can get access and will report any.

Thanks again to all who helped!  Rich Schramm.


Start of notes...

1) I began with the shar.file contributed by T.Johannesson
   (tj@xxxxx 16-Jun-92) as forwarded to me by Russ Rew
   (russ@xxxxxxxxxxxxxxxx) and followed the instructions supplied.

   a) I had to modify the patch file nc-hpux-patch1 to get it
      to work properly our machine.  I have never used patch
      before so there could certainly be something I was doing
      wrong..  I couldnt get it to take the patches in the form:

        ***************
        *** 47,52 ****
        --- 47,53 ----

          #ifdef hpux
          #define SYSTEM_XDR_INCLUDES
        + #define USE_BFLAG
          #endif

          #ifdef convex

          I had to edit the patch file to expand each patch to include
      the actual original code for the lines in question ie. the
      source lines for lines 47 to 52 had to be inserted after the
      line *** 47,52 ***.  This only had to be done for the three
      patches that were in this form.
 
   b) the patch to src/file.c would still not work on the hp850.
      rename() would still fail (see T.Johannesson's note #4).
      I deleted this patch and edited...
      line 452 of file.c as follows:
      #if !defined(cray) && !defined(NeXT) && !defined(convex) && !defined(hpux)
      line 466 of file.c as follows:
      #if defined(cray) || defined(NeXT) || defined(convex) || defined(hpux)


2) I made an additional edit to src/netcdf.h which appeared in
   a contribution from J.Kemp (kemp@xxxxxxxxxxxxxxxxxxxxx) and
   forwarded by M.LeBrun (mjl@xxxxxxxxxxxxxxxxxxxx).

      a) line 31 was edited to read:
      #if defined(__STDC__) || defined(sun) || defined(NeXT) || defined(hpux)
      which causes ncvoid to be defined as void. 

3) Rather than type the rather long make command line in the instructions
   from T.Johannesson, I modified the appropriate options in upper-level
   makefile.

4) The fortran code still failed in ftest.  Apparently the hp850 fort77
   compiler needs to have the +E3 (or +e) flag set to cause fortran
   calling C with character arguments to append the character string
   length to the argument list.  So the upper-level Makefile was again
   edited to have FCOPTS- -w +E3 -K 

End of notes....






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