http://bugzilla.spamassassin.org/show_bug.cgi?id=4376
Summary: SA (v303/snap) 'make' fails (Bus Error) @ "spamc" on OSX
10.4.1 + WORKAROUND
Product: Spamassassin
Version: 3.0.3
Platform: Macintosh
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Building & Packaging
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
hi all,
i'm building SpamAssassin (v3.0. & latest snap) on OSX 10.4.1 w/ gcc4.
short story:
(a) Net::DNS prereq FAILS to build; need DEV version
(b) config of SA 'complains' about Net::DNS version, and
"Net::Ident::_export_hooks()"
(c) 'make' fails:
make: *** [spamc/Makefile] Bus error
(d) workaroud is to manually configure in spamc/
long story -- THE DETAILS ...
1st the prereq 'issue' -- Net::DNS ...
CPAN's Net::DNS fails to build correctly on Tiger:
cref: http://www.mail-archive.com/[email protected]/msg05790.html
even (4 me) with the proposed fix @:
http://www.net-dns.org/blog/post/1/15
so i built/installed the latest developer build:
cref: http://search.cpan.org/%7Eolaf/Net-DNS-0.49_02/
http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-0.49_02.tar.gz
with this prereq in place, after successful build/install of razor-agents2.67,
i move on to
SpamAssassin.
with EITHER:
wget
http://apache.oregonstate.edu/spamassassin/Mail-SpamAssassin-3.0.3.tar.gz
wget
http://cvs.apache.org/snapshots/spamassassin/spamassassin_20050531043757.tar.gz
configuring as:
unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND
EXTRA_LDFLAGS
EXTRA_LIBS LC_ALL LANG LINGUAS
setenv LANG "en_US"
setenv LC_ALL "C"
setenv CFLAGS "-DSPAMC_SSL"
perl Makefile.PL \
PREFIX=/usr/local/spamassassin \
DATADIR=/var/Data/SpamAssassin \
CONFDIR=/var/Settings/SpamAssassin \
ENABLE_SSL="yes" \
LDDLFLAGS="-L/usr/local/ssl/lib -lssl -lcrypto" \
LDFLAGS="-L/usr/local/ssl/lib -lssl -lcrypto -ldl"
########
results in WARNINGS of:
########
case (Mail-Spamassin-3.0.3):
...
Run Bayes SQL storage tests during 'make test' (additional
information required)? (y/n) [n]
Argument "0.49_02" isn't numeric in numeric lt (<) at Makefile.PL line
429.
Checking if your kit is complete...
Looks good
Writing Makefile for Mail::SpamAssassin
Makefile written by ExtUtils::MakeMaker 6.30
case (spamassassin_20050531043757):
...
checking module dependencies and their versions...
Argument "0.49_02" isn't numeric in subroutine entry at (eval 13) line
1.
Net::Ident::_export_hooks() called too early to check prototype at
/usr/local/perl_libs/sitelib/Net/
Ident.pm line 29.
Checking if your kit is complete...
Looks good
Writing Makefile for Mail::SpamAssassin
Makefile written by ExtUtils::MakeMaker 6.30
#########
NOTE also the "Net::Ident""export_hooks()" for the snapshot case ... it never
checks for
#########
the usual:
"Check network rules during 'make test' (test scripts may fail due to
network problems)? (y/n) [n]"
a subsequent 'make' FAILS in both cases
to avoid:
/usr/local/perl5/bin/perl spamc/configure.pl
--prefix="/usr/local/spamassassin" --
sysconfdir="/var/Settings/SpamAssassin" --datadir="/var/Data/SpamAssassin"
--enable-ssl="yes"
cd spamc
/usr/local/perl5/bin/perl version.h.pl
version.h.pl: creating version.h
make: *** [spamc/Makefile] Bus error
after a bit of poking around, it seems there's no "version.h" or "Makefile"
getting built in spamc/, so ...
to workaroud this error, b4 invoking 'make' at the top of the tree:
cd spamc
perl version.h.pl
./configure --enable-ssl
then, simply:
cd ../
make
'make' _now_ completes successfully.
'make test' results in:
5 tests skipped.
Failed 1/68 test scripts, 98.53% okay. 1/1492 subtests failed, 99.93%
okay.
make: *** [test_dynamic] Error 2
t/razor2....................sh: line 1: razor-report: command not found
'razor-report < data/spam/001' failed. This may cause this test to fail.
Argument "0.49_02" isn't numeric in numeric lt (<) at
../blib/lib/Mail/SpamAssassin/Dns.pm line
1229.
Not found: spam = Listed in Razor2
t/
razor2....................NOK 1# Failed test 1 in t/SATest.pm at line 561
Argument "0.49_02" isn't numeric in numeric lt (<) at
../blib/lib/Mail/SpamAssassin/Dns.pm line
1229.
tied, apparently, to the Net::DNS version issue, above; but it doesn't look
fatal ...
a subsequent 'make install' completes as well, resulting in:
cd /usr/local/spamassassin/bin
ls -al
total 188
drwxr-xr-x 6 root admin 204 May 31 13:40 .
drwxr-xr-x 3 root admin 102 May 31 12:45 ..
-r-xr-xr-x 1 root admin 37129 May 31 11:21 sa-learn
-r-xr-xr-x 1 root admin 29753 May 31 11:22 spamassassin
-r-xr-xr-x 1 root admin 44800 May 31 13:32 spamc
-r-xr-xr-x 1 root admin 73346 May 31 11:22 spamd
otool -L spamc
spamc:
/usr/local/ssl/lib/libssl.0.9.7.dylib (compatibility version 0.9.0,
current version 0.9.7)
/usr/local/ssl/lib/libcrypto.0.9.7.dylib (compatibility version
0.9.0, current version 0.9.7)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.0.0)
/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version
92.0.0)
cheers,
richard
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.