1833857 Members
2504 Online
110063 Solutions
New Discussion

spamassasin

 
SOLVED
Go to solution
Lars Ebeling
Frequent Advisor

spamassasin

I am trying to install spamassassin on HPUX 11.11

While running nake I get this.
gcc -Wall -g -O2 spamc/spamc.c spamc/libspamc.c spamc/utils.c \
-o spamc/spamc -lnsl
spamc/spamc.c: In function `combine_args':
spamc/spamc.c:431: error: `EX_CONFIG' undeclared (first use in this function)
spamc/spamc.c:431: error: (Each undeclared identifier is reported only once
spamc/spamc.c:431: error: for each function it appears in.)
make[1]: *** [spamc/spamc] Error 1
make[1]: Leaving directory `/tmp/Mail-SpamAssassin-3.1.0'
make: *** [spamc/spamc] Error 2
Could someone help me?

Best regards
Lars
4 REPLIES 4
Muthukumar_5
Honored Contributor
Solution

Re: spamassasin

Look at this,

http://archives.free.net.ph/message/20050929.232151.7c85fef3.en.html

--libspam.h --
/* needed for hp-ux */
#ifndef EX_CONFIG
#define EX_CONFIG 78
#endif

It will work now.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: spamassasin

http://bugzilla.spamassassin.org/show_bug.cgi?id=4608

Summary: Fails on hp-ux because EX_CONFIG is not defined in
sysexits.h
Product: Spamassassin
Version: 3.1.0
Platform: HP
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Building & Packaging
AssignedTo: dev@???
ReportedBy: dougbugzilla@???



spamc.c fails to compile on hp-ux 11.11 because libspam.h thinks that EX_CONFIG
only needs to be configured for win32. The fix is to add:

/* needed for hp-ux */
#ifndef EX_CONFIG
#define EX_CONFIG 78
#endif

Somewhere in libspam.h
"A ship in the harbor is safe, but that is not what ships are built for"
Lars Ebeling
Frequent Advisor

Re: spamassasin

Thanks

Lars
Lars Ebeling
Frequent Advisor

Re: spamassasin

The answers helped me