From: devet@adv.win.tue.nl (Arjan de Vet)
Newsgroups: comp.os.linux
Subject: elm 2.4pl17 (PATCH for Linux included)
Summary: patch for elm 2.4pl17
Keywords: Linux elm mail
Date: 23 Dec 92 10:41:50 GMT
Followup-To: comp.os.linux
Organization: Arjan's Home Linux 486 Box

In article <BzKJuw.Kx@woody.apana.org.au> ernie@woody.apana.org.au writes:

>Has anyone managed to get elm2.4pl17 to compile ?
>I keep getting all these undfined_symbol in the elm libutil.a.
>After a lot of patching I managed to get elm itself to compile but
>I have given up on the utils becuase I figure there must be somthing I
>have overlooked thats giving all these errors. I am using gcc 2.2.2d7

Yes, I did.

Apply the following patch, then run Configure. Configure thinks ranlib isn't
necessary, so you should change the line

	ranlib=':'

to

	ranlib='ranlib'

in config.sh at the end of running Configure when config.sh gives you this
possibility.

I'm using elm in combination with smail 3.1.28 (also patched by myself) for
some time now at home and I'm very satisfied with it.

Arjan

--
Arjan de Vet                             <Arjan.de.Vet@adv.win.tue.nl> (home)
Eindhoven University of Technology, the Netherlands <devet@win.tue.nl> (work)

-----------------------------------------------------------------------------
diff -ur elm/hdrs/defs.h elm-adv/hdrs/defs.h
--- elm/hdrs/defs.h	Fri Dec 11 04:25:04 1992
+++ elm-adv/hdrs/defs.h	Sat Dec 19 16:08:06 1992
@@ -513,4 +513,4 @@
 
 long lseek();
 long times();
-long ulimit();
+/* long ulimit(); */
diff -ur elm/lib/errno.c elm-adv/lib/errno.c
--- elm/lib/errno.c	Sat Oct  3 23:42:22 1992
+++ elm-adv/lib/errno.c	Sat Dec 19 16:08:06 1992
@@ -32,7 +32,7 @@
 #include "headers.h"
 
 #ifdef ERRLST
-extern char *sys_errlist[];
+/* extern char *sys_errlist[]; */
 extern int sys_nerr;
 #else
 static char *sys_errlist[] = { 
diff -ur elm/lib/ldstate.c elm-adv/lib/ldstate.c
--- elm/lib/ldstate.c	Fri Dec 11 02:45:28 1992
+++ elm-adv/lib/ldstate.c	Sat Dec 19 16:08:07 1992
@@ -68,7 +68,7 @@
     char buf[SLEN], *state_fname;
     int status, i;
     FILE *fp;
-    extern long atol();
+    /* extern long atol(); */
 
     /* clear out the folder status record */
     fst->folder_name = NULL;
diff -ur elm/lib/ndbz.c elm-adv/lib/ndbz.c
--- elm/lib/ndbz.c	Sat Dec 12 02:29:28 1992
+++ elm-adv/lib/ndbz.c	Sat Dec 19 16:08:07 1992
@@ -233,8 +233,8 @@
 #define	MAPOUT(o)	((db->dbz_bytesame) ? (o) : bytemap((o), db->dbz_mybmap, db->dbz_conf.bytemap))
 
 /* externals used */
-extern int atoi();
-extern long atol();
+/* extern int atoi(); */
+/* extern long atol(); */
 
 /* misc. forwards */
 static long hash();
diff -ur elm/src/init.c elm-adv/src/init.c
--- elm/src/init.c	Mon Dec  7 03:41:23 1992
+++ elm-adv/src/init.c	Sat Dec 19 16:08:07 1992
@@ -266,7 +266,7 @@
 	  signal(SIGTERM, term_signal); 	/* Terminate signal         */
 	  signal(SIGILL,  ill_signal);		/* Illegal instruction      */
 	  signal(SIGFPE,  fpe_signal);		/* Floating point exception */
-	  signal(SIGBUS,  bus_signal);		/* Bus error  		    */
+	  /* signal(SIGBUS,  bus_signal); */	/* Bus error  		    */
 	  signal(SIGSEGV, segv_signal);		/* Segmentation Violation   */
 	  signal(SIGHUP,  hup_signal);		/* HangUp (line dropped)    */
 	  signal(SIGUSR1, usr1_signal);		/* User request 1	    */
diff -ur elm/src/leavembox.c elm-adv/src/leavembox.c
--- elm/src/leavembox.c	Fri Dec 11 02:45:35 1992
+++ elm-adv/src/leavembox.c	Sat Dec 19 16:08:07 1992
@@ -94,10 +94,6 @@
 #ifndef BSD
 # ifndef UTIMBUF
 
-struct utimbuf {
-	time_t	actime;		/** access time       **/ 
-	time_t	modtime;	/** modification time **/
-       };
 
 # endif /* UTIMBUF */
 #endif /* BSD */
diff -ur elm/utils/readmsg.c elm-adv/utils/readmsg.c
--- elm/utils/readmsg.c	Fri Dec 11 02:45:45 1992
+++ elm-adv/utils/readmsg.c	Sat Dec 19 16:08:07 1992
@@ -129,7 +129,7 @@
 extern char *optarg;			/* for parsing the ...		*/
 extern int   optind;			/*  .. starting arguments	*/
 
-extern long atol();
+/* extern long atol(); */
 
 
 void usage_error()