Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115004 - dev-perl/IO-Socket-INET6-2.51 fails test phase when ipv6 is disabled in the kernel
Summary: dev-perl/IO-Socket-INET6-2.51 fails test phase when ipv6 is disabled in the k...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 10:36 UTC by Sandro Bonazzola (RETIRED)
Modified: 2010-03-27 23:30 UTC (History)
4 users (show)

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


Attachments
Catch the error in the test (io_sock6.t.diff,509 bytes, patch)
2006-05-02 12:34 UTC, Yuval Yaari (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola (RETIRED) gentoo-dev 2005-12-09 10:36:51 UTC
>>> emerge (1 of 1) dev-perl/IO-Socket-INET6-2.51 to /
>>> md5 files   ;-) IO-Socket-INET6-2.51.ebuild
>>> md5 files   ;-) files/digest-IO-Socket-INET6-2.51
>>> md5 src_uri ;-) IO-Socket-INET6-2.51.tar.gz
>>> Unpacking source...
>>> Unpacking IO-Socket-INET6-2.51.tar.gz to
/var/tmp/portage/IO-Socket-INET6-2.51/work
>>> Source unpacked.
 * Using ExtUtils::MakeMaker
Checking if your kit is complete...
Looks good
Writing Makefile for IO::Socket::INET6
cp INET6.pm blib/lib/IO/Socket/INET6.pm
>>> Test phase [enabled]: dev-perl/IO-Socket-INET6-2.51
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/io_multihomed6....ok
t/io_sock6..........Died at t/io_sock6.t line 39, <GEN5> line 2.
dubious
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 12-20
        Failed 9/20 tests, 55.00% okay
t/io_udp6...........ok
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/io_sock6.t    4  1024    20   18  90.00%  12-20
Failed 1/3 test scripts, 66.67% okay. 9/32 subtests failed, 71.88% okay.
make: *** [test_dynamic] Error 255

Reproducible: Always
Steps to Reproduce:
1.emerge IO-Socket-INET6
2.
3.

Actual Results:  
test failed

Expected Results:  
test passed

I can confirm this bug for ~x86 and ~amd64.


