SUMMARY: compilation of MH

From: Bjorn Braathen <Bjorn.Braathen_at_phys.uit.no>
Date: Mon, 11 Mar 1996 14:36:00 +0100

Thanks to those who answered:

Mike Iglesias
Sid Fagan
Tom Barkanic
Larry Griffith
Matt H.

They all gave me a suggested version of the MH configuration file, but
I needed the patches supplied by Mike Iglesias to have MH work with
sendmail 8.7.3 (you know, sendmail requires that you are polite).
I include Mike Iglesias' MH conf file and the patches here, but the
patch for client.c I found insufficient, I believe I removed the lines
concerning DG. The conf file must be changed to conform with your
directory structure, but that is no big deal.

Thanks again

Bjørn Braathen
University of Tromsø
Norway


# A DEC Alpha running OSF/1

# RunTime Environment
bin /dcs/packages/mh-6.8.3/bin
etc /dcs/packages/mh-6.8.3/etc
mandir /dcs/packages/mh-6.8.3/man
manuals standard
mail /var/spool/mail
mts sendmail/smtp

# Bulletin Boards
bbdelivery on
bboards pop
bbhome /usr/local/bboards

# pop support
pop on
popdir /dcs/packages/mh-6.8.3/etc
options POP2 RPOP

# Compilation Environment
cc cc
ccoptions -O -Olimit 700
curses -lcurses -ltermlib
ldoptions -s

#
ranlib on
chown /usr/bin/chown
oldload none

# Compilation Options
signal void
sprintf int
options BIND
options BSD42
options BSD43
options DBMPWD
options FOLDPROT='"0700"'
options LOCKF
options MHE
options MHRC
options MIME
options MSGPROT='"0600"'
#options NTOHLSWAP
options OSF1
options RENAME
options SYS5DIR
options UCI
options UNISTD
options VSPRINTF
options WAITINT
options WHATNOW
options ZONEINFO
*** mts/sendmail/smail.c.dist Tue Nov 30 20:00:56 1993
--- mts/sendmail/smail.c Thu Nov 17 09:16:12 1994
***************
*** 1055,1060 ****
--- 1055,1061 ----
  static int smtalk (time, fmt, a, b, c, d)
  register int time;
  register char *fmt;
+ char *a, *b, *c, *d;
  {
      register int result;
      char buffer[BUFSIZ];
*** uip/conflict.c.dist Tue Nov 30 20:01:35 1993
--- uip/conflict.c Thu Nov 17 10:52:38 1994
***************
*** 14,19 ****
--- 14,23 ----
  #include <locale.h>
  #endif
  
+ #ifdef OSF1
+ extern void free();
+ #endif
+
  #define NDIRS 100
  #define NGRPS 100
  
*** zotnet/mts/client.c.dist Thu Nov 17 09:12:56 1994
--- zotnet/mts/client.c Thu Nov 17 09:15:08 1994
***************
*** 359,369 ****
  
  /* taken from ISODE's compat/internet.c */
  
! #ifndef DG
! u_long inet_addr ();
  #else
  struct in_addr inet_addr ();
  #endif
  
  
  static char *empty = NULL;
--- 359,373 ----
  
  /* taken from ISODE's compat/internet.c */
  
! #ifdef OSF1
! unsigned int inet_addr ();
  #else
+ #ifndef DG
+ u_long inet_addr ();
+ #else
  struct in_addr inet_addr ();
  #endif
+ #endif
  
  
  static char *empty = NULL;
***************
*** 375,384 ****
  char *s;
  {
      register struct hostent *h;
! #ifndef DG
      static u_long iaddr;
  #else
      static struct in_addr iaddr;
  #endif
      static struct hostent hs;
  
--- 379,392 ----
  char *s;
  {
      register struct hostent *h;
! #ifdef OSF1
! static unsigned int iaddr;
! #else
! #ifndef DG
      static u_long iaddr;
  #else
      static struct in_addr iaddr;
+ #endif
  #endif
      static struct hostent hs;
  
*** zotnet/mts/lock.c.dist Tue Nov 30 20:01:30 1993
--- zotnet/mts/lock.c Thu Nov 17 09:16:11 1994
***************
*** 72,78 ****
--- 72,82 ----
  static int b_lkopen(), lockit(), f_lkopen();
  static lockname(), timerON(), timerOFF();
  
+ #ifdef OSF1
+ time_t time ();
+ #else
  long time ();
+ #endif /* OSF1 */
  
  /* */
  
*** zotnet/tws/dtime.c.dist Tue Nov 30 20:01:43 1993
--- zotnet/tws/dtime.c Thu Nov 17 09:16:12 1994
***************
*** 107,113 ****
--- 107,117 ----
  
  #define CENTURY 1900
  
+ #ifdef OSF1
+ time_t time ();
+ #else
  long time ();
+ #endif /* OSF1 */
  struct tm *localtime ();
  
  /* */
***************
*** 175,181 ****
--- 179,189 ----
      tw.tw_zone = -(timezone / 60);
  #else /* defined(SYS5) */
  #if defined(ZONEINFO)
+ #ifdef __alpha
+ tw.tw_zone = (int)tm->tm_gmtoff / 60;
+ #else
      tw.tw_zone = tm->tm_gmtoff / 60;
+ #endif
      if (tm -> tm_isdst) /* if DST is in effect */
          tw.tw_zone -= 60; /* reset to normal offset */
  #else /* defined(ZONEINFO) */
*** mhn.c.dist Tue Nov 30 20:01:36 1993
--- mhn.c Mon Dec 05 16:03:52 1994
***************
*** 1014,1019 ****
--- 1014,1020 ----
  #include "../h/mhn.h"
  
  
+ #undef si_value
  struct str2init {
      char *si_key;
      int si_value;
*** vmh.c.dist Tue Nov 30 20:01:39 1993
--- vmh.c Thu Aug 17 08:36:04 1995
***************
*** 2,8 ****
  #ifndef lint
  static char ident[] = "_at_(#)$Id: vmh.c,v 1.20 1993/08/25 17:29:44 jromine Exp
$";
  #endif /* lint */
! #if defined(SYS5) && !defined(TERMINFO)
  /*
   * Define TERMINFO if you have it.
   * You get it automatically if you're running SYS5, and you don't get
--- 2,8 ----
  #ifndef lint
  static char ident[] = "_at_(#)$Id: vmh.c,v 1.20 1993/08/25 17:29:44 jromine Exp
$";
  #endif /* lint */
! #if defined(SYS5) && !defined(TERMINFO) || defined(OSF1)
  /*
   * Define TERMINFO if you have it.
   * You get it automatically if you're running SYS5, and you don't get
Received on Mon Mar 11 1996 - 15:20:57 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT