Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36405 - libwww-perl-5.69-r2 fails during compile test sequence
Summary: libwww-perl-5.69-r2 fails during compile test sequence
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-23 18:52 UTC by teidakankan
Modified: 2004-01-25 13:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description teidakankan 2003-12-23 18:52:22 UTC
see below

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




bash-2.05b# emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10p1
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -mfpmath=sse -pipe"
DISTDIR="/mnt/maxlin/distfiles"
FEATURES="sandbox autoaddcvs ccache"
GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO ftp://gg3.net/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif gtk2 jpeg libg++ mad
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
alsa gdbm berkdb slang readline arts tetex aalib bonobo svga ggi tcltk java
guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt
kde motif opengl ldap scanner cdr dvd mozilla mmx sse"


>>> emerge (1 of 1) dev-perl/libwww-perl-5.69-r2 to /
>>> md5 src_uri ;-) libwww-perl-5.69.tar.gz
>>> Unpacking source...
>>> Unpacking libwww-perl-5.69.tar.gz to /var/tmp/portage/libwww-perl-5.69-r2/work
>>> Source unpacked.

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]
Do 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/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/HTTP/Message.pm blib/lib/HTTP/Message.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/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/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.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/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.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/http10.pm blib/lib/LWP/Protocol/http10.pm
cp lib/HTTP/Date.pm blib/lib/HTTP/Date.pm
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.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/WWW/RobotRules.pm blib/lib/WWW/RobotRules.pm
cp lib/HTTP/Request.pm blib/lib/HTTP/Request.pm
cp lib/HTTP/Negotiate.pm blib/lib/HTTP/Negotiate.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/HTTP::Status.3pm
Manifying blib/man3/Net::HTTP::NB.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/LWP::MediaTypes.3pm
Manifying blib/man3/lwpcook.3pm
Manifying blib/man3/HTTP::Date.3pm
Manifying blib/man3/LWP::DebugFile.3pm
Manifying blib/man3/WWW::RobotRules.3pm
Manifying blib/man3/HTTP::Request.3pm
Manifying blib/man3/HTTP::Negotiate.3pm
Manifying blib/man3/HTTP::Response.3pm
Manifying blib/man3/LWP::Simple.3pm
Manifying blib/man3/HTTP::Headers.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.......
The MediaTypes test might fail because you have a private ~/.mime.types file
If you get a failed test, try to move it away while testing.
base/mediatypes.......ok                                                     
base/message..........ok                                                     
base/negotiate........ok                                                     
base/response.........ok                                                     
base/status...........ok                                                     
base/ua...............ok                                                     
html/form.............ok                                                     
robot/rules-dbm.......ok                                                     
robot/rules...........ok                                                     
robot/ua-get..........NOK 7HTTP Server terminated                            
robot/ua-get..........FAILED tests 1-3, 5, 7                                 
        Failed 5/7 tests, 28.57% okay
robot/ua..............NOK 7HTTP 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 7Can't call method "is_redirect" on an undefined value
at local/http-get.t line 214, <DAEMON> line 1.
local/http-get........NOK 8HTTP Server terminated                            
local/http-get........dubious                                                
        Test returned status 22 (wstat 5632, 0x1600)
DIED. FAILED tests 1-19
        Failed 19/19 tests, 0.00% okay
local/http............NOK 7Can't call method "is_redirect" on an undefined value
at local/http.t line 188, <DAEMON> line 1.
local/http............NOK 8HTTP Server terminated                            
local/http............dubious                                                
        Test returned status 22 (wstat 5632, 0x1600)
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   22  5632    19   30 157.89%  1-19
local/http.t       22  5632    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)
Comment 1 teidakankan 2003-12-23 18:54:34 UTC
Sorry about the title typo.  Should be:

libwww-perl-5.69-r2 fails during compile test sequence
Comment 2 Greg Watson (linuxkrn) 2003-12-23 20:38:28 UTC
Same problem with version 5.76.

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                  8    5  62.50%  1-3 5 7
robot/ua.t                      7    5  71.43%  1-3 5 7
Failed 4/39 test scripts, 89.74% okay. 47/419 subtests failed, 88.78% okay.
make: *** [test] Error 255

!!! ERROR: dev-perl/libwww-perl-5.76 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! (no error message)

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.6.0)
=================================================================
System uname: 2.6.0 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -funroll-loops -fomit-frame-pointer -mfpmath=sse"
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.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -funroll-loops -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ ftp://mirror.iawnet.sandia.gov/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups dga dvb dvd encode foomaticdb gdbm ggi gif gphoto2 gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mad mbox mikmod mmx motif mozilla mpeg nas ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang snmp spell sse sse2 ssl svga tcltk tcpd tetex tiff truetype v4l x86 xinerama xml xml2 xmms xv zlib zvbi"

Comment 3 John Freeman 2003-12-26 23:43:53 UTC
I also have encountered this problem.

Error message:

Failed Test      Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
local/http-get.t  127 32512    19   38 200.00%  1-19
local/http.t      127 32512    18   36 200.00%  1-18
robot/ua-get.t    127 32512     7   14 200.00%  1-7
robot/ua.t        127 32512     7   14 200.00%  1-7
Failed 4/26 test scripts, 84.62% okay. 51/343 subtests failed, 85.13% okay.
make: *** [test] Error 29

!!! ERROR: dev-perl/libwww-perl-5.69-r2 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! (no error message)

HTTP Server terminated
HTTP Server terminated
HTTP Server terminated
HTTP Server terminated

(It spits out those last 4 lines after emerge has died.)

A similar behavior occurs with version 5.76 as well.

Here's my emerge info:

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0)
=================================================================
System uname: 2.6.0 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-fomit-frame-pointer -funroll-loops -march=athlon-xp -mmmx -msse -m3dnow -Os -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/usr/X11R6/bin/startx /etc/gconf /etc/env.d"
CXXFLAGS="-fomit-frame-pointer -funroll-loops -march=athlon-xp -mmmx -msse -m3dnow -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss crypt encode foomaticdb jpeg libg++ mad mpeg ncurses pdflib png xml2 xv zlib gdbm berkdb slang readline tetex aalib bonobo svga ggi tcltk java X tcpd pam libwww ssl perl python imlib oggvorbis gtk cdr -gnome -kde -qt -nls -motif -mikmod -arts -apm -gpm -esd acpi dvd alsa mmx 3dnow cups fbcon gif gtk2 joystick opengl quicktime xmms xinerama usb truetype sse spell sdl avi"
Comment 4 Ulrich Plate (RETIRED) gentoo-dev 2003-12-27 06:52:40 UTC
This is a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=36341.
Comment 5 Michael Leuchtenburg 2003-12-27 12:00:11 UTC
This bug is *not* a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=36341 . This is caused by not being able to resolve the hostname of the machine - 36341 is caused by something different.

I tested libwww-perl-5.76, as packaged in the distfile, with TEST_VERBOSE=1 in the Makefile and editing t/robots/ua-get to uncomment all of the various things it prints. My machine is named mesh - it is trying to connect to http://mesh:37935/   (or some similar high port). mesh cannot be resolved, as is made obvious by the verbose error output, and can also be tested with other tools.

It's certainly a bug in libwww-perl for it not to at the very leat provide useful output when this occurs - I'm not sure whether not being able to resolve the hostname of a machine should be considered a bug in that machine's setup or not. If not, then libwww-perl should be able to build without using the hostname. Using localhost (which is a required hostname, and also exists by default in gentoo, unlike the machine hostname) seems like a reasonable solution.
Comment 6 Paul Giordano 2003-12-28 07:51:40 UTC
Yep - agree with that as well. I went back and emerge'd all perl packages:

qpkg -I -nc dev-perl > plist
emerge `cat plist`

(probably only needed a few, but it's Sunday and plenty of horsepower today) - noticed an issue with libnet, as in there's two different ones - got rid of net-libs/libnet-1.1.1 (probably not important).

Now all the /usr/lib/perl5 directories are clean, and emerge libwww-perl works fine.

I thought there was a perl update script that you ran after upgrading a perl release that identified the affected perl ebuilds that needed re-run, but maybe that was only for a "major" release level (5.6->5.8). 

Anywho, it only took me about a half-hour to get all the perl pm's updated, so give it a try.

I notice that your primary req'd modules are detected:
Checking for URI........... ok
Checking for HTML::Parser.. ok
Checking for MIME::Base64.. ok
Checking for Net::FTP...... ok
Checking for Digest::MD5 .. ok

You might want to try re-doing those first, maybe they're detected in the prior perl release libs and that's throwing it off. Also try dev-perl/libnet, it may be what's throwing off the perl hostname detection stuff.

Regards,
Gio
Comment 7 j. 2003-12-28 12:13:46 UTC
had this same problem too. turned out i had the wrong ip in /etc/hosts
Comment 8 teidakankan 2003-12-28 14:44:40 UTC
Thanks j!  That was my problem also.  I had "the wrong ip in /etc/hosts".  Once I fixed that it compiled with no test errors.
Comment 9 Whit Blauvelt 2003-12-29 07:00:30 UTC
Same problem. Same "wrong ip in /etc/hosts". Second the suggestion that the it should be using "localhost" instead.
Comment 10 SpanKY gentoo-dev 2003-12-29 10:22:12 UTC
i'll be the fourth guy to weigh in on this ...
i too had stale ip's in /etc/hosts (just moved my box from college to home) and
was experiencing the same bugs

fixing the ip allowed the package to merge correctly
Comment 11 Dmitry Kim 2003-12-30 04:36:06 UTC
btw, it also fails when you've got iptables blocking all incoming connections to all ports excluding ones explicitly listed. probably gentoo should have a patch for libwww to use localhost instead of `hostname`, or something.