Re: problem with redhat 5.0 and glibc?

J. Kinsley (jkinsley@beyond-the-illusion.com)
Fri, 9 Jan 1998 16:21:14 -0500

On 9 Jan 1998, Anders Toll wrote:

I just encountered this problem and more the other day. I finally
figured out most of the problems, and fixed them to the best of my
knowledge. However, I am a non-programmer, and I'm certain there are
better fixes available. This patch worked on my system to get ifmail
to compile, and I know that ifmail and ifindes both work properly. I
run fidogate, so those are the only two programs I use from the ifmail
package. Below is the patch.

Regards,
J. Kinsley

> Hi!
>
> Somebody understand what I should do to avoid this problem:
>
> [root@anto7895 ifmail]# make
<snip>
> lutil.c:35: parse error before
> `('
> lutil.c:42: parse error before `if'
> make[1]: *** [lutil.o] Error
> 1
> make[1]: Leaving directory `/usr/local/src/ifmail/iflib'
> make: *** [all]
> Error 2
> [root@anto7895 ifmail]#
>
>
> mvh Anders
> http://www.update.uu.se/~andtol
>
>

***BEGIN ifmail.glibc.patch***

diff -uNr ifmail-orig/CONFIG ifmail/CONFIG
--- ifmail-orig/CONFIG Fri Sep 19 17:06:00 1997
+++ ifmail/CONFIG Thu Jan 8 01:08:24 1998
@@ -74,7 +74,7 @@
#
# po/Makefile and nls implementation idea copied from rpm-2.4.3
#
-USE_NLS = yes
+#USE_NLS = yes

# REFERENCES_MSC96 keep track of MSGID / Message-ID couples, and when a
# a ^aREPLY arrives that correspond to those MSGID, it is expanded back to
@@ -311,8 +311,9 @@
-DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \
-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H \
-DHAS_SYSLOG -DNEED_BSY \
- -DNEED_FORK -DNEED_TRAP \
- -DINT32=long -DINT16=short
+ -DNEED_FORK \
+ -DINT32=long -DINT16=short \
+ -DHAS_BSD_SIGNALS

# 386BSD:
#OPTS += -DHAS_STATFS -DSTATFS_IN_MOUNT_H -DHAS_SETSID -DHAS_NDBM_H \
@@ -435,7 +436,7 @@
# If you need TERM also add e.g. "/usr/src/term112/client.a"

# Linux
-LIBS = -lgdbm
+LIBS = -lgdbm -lresolv
# SunOS:
#LIBS =
# 386BSD:
diff -uNr ifmail-orig/iflib/lutil.c ifmail/iflib/lutil.c
--- ifmail-orig/iflib/lutil.c Sat Jan 11 21:15:05 1997
+++ ifmail/iflib/lutil.c Wed Jan 7 21:04:38 1998
@@ -31,9 +31,9 @@
if ((myname=strrchr(arg,'/'))) myname++;
else myname=arg;
}
-
+/*
char *strerror(errno)
-int errno;
+int *errno;
{
#ifndef HAS_SYS_ERRLIST
extern char *sys_errlist[];
@@ -44,7 +44,7 @@
else
return("unknown error");
}
-
+*/
static char *mon[] = {
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"
};

***END ifmail.glibc.patch***

--
         "J Kinsley" <jkinsley at BeYoND-THe-iLLuSioN dot CoM>
***********************************************************************
** On  a  planet  that  increasingly  resembles  one  huge  Maximum ***
** Security Prison, the only intelligent [and logical] choice is to ***
** plan a Jail Break -- Robert Anton Wilson (Cosmic Trigger II)     ***
***********************************************************************
[IX] >> (([I]+[II])+>([VI]+[XIV]+[XI])+>([V]+[XXI])) => (I=II+V) >>> IX