ifmail bug?!

Marco Gaiarin (gaio@dei.unipd.it)
Tue, 14 Jan 1997 16:22:56 +0100 (MET)

I've noticed problem compiling ifmail with gcc 2.7.2* under linux
(debian 1.2).

I've found this on ifmail2.8f, and i've not report because i've
supposed that was a known problem, but the same appear in
ifmail2.8g-tx7.8 (tx, i think, don't mean nothing in this case...)

The problem was that in some source the ndbm.h was included 2 times,
one directly in .c, and one other in a .h included in .c. I think that
simply the newer gcc has became more strict... ;)))

The diff are simple, if this is a bug...

8<-----8<-----8<-----8<----- CUT HERE -----8<-----8<-----8<-----8<
diff -urd /tmp/ifmail/ifcico/nlindex.c /usr/src/ifmail/ifcico/nlindex.c
--- /tmp/ifmail/ifcico/nlindex.c Tue Jan 14 16:11:23 1997
+++ /usr/src/ifmail/ifcico/nlindex.c Mon Jan 13 23:00:49 1997
@@ -6,9 +6,7 @@
#include <fcntl.h>
#include "directory.h"
#include <sys/stat.h>
-#ifdef HAS_NDBM_H
-#include <ndbm.h>
-#else
+#ifndef HAS_NDBM_H
#include <dbm.h>
#endif
#include "xutil.h"
diff -urd /tmp/ifmail/ifcico/nodebld.c /usr/src/ifmail/ifcico/nodebld.c
--- /tmp/ifmail/ifcico/nodebld.c Tue Jan 14 16:11:23 1997
+++ /usr/src/ifmail/ifcico/nodebld.c Mon Jan 13 23:01:19 1997
@@ -7,7 +7,6 @@
#include <sys/stat.h>
#ifdef HAS_NDBM_H
#include <fcntl.h>
-#include <ndbm.h>
#else
#include <dbm.h>
#endif
diff -urd /tmp/ifmail/ifcico/nodelist.c /usr/src/ifmail/ifcico/nodelist.c
--- /tmp/ifmail/ifcico/nodelist.c Tue Jan 14 16:11:23 1997
+++ /usr/src/ifmail/ifcico/nodelist.c Mon Jan 13 22:58:17 1997
@@ -7,7 +7,6 @@
#include <sys/stat.h>
#ifdef HAS_NDBM_H
#include <fcntl.h>
-#include <ndbm.h>
#else
#include <dbm.h>
#endif
diff -urd /tmp/ifmail/ifgate/nlindex.c /usr/src/ifmail/ifgate/nlindex.c
--- /tmp/ifmail/ifgate/nlindex.c Tue Jan 14 16:11:31 1997
+++ /usr/src/ifmail/ifgate/nlindex.c Mon Jan 13 22:55:23 1997
@@ -6,9 +6,7 @@
#include <fcntl.h>
#include "directory.h"
#include <sys/stat.h>
-#ifdef HAS_NDBM_H
-#include <ndbm.h>
-#else
+#ifndef HAS_NDBM_H
#include <dbm.h>
#endif
#include "xutil.h"
diff -urd /tmp/ifmail/ifgate/nodecheck.c /usr/src/ifmail/ifgate/nodecheck.c
--- /tmp/ifmail/ifgate/nodecheck.c Tue Jan 14 16:11:31 1997
+++ /usr/src/ifmail/ifgate/nodecheck.c Mon Jan 13 22:56:06 1997
@@ -5,10 +5,7 @@
#include <string.h>
#include <time.h>
#include <sys/stat.h>
-#ifdef HAS_NDBM_H
-#include <fcntl.h>
-#include <ndbm.h>
-#else
+#ifndef HAS_NDBM_H
#include <dbm.h>
#endif
#include "directory.h"
8<-----8<-----8<-----8<----- CUT HERE -----8<-----8<-----8<-----8<

Hope this help.

-- 
Marco ``Gaio'' Gaiarin     /   2:333/1016.2    \ Linux Italian-HOWTO
P.zza S. Tommaso, 20      |     61:3917/1.2     |    coordinator
Cimpello di Fiume Veneto (       91:13/1.4       )  . o O   O o .
33080 Pordenone (Italia)  |  gaio@dei.unipd.it  |   PeaceLink PoP
Tel/Fax +39-434-95-9555    \ gaio@peacelink.it /  -> in Cimpello <-