http://bugzilla.spamassassin.org/show_bug.cgi?id=3448
Summary: unable to build spamc with gcc < 2.95
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: NetBSD
Status: NEW
Severity: major
Priority: P2
Component: spamc/spamd
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
Older versions of gcc do not support variable declarations in the middle of
functions.
Simple patch attached.
No impact on functionality of spamc, so the patch should be appropriate even at
this stage of the release process.
$ gcc --version
egcs-1.1.2
...
$ /usr/bin/make -f spamc/Makefile spamc/spamc
gcc -O2 -I/usr/pkg/include spamc/spamc.c spamc/libspamc.c spamc/utils.c -o
spamc/spamc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
spamc/spamc.c: In function `get_current_user':
spamc/spamc.c:415: syntax error before `struct'
spamc/spamc.c:421: `curr_user' undeclared (first use in this function)
spamc/spamc.c:421: (Each undeclared identifier is reported only once
spamc/spamc.c:421: for each function it appears in.)
*** Error code 1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.