Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lessem@Colorado.EDU (Jeffrey Lessem)
Subject: [SUMMARY] Advice wanted with mh 6.8.3 on OSF/1 3.2
Date: 25 Mar 1995 01:56:32 GMT	[thread overview]
Message-ID: <3kvt8g$h2g@lace.Colorado.EDU> (raw)

Mike Iglesias <iglesias@draco.acs.uci.edu> was kind enough to send me
a set of patches for mh 6.8.3 to get it going under OSF/1.  I have
included them at the end of the article.

After applying the patches the only other thing that gave me trouble
was a syntax error in mhn.c at struct str2init {
    char   *si_key;
    int     si_value;
    int   (*si_init) ();
};

si_value is defined as _sifields._sigproc._sigrt._sigval in siginfo.h
and this seems to create a problem.  I noticed that si_value was not
defined in pre-3.2 versions of OSF/1, so I just put an #undef si_value
in mhn.c and it seemed to take care of things.  Unfortunately I am not
a C programer, so I have no idea what I actually changed, but mhn
seems to work properly.

I also get an undefined symbol of _putchar when linking xvmh, but
nobody here uses xvmh, so I didn't bother to try and fix it.

GNU make chokes on the Makefiles in mh, but /usr/bin/make seems to
work ok.


# 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 */

  /* \f */

*** 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 ();

  /* \f */
***************
*** 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) */
--
Jeff.Lessem@Colorado.EDU
http://ibgwww.colorado.edu/~lessem/lessem.html


                 reply	other threads:[~1995-03-25  1:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox