[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compile question: Red Hat 7.1 problems anyone?



Hello,

I tried to compile ZMailer on a Red Hat 7.1 box (glibc 2.2.2),
and got some compile errors (with both 2.99.55patch1 and the
latest CVS version). I got it to compile with the following
patch; perhaps someone might want to look over it and see if
this makes any sense.

My ZMailer is also experience a large number of "ROUTER CHILD
PROCESS TERMINATED; wait() status = SIGNAL 11" messages, and it
seems that the message files have disappeared in my case. Since
a previous message also says this happens on a Red Hat 7.1
box, I am wondering if anyone at all is having any success
with ZMailer on Red Hat 7.1. (Could be a compiler problem with
RH7.1? It uses gcc "2.96" which probably is not supposed to be
used?)

--------- cut here -------- 8< ------ cut here ---- 8< ------------
--- ./include/hostenv.h.dist	Sat Sep 22 17:58:01 2001
+++ ./include/hostenv.h	Mon Nov 26 11:59:52 2001
@@ -38,6 +38,9 @@
 #ifdef __linux__ /* Linux libc-4 needs this, libc-5 doesn't.. */
 # include <linux/limits.h>
 #endif
+#ifdef __linux__ /* Linux libc-6 glibc 2.2.2 needs this to get struct tm */
+# include <time.h>
+#endif
 #include <sys/param.h> /* Troublepotential: If somebody does not have it ? */
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
--- ./sfio/src/lib/sfio/Stdio_b/sfstdio.c.dist	Mon Aug 30 06:16:22 1999
+++ ./sfio/src/lib/sfio/Stdio_b/sfstdio.c	Mon Nov 26 11:45:50 2001
@@ -3,7 +3,14 @@
 **
 **	Written by Kiem-Phong Vo.
 */
+/* Hide printf and strcmp from stdio.h */
+#define printf x_printf
+#define strcmp x_strcmp
+
 #include	"sfstdhdr.h"
+
+#undef printf
+#undef strcmp
 
 #if __STD_C
 _BEGIN_EXTERNS_
--- ./configure.in.dist	Mon Oct  1 07:39:07 2001
+++ ./configure.in	Mon Nov 26 12:03:33 2001
@@ -1279,7 +1279,8 @@
     AC_MSG_RESULT([%%% AIEEE!  NO  <netinet/in.h>  HEADER ?!])
 fi
 
-AC_TRY_COMPILE([#include <sys/types.h>
+AC_TRY_COMPILE([#include <unistd.h> /* Red Hat 7.1 */
+#include <sys/types.h>
 #include <sys/socket.h>],[socklen_t sl = 2;],
         AC_DEFINE(HAVE_SOCKLEN_T))
 
--------- cut here -------- 8< ------ cut here ---- 8< ------------
 
Regards,

-- 
Ambrose Li  <acli@ada.dhs.org>                 http://trends.ca/~acli/
     http://www.wykontario.org/  http://www.cccgt.org/

"What's going to happen in the future if we allow corporate profits
 to prevail above all other concerns?" - Timothy Findley

Please also visit: http://www.afcvancouver.org/
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi