Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.96k stars 555 forks source link

test-more error is preventing net-upnp from being installed #16669

Closed p5pRT closed 6 years ago

p5pRT commented 6 years ago

Migrated from rt.perl.org#133469 (status was 'rejected')

Searchable as RT133469$

p5pRT commented 6 years ago

From whpaul.thompson@gmail.com

Created by whpaul.thompson@gmail.com

Attempting to install net-upnp v.1.4.3 on archlinux arm. It fails because of a problem with the test-more package

Problem with test-more can be reproduced with the following file​:

#!/bin/perl

require Test2​::API;

Output is as follows​:

Can't locate object method "context_acquire_callbacks" via package "Test2​::API​::Instance" at /usr/share/perl5/core_perl/Test2/API.pm line 146. Compilation failed in require at ./test2-api-test.pl line 3.

Perl Info ``` Flags: category=install severity=high Site configuration information for perl 5.28.0: Configured by builduser at Mon Aug 6 18:15:39 UTC 2018. Summary of my perl5 (revision 5 version 28 subversion 0) configuration: Platform: osname=linux osvers=4.14.29-1-arch archname=armv5tel-linux-thread-multi uname='linux leming 4.14.29-1-arch #1 smp preempt fri mar 23 02:57:06 utc 2018 armv5tel gnulinux ' config_args='-des -Dusethreads -Duseshrplib -Doptimize=-march=armv5te -O2 -pipe -fstack-protector-strong -fno-plt -Dprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/5.28/core_perl -Dsitelib=/usr/share/perl5/site_perl -Dsitearch=/usr/lib/perl5/5.28/site_perl -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/5.28/vendor_perl -Dscriptdir=/usr/bin/core_perl -Dsitescript=/usr/bin/site_perl -Dvendorscript=/usr/bin/vendor_perl -Dinc_version_list=none -Dman1ext=1perl -Dman3ext=3perl -Dlddlflags=-shared -Wl,-O1,--sort-common,--as-needed,-z,relro -Dldflags=-Wl,-O1,--sort-common,--as-needed,-z,relro' hint=recommended useposix=true d_sigaction=define useithreads=define usemultiplicity=define use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='cc' ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' optimize='-march=armv5te -O2 -pipe -fstack-protector-strong -fno-plt' cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include' ccversion='' gccversion='8.1.1 20180531' gccosandvers='' intsize=4 longsize=4 ptrsize=4 doublesize=8 byteorder=1234 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=8 longdblkind=0 ivtype='long' ivsize=4 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='cc' ldflags ='-Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib' libpth=/usr/local/lib /usr/lib/gcc/armv5tel-unknown-linux-gnueabi/8.1.1/include-fixed /usr/lib /lib libs=-lpthread -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc libc=libc-2.27.so so=so useshrplib=true libperl=libperl.so gnulibc_version='2.27' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.28/core_perl/CORE' cccdlflags='-fPIC' lddlflags='-shared -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -fstack-protector-strong' @INC for perl 5.28.0: /usr/lib/perl5/5.28/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.28/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.28/core_perl /usr/share/perl5/core_perl Environment for perl 5.28.0: HOME=/home/build LANG=en_GB.UTF-8 LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/share/backuppc/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl PERL_BADLANG (unset) SHELL=/bin/bash ```
p5pRT commented 6 years ago

From @jkeenan

On Thu\, 23 Aug 2018 23​:41​:59 GMT\, whpaul.thompson@​gmail.com wrote​:

This is a bug report for perl from whpaul.thompson@​gmail.com\, generated with the help of perlbug 1.41 running under perl 5.28.0.

----------------------------------------------------------------- [Please describe your issue here]

Attempting to install net-upnp v.1.4.3 on archlinux arm. It fails because of a problem with the test-more package

Problem with test-more can be reproduced with the following file​:

#!/bin/perl

require Test2​::API;

Output is as follows​:

Can't locate object method "context_acquire_callbacks" via package "Test2​::API​::Instance" at /usr/share/perl5/core_perl/Test2/API.pm line 146. Compilation failed in require at ./test2-api-test.pl line 3.

Diagnosing problems with Linux distributions is really far outside the scope of rt.perl.org\, as this issue tracker is for problems in the Perl 5 core distribution.

That being said\, a DDG search for 'net-upnp' led me to this CPAN distribution​: https://metacpan.org/pod/Net::UPnP

I downloaded its source code but couldn't find the strings 'Test2' or 'API' therein. Its test suite consists in its entirety of​:

##### use Test​::More tests => 1; BEGIN { use_ok('Net​::UPnP') }; #####

