Skip Menu |

This queue is for tickets about the X86-Udis86 CPAN distribution.

Report information
The Basics
Id: 92317
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: X86-Udis86

People
Owner: bob [...] fourtheye.org
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

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



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
 

 

Oh, I have udis86 1.7,  thats probably relevant context.

On Mon Jan 20 21:20:16 2014, KENTNL wrote: Show quoted text
> Oh, I have udis86 1.7, thats probably relevant context.
Fixed in version 1.7.2.3 - uploaded to CPAN tonight. I tested the following use cases: 1. no udis installed - fails with error as expected 2. udis 1.7 installed, no local version of 1.7.2 - fails with error as expected. 3. udis 1.7 installed, local version of 1.7.2 (invoked passing LIBS and INC) - works with no error as expected. 4. udis 1.7.2 installed - works with no error as expected. Please retest with the newly uploaded version and resolve ticket if satisfied.
Subject: Re: [rt.cpan.org #92317] Tests fail during `use_ok` with compilation failure in require as X86::Udis86::constant not defined
Date: Tue, 28 Jan 2014 22:26:02 +0100
To: Kent Fredric via RT <bug-X86-Udis86 [...] rt.cpan.org>
From: Robert Wilkinson <bob [...] fourtheye.org>
On Mon, Jan 20, 2014 at 09:20:16PM -0500, Kent Fredric via RT wrote: Show quoted text
> Queue: X86-Udis86 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=92317 > > > Oh, I have udis86 1.7, thats probably relevant context.
Hi Kent I have added a comment to the RT ticket and uploaded a new version of the software. Please test it and resolve the ticket if you are happy with the fix. An older version of the software did work with 1.7 but the API changed a lot; I dropped some of the functionality since I have not used it for a long time. I think that what remains does function correctly. Thank you for yout report. Bob