[117] in Zephyr Mailing List
Re: Zephyr Classic under SunOS 4.1.3 & IRIX 4.0.5
daemon@ATHENA.MIT.EDU (Paul Riddle)
Mon May 2 12:34:17 1994
From: Paul Riddle <paulr@umbc.edu>
To: cjross@bbn.com
Date: Mon, 2 May 1994 12:27:27 -0500 (EDT)
Cc: zephyr@MIT.EDU
In-Reply-To: <9405011937.AA11952@mitchell.bbn.com> from "cjross@bbn.com" at May 1, 94 03:37:29 pm
> Subject: Zephyr Classic under SunOS 4.1.3 & IRIX 4.0.5
> Does anyone have a stable Zephyr setup for these two operating
> systems? I'm using /pub/ATHENA/zephyr/dist/zephyr.src.tar.Z from
> aeneas, which I assume is the 1989 version. I've managed to compile
> it for both platforms with minimal changes, but there are bugs. For
> example, zleave coredumps under IRIX, zaway doesn't seem to work on
> either, and zhm becomes permanently unreachable if it loses contact
> with the zephyrd's, even if they later reappear.
>
> These don't sound difficult to fix, but I have other work I prefer
> (and need) to do. I'd like to know if anyone on this list has already
> solved these problems and is willing to discuss them.
Here are some diffs that should help you with Irix 4.0.5. There are a
couple of memory allocation holes in zwrite and zleave which cause
them to dump core on Irix. With zhm, you need to define _BSD_SIGNALS
to get BSD signal behavior.
Paul
---
*** zhm.h Thu Sep 16 11:17:39 1993
--- zhm.h.orig Thu Sep 16 11:16:39 1993
***************
*** 14,23 ****
* "mit-copyright.h".
*/
- #ifdef sgi
- #define _BSD_SIGNALS
- #endif
-
#include <zephyr/mit-copyright.h>
#include <zephyr/zephyr.h>
#include <zephyr/zsyslog.h>
--- 14,19 ----
*** file_defs.h Wed Apr 21 22:48:00 1993
--- file_defs.h.orig Wed Apr 21 22:47:29 1993
***************
*** 13,20 ****
#include <zephyr/mit-copyright.h>
! #define USRXRCS ".Xdefaults"
! #define DEFXRCS "/.Xdefaults"
#define USRDESC ".zephyr.desc"
--- 13,20 ----
#include <zephyr/mit-copyright.h>
! #define USRXRCS ".Xresources"
! #define DEFXRCS "/.Xresources"
#define USRDESC ".zephyr.desc"
***************
*** 23,29 ****
#endif
#ifndef ZCTLPROG
! #define ZCTLPROG "/usr/athena/bin/zctl"
#endif
extern char panic_desc[];
--- 23,29 ----
#endif
#ifndef ZCTLPROG
! #define ZCTLPROG "/usr/athena/zctl"
#endif
extern char panic_desc[];
*** zleave.c Fri Apr 23 15:28:12 1993
--- zleave.c.orig Fri Apr 23 14:51:56 1993
***************
*** 312,318 ****
if (use_zephyr) {
real_message = (char *) malloc(strlen(msg) +
! strlen(reminder_message) + 3);
sprintf(real_message,"%c%s\n%s",'\0',msg,reminder_message);
(void) bzero((char *)¬ice, sizeof(notice));
--- 312,318 ----
if (use_zephyr) {
real_message = (char *) malloc(strlen(msg) +
! strlen(reminder_message) + 2);
sprintf(real_message,"%c%s\n%s",'\0',msg,reminder_message);
(void) bzero((char *)¬ice, sizeof(notice));
*** zwrite.c Thu Apr 22 21:51:35 1993
--- zwrite.c.orig Mon May 2 11:47:38 1994
***************
*** 259,265 ****
if (!nodot && bfr[0] == '.' &&
(bfr[1] == '\n' || bfr[1] == '\0'))
break;
! message = realloc(message, (unsigned)(msgsize+strlen(bfr)+1));
(void) strcpy(message+msgsize, bfr);
msgsize += strlen(bfr);
}
--- 259,265 ----
if (!nodot && bfr[0] == '.' &&
(bfr[1] == '\n' || bfr[1] == '\0'))
break;
! message = realloc(message, (unsigned)(msgsize+strlen(bfr)));
(void) strcpy(message+msgsize, bfr);
msgsize += strlen(bfr);
}