Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53205 - emerge dev-perl/Net-Netmask-1.9011 - t/netmasks... FAILED tests 128, 131, 256, 258, 265-266
Summary: emerge dev-perl/Net-Netmask-1.9011 - t/netmasks... FAILED tests 128, 131, 256...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-07 03:33 UTC by Sergiy Borodych
Modified: 2004-06-15 02:18 UTC (History)
1 user (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 Sergiy Borodych 2004-06-07 03:33:01 UTC
$subj

my info:

root@work portage # emerge dev-perl/Net-Netmask
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-perl/Net-Netmask-1.9011 to /
>>> md5 src_uri ;-) Net-Netmask-1.9011.tar.gz
>>> Unpacking source...
>>> Unpacking Net-Netmask-1.9011.tar.gz to /var/tmp/portage/Net-Netmask-1.9011/work
>>> Source unpacked.
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Netmask
cp Netmask.pod blib/lib/Net/Netmask.pod
cp Netmask.pm blib/lib/Net/Netmask.pm
Manifying blib/man3/Net::Netmask.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/badnets.............ok
t/netmasks............FAILED tests 128, 131, 256, 258, 265-266
        Failed 6/267 tests, 97.75% okay
t/sortspeed-blocks....skipped
        all skipped: this is for people looking for faster sorts
t/sortspeed-ip........skipped
        all skipped: this is for people looking for faster sorts
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/netmasks.t              267    6   2.25%  128 131 256 258 265-266
2 tests skipped.
Failed 1/4 test scripts, 75.00% okay. 6/295 subtests failed, 97.97% okay.
make: *** [test_dynamic] Error 255

!!! ERROR: dev-perl/Net-Netmask-1.9011 failed.
!!! Function perl-module_src_compile, Line 62, Exitcode 2
!!! test failed


root@work portage # emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org.ua/gentoo-portage"
USE="X alsa apm avi berkdb cdr crypt cups divx4linux encode fluidsynth foomaticdb freetype gd gdbm gif gnome gpm gtk gtk2 guile imlib jack jpeg libg++ libwww mbox mikmod milter mirror mmx motif mozilla mpeg mysql ncurses nls nowin nptl oggvorbis opengl oss pam pdflib perl pic png pnp postgres quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd threads truetype unicode utf8 vim-with-x x86 xml xml2 xmms xv xvid zlib"


root@work portage # perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.6.5-gentoo, archname=i686-linux-thread-multi
    uname='linux work. 2.6.5-gentoo #1 fri apr 9 19:17:48 eest 2004 i686 intel(r) pentium(r) 4 cpu 1.60ghz genuineintel gnulinux '
    config_args='-des -Darchname=i686-linux-thread -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387 -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Dusethreads -Di_gdbm -Di_db -Di_ndbm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387',
    cppflags='-DPERL5 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing'
    ccversion='', gccversion='3.3.3 20040412 (Gentoo Linux 3.3.3-r3, ssp-3.3-7, pie-8.5.3)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at May 10 2004 11:11:33
  @INC:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.3
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.4/i686-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl/5.8.3/i686-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.3
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.4/i686-linux-thread-multi
    /usr/lib/perl5/5.8.4
    /usr/local/lib/site_perl
    /usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.3
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2004-06-13 11:27:14 UTC
I see from your output that you chose to compile perl with threading enabled. This is known to cause unpredictable behavior when attempting to compile perl modules and cannot be supported on this end. I've (re-)tested this ebuild on a non-threaded perl without any problems. While I can't say for certain that your problems are threads related, we won't be able to help you unless this is for a non-threaded perl. You should also expect to encounter problems with the DB related modules, as very few of them will compile on a threaded perl.
Comment 2 Sergiy Borodych 2004-06-14 05:34:28 UTC
root@work portage # emerge -vD sys-libs/db sys-libs/gdbm

root@work portage # export USE="-threads"

root@work portage # emerge -v libperl perl

root@work portage # emerge dev-perl/Net-Netmask
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-perl/Net-Netmask-1.9011 to /
>>> md5 src_uri ;-) Net-Netmask-1.9011.tar.gz
>>> Unpacking source...
>>> Unpacking Net-Netmask-1.9011.tar.gz to /var/tmp/portage/Net-Netmask-1.9011/work
>>> Source unpacked.
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Netmask
cp Netmask.pod blib/lib/Net/Netmask.pod
cp Netmask.pm blib/lib/Net/Netmask.pm
Manifying blib/man3/Net::Netmask.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/badnets.............ok
t/netmasks............FAILED tests 128, 131, 256, 258, 265-266
        Failed 6/267 tests, 97.75% okay
t/sortspeed-blocks....skipped
        all skipped: this is for people looking for faster sorts
t/sortspeed-ip........skipped
        all skipped: this is for people looking for faster sorts
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/netmasks.t              267    6   2.25%  128 131 256 258 265-266
2 tests skipped.
Failed 1/4 test scripts, 75.00% okay. 6/295 subtests failed, 97.97% okay.
make: *** [test_dynamic] Error 255

!!! ERROR: dev-perl/Net-Netmask-1.9011 failed.
!!! Function perl-module_src_compile, Line 62, Exitcode 2
!!! test failed