Portage 2.0.53 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer
-m3dnow "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS=" -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer
-m3dnow "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig ccache collision-protect confcache cvs distlocks elog
maketest multilib-strict parallel-fetching sandbox sfperms strict test userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org/
http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.heanet.ie/pub/gentoo/
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
ftp://ftp.unina.it/pub/linux/distributions/gentoo http://gentoo.ngi.it
http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acl alsa apache2 arts audiofile avi berkdb
bitmap-fonts bzip2 cairo canvas cdb cdparanoia cdr chroot cpudetection crypt
cups curl dba directfb dts dv dvd dynagraph emboss encode erandom esd exif expat
fam ffmpeg firefox flac foomaticdb gd gdbm ggi gif gimp gimpprint glibc-omitfp
glut gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 guile idn ieee1394
imagemagick imlib ipv6 ithreads jbig jikes jpeg jpeg2k justify kde
kdeenablefinal lcms ldap libcaca libwww linuxthreads-tls lm_sensors
logitech-mouse logrotate lzo lzw lzw-tiff mad mailwrapper mbox mdb mhash mikmod
mmap mng motif mozsvg mp3 mpeg mpm-worker musicbrainz mysql ncurses nls nptl
nptlonly numeric nvidia odbc offensive ogg opengl pam pcre pcsc-lite pdflib perl
php png ppds python qt quicktime readline rtc samba scanner sdl slang smp snmp
speex spell ssl svg sysfs tcltk tcpd test tetex tga theora threads tiff timidity
truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vda vorbis
wmf xine xinerama xml2 xmms xpm xv xvid zlib linguas_it userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-12-13 03:42:46 UTC
Out of curiosity, which version of perl-core/Test-Simple are you using? I'm
hanging on test 12, but I suspect that's because the machine I'm on doesn't have
IPV6 compiled in (i'm at work :)
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2005-12-13 10:43:47 UTC
perl-core/Test-Simple-0.62
Comment 3 Yuval Yaari (RETIRED) gentoo-dev 2006-05-02 12:34:41 UTC
Created attachment 86014 [details, diff]
Catch the error in the test

Erm, I think it's a faulty error handling by that test.
Please run:
# ebuild /usr/portage/dev-perl/IO-Socket-INET6/IO-Socket-INET6-2.51.ebuild clean unpack compile
# cd /var/tmp/portage/IO-Socket-INET6-2.51/work/IO-Socket-INET6-2.51/t
# patch < io_sock6.t.diff
# cd ..
# PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/io_sock6.t

And attach the output.
Comment 4 Christian Anthon 2006-05-03 01:01:15 UTC
> # PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/io_sock6.t
> 

PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/io_sock6.t
t/io_sock6....NOK 10Address family not supported by protocol at t/io_sock6.t line 196, <GEN4> line 2.
t/io_sock6....ok 11/20

and it just hangs there

Christian.
Comment 5 Yuval Yaari (RETIRED) gentoo-dev 2006-05-03 10:02:03 UTC
I'm not 100% sure, but quick google-ing says that this error stems from your kernel being compiled without IPv6 support.
Sorry, I'm not using IPv6 at all...
Comment 6 SpanKY gentoo-dev 2006-05-03 19:55:56 UTC
imo the test should be SKIP-ed if ipv6 is disabled in the kernel
Comment 7 Yuval Yaari (RETIRED) gentoo-dev 2006-05-03 22:53:32 UTC
I'm not sure; isn't the entire module useless without IPv6 support in the kernel?
The module just wouldn't work (that's why the tests fail...) without it.
Comment 8 Christian Anthon 2006-05-04 01:03:15 UTC
(In reply to comment #5)
> I'm not 100% sure, but quick google-ing says that this error stems from your
> kernel being compiled without IPv6 support.
> Sorry, I'm not using IPv6 at all...
> 

That's likely. I haven't compiled the kernel with ipv6 support, but have the ipv6 flag enabled since emerge -N would remerge a lot of packages otherwise.

Doesn't matter much to me what you do about it, but I prefer that test of packages fail only if the package is corrupt, not when the environment for using it is incorrect.

Christian.
Comment 9 SpanKY gentoo-dev 2006-05-05 16:58:47 UTC
what's wrong with building a package with ipv6 support and using it later after you rebuilt your kernel ?

having it skip the tests is acceptable imo
Comment 10 Drake Wyrm 2006-06-05 22:35:24 UTC
I have experienced this error while merging dev-perl/IO-Socket-INET6-2.51 also. I have IPv6 enabled in the kernel, and it does appear in the appropriate places under /proc. I have, in the past, run some services over IPv6. I have also, just now, tested it with netcat6 over ip6-localhost to ensure that nothing is obviously broken.

When merging dev-perl/IO-Socket-INET6-2.51, I get the same error as Sandro, save for the minor difference that, instead of "/usr/bin/perl5.8.7", my logs show version 5.8.8.

Excerpted `emerge --info`:

Gentoo Base System version 1.6.14
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) processor
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
FEATURES="autoconfig distlocks maketest sandbox sfperms strict test"
MAKEOPTS="-j2 -w"
USE="x86 3dnow X aalib acl alsa bash-completion berkdb bzip2 cjk crypt dga directfb doc esd fbcon flac gdbm gif gnome gpm gtk gtk2 ipv6 java jpeg ldap mad mbox mmx mpeg mysql ncurses nls offensive ogg oggvorbis opengl oss pam perl png python readline sdl skey slang ssl svga tcltk tcpd tetex tiff truetype unicode xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS

The direct dependencies for dev-perl/IO-Socket-INET6-2.51 are installed on my system thusly:

[ebuild   R   ] dev-lang/perl-5.8.8-r2  +berkdb -build -debug +doc +gdbm -ithreads -perlsuid 0 kB 
[ebuild   R   ] dev-perl/Socket6-0.17  -minimal 0 kB 
Comment 11 Drake Wyrm 2006-09-10 20:50:48 UTC
The error has changed slightly. Now it displays:

PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/io_multihomed6....ok
t/io_sock6..........Died at t/io_sock6.t line 39.
dubious
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 10-20
        Failed 11/20 tests, 45.00% okay
t/io_udp6...........Use of uninitialized value in length at t/io_udp6.t line 40.
Use of uninitialized value in length at t/io_udp6.t line 41.
Use of uninitialized value in length at t/io_udp6.t line 41.

... and hangs indefinately.
Comment 12 Yuval Yaari (RETIRED) gentoo-dev 2006-09-11 06:28:13 UTC
Could you apply the patch I posted here?
This way we'll have a somewhat clearer error...
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2007-04-15 10:57:15 UTC
closing - tests disabled for the time being. network based tests in perl modules are just evil anyway (too many variables can fail for reliable results)