Should the problem be in Test2​::API\, that's part of the Test-Simple distribution which\, though distributed with perl-5.28\, is maintained upstream on CPAN. You would therefore have to file a report with its bug tracker. I'm therefore inclined to reject this ticket.

Thank you very much. -- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 6 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 6 years ago

From @iabyn

On Sun\, Aug 26\, 2018 at 06​:01​:57PM -0700\, James E Keenan via RT wrote​:

Should the problem be in Test2​::API\, that's part of the Test-Simple distribution which\, though distributed with perl-5.28\, is maintained upstream on CPAN. You would therefore have to file a report with its bug tracker. I'm therefore inclined to reject this ticket.

The OP has just submitted two tickets\, both of which show perl failing with trivial one-line programs​:

  use version;

and

  require Test2​::API;

Clearly something this basic wouldn't be failing on most perls or we'd have noticed long before now. The question is\, what is different about the OP's perl installation\, and does this reflect a problem with the OP's system\, with the nodules in question\, or with perl itself? We don't know yet.

The OP's perl appears to be the one bundled with the OS\, which may have local changes causing the problem (or not). Its also an arm CPU which might be triggering an obscure endian bug for example.

OP - do you have the ability to download and build a vanilla version of 5.28.0 and see if the problem one liners are still reproducible?

-- A major Starfleet emergency breaks out near the Enterprise\, but fortunately some other ships in the area are able to deal with it to everyone's satisfaction.   -- Things That Never Happen in "Star Trek" #13

p5pRT commented 6 years ago

From @iabyn

On Sun\, Aug 26\, 2018 at 06​:01​:57PM -0700\, James E Keenan via RT wrote​:

Should the problem be in Test2​::API\, that's part of the Test-Simple distribution which\, though distributed with perl-5.28\, is maintained upstream on CPAN. You would therefore have to file a report with its bug tracker. I'm therefore inclined to reject this ticket.

The OP has just submitted two tickets\, both of which show perl failing with trivial one-line programs​:

  use version;

and

  require Test2​::API;

Clearly something this basic wouldn't be failing on most perls or we'd have noticed long before now. The question is\, what is different about the OP's perl installation\, and does this reflect a problem with the OP's system\, with the nodules in question\, or with perl itself? We don't know yet.

The OP's perl appears to be the one bundled with the OS\, which may have local changes causing the problem (or not). Its also an arm CPU which might be triggering an obscure endian bug for example.

OP - do you have the ability to download and build a vanilla version of 5.28.0 and see if the problem one liners are still reproducible?

-- A major Starfleet emergency breaks out near the Enterprise\, but fortunately some other ships in the area are able to deal with it to everyone's satisfaction.   -- Things That Never Happen in "Star Trek" #13

p5pRT commented 6 years ago

From whpaul.thompson@gmail.com

Thank you for your willingness to help. However\, this is probably related to a specific architecture distribution issue such as that raised at https://archlinuxarm.org/forum/viewtopic.php?f=15&t=13000&p=59167&hilit=perl#p59167

I will follow it up on the archlinuxarm forum as that seems to be the more appropriate location

On 27 August 2018 at 09​:38\, Dave Mitchell via RT \perlbug\-followup@​perl\.org wrote​:

On Sun\, Aug 26\, 2018 at 06​:01​:57PM -0700\, James E Keenan via RT wrote​:

Should the problem be in Test2​::API\, that's part of the Test-Simple distribution which\, though distributed with perl-5.28\, is maintained upstream on CPAN. You would therefore have to file a report with its bug tracker. I'm therefore inclined to reject this ticket.

The OP has just submitted two tickets\, both of which show perl failing with trivial one-line programs​:

use version;

and

require Test2​::API;

Clearly something this basic wouldn't be failing on most perls or we'd have noticed long before now. The question is\, what is different about the OP's perl installation\, and does this reflect a problem with the OP's system\, with the nodules in question\, or with perl itself? We don't know yet.

The OP's perl appears to be the one bundled with the OS\, which may have local changes causing the problem (or not). Its also an arm CPU which might be triggering an obscure endian bug for example.

OP - do you have the ability to download and build a vanilla version of 5.28.0 and see if the problem one liners are still reproducible?

-- A major Starfleet emergency breaks out near the Enterprise\, but fortunately some other ships in the area are able to deal with it to everyone's satisfaction. -- Things That Never Happen in "Star Trek" #13

p5pRT commented 6 years ago

From @jkeenan

Closing per request of original poster. Not a Perl 5 core distribution problem.

Thank you very much. -- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 6 years ago

@jkeenan - Status changed from 'open' to 'rejected'