[EXIM] Patch to make exim-2.00 compile under ULTRIX

Top Page
Delete this message
Reply to this message
Author: Harald Meland
Date:  
To: exim-users
Subject: [EXIM] Patch to make exim-2.00 compile under ULTRIX
Thanks to Olav Kolbu, one of my co-workers, here is a patch for
compiling exim-2.00 on ULTRIX (tested using gcc-2.8.1, I believe
gcc-2.7.2 also works). The compilation is not without warnings, but
at least it doesn't come up with any errors.

diff -ur exim-2.00/Makefile exim-2.00-ULTRIX/Makefile
--- exim-2.00/Makefile    Thu Jul  9 12:48:45 1998
+++ exim-2.00-ULTRIX/Makefile    Wed Jul 15 18:11:00 1998
@@ -8,7 +8,7 @@
 # to csh, so put this in to make it use the Bourne shell. In systems where
 # /bin/sh is not a Bourne-compatible shell, this line will have to be edited.


-SHELL=/bin/sh
+SHELL=`if [ "\`scripts/os-type\`" = "ULTRIX" ]; then echo /usr/bin/sh5; else echo /bin/sh; fi`

 # If a build name has not been specified by running this make file via a
 # command of the form "make build=xxxx", then determine the name of the
diff -ur exim-2.00/OS/Makefile-ULTRIX exim-2.00-ULTRIX/OS/Makefile-ULTRIX
--- exim-2.00/OS/Makefile-ULTRIX    Thu Jul  9 12:48:46 1998
+++ exim-2.00-ULTRIX/OS/Makefile-ULTRIX    Wed Jul 15 18:27:28 1998
@@ -1,5 +1,6 @@
 # Exim: OS-specific make file for Ultrix


+MAKE_SHELL=/usr/bin/sh5
XINCLUDE=-I/usr/include/X11
DBMLIB=-lgdbm

diff -ur exim-2.00/OS/Makefile-Base exim-2.00-ULTRIX/OS/Makefile-Base
--- exim-2.00/OS/Makefile-Base    Thu Jul  9 12:48:45 1998
+++ exim-2.00-ULTRIX/OS/Makefile-Base    Wed Jul 15 16:49:40 1998
@@ -78,7 +78,7 @@
 # Build the local makefile and create makefile-rebuilt if it was rebuilt


 makefile:    ../OS/Makefile-Base ../OS/Makefile-Default ../scripts/Configure $(EDITME)
-         $(SCRIPTS)/Configure-makefile
+         $(SHELL) $(SCRIPTS)/Configure-makefile
          @touch makefile-rebuilt


 # If the local makefile was rebuilt, run it, and then put the flag
diff -ur exim-2.00/src/libident/ident.h exim-2.00-ULTRIX/src/libident/ident.h
--- exim-2.00/src/libident/ident.h    Thu Jul  9 12:48:49 1998
+++ exim-2.00-ULTRIX/src/libident/ident.h    Tue Jul 14 17:17:17 1998
@@ -104,7 +104,9 @@
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <sys/time.h>
+#ifndef ultrix
 #include <sys/socket.h>
+#endif


 #if defined(VMS) && !defined(FD_SETSIZE)
 #  define FD_SETSIZE 64
diff -ur exim-2.00/src/log.c exim-2.00-ULTRIX/src/log.c
--- exim-2.00/src/log.c    Thu Jul  9 12:48:50 1998
+++ exim-2.00-ULTRIX/src/log.c    Wed Jul 15 18:24:05 1998
@@ -66,7 +66,9 @@
   if (debug_file != NULL) fprintf(debug_file, "exim: %s\n", s);
   if (log_stderr != NULL && log_stderr != debug_file)
     fprintf(log_stderr, "exim: %s\n", s);
+#ifndef ultrix
   openlog("exim", LOG_PID|LOG_CONS, LOG_MAIL);
+#endif
   syslog(LOG_CRIT, s);
   closelog();
   if (accept_call_bombout) accept_bomb_out("log writing failed");
@@ -195,7 +197,9 @@
     fprintf(log_stderr, "exim: could not open panic log: aborting\n");
     fprintf(log_stderr, "exim: original error was: %s", log_buffer);
     }
+#ifndef ultrix
   openlog("exim", LOG_PID|LOG_CONS, LOG_MAIL);
+#endif
   syslog(LOG_CRIT, "could not open panic log - original error was: %s",
     log_buffer);
   closelog();



--
Harald

--
*** Exim information can be found at http://www.exim.org/ ***