You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/09/08 19:54:02 UTC
[Bug 4577] New: libsspamc.c syntax error with IBM xlc
http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
Summary: libsspamc.c syntax error with IBM xlc
Product: Spamassassin
Version: 3.0.4
Platform: Other
OS/Version: AIX
Status: NEW
Severity: normal
Priority: P5
Component: Building & Packaging
AssignedTo: dev@spamassassin.apache.org
ReportedBy: bill@sabus.com
I 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 by 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".
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4577
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nikc@cpan.org
------- Additional Comments From jm@jmason.org 2006-09-06 17:57 -------
*** Bug 4768 has been marked as a duplicate of this bug. ***
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
------- Additional Comments From bas@debian.org 2005-09-08 12:23 -------
The problem sees to be the use of C++ style comments. AFAIK, this is allowed in
C99, but I guess there are still some old compilers out there.
Attaching a patch against trunk.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
------- Additional Comments From bas@debian.org 2005-09-08 12:25 -------
Created an attachment (id=3119)
--> (http://bugzilla.spamassassin.org/attachment.cgi?id=3119&action=view)
patch that replaces all C++ style comment swith C style
This should replace all C++ style comments in current trunk with C-style
comments.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4577
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |4768
nThis| |
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4577
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.1.6
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
------- Additional Comments From bill@sabus.com 2005-09-09 09:26 -------
Subject: Re: libsspamc.c syntax error with IBM xlc
Hi,
I had a look at the IBM XLC reference and you can set a flag to get it
to recognize C++ style comments. Perhaps Makeperl.PL can set this when
it recognizes xlc as the target compiler. Here is the relevant excerpt.
====================================
cpluscmt
Purpose
Use this option if you want C++ comments to be recognized in C source files.
Syntax
-q nocpluscmt
cpluscmt
Default
The default setting varies according to the langlvl compiler option setting.
v If langlvl is set to stdc99 or extc99, cpluscmt is implicitly
selected. You can
override this implicit selection by specifying -qlanglvl=stdc99
-qnocpluscmt or
-qlanglvl=extc99 -qnocpluscmt.
v Otherwise, the default setting is nocpluscmt.
Notes
The #pragma options directive must appear before the first statement in
the C
language source file and applies to the entire file.
The __C99_CPLUSCMT compiler macro is defined when cpluscmt is selected.
// comments are not part of C89. The result of the following valid C89
program will
be incorrect if -qcpluscmt is specified:
main() {
int i = 2;
printf(�%i\n�, i //* 2 */
+ 1);
}
The correct answer is 2 (2 divided by 1). When -qcpluscmt is specified,
the result
is 3 (2 plus 1).
====================================
Bill
bugzilla-daemon@bugzilla.spamassassin.org wrote:
>http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
>
>
>
>
>
>------- Additional Comments From bas@debian.org 2005-09-08 12:23 -------
>The problem sees to be the use of C++ style comments. AFAIK, this is allowed in
>C99, but I guess there are still some old compilers out there.
>
>Attaching a patch against trunk.
>
>
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>
>
>
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4577] libsspamc.c syntax error with IBM xlc
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4577
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jm@jmason.org 2006-09-06 17:56 -------
this was already fixed in trunk and b3_1_0.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.