root@work portage # perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.6.5-gentoo-r1, archname=i686-linux
    uname='linux work.bor. 2.6.5-gentoo-r1 #1 thu jun 3 13:37:50 eest 2004 i686 intel(r) pentium(r) 4 cpu 1.60ghz genuineintel gnulinux '
    config_args='-des -Darchname=i686-linux -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387 -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Di_gdbm -Di_db -Di_ndbm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -pipe -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -mfpmath=sse,387',
    cppflags='-DPERL5 -fno-strict-aliasing'
    ccversion='', gccversion='3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Jun 14 2004 14:47:59
  @INC:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.4/i686-linux
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.4/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.4/i686-linux
    /usr/lib/perl5/5.8.4
    /usr/local/lib/site_perl


Any ideas ?
Or this bug only for me ?
Comment 3 Sergiy Borodych 2004-06-14 05:35:54 UTC
When I add 

> SRC_TEST="do"

to Net-Netmask-1.9004.ebuild
I have error too

root@work Net-Netmask # emerge Net-Netmask-1.9004.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-perl/Net-Netmask-1.9004 to /
>>> md5 src_uri ;-) Net-Netmask-1.9004.tar.gz
>>> Unpacking source...
>>> Unpacking Net-Netmask-1.9004.tar.gz to /var/tmp/portage/Net-Netmask-1.9004/work
>>> Source unpacked.
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Netmask
cp Netmask.pod blib/lib/Net/Netmask.pod
cp Netmask.pm blib/lib/Net/Netmask.pm
Manifying blib/man3/Net::Netmask.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/badnets.....ok
t/netmasks....FAILED tests 128, 131
        Failed 2/217 tests, 99.08% okay
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/netmasks.t              217    2   0.92%  128 131
Failed 1/2 test scripts, 50.00% okay. 2/245 subtests failed, 99.18% okay.
make: *** [test_dynamic] Error 255

!!! ERROR: dev-perl/Net-Netmask-1.9004 failed.
!!! Function perl-module_src_compile, Line 62, Exitcode 2
!!! test failed
Comment 4 Sergiy Borodych 2004-06-14 05:51:28 UTC
On another server

root@counter-strike Net-Netmask # emerge Net-Netmask-1.9011.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-perl/Net-Netmask-1.9011 to /
>>> md5 src_uri ;-) Net-Netmask-1.9011.tar.gz
>>> Unpacking source...
>>> Unpacking Net-Netmask-1.9011.tar.gz to /var/tmp/portage/Net-Netmask-1.9011/work
>>> Source unpacked.
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Netmask
cp Netmask.pod blib/lib/Net/Netmask.pod
cp Netmask.pm blib/lib/Net/Netmask.pm
Manifying blib/man3/Net::Netmask.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/badnets.............ok
t/netmasks............ok
t/sortspeed-blocks....skipped
        all skipped: this is for people looking for faster sorts
t/sortspeed-ip........skipped
        all skipped: this is for people looking for faster sorts
All tests successful, 2 tests skipped.
Files=4, Tests=295,  0 wallclock secs ( 0.38 cusr +  0.06 csys =  0.44 CPU)
root@counter-strike Net-Netmask # perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.6.6-rc2, archname=i686-linux-thread-multi
    uname='linux counter-strike.kiev.ua 2.6.6-rc2 #1 fri apr 23 10:58:25 eest 2004 i686 intel(r) pentium(r) 4 cpu 1.60ghz genuineintel gnulinux '
    config_args='-des -Darchname=i686-linux-thread -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-O2 -pipe -march=pentium4 -mcpu=pentium4 -ffast-math -fomit-frame-pointer -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Dusethreads -Di_gdbm -Di_db -Di_ndbm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -pipe -march=pentium4 -mcpu=pentium4 -ffast-math -fomit-frame-pointer',
    cppflags='-DPERL5 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing'
    ccversion='', gccversion='3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Apr 29 2004 00:45:51
  @INC:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.2/i686-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.2/i686-linux-thread-multi
    /usr/lib/perl5/5.8.2
    /usr/local/lib/site_perl
    /usr/lib/perl5/site_perl/5.8.0

I think problem not in threads support
Comment 5 Sergiy Borodych 2004-06-15 00:16:22 UTC
I tested on another some servers
and find a root of problem
it exists if CFLAGS contain -mfpmath=sse,387 for perl build
I remove -mfpmath=sse,387 from my CFLAGS and rebuild libperl & perl
After this emerge Net-Netmask-1.9011 be ok

Maybe in libperl & perl ebuild check CFLAGS and remove from it -mfpmath=sse,387 ?!

PS: I rebuild perl with threads again ;)
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2004-06-15 02:18:45 UTC
Just so you know - it wasn't that I was blaming threads per se, but at the start there was only the one bug report, and only on a threaded perl (shivers up the spine).

Honestly, I will be removing the test call from this package. Network related modules tend to have flaky tests in a mixed environment like Gentoo, where we can't guarantee every user setup their hosts file, dnsnames, etc. Thanks for your patience on this one,

Mike