Skip Menu |

This queue is for tickets about the threads CPAN distribution.

Report information
The Basics
Id: 102527
Status: resolved
Priority: 0/
Queue: threads

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.97
Fixed in: 1.99



Subject: undefined symbol: PERL_UNUSED_RESULT on perl 5.18.4
threads-1.97 seems not working with perl-5.18.4 and older: $ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/basic.t .......... Can't load '/home/petr/fedora/perl-threads/threads-1.97/blib/arch/auto/threads/threads.so' for module threads: /home/petr/fedora/perl-threads/threads-1.97/blib/arch/auto/threads/threads.so: undefined symbol: PERL_UNUSED_RESULT at /usr/lib64/perl5/DynaLoader.pm line 190. at t/basic.t line 33. Compilation failed in require at t/basic.t line 33. BEGIN failed--compilation aborted at t/basic.t line 33. t/basic.t .......... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 34/34 subtests [...] See <http://matrix.cpantesters.org/?dist=threads+1.97>.
From: ppisar [...] redhat.com
Dne Čt 05.bře.2015 09:37:26, ppisar napsal(a): Show quoted text
> threads-1.97 seems not working with perl-5.18.4 and older: > > $ make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > t/basic.t .......... Can't load '/home/petr/fedora/perl- > threads/threads-1.97/blib/arch/auto/threads/threads.so' for module > threads: /home/petr/fedora/perl-threads/threads- > 1.97/blib/arch/auto/threads/threads.so: undefined symbol: > PERL_UNUSED_RESULT at /usr/lib64/perl5/DynaLoader.pm line 190. > at t/basic.t line 33. > Compilation failed in require at t/basic.t line 33. > BEGIN failed--compilation aborted at t/basic.t line 33. > t/basic.t .......... Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 34/34 subtests > [...] > > See <http://matrix.cpantesters.org/?dist=threads+1.97>.
Strange thing is that "make test" fails, while "prove -b" passes.
From: ppisar [...] redhat.com
Dne Čt 05.bře.2015 09:37:26, ppisar napsal(a): Show quoted text
> threads-1.97 seems not working with perl-5.18.4 and older: > > $ make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > t/basic.t .......... Can't load '/home/petr/fedora/perl- > threads/threads-1.97/blib/arch/auto/threads/threads.so' for module > threads: /home/petr/fedora/perl-threads/threads- > 1.97/blib/arch/auto/threads/threads.so: undefined symbol: > PERL_UNUSED_RESULT at /usr/lib64/perl5/DynaLoader.pm line 190.
The PERL_UNUSED_RESULT macro was added into perl in v5.21.0-35-gffea512 and v5.20.0-79-g9182835 commits. That explains why it fails on perl < 5.20.1.
On 2015-03-05 09:56:32, ppisar wrote: Show quoted text
> Dne Čt 05.bře.2015 09:37:26, ppisar napsal(a):
> > threads-1.97 seems not working with perl-5.18.4 and older: > > > > $ make test > > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- > > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > > 'blib/lib', 'blib/arch')" t/*.t > > t/basic.t .......... Can't load '/home/petr/fedora/perl- > > threads/threads-1.97/blib/arch/auto/threads/threads.so' for module > > threads: /home/petr/fedora/perl-threads/threads- > > 1.97/blib/arch/auto/threads/threads.so: undefined symbol: > > PERL_UNUSED_RESULT at /usr/lib64/perl5/DynaLoader.pm line 190.
> > The PERL_UNUSED_RESULT macro was added into perl in v5.21.0-35- > gffea512 and v5.20.0-79-g9182835 commits. That explains why it fails > on perl < 5.20.1.
Fixed
Subject: Re: [rt.cpan.org #102527] undefined symbol: PERL_UNUSED_RESULT on perl 5.18.4
Date: Fri, 6 Mar 2015 09:02:27 +0100
To: "Jerry D. Hedden via RT" <bug-threads [...] rt.cpan.org>
From: Petr Pisar <ppisar [...] redhat.com>
On Thu, Mar 05, 2015 at 07:34:42PM -0500, Jerry D. Hedden via RT wrote: Show quoted text
> On 2015-03-05 09:56:32, ppisar wrote:
> > > > The PERL_UNUSED_RESULT macro was added into perl in v5.21.0-35- > > gffea512 and v5.20.0-79-g9182835 commits. That explains why it fails > > on perl < 5.20.1.
> > > Fixed
Unfortunatelly not. See <http://matrix.cpantesters.org/?dist=threads+1.98>. The updated ppport.h still does not supply PERL_UNUSED_RESULT definition. Even latest Devel-PPPort-3.30 does not know the PERL_UNUSED_RESULT. -- Petr
Download (untitled)
application/pgp-signature 213b

Message body not shown because it is not plain text.

On 2015-03-06 03:02:48, ppisar wrote: Show quoted text
> On Thu, Mar 05, 2015 at 07:34:42PM -0500, Jerry D. Hedden via RT > wrote:
> > On 2015-03-05 09:56:32, ppisar wrote:
> > > > > > The PERL_UNUSED_RESULT macro was added into perl in v5.21.0-35- > > > gffea512 and v5.20.0-79-g9182835 commits. That explains why it > > > fails > > > on perl < 5.20.1.
> > > > > > Fixed
> > Unfortunatelly not. See > <http://matrix.cpantesters.org/?dist=threads+1.98>. > The updated ppport.h still does not supply PERL_UNUSED_RESULT > definition. Even > latest Devel-PPPort-3.30 does not know the PERL_UNUSED_RESULT. > > -- Petr
Really fixed, now. (I'm pretty sure.)