record of the failure to build: 19:11:02 (156.75 KB/s) - `/usr/portage/distfiles/libwww-perl-5.76.tar.gz' saved [216275/216275] >>> md5 src_uri ;-) libwww-perl-5.76.tar.gz perl-module >>> Unpacking source... >>> Unpacking libwww-perl-5.76.tar.gz to /mnt/bigdisk1/tmp/portage/libwww-perl-5 .76/work >>> Source unpacked. perl-module You appear to be directly connected to the Internet. I have some tests that tries to access some sites on the net to verify that the new HTTP/1.1 support works as it should. Do you want to enable these tests? [y] This package comes with some sample programs that I can try to install in /usr/bin. Note that you can avoid these questions by passing the '-n' option to 'Makefile.PL'. Do you want to install lwp-request? [y] Do you want to install lwp-mirror? [y] D o you want to install lwp-rget? [y] Do you want to install lwp-download? [y] The lwp-request program will use the name it is invoked with to determine what HTTP method to use. I can set up alias for the most common HTTP methods. These alias are also installed in /usr/bin. Do you want to install the GET alias? [y] Do you want to install the HEAD alias? [y] Do you want to install the POST alias? [y] Checking for URI........... ok Checking for HTML::Parser.. ok Checking for MIME::Base64.. ok Checking for Net::FTP...... ok Checking for Digest::MD5 .. ok Checking if your kit is complete... Looks good Writing Makefile for libwww-perl yes: standard output: Broken pipe yes: write error cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm cp lib/LWP/Authen/Ntlm.pm blib/lib/LWP/Authen/Ntlm.pm cp lib/LWP.pm blib/lib/LWP.pm cp lib/HTTP/Headers/ETag.pm blib/lib/HTTP/Headers/ETag.pm cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm cp lwptut.pod blib/lib/lwptut.pod cp lib/HTTP/Request/Common.pm blib/lib/HTTP/Request/Common.pm cp lib/HTTP/Message.pm blib/lib/HTTP/Message.pm cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm cp lib/HTML/Form.pm blib/lib/HTML/Form.pm cp lib/HTTP/Cookies/Netscape.pm blib/lib/HTTP/Cookies/Netscape.pm cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm cp lib/Net/HTTP/NB.pm blib/lib/Net/HTTP/NB.pm cp lib/HTTP/Status.pm blib/lib/HTTP/Status.pm cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.pm cp lib/Net/HTTPS.pm blib/lib/Net/HTTPS.pm cp lib/HTTP/Headers/Util.pm blib/lib/HTTP/Headers/Util.pm cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm cp lib/HTTP/Cookies/Microsoft.pm blib/lib/HTTP/Cookies/Microsoft.pm cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm cp lib/LWP/Protocol/https10.pm blib/lib/LWP/Protocol/https10.pm cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm cp lib/HTTP/Headers/Auth.pm blib/lib/HTTP/Headers/Auth.pm cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm cp lib/Net/HTTP.pm blib/lib/Net/HTTP.pm cp lib/LWP/media.types blib/lib/LWP/media.types cp lib/HTTP/Daemon.pm blib/lib/HTTP/Daemon.pm cp lib/HTTP/Cookies.pm blib/lib/HTTP/Cookies.pm cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm cp lib/File/Listing.pm blib/lib/File/Listing.pm cp lib/WWW/RobotRules/AnyDBM_File.pm blib/lib/WWW/RobotRules/AnyDBM_File.pm cp lib/LWP/MediaTypes.pm blib/lib/LWP/MediaTypes.pm cp lwpcook.pod blib/lib/lwpcook.pod cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm cp lib/HTTP/Date.pm blib/lib/HTTP/Date.pm cp lib/LWP/Protocol/http10.pm blib/lib/LWP/Protocol/http10.pm cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.pm cp lib/HTTP/Request.pm blib/lib/HTTP/Request.pm cp lib/HTTP/Negotiate.pm blib/lib/HTTP/Negotiate.pm cp lib/WWW/RobotRules.pm blib/lib/WWW/RobotRules.pm cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm cp lib/HTTP/Response.pm blib/lib/HTTP/Response.pm cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm cp lib/HTTP/Headers.pm blib/lib/HTTP/Headers.pm cp lib/LWP/Protocol/https.pm blib/lib/LWP/Protocol/https.pm cp lib/Net/HTTP/Methods.pm blib/lib/Net/HTTP/Methods.pm cp lib/Bundle/LWP.pm blib/lib/Bundle/LWP.pm cp bin/GET blib/script/GET /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/GET cp bin/POST blib/script/POST /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/POST cp bin/HEAD blib/script/HEAD /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/HEAD cp bin/lwp-mirror blib/script/lwp-mirror /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/lwp-mirror cp bin/lwp-download blib/script/lwp-download /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/lwp-download cp bin/lwp-rget blib/script/lwp-rget /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/lwp-rget cp bin/lwp-request blib/script/lwp-request /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/lwp-request Manifying blib/man1/GET.1 Manifying blib/man1/POST.1 Manifying blib/man1/HEAD.1 Manifying blib/man1/lwp-mirror.1 Manifying blib/man1/lwp-download.1 Manifying blib/man1/lwp-rget.1 Manifying blib/man1/lwp-request.1 Manifying blib/man3/LWP::RobotUA.3pm Manifying blib/man3/LWP::Authen::Ntlm.3pm Manifying blib/man3/LWP.3pm Manifying blib/man3/LWP::Protocol.3pm Manifying blib/man3/HTTP::Request::Common.3pm Manifying blib/man3/lwptut.3pm Manifying blib/man3/HTTP::Message.3pm Manifying blib/man3/HTML::Form.3pm Manifying blib/man3/HTTP::Cookies::Netscape.3pm Manifying blib/man3/Net::HTTP::NB.3pm Manifying blib/man3/HTTP::Status.3pm Manifying blib/man3/HTTP::Headers::Util.3pm Manifying blib/man3/HTTP::Cookies::Microsoft.3pm Manifying blib/man3/LWP::UserAgent.3pm Manifying blib/man3/LWP::MemberMixin.3pm Manifying blib/man3/LWP::Debug.3pm Manifying blib/man3/Net::HTTP.3pm Manifying blib/man3/HTTP::Daemon.3pm Manifying blib/man3/HTTP::Cookies.3pm Manifying blib/man3/LWP::ConnCache.3pm Manifying blib/man3/File::Listing.3pm Manifying blib/man3/WWW::RobotRules::AnyDBM_File.3pm Manifying blib/man3/lwpcook.3pm Manifying blib/man3/LWP::MediaTypes.3pm Manifying blib/man3/HTTP::Date.3pm Manifying blib/man3/WWW::RobotRules.3pm Manifying blib/man3/HTTP::Negotiate.3pm Manifying blib/man3/HTTP::Request.3pm Manifying blib/man3/LWP::DebugFile.3pm Manifying blib/man3/HTTP::Response.3pm Manifying blib/man3/HTTP::Headers.3pm Manifying blib/man3/LWP::Simple.3pm Manifying blib/man3/Bundle::LWP.3pm /usr/bin/perl t/TEST 0 base/common-req........ok base/cookies...........ok base/date..............ok base/headers-auth......ok base/headers-etag......ok base/headers-util......ok base/headers...........ok base/http..............ok base/listing...........ok base/mediatypes........ok base/message...........ok base/negotiate.........ok base/protocols.........ok base/response..........ok base/status............ok base/ua................ok html/form-param........ok html/form..............ok robot/rules-dbm......../usr/bin/perl: relocation error: /usr/lib/perl5/5.8.2/i68 6-linux/auto/NDBM_File/NDBM_File.so: undefined symbol: dbm_open robot/rules-dbm........dubious Test returned status 127 (wstat 32512, 0x7f00) robot/rules............ok robot/ua-get...........ok robot/ua...............ok local/autoload-get.....ok local/autoload.........ok local/get..............ok local/http-get.........ok local/http.............ok local/protosub.........ok live/activestate.......ok live/apache-listing....ok live/jigsaw-auth-b.....ok live/jigsaw-auth-d.....ok live/jigsaw-chunk......ok live/jigsaw-md5-get....ok live/jigsaw-md5........ok live/jigsaw-neg-get....ok live/jigsaw-neg........ok live/jigsaw-te.........skipped all skipped: no reason given live/validator.........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- robot/rules-dbm.t 127 32512 ?? ?? % ?? 1 test skipped. Failed 1/39 test scripts, 97.44% okay. 0/402 subtests failed, 100.00% okay. make: *** [test] Error 255 !!! ERROR: dev-perl/libwww-perl-5.76 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! (no error message) emerge info --output !Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.6.0-test11-mm1) ================================================================= System uname: 2.6.0-test11-mm1 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/bigdisk1/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib jack java javascript jpeg kde libg++ libgda libwww mad mikmod motif mozilla mpeg ncurses nls ofx oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd transcode truetype usb v4l x86 xinerama xml xml2 xmms xv zlib" dbm test fails and kills build .. any way to turn this off or is it necessary?
I just reran emerge perl and noticed that the test for open_dbm fails there also thus NDBM_File fails to get built. thus the libwww-perl-5.76 build fails although perl builds fine without it. derk
I'm getting the same result, only with a different error: live/activestate.......EOF instead of response status line at ../blib/lib/Net/HTTP/Methods.pm line 300. live/activestate.......dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay live/apache-listing....ok live/jigsaw-auth-b.....ok live/jigsaw-auth-d.....ok live/jigsaw-chunk......Use of uninitialized value in string eq at live/jigsaw-chunk.t line 14. live/jigsaw-chunk......FAILED test 2 Failed 1/5 tests, 80.00% okay live/jigsaw-md5-get....FAILED test 2 Failed 1/2 tests, 50.00% okay live/jigsaw-md5........FAILED test 2 Failed 1/2 tests, 50.00% okay live/jigsaw-neg-get....ok live/jigsaw-neg........ok live/jigsaw-te.........skipped all skipped: no reason given live/validator.........FAILED test 2 Failed 1/2 tests, 50.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- live/activestate.t 255 65280 2 3 150.00% 1-2 live/jigsaw-chunk.t 5 1 20.00% 2 live/jigsaw-md5-get.t 2 1 50.00% 2 live/jigsaw-md5.t 2 1 50.00% 2 live/validator.t 2 1 50.00% 2 1 test skipped. Failed 5/39 test scripts, 87.18% okay. 6/415 subtests failed, 98.55% okay. make: *** [test] Error 255 !!! ERROR: dev-perl/libwww-perl-5.76 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! (no error message)
running the rebuilder script in the portage perl files directory has no effect on this either. Note: I do have the berkleyDB use flag and the GDBM use flags set. Do I have to rebuild db-1.XX in order to make this work?
I'm torn as to what to do with tests. I understand that it's frustrating when things don't compile, but personally I don't like the feeling that something's installed, but not totally functional. You can comment out the line in the ebuild that calls the tests if you like. For the one with the dbm_open problem, I'd try remerging gdbm and then perl. Here, libgdbm.so.2 provides that dbm_open symbol to NDBM_File.so.
ok the recompile of gdbm worked and fixed the problem .. now the question arises in portage-ng would the ebuild be arranged to auto-fix these kind of problems by tracing back the required files and recompiling them .. the poor person who doesn't tinker with the ebuilds or attempt to fix stuff would be stuck .. It's a pity there wasn't a script to do just that .. just based on ebuild dependencies .. or is there and I just don't know about it. revdep-rebuild does not fit the bill for this and the -e or -emptytree flag is over kill. It's a pity that a selection of depth of dependancy wasn't available for the -e flag .. ie. so gcc, glibc and friends don't get rebuilt when using it
Created attachment 22646 [details] output of emerge libwww-perl on sparc
Seeing this on sparc as well, though the errors are a bit different. See attachment for emerge log.
noticed on one box that is not internet connected but is network connected that several tests fail and thus the build fails .. internet connectivity test is not quite up to snuff ..
On x86 machine with 2.6 kernel headers a rebuild of perl and all the modules and gdbm did not solve the problem.
I've got 3 boxes with 2.6 kernels with 2.6 headers installed.. rebuilt gcc, glibc, ran perl-rebuilder script and rebuilt gdbm and perl and libwww-perl installs fine except as noted above for the non-internet connected box. make sure gdbm is rebuilt before perl is rebuilt. ( if you are really paraniod rebuild libperl as well after gdbm)
I have a 2.6 machine also, and I rebuilt all the packages listed in #10 and emerge of libwww-perl still failed for the same reasons.
ditto
make sure you are using latest version of 2.6.0 headers .. it had more fixes added recently .. since it is an alpha level (i.e. masked ebuild -* ) the revision number does not get changed as changes are made. Check the build version number inside the ebuild or the number of patches listed in /linux-headers/files or the ebuild periodically to keep up to date .. some recent patches are not mentioned in the change log since it is still alpha .. or so I assume.
My failure's different: Here's the relevant portion of output (every other test works fine): robot/rules-dbm........ok robot/rules............ok robot/ua-get...........HTTP Server terminated robot/ua-get...........FAILED tests 1-3, 5, 7 Failed 5/8 tests, 37.50% okay robot/ua...............HTTP Server terminated robot/ua...............FAILED tests 1-3, 5, 7 Failed 5/7 tests, 28.57% okay local/autoload-get.....ok local/autoload.........ok local/get..............ok local/http-get.........HTTP Server terminated local/http-get.........NOK 7Can't call method "is_redirect" on an undefined value at local/http-get.t line 216, <DAEMON> line 1. local/http-get.........dubious Test returned status 115 (wstat 29440, 0x7300) DIED. FAILED tests 1-19 Failed 19/19 tests, 0.00% okay local/http.............HTTP Server terminated local/http.............NOK 7Can't call method "is_redirect" on an undefined value at local/http.t line 189, <DAEMON> line 1. local/http.............dubious Test returned status 115 (wstat 29440, 0x7300) DIED. FAILED tests 1-18 Failed 18/18 tests, 0.00% okay local/protosub.........ok live/activestate.......ok live/apache-listing....ok live/jigsaw-auth-b.....ok live/jigsaw-auth-d.....ok live/jigsaw-chunk......ok live/jigsaw-md5-get....ok live/jigsaw-md5........ok live/jigsaw-neg-get....ok live/jigsaw-neg........ok live/jigsaw-te.........skipped all skipped: no reason given live/validator.........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- local/http-get.t 115 29440 19 30 157.89% 1-19 local/http.t 115 29440 18 28 155.56% 1-18 robot/ua-get.t 8 5 62.50% 1-3 5 7 robot/ua.t 7 5 71.43% 1-3 5 7 1 test skipped. Failed 4/39 test scripts, 89.74% okay. 47/415 subtests failed, 88.67% okay. make: *** [test] Error 255 !!! ERROR: dev-perl/libwww-perl-5.76 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! (no error message) Is there a package I should try re-emerging to fix this? Thanks, Eric
I am using kernel 2.6 and this also fails for me. I added my ip to /etc/hosts (hint from forums, but it still fails. 1. What line would I edit to install anyway?, (even with errors) I am building a mythtv box and libwww-perl is a required dep. 2. I am not sure what the exact ip address should be as I am behind multiple routers? ---- my flags and such System uname: 2.6.0-gentoo i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb cdr crypt cups directfb dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x x86 xml2 xmms xv zlib"
I get the exact same results as Mr. Livingston from comment #14. However, forcing an install of libwww-perl-5.69-r1 from the .ebuild file worked for me to get past it so I could install HTML-Mason. I'm going to test upgrading it to -r2 to see if it works now.
After attempting an emerge -uDv libwww-perl, I got the same errors again. They are posted below: robot/rules-dbm.......ok robot/rules...........ok robot/ua-get..........NOK 1HTTP Server terminated robot/ua-get..........FAILED tests 1-3, 5, 7 Failed 5/7 tests, 28.57% okay robot/ua..............NOK 1HTTP Server terminated robot/ua..............FAILED tests 1-3, 5, 7 Failed 5/7 tests, 28.57% okay local/autoload-get....ok local/autoload........ok local/get.............ok local/http-get........NOK 5HTTP Server terminated local/http-get........NOK 7Can't call method "is_redirect" on an undefined value at local/http-get.t line 214, <DAEMON> line 1. local/http-get........dubious Test returned status 113 (wstat 28928, 0x7100) DIED. FAILED tests 1-19 Failed 19/19 tests, 0.00% okay local/http............NOK 5HTTP Server terminated local/http............NOK 7Can't call method "is_redirect" on an undefined value at local/http.t line 188, <DAEMON> line 1. local/http............dubious Test returned status 113 (wstat 28928, 0x7100) DIED. FAILED tests 1-18 Failed 18/18 tests, 0.00% okay local/protosub........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- local/http-get.t 113 28928 19 30 157.89% 1-19 local/http.t 113 28928 18 28 155.56% 1-18 robot/ua-get.t 7 5 71.43% 1-3 5 7 robot/ua.t 7 5 71.43% 1-3 5 7 Failed 4/26 test scripts, 84.62% okay. 47/343 subtests failed, 86.30% okay. make: *** [test] Error 29 !!! ERROR: dev-perl/libwww-perl-5.69-r2 failed. !!! Function src_compile, Line 27, Exitcode 2 !!! (no error message)
The HTTP Server errors might be caused by bad dnslookup. I hade those errors but when i set up my hostname in /etc/hosts the problem went away because the test was using my hostname to bind and the hostname wasn't available for lookup.
yup that's it .. I did have the short name in hosts but it really wants the long form as well in the localhost line as well. 127.0.0.1 localhost hostname hostname.domain.xxx #... additional aliases also existed ... for local network etc. 192.168.0.1 hostname hostname.domain.xxx # etc... perhaps a short note as an ewarn is inorder if the tests fail...
The comments in #19 worked for me. It's a good suggestion to including checking the hosts file if these tests fail.
Bumped some dependencies to newer versions on sparc and libwww-perl-5.69-r2 to stable. Weeve/perl devs: all tests pass ok on sparc for me.
The instructions in comment 19 make this work...but I wonder why the previous build worked even if the hosts file was b0rked...
*** Bug 38965 has been marked as a duplicate of this bug. ***
Created attachment 24210 [details] Ebuild that checks for absence of short host name in /etc/hosts This ebuild adds some code to check for the absence of the hostname in /etc/hosts, and dies with a helpful message if this is the case.
Created attachment 24311 [details] libwww-perl fails tests 2.6.1 kernel i686 AMD Athlon(TM) XP machine
Re-merging HTML-Parser fixed this for me.
Working fine here for me on sparc now :)
Most people whose host name appears in /etc/hosts won't have this problem. This fix only adds a few lines that checks to make sure that whatever the command `hostname` returns will resolve to an IP address for one or more of the tests to work.
I've just had the same her eon a blank machine during install. Machine was booted on DHCP and has a functional DNS in resolv.conf, but tests feils unless the machine's name is present in /etc/hosts. Manually adding the line in hosts made everythign build nicely.
Why hasn't anyone taken the modified ebuild I contributed (attachment id=24210, below) and released it for portage? It will quit with a warning if it does not find the host name in /etc/hosts which may help at least some people.
ask the perl guys :P
Making sure that your ip & hostname are in the /etc/hosts resolves the problem (running on x86/2.6.1) xming
*** Bug 43145 has been marked as a duplicate of this bug. ***
first I had 198.168.0.1 hostname.localdomain.com which I changed to 127.0.0.1 hostname problem solved I second the recommendation of putting in a warning. It only has to be displayed when the tests fail. "Btw, you should check host/dns setup..." Second perhaps more a verbose explaination on how to setup dns of a standalone workstation? This should catch the problem at its source - configuration.
Just so you don't think the perl devs are absent in this discussion... We've talked it over and agree whole heartedly that placing a make test || ewarn... block makes the best sense. There are a lot of reasons that the tests can fail, and most of them have nothing to do with the integrity/operability of the module itself, but rather with the quirks of your network setup (your not connected to the net except for emerge -f's; you haven't setup your hosts table; there is no dns server; your lines got snipped by squirrels; etc.). One of the issues (and this isn't specific to libwww-perl, but in general) is that the tests are written by the module authors. Sometimes those tests are good, sometimes not so much (try and follow the pod examples for some modules to see this in action - again, not libwww specific). Libwww is too core of a perl module for so many other apps and modules to allow it to be a blocker like this, especially when the grounds are rarely justified. As has been suggested elsewhere in this bug, we plan on adding a few ewarns that outline possible reasons that the tests failed, but continuing on with the installation. Comments?
*** Bug 44259 has been marked as a duplicate of this bug. ***
OK, sorry for the delay in this. Committed this morning were revisions to 5.69-r2 and 5.76. I have been able to dup all of the errors here by either A)providing a blank /etc/hosts file, which is equivelant to a malformed /etc/hosts and by B) disabling all of me eth/wlan devices, which also kills about half the tests. The ebuild will now continue regardless of test status, but should the tests have failed it will display (and pause) a friendly warning message indicating that some of the tests failed, possible causes, etc. I am going to mark this bug closed for now, should you have problems with libwww-perl *after* it is installed, please either open a new bug or reopen this bug. Thanks, -mike