Skip Menu |

This queue is for tickets about the Class-XSAccessor CPAN distribution.

Report information
The Basics
Id: 74883
Status: resolved
Priority: 0/
Queue: Class-XSAccessor

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Fails tests on _DDEBUGGING perls <= 5.10.0
On perls before 5.10.1 (5.10.0 is affected as well) -DDEBUGGING causes emission of different error messages, which ends up (spuriously) failing a test. See test results, and perl -V below: PERL_DL_NONLAZY=1 /home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01hash_basic................ok t/02hash_accessor.............ok t/03hash_predicate............ok t/04hash_chained..............ok t/05hash_replace..............ok t/06hash_constructor..........ok t/07hash_boolean..............ok t/08hash_entersub.............ok t/09hash_use_hash.............ok t/10hash_lvalue...............ok t/31array_basic...............ok t/32array_accessor............ok t/33array_predicate...........ok t/34array_chained.............ok t/35array_replace.............ok t/36array_constructor.........ok t/37array_boolean.............ok t/38array_use_hash............ok t/39array_lvalue..............ok t/40hash_bad_call.............ok 1/13 # Failed test at t/40hash_bad_call.t line 39. t/40hash_bad_call.............NOK 8/13# 'Usage: Class::XSAccessor::accessor_init(self, ...) at t/40hash_bad_call.t line 36. # ' # doesn't match '(?-xism:Usage: (Hash::)?foo\(self, \.\.\.\) )' # Failed test at t/40hash_bad_call.t line 43. t/40hash_bad_call.............NOK 9/13# 'Usage: Class::XSAccessor::accessor_init(self, ...) at t/40hash_bad_call.t line 41. # ' # doesn't match '(?-xism:Usage: (Hash::)?bar\(self, \.\.\.\) )' # Looks like you failed 2 tests of 13. t/40hash_bad_call.............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 8-9 Failed 2/13 tests, 84.62% okay t/41array_bad_call............ok t/50reentrant_goto_sigsegv....ok t/70bad_arguments.............ok t/80threadbomb................skipped all skipped: Perl not compiled with 'useithreads' Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/40hash_bad_call.t 2 512 13 2 8-9 1 test skipped. Failed 1/24 test scripts. 2/454 subtests failed. Files=24, Tests=454, 1 wallclock secs ( 0.54 cusr + 0.08 csys = 0.62 CPU) Failed 1/24 test programs. 2/454 subtests failed. make: *** [test_dynamic] Error 255 FAIL ! Installing Class::XSAccessor failed. See /home/rabbit/.cpanm/build.log for details. rabbit@Thesaurus:~$ perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=3.1.0-1-amd64, archname=x86_64-linux uname='linux thesaurus 3.1.0-1-amd64 #1 smp tue jan 10 06:25:07 utc 2012 x86_64 gnulinux ' config_args='-de -Dprefix=/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1 -DDEBUGGING' hint=recommended, useposix=true, d_sigaction=define 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='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.6.2', 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='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib/i386-linux-gnu /lib/../lib /usr/lib/i386-linux-gnu /usr/lib/../lib /lib /usr/lib libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.13' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Feb 10 2012 17:39:56 %ENV: PERL5LIB="/home/rabbit/devel/utils/perl:/home/rabbit/devel/distar/lib:" PERLBREW_HOME="/home/rabbit/.perlbrew" PERLBREW_PATH="/home/rabbit/perl5/perlbrew/bin:/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/bin" PERLBREW_PERL="5.10.0_dbg1" PERLBREW_ROOT="/home/rabbit/perl5/perlbrew" PERLBREW_VERSION="0.27" PERL_AUTOINSTALL_PREFER_CPAN="1" PERL_CPANM_OPT="--verbose --no-interactive" @INC: /home/rabbit/devel/utils/perl /home/rabbit/devel/distar/lib /home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/5.10.0/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/5.10.0 /home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/site_perl/5.10.0/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/site_perl/5.10.0 .
From: mitakaa [...] gmail.com
It fails on perl 5.8.8 as well. Here is my perl -V perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.16, archname=x86_64-linux-thread-multi uname='linux smetana 2.6.16 #1 smp thu may 17 14:00:09 utc 2007 x86_64 x86_64 x86_64 gnulinux ' config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr - Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm - Duseshrplib=true -Doptimize=-O2 -fmessage-length=0 -Wall - D_FORTIFY_SOURCE=2 -g -Wall -pipe' 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=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS - DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement' ccversion='', gccversion='4.1.2 20070115 (prerelease) (SUSE Linux)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib64' libpth=/lib64 /usr/lib64 /usr/local/lib64 libs=-lm -ldl -lcrypt -lpthread perllibs=-lm -ldl -lcrypt -lpthread libc=/lib64/libc-2.4.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E - Wl,-rpath,/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jul 11 2008 14:53:50 %ENV: PERL5LIB="/opt/kag/perl5/lib/perl5/x86_64-linux-thread- multi:/opt/kag/perl5/lib/perl5" PERL_LOCAL_LIB_ROOT="/opt/kag/perl5" PERL_MB_OPT="--install_base /opt/kag/perl5" PERL_MM_OPT="INSTALL_BASE=/opt/kag/perl5" @INC: /opt/kag/perl5/lib/perl5/x86_64-linux-thread-multi /opt/kag/perl5/lib/perl5/x86_64-linux-thread-multi /opt/kag/perl5/lib/perl5 /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .
From: lamoz [...] adriver.ru
The same on perl 5.8.8 without DEBUGGING Is there any chance to fix it for perl 5.8.8? Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=3.0.4-calculate, archname=x86_64-linux-thread- multi uname='linux lamoz 3.0.4-calculate #1 smp preempt wed sep 28 10:44:53 local time zone must be set-- x86_64 amd athlon(tm) ii x4 630 processor authenticamd gnulinux ' config_args='-des -Darchname=x86_64-linux-thread -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=x86_64-pc-linux-gnu-gcc -Dprefix=/usr - Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= -Doptimize=-O2 - march=x86-64 -pipe -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 - Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/x86_64-linux- thread-multi 5.8.2 5.8.2/x86_64-linux-thread-multi 5.8.4 5.8.4/x86_64- linux-thread-multi 5.8.5 5.8.5/x86_64-linux-thread-multi 5.8.6 5.8.6/x86_64-linux-thread-multi 5.8.7 5.8.7/x86_64-linux-thread-multi - Dcf_by=Gentoo -Ud_csh -Dusenm -Dusethreads -Di_ndbm -Di_gdbm -Di_db - Dlibpth=/usr/local/lib64 /lib64 /usr/lib64' 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=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='x86_64-pc-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE - DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after- statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - I/usr/include/gdbm', optimize='-O2 -march=x86-64 -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno- strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/include/gdbm' ccversion='', gccversion='4.5.3', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='x86_64-pc-linux-gnu-gcc -O2 -march=x86-64 -pipe', ldflags =' - L/usr/local/lib64' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.12.2.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.12.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Nov 28 2011 14:10:24 %ENV: PERL5LIB="/home/newuser/perl5/lib/perl5/x86_64-linux-thread- multi:/home/newuser/perl5/lib/perl5:/usr/local/rle/lib/perl5:/home/newus er/perl_lib/lib/perl5" PERLBREW_BASHRC_VERSION="0.30" PERLBREW_HOME="/home/newuser/.perlbrew" PERLBREW_PATH="/home/newuser/perl5/perlbrew/bin" PERLBREW_ROOT="/home/newuser/perl5/perlbrew" PERL_LOCAL_LIB_ROOT="/home/newuser/perl5" PERL_MB_OPT="--install_base /home/newuser/perl5" PERL_MM_OPT="INSTALL_BASE=/home/newuser/perl5" @INC: /home/newuser/perl5/lib/perl5/x86_64-linux-thread-multi /home/newuser/perl5/lib/perl5/x86_64-linux-thread-multi /home/newuser/perl5/lib/perl5 /usr/local/rle/lib/perl5/x86_64-linux-thread-multi /usr/local/rle/lib/perl5 /home/newuser/perl_lib/lib/perl5 /etc/perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.8 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/5.8.8 /usr/local/lib/site_perl .
RT-Send-CC: lamoz [...] adriver.ru, mitakaa [...] gmail.com
I'm not willing to spend significant time debugging this on old debugging perls, but I have set the two failing tests (pertaining ONLY to the explicit text of an error message!) to be skipped on old perls. I hope this resolves all of your practical issues with the module (doesn't install) and that you get a chance to upgrade your perl to a supported version some time soon. Class::XSAccessor 1.14 is on its way to CPAN. --Steffen