[EXIM] Problem compiling Exim 3.00 on SunOS 4

Top Page
Delete this message
Reply to this message
Author: Harald Meland
Date:  
To: exim-users
Subject: [EXIM] Problem compiling Exim 3.00 on SunOS 4
Trying to compile Exim 3.00 using gcc-2.7.2.1 on SunOS 4.1.4 produces
this:

  gcc -c -O    -I. globals.c
  globals.c:46: `getc' undeclared here (not in a function)
  globals.c:47: `ungetc' undeclared here (not in a function)
  globals.c:48: `feof' undeclared here (not in a function)
  globals.c:49: `ferror' undeclared here (not in a function)
  make[1]: *** [globals.o] Error 1


I don't understand what's going on -- at first I thought it was a libc
function vs. includefile macro issue, but #undef-ing the names
immediately before line 46 in globals.c didn't help. If anyone have
any hints, I'd much appreciate them.

Also, with this small patch in place:

--- exim-3.00/Makefile.orig    Fri May 14 11:49:33 1999
+++ exim-3.00/Makefile    Tue May 18 14:19:26 1999
@@ -48,7 +48,7 @@
 # the optional files.


 configure: build-directory
-    @cd build-$(buildname); ../scripts/Configure-Makefile
+    @cd build-$(buildname); $(SHELL) ../scripts/Configure-Makefile


 # The "makefile" target forces a rebuild of the makefile (as opposed to
 # "configure", which doesn't force it).
--- exim-3.00/OS/Makefile-Base.orig    Fri May 14 11:49:33 1999
+++ exim-3.00/OS/Makefile-Base    Tue May 18 15:08:52 1999
@@ -137,7 +137,7 @@
 eximon: Makefile config.h ../src/eximon.src ../OS/eximon.conf-Default \
           ../Local/eximon.conf
     @rm -f eximon
-    ../scripts/Configure-eximon
+    $(SHELL) ../scripts/Configure-eximon
     sed -e s?CONFIGURE_FILE?$(CONFIGURE_FILE)? \
       -e s?BIN_DIRECTORY?$(BIN_DIRECTORY)? \
       -e s?BASENAME_COMMAND?$(BASENAME_COMMAND)? \


I successfully compiled Exim 3.00 on ULTRIX with a simple
make SHELL=/bin/sh5
--
Harald

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