Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86161 - error while compiling dev-perl_XML-LibXSLT-1.57 - failed tests
Summary: error while compiling dev-perl_XML-LibXSLT-1.57 - failed tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 11:26 UTC by Rumen Yotov
Modified: 2005-03-22 10:13 UTC (History)
0 users

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 Rumen Yotov 2005-03-21 11:26:55 UTC
Hi,
While emerging snownews got to emerge/compile dev-perl_XML-LibXSLT-1.57 as its dependency, but got this error.
My system: all ~x86, NPTL, hardened(PaX&grsec), using perl-threads.
From the logs:
...
>>> root -sandbox(clean)
>>> md5 src_uri ;-) XML-LibXSLT-1.57.tar.gz
>>> root -sandbox(setup)
>>> root +sandbox(unpack)
>>> Unpacking source...
>>> Unpacking XML-LibXSLT-1.57.tar.gz to /var/tmp/portage/XML-LibXSLT-1.57/work
>>> Source unpacked.
>>> root +sandbox(compile)
FEATURES=autoaddcvs autoconfig ccache collision-protect distlocks gpg sandbox sfperms
running xslt-config... ok
looking for -lxslt... yes
looking for -lexslt... yes
Checking if your kit is complete...
Looks good
Writing Makefile for XML::LibXSLT
cp benchmark.pl blib/lib/XML/benchmark.pl
cp LibXSLT.pm blib/lib/XML/LibXSLT.pm
/usr/bin/perl5.8.6 /usr/lib/perl5/vendor_perl/5.8.6/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.6/ExtUtils/typemap 
-typemap typemap  LibXSLT.xs > LibXSLT.xsc && mv LibXSLT.xsc LibXSLT.c
gcc -c  -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O2 -pipe -fomit-frame-pointer   -DVERSION=\"1.57\" 
-DXS_VERSION=\"1.57\" -fPIC "-I/usr/lib/perl5/5.8.6/i686-linux-thread-multi/CORE"  -DHAVE_BLANK -DHAVE_BLANK 
-DHAVE_EXSLT LibXSLT.c
gcc -c  -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O2 -pipe -fomit-frame-pointer   -DVERSION=\"1.57\" 
-DXS_VERSION=\"1.57\" -fPIC "-I/usr/lib/perl5/5.8.6/i686-linux-thread-multi/CORE"  -DHAVE_BLANK -DHAVE_BLANK 
-DHAVE_EXSLT perl-libxml-mm.c
Running Mkbootstrap for XML::LibXSLT ()
chmod 644 LibXSLT.bs
rm -f blib/arch/auto/XML/LibXSLT/LibXSLT.so
LD_RUN_PATH="/usr/lib" gcc  -shared -L/usr/local/lib LibXSLT.o perl-libxml-mm.o  -o 
blib/arch/auto/XML/LibXSLT/LibXSLT.so   -L/usr/lib -lxslt -lexslt -lxml2 -lz -lpthread -lm
chmod 755 blib/arch/auto/XML/LibXSLT/LibXSLT.so
cp LibXSLT.bs blib/arch/auto/XML/LibXSLT/LibXSLT.bs
chmod 644 blib/arch/auto/XML/LibXSLT/LibXSLT.bs
Manifying blib/man3/XML::LibXSLT.3pm
Running Mkbootstrap for XML::LibXSLT ()
chmod 644 LibXSLT.bs
rm -f blib/arch/auto/XML/LibXSLT/LibXSLT.so
LD_RUN_PATH="/usr/lib" gcc  -shared -L/usr/local/lib LibXSLT.o perl-libxml-mm.o  -o 
blib/arch/auto/XML/LibXSLT/LibXSLT.so   -L/usr/lib -lxslt -lexslt -lxml2 -lz -lpthread -lm
chmod 755 blib/arch/auto/XML/LibXSLT/LibXSLT.so
cp LibXSLT.bs blib/arch/auto/XML/LibXSLT/LibXSLT.bs
chmod 644 blib/arch/auto/XML/LibXSLT/LibXSLT.bs
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.6 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basic........ok
t/02dromeds......ok
t/03input........ok
t/04params.......ok
t/05quick........dubious
        Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 6-7
        Failed 2/7 tests, 71.43% okay
t/06output.......ok
t/07blankdoc.....*** glibc detected *** double free or corruption (out): 0x13e005cc ***
dubious
        Test returned status 0 (wstat 6, 0x6)
        after all the subtests completed successfully
t/08literal......ok
t/09exslt........ok
t/10functions....Use of uninitialized value in concatenation (.) or string at t/10functions.t line 9.
Use of uninitialized value in concatenation (.) or string at t/10functions.t line 9.
ok
Failed 2/10 test scripts, 80.00% okay. 2/94 subtests failed, 97.87% okay.
Failed Test    Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/05quick.t       0    11     7    4  57.14%  6-7
t/07blankdoc.t    0     6     5    0   0.00%  ??
make: *** [test_dynamic] Error 255

!!! ERROR: dev-perl/XML-LibXSLT-1.57 failed.
!!! Function perl-module_src_compile, Line 104, Exitcode 2
!!! test failed
!!! If you need support, post the topmost build error, NOT this status message.
...
Thanks
Rumen

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




Gentoo Base System version 1.6.10
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.11-hardened-r1 i686)
=================================================================
System uname: 2.6.11-hardened-r1 i686 AMD Athlon(tm) XP 2200+
Python:              dev-lang/python-2.4-r2,dev-lang/python-2.3.5 [2.4 (#2, Feb
 8 2005, 19:45:38)]
ccache version 2.4 [enabled]
dev-lang/python:     2.4-r2, 2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /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/alias
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks gpg sandbox
sfperms"
GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu
http://mirror.datapipe.net/gentoo"
LANG="bg_BG.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 aac aalib acl acpi alsa apache2 avi bash-completion berkdb
bitmap-fonts caps cdr chroot clamav crypt cups curl directfb dvd dvdr emboss
encode esd evo ffmpeg flac font-server foomaticdb fortran freetype gd gdbm gif
gphoto2 gpm gstreamer gtk gtk2 guile hardened hardenedphp imagemagick imap imlib
ipv6 java javascript jpeg junit kdexdeltas ldap libg++ libwww mad maildir
matroska mikmod mmx motif mp3 mpeg mpeg4 mysql ncurses nls nptl nptlonly nvidia
oggvorbis opengl oss pam pdflib perl pic pie png postgres ppds prelude python qt
quicktime readline samba sdl skey slang snmp speex spell sse ssl svg svga
symlink tcltk tcpd tetex theora threads tiff transcode truetype truetype-fonts
type1-fonts unicode usb xml xml2 xmms xv xvid zlib linguas_bg linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-03-22 08:35:11 UTC
The problem is that the tests weren't designed for a threaded perl (confirmed in a chroot with threaded perl vs. my non-threaded desktop). Disabling the tests and installing anyway appears to yield a still working module. Would you please comment out/delete the line SRC_TEST="do" from the XML-LibXSLT-1.57.ebuild and install the module, and confirm that you still have complete functionality? Thanks!

-Mike
Comment 2 Rumen Yotov 2005-03-22 10:13:46 UTC
Hi,
Disabled/Commented out the tests in the ebuild and problem IS solved.
Till now had surprisingly (quite) no problems with threaded perl so i'm happy.
Thanks. Closing the BUG.
Rumen