home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 10059 < prev    next >
Encoding:
Text File  |  1992-09-04  |  9.2 KB  |  317 lines

  1. Path: sparky!uunet!gatech!darwin.sura.net!dtix!mimsy!sdd.comsat.com!neal.ctd.comsat.com!neal!neal
  2. From: neal@neal.ctd.comsat.com (Neal Becker)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: amd for HP 9000/7??
  5. Message-ID: <NEAL.92Sep4112109@neal.ctd.comsat.com>
  6. Date: 4 Sep 92 15:21:09 GMT
  7. References: <Bu20so.4zy@netnews.jhuapl.edu>
  8. Organization: COMSAT Labs
  9. Lines: 304
  10. NNTP-Posting-Host: neal.ctd.comsat.com
  11. In-reply-to: heeres@uars_mag.jhuapl.edu's message of 4 Sep 92 12:46:00 GMT
  12.  
  13. >>>>> On 4 Sep 92 12:46:00 GMT, heeres@uars_mag.jhuapl.edu (Ken Heeres) said:
  14.  
  15.     Ken> I am looking for a version of amd for the HP 9000/7??, does anyone have pointer
  16.     Ken> to it?  It is not on Iworks and the version I downloaded has configurations for
  17.     Ken> HP 300 but not the 700.  
  18.     Ken>   1. what version should I use
  19.     Ken>   2. will amd reread its map file without restarting?
  20.  
  21. Get amd5.3-beta1 from usc.edu.  Here is hpux patches for it:
  22.  
  23. Note: This patch probably turns on a few things you may not want, that
  24. reflects my local configuration.
  25.  
  26. diff -r -c amd5.3-beta1/Makefile.com amd5.3-beta1-hpux/Makefile.com
  27. *** amd5.3-beta1/Makefile.com    Sat Mar  7 05:22:04 1992
  28. --- amd5.3-beta1-hpux/Makefile.com    Tue Jul 21 17:13:50 1992
  29. ***************
  30. *** 48,54 ****
  31.   #
  32.   
  33.   # Where to install amd
  34. ! ETC = /usr/local/etc
  35.   
  36.   # With what to install amd
  37.   INSTALL = install
  38. --- 48,54 ----
  39.   #
  40.   
  41.   # Where to install amd
  42. ! ETC = /local/etc
  43.   
  44.   # With what to install amd
  45.   INSTALL = install
  46. ***************
  47. *** 60,66 ****
  48.   GCCOPTS = -W -Wunused -fstrength-reduce #-finline-functions -fcombine-regs
  49.   
  50.   # Basic C compiler options
  51. ! CCOPTS = -O
  52.   
  53.   # These are for testing/debugging...
  54.   # Best to put your own definitions in Makefile.local.<foo>
  55. --- 60,66 ----
  56.   GCCOPTS = -W -Wunused -fstrength-reduce #-finline-functions -fcombine-regs
  57.   
  58.   # Basic C compiler options
  59. ! CCOPTS = -O -DINFORM_MOUNTD
  60.   
  61.   # These are for testing/debugging...
  62.   # Best to put your own definitions in Makefile.local.<foo>
  63. diff -r -c amd5.3-beta1/Makefile.top amd5.3-beta1-hpux/Makefile.top
  64. *** amd5.3-beta1/Makefile.top    Sun May 31 12:37:20 1992
  65. --- amd5.3-beta1-hpux/Makefile.top    Tue Jul 21 16:37:07 1992
  66. ***************
  67. *** 44,53 ****
  68.   SHELL = /bin/sh
  69.   
  70.   # Machine architecture
  71. ! ARCH = `PATH=$${PATH}:. /bin/sh ../config/arch`
  72.   
  73.   # O/S Name
  74. ! OS = `PATH=$${PATH}:. /bin/sh ../config/os-type`
  75.   
  76.   # version of make
  77.   Make = make
  78. --- 44,53 ----
  79.   SHELL = /bin/sh
  80.   
  81.   # Machine architecture
  82. ! ARCH = `PATH=$${PATH}:. ${SHELL} ../config/arch`
  83.   
  84.   # O/S Name
  85. ! OS = `PATH=$${PATH}:. ${SHELL} ../config/os-type`
  86.   
  87.   # version of make
  88.   Make = make
  89. ***************
  90. *** 62,68 ****
  91.       hlh42 hpux irix3 irix4 next pyrOSx riscix sos3 sos4 \
  92.       stellix u2_2 u3_0 u4_0 u4_2 umax43 utek utx32 xinu43
  93.   CHECK_OS = \
  94. !     case " ${OS_SUPPORTED} " in *" $${OS} "*) ;; \
  95.       *) case "$${OS}" in unknown);; *) echo "Unknown OS '$${OS}'";; esac; \
  96.          echo "OS should be one of ${OS_SUPPORTED}"; \
  97.          exit 1;; \
  98. --- 62,68 ----
  99.       hlh42 hpux irix3 irix4 next pyrOSx riscix sos3 sos4 \
  100.       stellix u2_2 u3_0 u4_0 u4_2 umax43 utek utx32 xinu43
  101.   CHECK_OS = \
  102. !      case " ${OS_SUPPORTED} " in *$${OS}*) ;; \
  103.       *) case "$${OS}" in unknown);; *) echo "Unknown OS '$${OS}'";; esac; \
  104.          echo "OS should be one of ${OS_SUPPORTED}"; \
  105.          exit 1;; \
  106. diff -r -c amd5.3-beta1/amd/afs_ops.c amd5.3-beta1-hpux/amd/afs_ops.c
  107. *** amd5.3-beta1/amd/afs_ops.c    Sun May 31 12:36:41 1992
  108. --- amd5.3-beta1-hpux/amd/afs_ops.c    Tue Jul 21 16:38:50 1992
  109. ***************
  110. *** 185,190 ****
  111. --- 185,194 ----
  112.       if (strlen(fs_hostname) >= HOSTNAMESZ)
  113.           strcpy(fs_hostname + HOSTNAMESZ - 3, "..");
  114.   #endif /* HOSTNAMESZ */
  115. + #ifdef NFSMNT_FSNAME
  116. +     nfs_args.fsname = pid_fsname;
  117. +     nfs_args.flags |= NFSMNT_FSNAME;
  118. + #endif /* NFSMNT_FSNAME */
  119.   
  120.       /*
  121.        * Parse a subset of the standard nfs options.  The
  122. diff -r -c amd5.3-beta1/amd/info_hes.c amd5.3-beta1-hpux/amd/info_hes.c
  123. *** amd5.3-beta1/amd/info_hes.c    Sun Feb  9 10:08:09 1992
  124. --- amd5.3-beta1-hpux/amd/info_hes.c    Wed Jul 22 14:18:45 1992
  125. ***************
  126. *** 107,113 ****
  127.    * Do a Hesiod nameserver call.
  128.    * Modify time is ignored by Hesiod - XXX
  129.    */
  130. ! int hesiod_search P((mnt_map *m, char *map, char **pval, time_t *tp));
  131.   int hesiod_search(m, map, key, pval, tp)
  132.   mnt_map *m;
  133.   char *map;
  134. --- 107,113 ----
  135.    * Do a Hesiod nameserver call.
  136.    * Modify time is ignored by Hesiod - XXX
  137.    */
  138. ! int hesiod_search P((mnt_map *m, char *map, char *key, char **pval, time_t *tp));
  139.   int hesiod_search(m, map, key, pval, tp)
  140.   mnt_map *m;
  141.   char *map;
  142. diff -r -c amd5.3-beta1/amd/nfs_ops.c amd5.3-beta1-hpux/amd/nfs_ops.c
  143. *** amd5.3-beta1/amd/nfs_ops.c    Sun May 31 12:35:19 1992
  144. --- amd5.3-beta1-hpux/amd/nfs_ops.c    Tue Jul 21 16:41:35 1992
  145. ***************
  146. *** 542,547 ****
  147. --- 542,551 ----
  148.       if (strlen(host) >= HOSTNAMESZ)
  149.           strcpy(host + HOSTNAMESZ - 3, "..");
  150.   #endif /* HOSTNAMESZ */
  151. + #ifdef NFSMNT_FSNAME
  152. +     nfs_args.fsname = fs_name;
  153. +     nfs_args.flags |= NFSMNT_FSNAME;
  154. + #endif /* NFSMNT_FSNAME */
  155.   
  156.       if (nfs_args.rsize = hasmntval(&mnt, "rsize"))
  157.           nfs_args.flags |= NFSMNT_RSIZE;
  158. diff -r -c amd5.3-beta1/config/Makefile.config amd5.3-beta1-hpux/config/Makefile.config
  159. *** amd5.3-beta1/config/Makefile.config    Sun Feb  9 10:10:57 1992
  160. --- amd5.3-beta1-hpux/config/Makefile.config    Tue Jul 21 16:24:52 1992
  161. ***************
  162. *** 52,58 ****
  163.   # Define RESOLV if your C library does not include support
  164.   # for Hesiod and/or Named.
  165.   #
  166. ! #RESOLV = -lhesiod -lresolv
  167.   
  168.   #
  169.   # Define XLIBDIR if you have libraries not on the standard
  170. --- 52,58 ----
  171.   # Define RESOLV if your C library does not include support
  172.   # for Hesiod and/or Named.
  173.   #
  174. ! RESOLV = -lhesiod # -lresolv
  175.   
  176.   #
  177.   # Define XLIBDIR if you have libraries not on the standard
  178. ***************
  179. *** 89,95 ****
  180.   # Also define HAS_HESIOD_RELOAD to include zone
  181.   # transfer code implementing "cache:=all"
  182.   #
  183. ! #HAS_HESIOD_MAPS = -DHAS_HESIOD_MAPS -DHAS_HESIOD_RELOAD
  184.   
  185.   #
  186.   # Include support for /etc/passwd
  187. --- 89,95 ----
  188.   # Also define HAS_HESIOD_RELOAD to include zone
  189.   # transfer code implementing "cache:=all"
  190.   #
  191. ! HAS_HESIOD_MAPS = -DHAS_HESIOD_MAPS -DHAS_HESIOD_RELOAD
  192.   
  193.   #
  194.   # Include support for /etc/passwd
  195. diff -r -c amd5.3-beta1/config/Makefile.hpux amd5.3-beta1-hpux/config/Makefile.hpux
  196. *** amd5.3-beta1/config/Makefile.hpux    Sun Feb  9 10:10:06 1992
  197. --- amd5.3-beta1-hpux/config/Makefile.hpux    Wed Jul 22 14:20:50 1992
  198. ***************
  199. *** 44,50 ****
  200.   
  201.   #CC = gcc ${GCCOPTS}
  202.   # Works only on HP300
  203. ! CC = cc -Wc,-Nd2000
  204.   SYSCC = $(CC)
  205.   # Works only Hp800
  206.   # CC = cc
  207. --- 44,51 ----
  208.   
  209.   #CC = gcc ${GCCOPTS}
  210.   # Works only on HP300
  211. ! #CC = cc -Wc,-Nd2000
  212.   SYSCC = $(CC)
  213.   # Works only Hp800
  214.   # CC = cc
  215. + CC = cc -D_HPUX_SOURCE
  216. diff -r -c amd5.3-beta1/config/misc-hpux.h amd5.3-beta1-hpux/config/misc-hpux.h
  217. *** amd5.3-beta1/config/misc-hpux.h    Sun Feb  9 10:10:04 1992
  218. --- amd5.3-beta1-hpux/config/misc-hpux.h    Tue Jul 21 16:44:15 1992
  219. ***************
  220. *** 49,54 ****
  221. --- 49,56 ----
  222.    * Isn't HP-UX wonderful!
  223.    */
  224.   
  225. + #include <unistd.h>
  226.   /*
  227.    * HP-UX specific definitions
  228.    */
  229. ***************
  230. *** 61,69 ****
  231.       int            timeo;        /* initial timeout in .1 secs */
  232.       int            retrans;    /* times to retry send */
  233.       char            *hostname;    /* server's name */
  234. ! #ifdef __hp9000s700 /* XXX for HPUX 8.0 */
  235. !     char            *fsname;    /* server's filesystem name */
  236. ! #endif
  237.   };
  238.   
  239.   /*
  240. --- 63,71 ----
  241.       int            timeo;        /* initial timeout in .1 secs */
  242.       int            retrans;    /* times to retry send */
  243.       char            *hostname;    /* server's name */
  244. ! #ifdef    _CS_MANPATH    /* to distinguish between HPUX 7.0 and 8.0 */
  245. !     char            *fsname;    /* server's fs path name */
  246. ! #endif    /* _CS_MANPATH */
  247.   };
  248.   
  249.   /*
  250. ***************
  251. *** 77,79 ****
  252. --- 79,84 ----
  253.   #define    NFSMNT_HOSTNAME    0x020    /* set hostname for error printf */
  254.   #define    NFSMNT_INT    0x040    /* set option to have interruptable mounts */
  255.   #define    NFSMNT_NODEVS   0x080   /* turn off device file access (default on) */
  256. + #ifdef    _CS_MANPATH    /* to distinguish between HPUX 7.0 and 8.0 */
  257. + #define NFSMNT_FSNAME   0x100   /* provide name of server's fs to system */
  258. + #endif    /* _CS_MANPATH */
  259. diff -r -c amd5.3-beta1/config/os-hpux.h amd5.3-beta1-hpux/config/os-hpux.h
  260. *** amd5.3-beta1/config/os-hpux.h    Sun Feb  9 10:10:03 1992
  261. --- amd5.3-beta1-hpux/config/os-hpux.h    Tue Jul 21 16:33:43 1992
  262. ***************
  263. *** 42,47 ****
  264. --- 42,49 ----
  265.    * HP/9000 HP-UX definitions for Amd (automounter)
  266.    */
  267.   
  268. + #include <unistd.h>
  269.   /*
  270.    * Does the compiler grok void *
  271.    */
  272. ***************
  273. *** 103,110 ****
  274. --- 105,115 ----
  275.   /*
  276.    * Where to get union wait
  277.    */
  278. + /*
  279.   #undef WAIT
  280.   #define    WAIT    "uwait.h"
  281. + */
  282. + #define _BSD
  283.   #ifdef HPUX_VERSION_6
  284.   #define SIGCHLD    SIGCLD
  285.   #endif
  286. ***************
  287. *** 131,136 ****
  288. --- 136,151 ----
  289.    * Additional fields in struct mntent
  290.    * are fixed up here
  291.    */
  292. + #ifdef    _CS_MANPATH    /* to distinguish between HPUX 7.0 and 8.0 */
  293. + #define FIXUP_MNTENT(mntp) { \
  294. +     (mntp)->mnt_time = clocktime(); \
  295. +     (mntp)->mnt_cnode = 0; \
  296. + }
  297. + #define FIXUP_MNTENT_DUP(mntp, mp) { \
  298. +     (mntp)->mnt_time = (mp)->mnt_time; \
  299. +     (mntp)->mnt_cnode = (mp)->mnt_cnode; \
  300. + }
  301. + #else    /* _CS_MANPATH */
  302.   #define FIXUP_MNTENT(mntp) { \
  303.       (mntp)->mnt_time = clocktime(); \
  304.   }
  305. ***************
  306. *** 137,142 ****
  307. --- 152,158 ----
  308.   #define FIXUP_MNTENT_DUP(mntp, mp) { \
  309.       (mntp)->mnt_time = (mp)->mnt_time; \
  310.   }
  311. + #endif    /* _CS_MANPATH */
  312.   
  313.   #define    bzero(ptr, len)    memset(ptr, 0, len)
  314.   #define bcopy(from, to, len) memcpy(to, from, len)
  315.