I am having a similar error from (http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg604921.html)
Trying to install Compress::Zlib with cpan on Slackware 12 for amavisd-new. Most errors point to Error: IO::Compress::Base version 2.006 required--this is only version 2.005 at (eval 5) line 2 Entire log: ######################################## cpan[1]> install Compress::Zlib CPAN: Storable loaded ok (v2.15) Going to read /root/.cpan/Metadata Database was generated on Mon, 03 Sep 2007 00:36:41 GMT Running install for module 'Compress::Zlib' Running make for P/PM/PMQS/Compress-Zlib-2.006.tar.gz CPAN: LWP::UserAgent loaded ok (v2.036) CPAN: Time::HiRes loaded ok (v1.9707) Fetching with LWP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/P/PM/PMQS/Compress-Zlib-2.006.tar.gz CPAN: YAML loaded ok (v0.65) CPAN: Digest::SHA loaded ok (v5.45) Fetching with LWP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/P/PM/PMQS/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/P/PM/PMQS/Compress-Zlib-2.006.tar.gz ok Scanning cache /root/.cpan/build for sizes DONE Compress-Zlib-2.006/ Compress-Zlib-2.006/examples/ Compress-Zlib-2.006/examples/gzgrep Compress-Zlib-2.006/examples/filtdef Compress-Zlib-2.006/examples/gzcat Compress-Zlib-2.006/examples/gzstream Compress-Zlib-2.006/examples/filtinf Compress-Zlib-2.006/t/ Compress-Zlib-2.006/t/000prereq.t Compress-Zlib-2.006/t/03zlib-v1.t Compress-Zlib-2.006/t/Test/ Compress-Zlib-2.006/t/Test/More.pm Compress-Zlib-2.006/t/Test/Simple.pm Compress-Zlib-2.006/t/Test/Builder.pm Compress-Zlib-2.006/t/06gzsetp.t Compress-Zlib-2.006/t/08encoding.t Compress-Zlib-2.006/t/99pod.t Compress-Zlib-2.006/t/01version.t Compress-Zlib-2.006/t/14gzopen.t Compress-Zlib-2.006/t/compress/ Compress-Zlib-2.006/t/compress/CompTestUtils.pm Compress-Zlib-2.006/t/05examples.t Compress-Zlib-2.006/lib/ Compress-Zlib-2.006/lib/Compress/ Compress-Zlib-2.006/lib/Compress/Zlib.pm Compress-Zlib-2.006/Changes Compress-Zlib-2.006/MANIFEST Compress-Zlib-2.006/private/ Compress-Zlib-2.006/private/MakeUtil.pm Compress-Zlib-2.006/META.yml Compress-Zlib-2.006/pod/ Compress-Zlib-2.006/pod/FAQ.pod Compress-Zlib-2.006/README Compress-Zlib-2.006/Makefile.PL CPAN: File::Temp loaded ok (v0.18) CPAN.pm: Going to build P/PM/PMQS/Compress-Zlib-2.006.tar.gz Up/Downgrade not needed. Checking if your kit is complete... Looks good Warning: prerequisite IO::Compress::Base 2.006 not found. We have 2.005. Warning: prerequisite IO::Compress::Base::Common 2.006 not found. We have 2.005. Warning: prerequisite IO::Compress::Gzip 2.006 not found. Warning: prerequisite IO::Uncompress::Base 2.006 not found. We have 2.005. Warning: prerequisite IO::Uncompress::Gunzip 2.006 not found. Writing Makefile for Compress::Zlib cp lib/Compress/Zlib.pm blib/lib/Compress/Zlib.pm AutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib) Manifying blib/man3/Compress::Zlib.3 PMQS/Compress-Zlib-2.006.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/000prereq.....ok 1/6 # Failed test (t/000prereq.t at line 46) t/000prereq.....NOK 2/6# Tried to use 'IO::Compress::Base'. # Error: IO::Compress::Base version 2.006 required--this is only version 2.005 at (eval 5) line 2. # BEGIN failed--compilation aborted at t/000prereq.t line 46. # Failed test (t/000prereq.t at line 46) # Tried to use 'IO::Compress::Gzip'. # Error: IO::Compress::Base version 2.006 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10. # BEGIN failed--compilation aborted at t/000prereq.t line 46. # Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11. # BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11. # Compilation failed in require at (eval 17) line 2. # BEGIN failed--compilation aborted at (eval 17) line 2. t/000prereq.....NOK 3/6 # Failed test (t/000prereq.t at line 46) # Tried to use 'IO::Uncompress::Gunzip'. # Error: IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/IO/Uncompress/RawInflate.pm line 9. # BEGIN failed--compilation aborted at t/000prereq.t line 46. # Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/IO/Uncompress/Gunzip.pm line 12. # BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Uncompress/Gunzip.pm line 12. # Compilation failed in require at (eval 18) line 2. # BEGIN failed--compilation aborted at (eval 18) line 2. t/000prereq.....NOK 4/6# Looks like you failed 3 tests of 6. t/000prereq.....dubious Test returned status 3 (wstat 768, 0x300) DIED. FAILED tests 2-4 Failed 3/6 tests, 50.00% okay t/01version..... # Failed test (t/01version.t at line 23) t/01version.....NOK 1/2# Tried to use 'Compress::Zlib'. # Error: IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. # BEGIN failed--compilation aborted at t/01version.t line 23. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "ZLIB_VERSION" not allowed while "strict subs" in use at t/01version.t line 28. Bareword "Compress::Zlib::zlib_version" not allowed while "strict subs" in use at t/01version.t line 29. Execution of t/01version.t aborted due to compilation errors. # Looks like you planned 2 tests but only ran 1. # Looks like your test died just after 1. t/01version.....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay t/03zlib-v1..... # Failed test (t/03zlib-v1.t at line 35) # Tried to use 'Compress::Zlib'. # Error: IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. # BEGIN failed--compilation aborted at t/03zlib-v1.t line 35. # Compilation failed in require at (eval 27) line 2. # BEGIN failed--compilation aborted at (eval 27) line 2. t/03zlib-v1.....ok 2/394 # Failed test (t/03zlib-v1.t at line 38) # Tried to use 'IO::Compress::Gzip'. # Error: IO::Compress::Base version 2.006 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10. # BEGIN failed--compilation aborted at t/03zlib-v1.t line 38. # Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11. # BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11. # Compilation failed in require at (eval 29) line 2. # BEGIN failed--compilation aborted at (eval 29) line 2. t/03zlib-v1.....NOK 3/394Global symbol "$gzerrno" requires explicit package name at t/03zlib-v1.t line 1050. Bareword "Compress::Zlib::zlib_version" not allowed while "strict subs" in use at t/03zlib-v1.t line 50. Bareword "ZLIB_VERSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 50. Bareword "Z_BEST_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 126. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 147. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 153. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 158. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 160. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 169. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 177. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 177. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 181. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 192. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 204. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 206. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 218. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 229. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 229. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 233. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 248. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 253. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 262. Bareword "Z_BEST_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 269. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 275. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 277. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 284. Bareword "Z_BEST_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 307. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 310. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 312. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 321. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 327. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 554. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 560. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 565. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 567. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 578. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 585. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 585. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 589. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 605. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 608. Bareword "Z_FULL_FLUSH" not allowed while "strict subs" in use at t/03zlib-v1.t line 611. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 611. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 615. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 618. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 626. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 629. Bareword "Z_DATA_ERROR" not allowed while "strict subs" in use at t/03zlib-v1.t line 636. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 640. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 650. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 650. Bareword "Z_DATA_ERROR" not allowed while "strict subs" in use at t/03zlib-v1.t line 655. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 655. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 666. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 669. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 672. Bareword "Z_DATA_ERROR" not allowed while "strict subs" in use at t/03zlib-v1.t line 676. Bareword "Z_BEST_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 687. Bareword "Z_DEFAULT_STRATEGY" not allowed while "strict subs" in use at t/03zlib-v1.t line 687. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 690. Bareword "Z_BEST_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 692. Bareword "Z_DEFAULT_STRATEGY" not allowed while "strict subs" in use at t/03zlib-v1.t line 693. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 696. Bareword "Z_BEST_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 710. Bareword "Z_DEFAULT_STRATEGY" not allowed while "strict subs" in use at t/03zlib-v1.t line 711. Bareword "Z_BEST_SPEED" not allowed while "strict subs" in use at t/03zlib-v1.t line 714. Bareword "Z_HUFFMAN_ONLY" not allowed while "strict subs" in use at t/03zlib-v1.t line 714. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 715. Bareword "Z_BEST_SPEED" not allowed while "strict subs" in use at t/03zlib-v1.t line 717. Bareword "Z_HUFFMAN_ONLY" not allowed while "strict subs" in use at t/03zlib-v1.t line 718. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 721. Bareword "Z_NO_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 726. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 727. Bareword "Z_NO_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 729. Bareword "Z_HUFFMAN_ONLY" not allowed while "strict subs" in use at t/03zlib-v1.t line 730. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 733. Bareword "Z_FILTERED" not allowed while "strict subs" in use at t/03zlib-v1.t line 738. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 739. Bareword "Z_NO_COMPRESSION" not allowed while "strict subs" in use at t/03zlib-v1.t line 741. Bareword "Z_FILTERED" not allowed while "strict subs" in use at t/03zlib-v1.t line 742. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 745. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 749. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 757. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 761. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 817. Bareword "Z_OK" not allowed while "strict subs" in use at t/03zlib-v1.t line 823. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/03zlib-v1.t line 834. Execution of t/03zlib-v1.t aborted due to compilation errors. # Looks like you planned 394 tests but only ran 3. # Looks like your test died just after 3. t/03zlib-v1.....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1, 3-394 Failed 393/394 tests, 0.25% okay t/05examples....IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. BEGIN failed--compilation aborted at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. Compilation failed in require at t/05examples.t line 16. BEGIN failed--compilation aborted at t/05examples.t line 16. # Looks like your test died before it could output anything. t/05examples....dubious Test returned status 255 (wstat 65280, 0xff00) t/06gzsetp......IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. BEGIN failed--compilation aborted at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. Compilation failed in require at t/06gzsetp.t line 16. BEGIN failed--compilation aborted at t/06gzsetp.t line 16. # Looks like your test died before it could output anything. t/06gzsetp......dubious Test returned status 255 (wstat 65280, 0xff00) t/08encoding.... # Failed test (t/08encoding.t at line 33) # Tried to use 'Compress::Zlib'. # Error: IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. # BEGIN failed--compilation aborted at t/08encoding.t line 33. # Compilation failed in require at (eval 27) line 2. # BEGIN failed--compilation aborted at (eval 27) line 2. t/08encoding....NOK 1/29Bareword "Compress::Zlib::zlib_version" not allowed while "strict subs" in use at t/08encoding.t line 40. Bareword "ZLIB_VERSION" not allowed while "strict subs" in use at t/08encoding.t line 40. Execution of t/08encoding.t aborted due to compilation errors. # Looks like you planned 29 tests but only ran 1. # Looks like your test died just after 1. t/08encoding....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-29 Failed 29/29 tests, 0.00% okay t/14gzopen...... # Failed test (t/14gzopen.t at line 25) # Tried to use 'Compress::Zlib'. # Error: IO::Compress::Base::Common version 2.006 required--this is only version 2.005 at /root/.cpan/build/Compress-Zlib-2.006-CeLT7E/blib/lib/Compress/Zlib.pm line 11. # BEGIN failed--compilation aborted at t/14gzopen.t line 25. # Compilation failed in require at (eval 27) line 2. # BEGIN failed--compilation aborted at (eval 27) line 2. t/14gzopen......ok 2/250Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 49. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 53. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 56. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 59. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 66. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 94. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 97. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 100. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 104. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 111. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 111. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 117. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 118. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 480. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 481. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 499. Global symbol "$gzerrno" requires explicit package name at t/14gzopen.t line 502. Bareword "Compress::Zlib::zlib_version" not allowed while "strict subs" in use at t/14gzopen.t line 38. Bareword "ZLIB_VERSION" not allowed while "strict subs" in use at t/14gzopen.t line 38. Bareword "Z_FINISH" not allowed while "strict subs" in use at t/14gzopen.t line 98. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/14gzopen.t line 110. Bareword "Z_STREAM_END" not allowed while "strict subs" in use at t/14gzopen.t line 111. Bareword "Z_STREAM_ERROR" not allowed while "strict subs" in use at t/14gzopen.t line 446. Bareword "Z_STREAM_ERROR" not allowed while "strict subs" in use at t/14gzopen.t line 461. Execution of t/14gzopen.t aborted due to compilation errors. # Looks like you planned 250 tests but only ran 2. # Looks like your test died just after 2. t/14gzopen......dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1, 3-250 Failed 249/250 tests, 0.40% okay t/99pod.........skipped all skipped: Test::Pod 1.00 required for testing POD Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/000prereq.t 3 768 6 3 2-4 t/01version.t 255 65280 2 3 1-2 t/03zlib-v1.t 255 65280 394 784 1 3-394 t/05examples.t 255 65280 ?? ?? ?? t/06gzsetp.t 255 65280 ?? ?? ?? t/08encoding.t 255 65280 29 57 1-29 t/14gzopen.t 255 65280 250 497 1 3-250 1 test skipped. Failed 7/8 test scripts. 676/681 subtests failed. Files=8, Tests=681, 0 wallclock secs ( 0.58 cusr + 0.07 csys = 0.65 CPU) Failed 7/8 test programs. 676/681 subtests failed. make: *** [test_dynamic] Error 255 PMQS/Compress-Zlib-2.006.tar.gz /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Failed during this command: PMQS/Compress-Zlib-2.006.tar.gz : make_test NO ######################################## Chris Turner
