You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by David Guntner <da...@akaMail.com> on 2005/02/23 10:35:02 UTC
Cannot install Net::DNS from CPAN
Hi,
The INSTALL document says that installing the Net::DNS package, while not
strictly required, is recommended. I've been trying to install it to no
avail. Running Mandrake Linux 9.2 with perl 5.8.1. CPAN version is 1.76.
When I try to do the install, this is what I get:
# cpan
cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled
cpan> o conf prerequisits_policy ask
prerequisits_policy ask
cpan> install Net::DNS
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 23 Feb 2005 04:40:10 GMT
Running install for module Net::DNS
Running make for C/CR/CREIN/Net-DNS-0.48.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/C/CR/CREIN/Net-DNS-0.48.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Net-DNS-0.48/
Net-DNS-0.48/Changes
Net-DNS-0.48/contrib/
Net-DNS-0.48/contrib/check_zone
Net-DNS-0.48/contrib/dnswalk.README
Net-DNS-0.48/contrib/loc2earth.fcgi
Net-DNS-0.48/contrib/loclist.pl
Net-DNS-0.48/contrib/README
Net-DNS-0.48/demo/
Net-DNS-0.48/demo/axfr
Net-DNS-0.48/demo/check_soa
Net-DNS-0.48/demo/check_zone
Net-DNS-0.48/demo/example_recurse.pl
Net-DNS-0.48/demo/mresolv
Net-DNS-0.48/demo/mx
Net-DNS-0.48/demo/perldig
Net-DNS-0.48/demo/README
Net-DNS-0.48/demo/trace_dns.pl
Net-DNS-0.48/DNS.xs
Net-DNS-0.48/lib/
Net-DNS-0.48/lib/Net/
Net-DNS-0.48/lib/Net/DNS/
Net-DNS-0.48/lib/Net/DNS/FAQ.pod
Net-DNS-0.48/lib/Net/DNS/Header.pm
Net-DNS-0.48/lib/Net/DNS/Nameserver.pm
Net-DNS-0.48/lib/Net/DNS/Packet.pm
Net-DNS-0.48/lib/Net/DNS/Question.pm
Net-DNS-0.48/lib/Net/DNS/Resolver/
Net-DNS-0.48/lib/Net/DNS/Resolver/Base.pm
Net-DNS-0.48/lib/Net/DNS/Resolver/Cygwin.pm
Net-DNS-0.48/lib/Net/DNS/Resolver/Recurse.pm
Net-DNS-0.48/lib/Net/DNS/Resolver/UNIX.pm
Net-DNS-0.48/lib/Net/DNS/Resolver/Win32.pm
Net-DNS-0.48/lib/Net/DNS/Resolver.pm
Net-DNS-0.48/lib/Net/DNS/RR/
Net-DNS-0.48/lib/Net/DNS/RR/A.pm
Net-DNS-0.48/lib/Net/DNS/RR/AAAA.pm
Net-DNS-0.48/lib/Net/DNS/RR/AFSDB.pm
Net-DNS-0.48/lib/Net/DNS/RR/CERT.pm
Net-DNS-0.48/lib/Net/DNS/RR/CNAME.pm
Net-DNS-0.48/lib/Net/DNS/RR/DNAME.pm
Net-DNS-0.48/lib/Net/DNS/RR/EID.pm
Net-DNS-0.48/lib/Net/DNS/RR/HINFO.pm
Net-DNS-0.48/lib/Net/DNS/RR/ISDN.pm
Net-DNS-0.48/lib/Net/DNS/RR/LOC.pm
Net-DNS-0.48/lib/Net/DNS/RR/MB.pm
Net-DNS-0.48/lib/Net/DNS/RR/MG.pm
Net-DNS-0.48/lib/Net/DNS/RR/MINFO.pm
Net-DNS-0.48/lib/Net/DNS/RR/MR.pm
Net-DNS-0.48/lib/Net/DNS/RR/MX.pm
Net-DNS-0.48/lib/Net/DNS/RR/NAPTR.pm
Net-DNS-0.48/lib/Net/DNS/RR/NIMLOC.pm
Net-DNS-0.48/lib/Net/DNS/RR/NS.pm
Net-DNS-0.48/lib/Net/DNS/RR/NSAP.pm
Net-DNS-0.48/lib/Net/DNS/RR/NULL.pm
Net-DNS-0.48/lib/Net/DNS/RR/OPT.pm
Net-DNS-0.48/lib/Net/DNS/RR/PTR.pm
Net-DNS-0.48/lib/Net/DNS/RR/PX.pm
Net-DNS-0.48/lib/Net/DNS/RR/RP.pm
Net-DNS-0.48/lib/Net/DNS/RR/RT.pm
Net-DNS-0.48/lib/Net/DNS/RR/SOA.pm
Net-DNS-0.48/lib/Net/DNS/RR/SRV.pm
Net-DNS-0.48/lib/Net/DNS/RR/SSHFP.pm
Net-DNS-0.48/lib/Net/DNS/RR/TKEY.pm
Net-DNS-0.48/lib/Net/DNS/RR/TSIG.pm
Net-DNS-0.48/lib/Net/DNS/RR/TXT.pm
Net-DNS-0.48/lib/Net/DNS/RR/Unknown.pm
Net-DNS-0.48/lib/Net/DNS/RR/X25.pm
Net-DNS-0.48/lib/Net/DNS/RR.pm
Net-DNS-0.48/lib/Net/DNS/Update.pm
Net-DNS-0.48/lib/Net/DNS.pm
Net-DNS-0.48/Makefile.PL
Net-DNS-0.48/MANIFEST
Net-DNS-0.48/META.yml
Net-DNS-0.48/README
Net-DNS-0.48/t/
Net-DNS-0.48/t/.resolv.conf
Net-DNS-0.48/t/00-load.t
Net-DNS-0.48/t/00-pod.t
Net-DNS-0.48/t/00-version.t
Net-DNS-0.48/t/01-resolver-env.t
Net-DNS-0.48/t/01-resolver-file.t
Net-DNS-0.48/t/01-resolver-opt.t
Net-DNS-0.48/t/01-resolver.t
Net-DNS-0.48/t/02-header.t
Net-DNS-0.48/t/03-question.t
Net-DNS-0.48/t/04-packet-unique-push.t
Net-DNS-0.48/t/04-packet.t
Net-DNS-0.48/t/05-rr-sshfp.t
Net-DNS-0.48/t/05-rr-txt.t
Net-DNS-0.48/t/05-rr-unknown.t
Net-DNS-0.48/t/05-rr.t
Net-DNS-0.48/t/06-update.t
Net-DNS-0.48/t/07-misc.t
Net-DNS-0.48/t/08-online.t
Net-DNS-0.48/t/09-tkey.t
Net-DNS-0.48/t/10-recurse.t
Net-DNS-0.48/t/custom.txt
Net-DNS-0.48/TODO
Removing previously used /root/.cpan/build/Net-DNS-0.48
CPAN.pm: Going to build C/CR/CREIN/Net-DNS-0.48.tar.gz
Testing if you have a C compiler and the needed header files....
cc -c -o compile.o compile.c
You have a working compiler.
You appear to be directly connected to the Internet. I have some tests
that try to query live nameservers.
Do you want to enable these tests? [y]
Checking if your kit is complete...
Looks good
Writing Makefile for Net::DNS
cp lib/Net/DNS/RR/MX.pm blib/lib/Net/DNS/RR/MX.pm
cp lib/Net/DNS/FAQ.pod blib/lib/Net/DNS/FAQ.pod
cp lib/Net/DNS/RR/DNAME.pm blib/lib/Net/DNS/RR/DNAME.pm
cp lib/Net/DNS/Resolver/Base.pm blib/lib/Net/DNS/Resolver/Base.pm
cp lib/Net/DNS/Resolver/Win32.pm blib/lib/Net/DNS/Resolver/Win32.pm
cp lib/Net/DNS/RR/SOA.pm blib/lib/Net/DNS/RR/SOA.pm
cp lib/Net/DNS/RR/TSIG.pm blib/lib/Net/DNS/RR/TSIG.pm
cp lib/Net/DNS/RR/NAPTR.pm blib/lib/Net/DNS/RR/NAPTR.pm
cp lib/Net/DNS/RR/NSAP.pm blib/lib/Net/DNS/RR/NSAP.pm
cp lib/Net/DNS/RR/CERT.pm blib/lib/Net/DNS/RR/CERT.pm
cp lib/Net/DNS/RR/SRV.pm blib/lib/Net/DNS/RR/SRV.pm
cp lib/Net/DNS/Resolver/UNIX.pm blib/lib/Net/DNS/Resolver/UNIX.pm
cp lib/Net/DNS/RR/LOC.pm blib/lib/Net/DNS/RR/LOC.pm
cp lib/Net/DNS/Question.pm blib/lib/Net/DNS/Question.pm
cp lib/Net/DNS/RR/OPT.pm blib/lib/Net/DNS/RR/OPT.pm
cp lib/Net/DNS/RR/PTR.pm blib/lib/Net/DNS/RR/PTR.pm
cp lib/Net/DNS/RR/NS.pm blib/lib/Net/DNS/RR/NS.pm
cp lib/Net/DNS/RR.pm blib/lib/Net/DNS/RR.pm
cp lib/Net/DNS/Resolver/Cygwin.pm blib/lib/Net/DNS/Resolver/Cygwin.pm
cp lib/Net/DNS/RR/AAAA.pm blib/lib/Net/DNS/RR/AAAA.pm
cp lib/Net/DNS/RR/Unknown.pm blib/lib/Net/DNS/RR/Unknown.pm
cp lib/Net/DNS/RR/MB.pm blib/lib/Net/DNS/RR/MB.pm
cp lib/Net/DNS/RR/TXT.pm blib/lib/Net/DNS/RR/TXT.pm
cp lib/Net/DNS/Resolver/Recurse.pm blib/lib/Net/DNS/Resolver/Recurse.pm
cp lib/Net/DNS/RR/TKEY.pm blib/lib/Net/DNS/RR/TKEY.pm
cp lib/Net/DNS/RR/CNAME.pm blib/lib/Net/DNS/RR/CNAME.pm
cp lib/Net/DNS/RR/RT.pm blib/lib/Net/DNS/RR/RT.pm
cp lib/Net/DNS/RR/MG.pm blib/lib/Net/DNS/RR/MG.pm
cp lib/Net/DNS/RR/ISDN.pm blib/lib/Net/DNS/RR/ISDN.pm
cp lib/Net/DNS/RR/MR.pm blib/lib/Net/DNS/RR/MR.pm
cp lib/Net/DNS/RR/A.pm blib/lib/Net/DNS/RR/A.pm
cp lib/Net/DNS/Resolver.pm blib/lib/Net/DNS/Resolver.pm
cp lib/Net/DNS/RR/PX.pm blib/lib/Net/DNS/RR/PX.pm
cp lib/Net/DNS/Header.pm blib/lib/Net/DNS/Header.pm
cp lib/Net/DNS.pm blib/lib/Net/DNS.pm
cp lib/Net/DNS/Nameserver.pm blib/lib/Net/DNS/Nameserver.pm
cp lib/Net/DNS/RR/X25.pm blib/lib/Net/DNS/RR/X25.pm
cp lib/Net/DNS/RR/NULL.pm blib/lib/Net/DNS/RR/NULL.pm
cp lib/Net/DNS/Update.pm blib/lib/Net/DNS/Update.pm
cp lib/Net/DNS/RR/SSHFP.pm blib/lib/Net/DNS/RR/SSHFP.pm
cp lib/Net/DNS/Packet.pm blib/lib/Net/DNS/Packet.pm
cp lib/Net/DNS/RR/HINFO.pm blib/lib/Net/DNS/RR/HINFO.pm
cp lib/Net/DNS/RR/MINFO.pm blib/lib/Net/DNS/RR/MINFO.pm
cp lib/Net/DNS/RR/AFSDB.pm blib/lib/Net/DNS/RR/AFSDB.pm
cp lib/Net/DNS/RR/EID.pm blib/lib/Net/DNS/RR/EID.pm
cp lib/Net/DNS/RR/NIMLOC.pm blib/lib/Net/DNS/RR/NIMLOC.pm
cp lib/Net/DNS/RR/RP.pm blib/lib/Net/DNS/RR/RP.pm
/usr/bin/perl5.8.1 /usr/lib/perl5/5.8.1/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.1/ExtUtils/typemap DNS.xs > DNS.xsc && mv DNS.xsc DNS.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -fomit-frame-pointer -pipe -march=i586
-mcpu=pentiumpro -DVERSION=\"0.48\" -DXS_VERSION=\"0.48\" -fPIC
"-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" DNS.c
Running Mkbootstrap for Net::DNS ()
chmod 644 DNS.bs
rm -f blib/arch/auto/Net/DNS/DNS.so
LD_RUN_PATH="" gcc -shared -L/usr/local/lib DNS.o -o
blib/arch/auto/Net/DNS/DNS.so -lresolv
chmod 755 blib/arch/auto/Net/DNS/DNS.so
cp DNS.bs blib/arch/auto/Net/DNS/DNS.bs
chmod 644 blib/arch/auto/Net/DNS/DNS.bs
Manifying blib/man3/Net::DNS::Update.3pm
Manifying blib/man3/Net::DNS::RR::NIMLOC.3pm
Manifying blib/man3/Net::DNS::RR::NULL.3pm
Manifying blib/man3/Net::DNS::RR.3pm
Manifying blib/man3/Net::DNS::Resolver::Cygwin.3pm
Manifying blib/man3/Net::DNS::RR::MB.3pm
Manifying blib/man3/Net::DNS::Resolver::UNIX.3pm
Manifying blib/man3/Net::DNS::RR::MR.3pm
Manifying blib/man3/Net::DNS::Packet.3pm
Manifying blib/man3/Net::DNS::Resolver.3pm
Manifying blib/man3/Net::DNS::RR::NAPTR.3pm
Manifying blib/man3/Net::DNS::RR::NS.3pm
Manifying blib/man3/Net::DNS::Resolver::Win32.3pm
Manifying blib/man3/Net::DNS::RR::TKEY.3pm
Manifying blib/man3/Net::DNS::RR::CNAME.3pm
Manifying blib/man3/Net::DNS::Header.3pm
Manifying blib/man3/Net::DNS::RR::TSIG.3pm
Manifying blib/man3/Net::DNS::RR::EID.3pm
Manifying blib/man3/Net::DNS::RR::Unknown.3pm
Manifying blib/man3/Net::DNS::RR::CERT.3pm
Manifying blib/man3/Net::DNS::FAQ.3pm
Manifying blib/man3/Net::DNS::Nameserver.3pm
Manifying blib/man3/Net::DNS::RR::TXT.3pm
Manifying blib/man3/Net::DNS::RR::SOA.3pm
Manifying blib/man3/Net::DNS::RR::HINFO.3pm
Manifying blib/man3/Net::DNS::RR::DNAME.3pm
Manifying blib/man3/Net::DNS::RR::ISDN.3pm
Manifying blib/man3/Net::DNS::RR::RP.3pm
Manifying blib/man3/Net::DNS::Resolver::Base.3pm
Manifying blib/man3/Net::DNS::RR::A.3pm
Manifying blib/man3/Net::DNS::RR::SRV.3pm
Manifying blib/man3/Net::DNS::RR::PTR.3pm
Manifying blib/man3/Net::DNS::RR::SSHFP.3pm
Manifying blib/man3/Net::DNS::RR::AAAA.3pm
Manifying blib/man3/Net::DNS::RR::RT.3pm
Manifying blib/man3/Net::DNS::RR::AFSDB.3pm
Manifying blib/man3/Net::DNS::RR::X25.3pm
Manifying blib/man3/Net::DNS::RR::MX.3pm
Manifying blib/man3/Net::DNS::Question.3pm
Manifying blib/man3/Net::DNS::RR::OPT.3pm
Manifying blib/man3/Net::DNS::RR::MG.3pm
Manifying blib/man3/Net::DNS::RR::PX.3pm
Manifying blib/man3/Net::DNS.3pm
Manifying blib/man3/Net::DNS::Resolver::Recurse.3pm
Manifying blib/man3/Net::DNS::RR::NSAP.3pm
Manifying blib/man3/Net::DNS::RR::MINFO.3pm
Manifying blib/man3/Net::DNS::RR::LOC.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.1 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load..................ok
t/00-pod...................skipped
all skipped: Test::Pod v0.95 required for testing POD
t/00-version...............ok
t/01-resolver-env..........ok
t/01-resolver-file.........ok
7/8 skipped: Could not read configuration file
t/01-resolver-opt..........ok
t/01-resolver..............ok
t/02-header................ok
t/03-question..............ok
t/04-packet-unique-push....ok
t/04-packet................ok
t/05-rr-sshfp..............skipped
all skipped: Digest::BubbleBabble not installed.
t/05-rr-txt................ok
t/05-rr-unknown............ok
t/05-rr....................ok
t/06-update................ok
t/07-misc..................ok
t/08-online................ok
t/09-tkey..................ok
t/10-recurse...............NOK 5# Failed test (t/10-recurse.t at line 36)
Can't call method "answer" on an undefined value at t/10-recurse.t line 37.
# Looks like you planned 12 tests but only ran 5.
# Looks like your test died just after 5.
t/10-recurse...............dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 153) line 1, near "'int'
$__val"
(Missing operator before $__val?)
DIED. FAILED tests 5-12
Failed 8/12 tests, 33.33% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/10-recurse.t 255 65280 12 15 125.00% 5-12
2 tests and 7 subtests skipped.
Failed 1/20 test scripts, 95.00% okay. 8/825 subtests failed, 99.03% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
cpan>
And thus it bombs. Anyone have any ideas as to how to get this thing to
install? TIA.
--Dave
Re: Cannot install Net::DNS from CPAN
Posted by Kai Schaetzl <ma...@conactive.com>.
David Guntner wrote on Wed, 23 Feb 2005 11:38:31 -0800:
> From the line about URIDNSBL, and the lack of a complaint
> about Net::DNS not being there, I'm thinking that SpamAssassin is happy now.
Looks good :-)
> Is there something I can do, though, to verify that the DNSBL check is
> actually *happening*? I'm going to go with starting up spamd with the -D
> option; let me know if there's some other way I should be doing it. :-)
>
I wouldn't use spamd for debugging unless you need to debug soemthing in spamd.
Run spamassassin -D and look for SURBL rules spit out.
Kai
--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
Re: Cannot install Net::DNS from CPAN
Posted by David Guntner <da...@akaMail.com>.
Kai Schaetzl grabbed a keyboard and wrote:
> David Guntner wrote on Wed, 23 Feb 2005 01:35:02 -0800:
> > t/10-recurse...............NOK 5# Failed test (t/10-recurse.t at line
> > 36)
>
> You really didn't need to post the whole log just to show this error!
Sorry, wasn't sure if the stuff leading up to the error would be useful for
debugging. Decided to err on the side of "a little too much is better than
not enough." :-)
> I reinstalled Net::DNS a few days ago and got another error with that test
> as well. In my case the DNS was not responding to the test, maybe it
> doesn't allow recursive queries if that is what the test does. I did A
> "force install", all is well. If you have a firewall you may try without
> it.
I did a force install (thanks, BTW) and it went in. When doing a "sa-learn
--sync -D", I noticed the following lines:
debug: using "/home/davidg/.spamassassin/user_prefs" for user prefs file
debug: config: read file /home/davidg/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84a9c14)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b5b6c4)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8b3a130)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84a9c14) implements
'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b5b6c4) implements
'parse_config'
debug: config: SpamAssassin failed to parse line, skipping:
auto_learn_threshold_spam 10
(I take it that "auto_learn_threshold_spam" is no longer a valid config option
as of 3.0.2? :). From the line about URIDNSBL, and the lack of a complaint
about Net::DNS not being there, I'm thinking that SpamAssassin is happy now.
Is there something I can do, though, to verify that the DNSBL check is
actually *happening*? I'm going to go with starting up spamd with the -D
option; let me know if there's some other way I should be doing it. :-)
Thanks for the help to those who responded (some were off list).
--Dave
Re: Cannot install Net::DNS from CPAN
Posted by Kai Schaetzl <ma...@conactive.com>.
David Guntner wrote on Wed, 23 Feb 2005 01:35:02 -0800:
> t/10-recurse...............NOK 5# Failed test (t/10-recurse.t at line 36)
>
You really didn't need to post the whole log just to show this error!
I reinstalled Net::DNS a few days ago and got another error with that test as
well. In my case the DNS was not responding to the test, maybe it doesn't allow
recursive queries if that is what the test does. I did A "force install", all
is well. If you have a firewall you may try without it.
Kai
--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org