Skip Menu |

This queue is for tickets about the MPV-Simple CPAN distribution.

Report information
The Basics
Id: 132423
Status: resolved
Priority: 0/
Queue: MPV-Simple

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Undefined symbol "perl_clone" (0.65)
The test suite fails on most of my smokers like this: ... # Failed test 'use MPV::Simple;' # at t/MPV-Simple.t line 12. # Tried to use 'MPV::Simple'. # Error: Can't load '/usr/home/cpansand/.cpan/build/2020042606/MPV-Simple-0.65-4/blib/arch/auto/MPV/Simple/Simple.so' for module MPV::Simple: /usr/home/cpansand/.cpan/build/2020042606/MPV-Simple-0.65-4/blib/arch/auto/MPV/Simple/Simple.so: Undefined symbol "perl_clone" at /usr/perl5.28.1Dp/lib/5.28.1/amd64-freebsd-ld/DynaLoader.pm line 193. # # Compilation failed in require at t/MPV-Simple.t line 12. # BEGIN failed--compilation aborted at t/MPV-Simple.t line 12. # Looks like you failed 1 test of 1. t/MPV-Simple.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests ... Possibly perl_clone is only available in threaded perls.
On 2020-04-26 03:05:22, SREZIC wrote: Show quoted text
> The test suite fails on most of my smokers like this: > > ... > # Failed test 'use MPV::Simple;' > # at t/MPV-Simple.t line 12. > # Tried to use 'MPV::Simple'. > # Error: Can't load > '/usr/home/cpansand/.cpan/build/2020042606/MPV-Simple-0.65- > 4/blib/arch/auto/MPV/Simple/Simple.so' for module MPV::Simple: > /usr/home/cpansand/.cpan/build/2020042606/MPV-Simple-0.65- > 4/blib/arch/auto/MPV/Simple/Simple.so: Undefined symbol "perl_clone" > at /usr/perl5.28.1Dp/lib/5.28.1/amd64-freebsd-ld/DynaLoader.pm line > 193. > # # Compilation failed in require at t/MPV-Simple.t line 12. > # BEGIN failed--compilation aborted at t/MPV-Simple.t line 12. > # Looks like you failed 1 test of 1. > t/MPV-Simple.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/1 subtests > ... > > Possibly perl_clone is only available in threaded perls.
On some systems (e.g. threaded perl 5.31.10 on Ubuntu 18.04) it's another missing symbol: # Failed test 'use MPV::Simple;' # at t/MPV-Simple.t line 12. # Tried to use 'MPV::Simple'. # Error: Can't load '/home/cpansand/.cpan/build/2020042606/MPV-Simple-0.65-6/blib/arch/auto/MPV/Simple/Simple.so' for module MPV::Simple: /home/cpansand/.cpan/build/2020042606/MPV-Simple-0.65-6/blib/arch/auto/MPV/Simple/Simple.so: undefined symbol: mpv_destroy at /opt/perl-5.31.9t/lib/5.31.9/x86_64-linux-thread-multi/DynaLoader.pm line 193. # # Compilation failed in require at t/MPV-Simple.t line 12. # BEGIN failed--compilation aborted at t/MPV-Simple.t line 12. # Looks like you failed 1 test of 1. t/MPV-Simple.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests
Show quoted text
> Possibly perl_clone is only available in threaded perls.
Dear Slaven Rezic, Thanks for the hint. The new version uses mpv_set_wakeup_callback() which runs a callback in a foreign thread. The callback changes a perl variable which signaled, that new events occured. In the old version everything of this happened in C. Therefore indeed MPV::Simple needs a threaded perl. For now I will add a simple check and clone the perl context only in threaded environments. Nevertheless the modul will not run correctly in non threaded perls! Best wishes, Max
Dear Slaven Rezic, Regarding the mpv_destroy problem, I think, on Ubuntu 18.04 there is an old mpv version? Because the binding doesn't need mpv_destroy I deleted the funtion in the XS file in ver. 0.66. I hope, this solves this issue... Best wishes, Max
Okay, I hope the test issues are solved in 0.67. Perhaps you can test this again? Thanks in advance, Max
On 2020-04-26 05:19:17, PERLMAX wrote: Show quoted text
> Okay, I hope the test issues are solved in 0.67. Perhaps you can test > this again? Thanks in advance,
Yes, things look better now. No more failures on my smokers.