15d84
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I just downloaded FreeBSD 9.0 amd64 and am using it to set up a home server. I've hit a snag trying to install Perl 5.14 from the lang/perl5.14 port.
The port will compile correctly, but it fails the make test suite. Here are the errors from the test suite: Code:
# Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
# at t/01_Archive-Extract.t line 456.
# Failed test 'Found correct number of output files ()'
# at t/01_Archive-Extract.t line 469.
# got: '0'
# expected: '2'
# Failed test 'Found correct output file 'x/w''
# at t/01_Archive-Extract.t line 476.
# got: undef
# expected: 'x/w'
# Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x/w' exists'
# at t/01_Archive-Extract.t line 479.
# Failed test 'Extract dir found'
# at t/01_Archive-Extract.t line 481.
# Failed test 'Extract dir exists'
# at t/01_Archive-Extract.t line 483.
# Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x''
# at t/01_Archive-Extract.t line 485.
# got: undef
# expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x'
# Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
# at t/01_Archive-Extract.t line 456.
# Failed test 'Found correct number of output files ()'
# at t/01_Archive-Extract.t line 469.
# got: '0'
# expected: '2'
# Failed test 'Found correct output file 'x/w''
# at t/01_Archive-Extract.t line 476.
# Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x/w' exists'
# at t/01_Archive-Extract.t line 479.
# Failed test 'Extract dir found'
# at t/01_Archive-Extract.t line 481.
# Failed test 'Extract dir exists'
# at t/01_Archive-Extract.t line 483.
# Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x''
# at t/01_Archive-Extract.t line 485.
# got: undef
# expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x'
# Failed test 'extract() for 'y.jar' reports success (PP: 0 Bin: 1)'
# at t/01_Archive-Extract.t line 456.
# Failed test 'Found correct number of output files ()'
# at t/01_Archive-Extract.t line 469.
# got: '0'
# expected: '2'
# Failed test 'Found correct output file 'y/z''
# at t/01_Archive-Extract.t line 476.
# got: undef
# expected: 'y/z'
# Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y/z' exists'
# at t/01_Archive-Extract.t line 479.
# Failed test 'Extract dir found'
# at t/01_Archive-Extract.t line 481.
# Failed test 'Extract dir exists'
# at t/01_Archive-Extract.t line 483.
# Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y''
# at t/01_Archive-Extract.t line 485.
# got: undef
# expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y'
# Failed test 'extract() for 'y.jar' reports success (PP: 0 Bin: 1)'
# at t/01_Archive-Extract.t line 456.
# Failed test 'Found correct number of output files ()'
# at t/01_Archive-Extract.t line 469.
# got: '0'
# expected: '2'
# Failed test 'Found correct output file 'y/z''
# at t/01_Archive-Extract.t line 476.
# got: undef
# expected: 'y/z'
# Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y/z' exists'
# at t/01_Archive-Extract.t line 479.
# Failed test 'Extract dir found'
# at t/01_Archive-Extract.t line 481.
# Failed test 'Extract dir exists'
# at t/01_Archive-Extract.t line 483.
# Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y''
# at t/01_Archive-Extract.t line 485.
# got: undef
# expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y'
^M../cpan/Archive-Extract/t/01_Archive-Extract.t .................... 218/?
# Failed test 'extract() for 'y.zip' reports success (PP: 0 Bin: 1)'
# at t/01_Archive-Extract.t line 456.
# Failed test 'Found correct number of output files ()'
# at t/01_Archive-Extract.t line 469.
# got: '0'
# expected: '2'
# Failed test 'Found correct output file 'y/z''
# at t/01_Archive-Extract.t line 476.
# got: undef
# expected: 'y/z'
# Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y/z' exists'
# at t/01_Archive-Extract.t line 479.
# Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out''
# at t/01_Archive-Extract.t line 485.
# got: undef
# expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out'
^M../cpan/Archive-Extract/t/01_Archive-Extract.t .................... 1066/? # Looks like you failed 98 tests of 1560.
^M ^M../cpan/Archive-Extract/t/01_Archive-Extract.t
.................... Dubious, test returned 98 (wstat 25088, 0x6200)
Failed 98/1560 subtests
(less 478 skipped subtests: 984 okay)
Code:
Test Summary Report
-------------------
../cpan/Archive-Extract/t/01_Archive-Extract.t (Wstat: 25088 Tests: 1560 Failed: 98)
Failed tests: 87, 89-94, 98, 100-105, 111, 113-118, 122
124-129, 255, 257-262, 266, 268-273, 495
497-502, 506, 508-513, 663, 665-670, 674
676-681, 759, 761-766, 770, 772-777, 831
833-838, 842, 844-849
Non-zero exit status: 98
../ext/POSIX/t/posix.t (Wstat: 0 Tests: 66 Failed: 0)
TODO passed: 11
Files=2089, Tests=464818, 816 wallclock secs (49.34 usr 8.55 sys + 433.38 cusr 57.27 csys = 548.54 CPU)
Result: FAIL
*** Error code 98
Stop in /usr/ports/lang/perl5.14/work/perl-5.14.2.
*** Error code 1
Stop in /usr/ports/lang/perl5.14.
The only other ports I've installed are shells/bash, editors/nano and maybe archivers/zip. Here's the current listing from pkg_info: Code:
bash-4.2.20 The GNU Project's Bourne Again SHell bison-2.5,1 A parser generator from FSF, (mostly) compatible with Yacc gettext-0.18.1.1 GNU gettext package libiconv-1.13.1_1 A character set conversion library libtool-2.4.2 Generic shared library support script m4-1.4.16,1 GNU m4 nano-2.2.6 Nano's ANOther editor, an enhanced free Pico clone portaudit-0.5.17 Checks installed ports against a list of security vulnerabi unzip-6.0_1 List, test and extract compressed files in a ZIP archive zip-3.0 Create/update ZIP files compatible with pkzip Last edited by DutchDaemon; February 13th, 2012 at 02:32. |
|
#2
|
|||
|
|||
|
Hi,
I just want to confirm the similar problem on two newly installed servers. - #1: running FreeBSD 9.0-RELEASE amd64. Succcessful threaded Perl 5.14.2 compilation, but # make test fails;- #2: running FreeBSD 9.0-RELEASE i386. Successful threaded Perl 5.14.2 compilation, # make test fails. The same result on this server with threaded Perl 5.12.4.Please help! |
|
#3
|
|||
|
|||
|
After some more digging, I've found that modifying the file 01_Archive-Extract.t from:
Code:
use_ok($Class); Code:
BEGIN { use_ok($Class) };
Code:
Use of uninitialized value $module in concatenation (.) or string at /usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/../../lib/Test/More.pm line 853. Use of uninitialized value $module in concatenation (.) or string at /usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/../../lib/Test/More.pm line 861. ../cpan/Archive-Extract/t/01_Archive-Extract.t .................... 1/? # Failed test 'use ;' # at t/01_Archive-Extract.t line 41. Use of uninitialized value $module in concatenation (.) or string at /usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/../../lib/Test/More.pm line 867. # Tried to use ''. # Error: syntax error at (eval 11) line 2, near "use @" Can't locate object method "have_old_bunzip2" via package "Archive::Extract" at t/01_Archive-Extract.t line 215. # Looks like you failed 1 test of 1. # Looks like your test exited with 255 just after 1. ../cpan/Archive-Extract/t/01_Archive-Extract.t .................... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests Again, any help is appreciated. Last edited by DutchDaemon; February 14th, 2012 at 00:55. |
|
#4
|
|||
|
|||
|
I need to emphasize this error occured twice on two fresh installed servers from scratch. The only commands executed there after initial install were to install
cvsup-without-gui and to upgrade the port tree via cvsup ports-supfileOn the other hand on binary upgraded third i386 platform from 8.2-RELEASE-p6 to 9.0-RELEASE by using freebsd-update -r 9.0-RELEASE upgrade recompiling the userland with portupgrade -af returned no errors at all.
Last edited by DutchDaemon; February 15th, 2012 at 00:14. Reason: re-read: proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#5
|
|||
|
|||
|
Anybody have any ideas on this? I've been trying to solve it for the past three days now and am not making any progress.
|
|
#6
|
|||
|
|||
|
Maybe all the users are installing precompiled Perl package on FreeBSD 9.0-RELEASE...
|
|
#7
|
||||
|
||||
|
Port builds, installs and works fine.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#8
|
|||
|
|||
|
Long story short... Archive::Extract(3) expects the more common "InfoZIP" version of 'unzip' to be in the base system, while FreeBSD (since 8.0) has taken that name for its own lite version of the command.
*IF* having Archive::Extract work for typical .zip files is important to you or your users: 1) Install the archivers/unzip port 2) Set your PATH variable so that /usr/local/bin is read prior to /usr/bin, or otherwise munge the files' names/locations in such a way that which(1/builtin) returns the InfoZIP version. rehash, hash -r, or what as needed. 3) Reinstall lang/perl5.XX 4) Rerun "make test" to verify Step (2) is necessary because Archive::Extract is really pretty dumb, and there isn't much of any way around it that I can see. Good luck! Last edited by DutchDaemon; March 9th, 2012 at 01:08. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#9
|
|||
|
|||
|
Thank you very much richdawes! It works this way.
|
|
#10
|
||||
|
||||
|
@mattruut - does this solve things for you as well?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#11
|
|||
|
|||
|
richdawes is correct, this is due to /usr/bin/unzip not supporting the -Z1 flag and really only important if you care about having Archive::Extract work. I recently submitted a change to add support for this and it was committed and MFC'd to stable/8 and stable/9. Using the latest and greatest should fix it, as does having the archivers/unzip port installed. Another potential work around is to install a newer version of Archive::Extract from the archivers/p5-Archive-Extract port.
Last edited by DutchDaemon; April 16th, 2012 at 15:53. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Error while installing awesome wm on FreeBSD AMD64 | mnjagadeesh | Installation and Maintenance of FreeBSD Ports or Packages | 2 | October 11th, 2011 10:35 |
| Installing FreeBSD 8.2 amd64 on Thinkpad W520 hangs on atkbd0 | ipyakuza | Mobile Computing | 3 | August 12th, 2011 17:07 |
| installing wine on FreebSD 7.2 amd64 | jemate18 | Installation and Maintenance of FreeBSD Ports or Packages | 14 | February 24th, 2010 03:49 |
| Installing FreeBSD-7.2-amd64 to USB Pen Drive | venomous | Installing & Upgrading | 1 | January 4th, 2010 17:47 |
| Build threaded perl option, would you want to as a SOP for installing perl? | johnblue | Installation and Maintenance of FreeBSD Ports or Packages | 1 | April 12th, 2009 10:15 |