I took your advice and opened up a ticket. The problem is that IBM's xlc v6.0 doesn't like C++ style comments even tho' the C99 standard allows it. Perhaps xlc v7.0 will be happier. If not gcc gives good service or you can apply this patch:

http://bugzilla.spamassassin.org/attachment.cgi?id=3119&action="">

Bill

Loren Wilton wrote:
You should open a bugzilla ticket on this.
 
        Loren
----- Original Message -----
Sent: Wednesday, September 07, 2005 11:25 AM
Subject: libsspamc.c syntax error with IBM xlc

I have get the following error when trying to install SpamAssassin v3.0.4:
 ========== 
spamc/spamc.c:
spamc/libspamc.c:
"spamc/libspamc.c", line 1303.9: 1506-046 (S) Syntax error.
"spamc/libspamc.c", line 1303.12: 1506-045 (S) Undeclared identifier create.
"spamc/libspamc.c", line 1307.9: 1506-046 (S) Syntax error.
spamc/utils.c:
make: *** [spamc/spamc] Error 1
==========

The environment is:    AIX v5.3.0.2
                                  GNU make v3.80
                                  Perl v5.8.2
                                  IBM xlc v6.0 compiler
                                  ksh for the shell.
same problem with SpamAssassin v3.0.3
same problem installing manually or with CPAN.

I tried the manual install setting the environment variable  CC to /usr/bin/gcc    (gcc v3.3.5) and got exactly the same errors and error codes, which was odd. So, I checked the Makefile that is produced by perl Makefile.PL and found that  CC is forced to "cc_r", which was in my path linked to xlc (/usr/vac/bin/xlc). So I set CC  in Makefile to /usr/bin/gcc and got a clean "make test". 

What this probably means is that to install SpamAssassin on AIX using CPAN your will need to get cc_r in your path pointed to gcc before hand or install it manually with a twiddle to Makefile to get it to use gcc.

Bill Barnes

Reply via email to