You guys may be interested in my latest blog post: http://scie.nti.st/ 2007/1/1/compiling-dspam-on-an-old-box

Summary: I had trouble compiling DSPAM v3.6.8 on an old Red Hat 6 box. I made some changes to variable argument list pre-processor directives (used older style) and added an include.

Patch:

--- dspam-3.6.8-stock/src/agent_shared.h        Tue May 30 08:05:57 2006
+++ dspam-3.6.8/src/agent_shared.h      Thu Dec 28 01:05:44 2006
@@ -34,7 +34,7 @@
 #ifndef _AGENT_SHARED_H
 #  define _AGENT_SHARED_H

-#define STATUS( ... ) snprintf(ATX->status, sizeof(ATX->status), __VA_ARGS__); +#define STATUS( ARGS... ) snprintf(ATX->status, sizeof(ATX- >status), ##ARGS);

#define SYNTAX "Syntax: dspam [--client|--daemon] --mode=[toe|tum| teft|notrain] --user [user1 user2 ... userN] [--feature= [ch,no,wh,tb=N,sbph]] [--class=[spam|innocent]] [--source=[error| corpus|inoculation]] [--profile=[PROFILE]] [--deliver= [spam,innocent,summary]] [--process|--classify] [--stdout] [passthru- arguments]"

--- dspam-3.6.8-stock/src/client.c      Tue May 30 08:03:51 2006
+++ dspam-3.6.8/src/client.c    Thu Dec 28 01:13:00 2006
@@ -46,6 +46,7 @@
 #include <sys/stat.h>
 #include <sys/un.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <netdb.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>

--- dspam-3.6.8-stock/src/error.h       Sat May 13 05:17:30 2006
+++ dspam-3.6.8/src/error.h     Thu Dec 28 01:10:59 2006
@@ -45,7 +45,7 @@
 #endif

 #ifndef DEBUG
-#define LOGDEBUG( ... );
+#define LOGDEBUG( ARGS... );
 #else
 void LOGDEBUG (const char *err, ... );
 #endif


With this it compiled and has been running great for the last few days. My Inbox is now much, much, much more manageable.

Thank you DSPAM team :)


---
Garry Dolley
IT Manager
ARP Networks, Inc. (http://www.arpnetworks.com)
Increasing Business Efficiency with Computer Technology, Worldwide.
Tel: +1 (818) 206-0181
Fax: +1 (908) 325-1069
ICQ: 4475847
AIM: garry97531


Reply via email to