Subject: | Tests fail during `use_ok` with compilation failure in require as X86::Udis86::constant not defined |
I noticed this module on the "no reports list"
http://stats.cpantesters.org/noreports/linux.html
Investigation says it fails even though deps are satisfied, and does not report.
Configuring X86-Udis86-v1.7.2.2
Running Makefile.PL
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.86)
Building and testing X86-Udis86-v1.7.2.2
cp lib/X86/Udis86/Operand.pm blib/lib/X86/Udis86/Operand.pm
AutoSplitting blib/lib/X86/Udis86/Operand.pm (blib/lib/auto/X86/Udis86/Operand)
cp lib/X86/Udis86.pm blib/lib/X86/Udis86.pm
AutoSplitting blib/lib/X86/Udis86.pm (blib/lib/auto/X86/Udis86)
Running Mkbootstrap for X86::Udis86 ()
chmod 644 Udis86.bs
/home/kent/perl5/perlbrew/perls/perl-5.19.7/bin/perl5.19.7 /home/kent/perl5/perlbrew/perls/perl-5.19.7/lib/5.19.7/ExtUtils/xsubpp -typemap /home/kent/perl5/perlbrew/perls/perl-5.19.7/lib/5.19.7/ExtUtils/typemap -typemap typemap Udis86.xs > Udis86.xsc && mv Udis86.xsc Udis86.c
Please specify prototyping behavior for Udis86.xs (see perlxs manual)
cc -c -I. -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.7.2.2\" -DXS_VERSION=\"1.7.2.2\" -fPIC "-I/home/kent/perl5/perlbrew/perls/perl-5.19.7/lib/5.19.7/x86_64-linux/CORE" Udis86.c
rm -f blib/arch/auto/X86/Udis86/Udis86.so
LD_RUN_PATH="/usr/lib/../lib64" cc -shared -O2 -g -fstack-protector Udis86.o -o blib/arch/auto/X86/Udis86/Udis86.so \
-ludis86 \
ch/auto/X86/Udis86/Udis86.bs 644
Manifying blib/man3/X86::Udis86.3
Manifying blib/man3/X86::Udis86::Operand.3
Running Mkbootstrap for X86::Udis86 ()
chmod 644 Udis86.bs
PERL_DL_NONLAZY=1 /home/kent/perl5/perlbrew/perls/perl-5.19.7/bin/perl5.19.7 "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use X86::Udis86;'
# at t/X86-Udis86.t line 10.
# Tried to use 'X86::Udis86'.
# Error: Can't load '/home/kent/.cpanm/work/1390270404.171547/X86-Udis86-1.7.2.2/blib/arch/auto/X86/Udis86/Udis86.so' for module X86::Udis86: /home/kent/.cpanm/work/1390270404.171547/X86-Udis86-1.7.2.2/blib/arch/auto/X86/Udis86/Udis86.so: undefined symbol: ud_insn_opr at /home/kent/perl5/perlbrew/perls/perl-5.19.7/lib/5.19.7/x86_64-linux/DynaLoader.pm line 190.
# at t/X86-Udis86.t line 10.
# Compilation failed in require at t/X86-Udis86.t line 10.
# BEGIN failed--compilation aborted at t/X86-Udis86.t line 10.
&X86::Udis86::constant not defined at t/X86-Udis86.t line 17.
# Looks like you planned 71 tests but ran 2.
# Looks like you failed 1 test of 2 run.
# Looks like your test exited with 255 just after 2.
t/X86-Udis86.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 70/71 subtests
Test Summary Report
-------------------
t/X86-Udis86.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 71 tests but ran 2.
Files=1, Tests=2, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.04 cusr 0.01 csys = 0.07 CPU)
Result: FAIL