Closed p5pRT closed 10 years ago
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
# Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # BEGIN failed--compilation aborted at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # Compilation failed in require at /home/c/.cpan/build/Wx-0.9923-XUII6l/blib/lib/Wx.pm line 176. # Compilation failed in require at t/01_load.t line 6. # BEGIN failed--compilation aborted at t/01_load.t line 6. Attempt to reload Wx.pm aborted. Compilation failed in require at t/01_load.t line 8. BEGIN failed--compilation aborted at t/01_load.t line 8. # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1.
More data here: http://www.cpantesters.org/cpan/report/fcc719b0-de76-11e3-b8e2-4dcc6dfca90a
PASS 5.18.2 on same VM: http://www.cpantesters.org/cpan/report/64f79210-e036-11e3-8976-76fc6dfca90a
https://rt.cpan.org/Ticket/Display.html?id=95808
-- Alexandr Ciornii\, http://chorny.net
On 05/20/2014 03:16 PM\, Alexandr Ciornii (via RT) wrote:
# New Ticket Created by Alexandr Ciornii # Please include the string: [perl #121930] # in the subject line of all future correspondence about this issue. # \<URL: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930 >
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
# Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # BEGIN failed--compilation aborted at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # Compilation failed in require at /home/c/.cpan/build/Wx-0.9923-XUII6l/blib/lib/Wx.pm line 176. # Compilation failed in require at t/01_load.t line 6. # BEGIN failed--compilation aborted at t/01_load.t line 6. Attempt to reload Wx.pm aborted. Compilation failed in require at t/01_load.t line 8. BEGIN failed--compilation aborted at t/01_load.t line 8. # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1.
More data here: http://www.cpantesters.org/cpan/report/fcc719b0-de76-11e3-b8e2-4dcc6dfca90a
PASS 5.18.2 on same VM: http://www.cpantesters.org/cpan/report/64f79210-e036-11e3-8976-76fc6dfca90a
I'm trying to reproduce this\, and am unable to compile it. We have seen these symptoms before\, which were fixed. It appears that 'version' is getting a comma as the decimal point\, which it can't handle. In getting ready for 5.21\, I found some potentially relevant code that I believed was wrong for 5.20\, but didn't come up with a test that failed for it. The most expedient thing might be for you to try the attached patch and see if that fixes the problem.
I'm using gcc 4.8.1; the bug report compiler is 4.7.2.
The code is g++ that is failing. At first I thought somehow it was something I was doing that was causing it to be C++ instead of C\, but at least subsets of the code appear to be real C++. The messages I get are
PropertyGrid.c: In function ‘void XS_Wx__ColourProperty_SetPlValue(CV*)’:
PropertyGrid.c:26060:49: error: call of overloaded
‘wxVariant(wxColour&)’ is ambiguous
wxVariant value = wxVariant(*col);
^
PropertyGrid.c:26060:49: note: candidates are:
In file included from ../../cpp/helpers.h:19:0\,
from ../../cpp/wxapi.h:158\,
from PropertyGrid.c:23:
/home/khw/cpanbroken/lib/perl5/site_perl/5.20.0/x86_64-linux/Alien/wxWidgets/gtk_3_0_0_uni/include/wx-3.0/wx/variant.h:283:5:
note: wxVariant::wxVariant(void*\, const wxString&) \
=========================================
I haven't dealt with C++ in well over a decade. My guess is that the newer compiler is catching things that the older one didn't\, and it would be time consuming for me to try to figure out the internal code of this distribution enough to fix this compilation error (and who knows how many further ones there are).
The RT System itself - Status changed from 'new' to 'open'
On Tue May 20 22:17:19 2014\, public@khwilliamson.com wrote:
On 05/20/2014 03:16 PM\, Alexandr Ciornii (via RT) wrote:
# New Ticket Created by Alexandr Ciornii # Please include the string: [perl #121930] # in the subject line of all future correspondence about this issue. # \<URL: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930 >
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
I'm trying to reproduce this\, and am unable to compile it. We have seen these symptoms before\, which were fixed. It appears that 'version' is getting a comma as the decimal point\, which it can't handle. In getting ready for 5.21\, I found some potentially relevant code that I believed was wrong for 5.20\, but didn't come up with a test that failed for it. The most expedient thing might be for you to try the attached patch and see if that fixes the problem.
Still fails.
-- Alexandr Ciornii\, http://chorny.net
On 05/21/2014 03:13 PM\, Alexandr Ciornii via RT wrote:
On Tue May 20 22:17:19 2014\, public@khwilliamson.com wrote:
On 05/20/2014 03:16 PM\, Alexandr Ciornii (via RT) wrote:
# New Ticket Created by Alexandr Ciornii # Please include the string: [perl #121930] # in the subject line of all future correspondence about this issue. # \<URL: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930 >
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
I'm trying to reproduce this\, and am unable to compile it. We have seen these symptoms before\, which were fixed. It appears that 'version' is getting a comma as the decimal point\, which it can't handle. In getting ready for 5.21\, I found some potentially relevant code that I believed was wrong for 5.20\, but didn't come up with a test that failed for it. The most expedient thing might be for you to try the attached patch and see if that fixes the problem.
Still fails.
I wiped out what I had and re-did it to be sure that it wasn't something I had done. Same compilation problem. I suspect this is the result of changes in the C++ standard. I have some old astronomy software I got in a book\, and when I got my new computer with a more modern g++\, it failed to compile\, and I had to figure out the necessary changes. Some of the failures are similar to this one.
I then tried dromedary\, which has an older g++. Unfortunately it doesn't have the requisite gtk+ development libraries installed on it. I wonder if there is a chance that it could be.
On 05/21/2014 09:54 PM\, Karl Williamson wrote:
On 05/21/2014 03:13 PM\, Alexandr Ciornii via RT wrote:
On Tue May 20 22:17:19 2014\, public@khwilliamson.com wrote:
On 05/20/2014 03:16 PM\, Alexandr Ciornii (via RT) wrote:
# New Ticket Created by Alexandr Ciornii # Please include the string: [perl #121930] # in the subject line of all future correspondence about this issue. # \<URL: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930 >
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
I'm trying to reproduce this
Fernando Vezzosi graciously installed gtk+ libraries on Dromedary\, and I compiled there\, which is running gcc 4.4.7.
After a significant amount of effort with hdr and linker issues\, I was able to get it to compile. But it doesn't run\, giving
undefined symbol: _Z24wxGetFullScreenMethodX11PvS_
which sounds to me like something very basic\, and unrelated to my hacks to get things to work.
If someone has some advice about this\, please let me know. Another possibility is for Alexandr to give me temporary ssh access to a machine where this is failing. I would need something compiled with debugging symbols\, and gdb.
On 05/22/2014 08:10 PM\, Karl Williamson wrote:
On 05/21/2014 09:54 PM\, Karl Williamson wrote:
On 05/21/2014 03:13 PM\, Alexandr Ciornii via RT wrote:
On Tue May 20 22:17:19 2014\, public@khwilliamson.com wrote:
On 05/20/2014 03:16 PM\, Alexandr Ciornii (via RT) wrote:
# New Ticket Created by Alexandr Ciornii # Please include the string: [perl #121930] # in the subject line of all future correspondence about this issue. # \<URL: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930 >
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
I'm trying to reproduce this
Fernando Vezzosi graciously installed gtk+ libraries on Dromedary\, and I compiled there\, which is running gcc 4.4.7.
After a significant amount of effort with hdr and linker issues\, I was able to get it to compile. But it doesn't run\, giving
undefined symbol: _Z24wxGetFullScreenMethodX11PvS_
which sounds to me like something very basic\, and unrelated to my hacks to get things to work.
If someone has some advice about this\, please let me know. Another possibility is for Alexandr to give me temporary ssh access to a machine where this is failing. I would need something compiled with debugging symbols\, and gdb.
I examined the core code in isolation\, and see a potential code path that could cause this issue. Attached is a patch to try out to see if it fixes the bug. This is just a diagnostic patch and generates a porting test error
Dana Uto 20. Svibanj 2014\, 14:16:52\, chorny reče:
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
# Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # BEGIN failed--compilation aborted at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # Compilation failed in require at /home/c/.cpan/build/Wx-0.9923-XUII6l/blib/lib/Wx.pm line 176. # Compilation failed in require at t/01_load.t line 6. # BEGIN failed--compilation aborted at t/01_load.t line 6. Attempt to reload Wx.pm aborted. Compilation failed in require at t/01_load.t line 8. BEGIN failed--compilation aborted at t/01_load.t line 8. # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1.
More data here: http://www.cpantesters.org/cpan/report/fcc719b0-de76-11e3-b8e2-4dcc6dfca90a
PASS 5.18.2 on same VM: http://www.cpantesters.org/cpan/report/64f79210-e036-11e3-8976-76fc6dfca90a
I saw these strange "Invalid version format" errors with perl 5.20.0-RC1\, too. Probably LANG=de_DE.UTF-8 was iactive. At least the following distributions were affected:
* BORUP/Gtk2-TrayIcon-0.06.tar.gz * KRYDE/Glib-Ex-ObjectBits-15.tar.gz * MUGENKEN/Net-OpenVPN-TrayIcon-v0.2.2.tar.gz * KARMAN/SWISH-Prog-0.75.tar.gz * JHALLOCK/Gapp-0.60.tar.gz * JHALLOCK/Lorem-0.22.tar.gz
On 05/26/2014 02:19 AM\, slaven@rezic.de via RT wrote:
Dana Uto 20. Svibanj 2014\, 14:16:52\, chorny reče:
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
# Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3.
I saw these strange "Invalid version format" errors with perl 5.20.0-RC1\, too. Probably LANG=de_DE.UTF-8 was iactive. At least the following distributions were affected:
\* BORUP/Gtk2\-TrayIcon\-0\.06\.tar\.gz \* KRYDE/Glib\-Ex\-ObjectBits\-15\.tar\.gz \* MUGENKEN/Net\-OpenVPN\-TrayIcon\-v0\.2\.2\.tar\.gz \* KARMAN/SWISH\-Prog\-0\.75\.tar\.gz \* JHALLOCK/Gapp\-0\.60\.tar\.gz \* JHALLOCK/Lorem\-0\.22\.tar\.gz
Since all of those packages (including Wx) have a huge list of requirements\, it would be very good to know if they all have something in common in where the error is being thrown. I suppose it is too much to hope for them all to be failing with Tie::Handle\, but I'm wondering if they are all failing on a line like this:
use 5.006_001;
None of the version code has changed in a long time (Feb 4) and I'm actually holding a few changes until after v5.20.0 is officially released.
John
Dana Ned 25. Svibanj 2014\, 23:19:28\, slaven@rezic.de reče:
Dana Uto 20. Svibanj 2014\, 14:16:52\, chorny reče:
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
# Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # BEGIN failed--compilation aborted at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # Compilation failed in require at /home/c/.cpan/build/Wx-0.9923-XUII6l/blib/lib/Wx.pm line 176. # Compilation failed in require at t/01_load.t line 6. # BEGIN failed--compilation aborted at t/01_load.t line 6. Attempt to reload Wx.pm aborted. Compilation failed in require at t/01_load.t line 8. BEGIN failed--compilation aborted at t/01_load.t line 8. # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1.
More data here: http://www.cpantesters.org/cpan/report/fcc719b0-de76-11e3-b8e2- 4dcc6dfca90a
PASS 5.18.2 on same VM: http://www.cpantesters.org/cpan/report/64f79210-e036-11e3-8976- 76fc6dfca90a
I saw these strange "Invalid version format" errors with perl 5.20.0- RC1\, too. Probably LANG=de_DE.UTF-8 was iactive. At least the following distributions were affected:
* BORUP/Gtk2-TrayIcon-0.06.tar.gz * KRYDE/Glib-Ex-ObjectBits-15.tar.gz * MUGENKEN/Net-OpenVPN-TrayIcon-v0.2.2.tar.gz * KARMAN/SWISH-Prog-0.75.tar.gz * JHALLOCK/Gapp-0.60.tar.gz * JHALLOCK/Lorem-0.22.tar.gz
A little bit more data mining in the reports on my hard disk: the following files were referenced in the error messages (perl-5.20.0-RC1 is unthreaded\, 5.20.0-RC1t is threaded):
$ grep /opt/perl-5.20 /tmp/invalid-version-format.log |perl -nle 'm{ at (\S+) line (\d+)} and print "$1 $2"'|sort -u
/opt/perl-5.20.0-RC1/lib/5.20.0/File/Temp.pm 9
/opt/perl-5.20.0-RC1/lib/5.20.0/x86_64-linux/Data/Dumper.pm 18
/opt/perl-5.20.0-RC1/lib/site_perl/5.20.0/x86_64-linux/Gtk2/TrayIcon.pm 3
/opt/perl-5.20.0-RC1/lib/site_perl/5.20.0/x86_64-linux/Moose.pm 8
/opt/perl-5.20.0-RC1t/lib/5.20.0/File/Temp.pm 9
/opt/perl-5.20.0-RC1t/lib/5.20.0/Text/ParseWords.pm 4
/opt/perl-5.20.0-RC1t/lib/5.20.0/x86_64-linux-thread-multi/Data/Dumper.pm 18
/opt/perl-5.20.0-RC1t/lib/site_perl/5.20.0/MooseX/SemiAffordanceAccessor.pm 9
/opt/perl-5.20.0-RC1t/lib/site_perl/5.20.0/SWISH/Filter.pm 3
/opt/perl-5.20.0-RC1t/lib/site_perl/5.20.0/x86_64-linux-thread-multi/DateTime.pm 3
/opt/perl-5.20.0-RC1t/lib/site_perl/5.20.0/x86_64-linux-thread-multi/Gtk2/TrayIcon.pm 3
/opt/perl-5.20.0-RC1t/lib/site_perl/5.20.0/x86_64-linux-thread-multi/Moose.pm 8
/opt/perl-5.20.0-RC1t/lib/site_perl/5.20.0/x86_64-linux-thread-multi/XML/Parser/Expat.pm 3
And the problematic lines in these files:
$ grep /opt/perl-5.20 /tmp/invalid-version-format.log |perl -nle 'm{ at (\S+) line (\d+)} and print "$1 $2"'|sort -u|perl -Mautodie -nle 'my($f\,$l)=split; open my $fh\, $f; for(1..$l-1) { \<$fh> } chomp(my $c = \<$fh>); print $c' use 5.006; use 5.006_001; use 5.008; use 5.008003; use 5.006; require 5.006; use 5.006_001; use Moose 0.94 (); use 5.005; use 5.008001; use 5.008; use 5.008003; require 5.004;
On Mon May 26 12:46:59 2014\, slaven@rezic.de wrote:
Dana Ned 25. Svibanj 2014\, 23:19:28\, slaven@rezic.de reče:
Dana Uto 20. Svibanj 2014\, 14:16:52\, chorny reče:
On Russian locale. If I set LANG=C\, problem disappears. Debian 7.
# Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # BEGIN failed--compilation aborted at /home/c/perl5/perlbrew/perls/20rc1i/lib/5.20.0/Tie/Handle.pm line 3. # Compilation failed in require at /home/c/.cpan/build/Wx-0.9923-XUII6l/blib/lib/Wx.pm line 176. # Compilation failed in require at t/01_load.t line 6. # BEGIN failed--compilation aborted at t/01_load.t line 6. Attempt to reload Wx.pm aborted. Compilation failed in require at t/01_load.t line 8. BEGIN failed--compilation aborted at t/01_load.t line 8. # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1.
More data here: http://www.cpantesters.org/cpan/report/fcc719b0-de76-11e3-b8e2- 4dcc6dfca90a
PASS 5.18.2 on same VM: http://www.cpantesters.org/cpan/report/64f79210-e036-11e3-8976- 76fc6dfca90a
I saw these strange "Invalid version format" errors with perl 5.20.0- RC1\, too. Probably LANG=de_DE.UTF-8 was iactive. At least the following distributions were affected:
* BORUP/Gtk2-TrayIcon-0.06.tar.gz * KRYDE/Glib-Ex-ObjectBits-15.tar.gz * MUGENKEN/Net-OpenVPN-TrayIcon-v0.2.2.tar.gz * KARMAN/SWISH-Prog-0.75.tar.gz * JHALLOCK/Gapp-0.60.tar.gz * JHALLOCK/Lorem-0.22.tar.gz
It appears that these all have depdendencies on gtk+\, and I run into problems when I try to get them onto my machine. It would be most helpful if someone who has any of these running on their machines could try blead on them with the patch I attached above at https://rt-archive.perl.org/perl5/Ticket/Attachment/1294077/684389/0001-Try-this-for-perl-121930.patch -- Karl Williamson
On 05/26/2014 04:46 PM\, Karl Williamson via RT wrote:
* KRYDE/Glib-Ex-ObjectBits-15.tar.gz
I did find a machine that has gtk2\, and tried this distribution on it\, and could not get official blead to fail. I used an Austrian german locale whose radix is a comma.
On Tue\, May 27\, 2014 at 2:36 AM\, Karl Williamson \public@​khwilliamson\.comwrote:
On 05/26/2014 04:46 PM\, Karl Williamson via RT wrote:
* KRYDE/Glib-Ex-ObjectBits-15.tar.gz
I did find a machine that has gtk2\, and tried this distribution on it\, and could not get official blead to fail. I used an Austrian german locale whose radix is a comma.
I just tried to install it as requirement for Padre on my notebook with 5.20 and got this failure. My env looks like this (US keyboard and UI\, Austrian date format\, currency etc): LANG=en_US.UTF-8 GDM_LANG=en_US LANGUAGE=en LC_PAPER=de_AT.UTF-8 LC_ADDRESS=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 LC_NUMERIC=de_AT.UTF-8 LC_TELEPHONE=de_AT.UTF-8 LC_IDENTIFICATION=de_AT.UTF-8 LC_MEASUREMENT=de_AT.UTF-8 LC_TIME=de_AT.UTF-8 LC_NAME=de_AT.UTF-8
Anything I can do to help troubleshooting it?
On 05/27/2014 12:42 PM\, Alexander Hartmaier wrote:
On Tue\, May 27\, 2014 at 2:36 AM\, Karl Williamson \<public@khwilliamson.com \mailto​:public@​khwilliamson\.com> wrote:
On 05/26/2014 04​:46 PM\, Karl Williamson via RT wrote​: \* KRYDE/Glib\-Ex\-ObjectBits\-15\.\_\_tar\.gz I did find a machine that has gtk2\, and tried this distribution on it\, and could not get official blead to fail\. I used an Austrian german locale whose radix is a comma\.
I just tried to install it as requirement for Padre on my notebook with 5.20 and got this failure. My env looks like this (US keyboard and UI\, Austrian date format\, currency etc): LANG=en_US.UTF-8 GDM_LANG=en_US LANGUAGE=en LC_PAPER=de_AT.UTF-8 LC_ADDRESS=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 LC_NUMERIC=de_AT.UTF-8 LC_TELEPHONE=de_AT.UTF-8 LC_IDENTIFICATION=de_AT.UTF-8 LC_MEASUREMENT=de_AT.UTF-8 LC_TIME=de_AT.UTF-8 LC_NAME=de_AT.UTF-8
Anything I can do to help troubleshooting it?
Yes please\, just see if this patch fixes it\, and if not we can go from there.
On Tue\, May 27\, 2014 at 8:59 PM\, Karl Williamson \public@​khwilliamson\.comwrote:
On 05/27/2014 12:42 PM\, Alexander Hartmaier wrote:
On Tue\, May 27\, 2014 at 2:36 AM\, Karl Williamson \<public@khwilliamson.com \mailto​:public@​khwilliamson\.com> wrote:
On 05/26/2014 04​:46 PM\, Karl Williamson via RT wrote​: \* KRYDE/Glib\-Ex\-ObjectBits\-15\.\_\_tar\.gz I did find a machine that has gtk2\, and tried this distribution on it\, and could not get official blead to fail\. I used an Austrian german locale whose radix is a comma\.
I just tried to install it as requirement for Padre on my notebook with 5.20 and got this failure. My env looks like this (US keyboard and UI\, Austrian date format\, currency etc): LANG=en_US.UTF-8 GDM_LANG=en_US LANGUAGE=en LC_PAPER=de_AT.UTF-8 LC_ADDRESS=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 LC_NUMERIC=de_AT.UTF-8 LC_TELEPHONE=de_AT.UTF-8 LC_IDENTIFICATION=de_AT.UTF-8 LC_MEASUREMENT=de_AT.UTF-8 LC_TIME=de_AT.UTF-8 LC_NAME=de_AT.UTF-8
Anything I can do to help troubleshooting it?
Yes please\, just see if this patch fixes it\, and if not we can go from there.
https://rt-archive.perl.org/perl5/Ticket/Attachment/1294077/684389/ 0001-Try-this-for-perl-121930.patch
Is this a patch against Perl? Don't tell me I have to wait until 5.20.1 to use 5.20 on my dev notebook for Padre... And now I run into perlbrew's RT#95841 and had to create a tarball from the patched 5.20 dir to be able to use perlbrew.
Two tests failed: t/porting/customized .......................................... # Failed test 31 - SHA for vutil.c matches stashed SHA at porting/customized.t line 103 # got "69dd75c528eb0a2675d0701e42273cb4d9f22945" # expected "238196173eb90dea388443213a4b968323474874" FAILED at test 31 cpan/Time-HiRes/t/itimer ...................................... # Failed test at t/itimer.t line 60. FAILED at test 2
The first one is clear\, the sha hash changed because we patched the file\, the second isn't (to me).
I installed it anyways and the Wx tests still fail with the same error.
On 05/27/2014 01:53 PM\, Alexander Hartmaier wrote:
On Tue\, May 27\, 2014 at 8:59 PM\, Karl Williamson \<public@khwilliamson.com \mailto​:public@​khwilliamson\.com> wrote:
On 05/27/2014 12​:42 PM\, Alexander Hartmaier wrote​: On Tue\, May 27\, 2014 at 2​:36 AM\, Karl Williamson \<public@​khwilliamson\.com \<mailto​:public@​khwilliamson\.com> \<mailto​:public@​khwilliamson\.\_\_com \<mailto​:public@​khwilliamson\.com>>> wrote​: On 05/26/2014 04​:46 PM\, Karl Williamson via RT wrote​: \* KRYDE/Glib\-Ex\-ObjectBits\-15\.\_\_\_\_tar\.gz I did find a machine that has gtk2\, and tried this distribution on it\, and could not get official blead to fail\. I used an Austrian german locale whose radix is a comma\. I just tried to install it as requirement for Padre on my notebook with 5\.20 and got this failure\. My env looks like this \(US keyboard and UI\, Austrian date format\, currency etc\)​: LANG=en\_US\.UTF\-8 GDM\_LANG=en\_US LANGUAGE=en LC\_PAPER=de\_AT\.UTF\-8 LC\_ADDRESS=de\_AT\.UTF\-8 LC\_MONETARY=de\_AT\.UTF\-8 LC\_NUMERIC=de\_AT\.UTF\-8 LC\_TELEPHONE=de\_AT\.UTF\-8 LC\_IDENTIFICATION=de\_AT\.UTF\-8 LC\_MEASUREMENT=de\_AT\.UTF\-8 LC\_TIME=de\_AT\.UTF\-8 LC\_NAME=de\_AT\.UTF\-8 Anything I can do to help troubleshooting it? Yes please\, just see if this patch fixes it\, and if not we can go from there\. https://rt-archive.perl.org/perl5/Ticket/__Attachment/1294077/684389/__0001-Try-this-for-perl-121930.__patch \<https://rt-archive.perl.org/perl5/Ticket/Attachment/1294077/684389/0001-Try-this-for-perl-121930.patch>
Is this a patch against Perl? Don't tell me I have to wait until 5.20.1 to use 5.20 on my dev notebook for Padre...
Afraid so\, or use 5.20 with whatever patch we finally come up with.
And now I run into perlbrew's RT#95841 and had to create a tarball from the patched 5.20 dir to be able to use perlbrew.
Two tests failed: t/porting/customized .......................................... # Failed test 31 - SHA for vutil.c matches stashed SHA at porting/customized.t line 103 # got "69dd75c528eb0a2675d0701e42273cb4d9f22945" # expected "238196173eb90dea388443213a4b968323474874" FAILED at test 31 cpan/Time-HiRes/t/itimer ...................................... # Failed test at t/itimer.t line 60. FAILED at test 2
The first one is clear\, the sha hash changed because we patched the file\, the second isn't (to me).
HiRes notoriously fails reasonably often in smokers due to load issues. It is testing timings\, and when run again\, passes.
I installed it anyways and the Wx tests still fail with the same error.
Darn. Could you either give me temporary ssh access to your system\, or work with me via skype or irc chat so that I can guide you in debugging the issue?
On Tue\, May 27\, 2014 at 10:33 PM\, Karl Williamson \public@​khwilliamson\.comwrote:
On 05/27/2014 01:53 PM\, Alexander Hartmaier wrote:
On Tue\, May 27\, 2014 at 8:59 PM\, Karl Williamson \<public@khwilliamson.com \mailto​:public@​khwilliamson\.com> wrote:
On 05/27/2014 12​:42 PM\, Alexander Hartmaier wrote​: On Tue\, May 27\, 2014 at 2​:36 AM\, Karl Williamson \<public@​khwilliamson\.com \<mailto​:public@​khwilliamson\.com> \<mailto​:public@​khwilliamson\.\_\_com \<mailto​:public@​khwilliamson\.com>>> wrote​: On 05/26/2014 04​:46 PM\, Karl Williamson via RT wrote​: \* KRYDE/Glib\-Ex\-ObjectBits\-15\.\_\_\_\_tar\.gz I did find a machine that has gtk2\, and tried this distribution on it\, and could not get official blead to fail\. I used an Austrian german locale whose radix is a comma\. I just tried to install it as requirement for Padre on my notebook with 5\.20 and got this failure\. My env looks like this \(US keyboard and UI\, Austrian date format\, currency etc\)​: LANG=en\_US\.UTF\-8 GDM\_LANG=en\_US LANGUAGE=en LC\_PAPER=de\_AT\.UTF\-8 LC\_ADDRESS=de\_AT\.UTF\-8 LC\_MONETARY=de\_AT\.UTF\-8 LC\_NUMERIC=de\_AT\.UTF\-8 LC\_TELEPHONE=de\_AT\.UTF\-8 LC\_IDENTIFICATION=de\_AT\.UTF\-8 LC\_MEASUREMENT=de\_AT\.UTF\-8 LC\_TIME=de\_AT\.UTF\-8 LC\_NAME=de\_AT\.UTF\-8 Anything I can do to help troubleshooting it? Yes please\, just see if this patch fixes it\, and if not we can go from there\. https://rt-archive.perl.org/perl5/Ticket/__Attachment/1294077/684389/__
0001-Try-this-for-perl-121930.__patch
\<https://rt-archive.perl.org/perl5/Ticket/Attachment/1294077/684389/
0001-Try-this-for-perl-121930.patch>
Is this a patch against Perl? Don't tell me I have to wait until 5.20.1 to use 5.20 on my dev notebook for Padre...
Afraid so\, or use 5.20 with whatever patch we finally come up with.
And now I run into perlbrew's RT#95841 and had to create a tarball from
the patched 5.20 dir to be able to use perlbrew.
Two tests failed: t/porting/customized .......................................... # Failed test 31 - SHA for vutil.c matches stashed SHA at porting/customized.t line 103 # got "69dd75c528eb0a2675d0701e42273cb4d9f22945" # expected "238196173eb90dea388443213a4b968323474874" FAILED at test 31 cpan/Time-HiRes/t/itimer ...................................... # Failed test at t/itimer.t line 60. FAILED at test 2
The first one is clear\, the sha hash changed because we patched the file\, the second isn't (to me).
HiRes notoriously fails reasonably often in smokers due to load issues. It is testing timings\, and when run again\, passes.
I installed it anyways and the Wx tests still fail with the same error.
Darn. Could you either give me temporary ssh access to your system\, or work with me via skype or irc chat so that I can guide you in debugging the issue?
It's my company notebook inside the company network\, access isn't allowed and also technically not possible but I'm on irc\, my nickname is abraxxa.
For those people who can easily reproduce this problem\, there is a possibility that the version of Perl at
http://perl5.git.perl.org/perl.git/shortlog/refs/heads/smoke-me/khw-locale
will fix it. I would appreciate it if someone would try it out.
On Mon\, Jun 2\, 2014 at 6:52 PM\, Karl Williamson \public@​khwilliamson\.com wrote:
For those people who can easily reproduce this problem\, there is a possibility that the version of Perl at
http://perl5.git.perl.org/perl.git/shortlog/refs/heads/smoke-me/khw-locale
will fix it. I would appreciate it if someone would try it out.
I tried to build it and got: Can't locate Exporter.pm in @INC (you may need to install the Exporter module) (@INC contains: /home/ahartmai/perl5/git/perl/cpan/AutoLoader/lib /home/ahartmai/perl5/git/perl/dist/Carp/lib /home/ahartmai/perl5/git/perl/dist/Cwd /home/ahartmai/perl5/git/perl/dist/Cwd/lib /home/ahartmai/perl5/git/perl/dist/ExtUtils-Command/lib /home/ahartmai/perl5/git/perl/dist/ExtUtils-Install/lib /home/ahartmai/perl5/git/perl/cpan/ExtUtils-MakeMaker/lib /home/ahartmai/perl5/git/perl/dist/ExtUtils-Manifest/lib /home/ahartmai/perl5/git/perl/cpan/File-Path/lib /home/ahartmai/perl5/git/perl/ext/re /home/ahartmai/perl5/git/perl/dist/Term-ReadLine/lib /home/ahartmai/perl5/git/perl/lib .). BEGIN failed--compilation aborted. Failed to build miniperl. Please run make minitest make: *** [lib/buildcustomize.pl] Error 1
I tried building it using perlbrew install file://home/ahartmai/perl5/git/perl-5.20.0-khw-locale.tar.bz2 --as 20-khw-locale -Duserelocatableinc -Duse64bitall -Dusethreads -Dusedevel after creating a tar.bz2 from the git checkout. Full build log attached.
On 06/03/2014 01:59 AM\, Alexander Hartmaier wrote:
On Mon\, Jun 2\, 2014 at 6:52 PM\, Karl Williamson \<public@khwilliamson.com \mailto​:public@​khwilliamson\.com> wrote:
For those people who can easily reproduce this problem\, there is a possibility that the version of Perl at http​://perl5\.git\.perl\.org/\_\_perl\.git/shortlog/refs/heads/\_\_smoke\-me/khw\-locale \<http​://perl5\.git\.perl\.org/perl\.git/shortlog/refs/heads/smoke\-me/khw\-locale> will fix it\. I would appreciate it if someone would try it out\.
I tried to build it and got: Can't locate Exporter.pm in @INC (you may need to install the Exporter module)
I don't know offhand what's going on here. But the changes are now in blead\, and hopefully you can build that.
On Thu\, Jun 5\, 2014 at 8:10 PM\, Karl Williamson \public@​khwilliamson\.com wrote:
On 06/03/2014 01:59 AM\, Alexander Hartmaier wrote:
On Mon\, Jun 2\, 2014 at 6:52 PM\, Karl Williamson \<public@khwilliamson.com \mailto​:public@​khwilliamson\.com> wrote:
For those people who can easily reproduce this problem\, there is a possibility that the version of Perl at http​://perl5\.git\.perl\.org/\_\_perl\.git/shortlog/refs/heads/\_
_smoke-me/khw-locale
\<http​://perl5\.git\.perl\.org/perl\.git/shortlog/refs/heads/
smoke-me/khw-locale>
will fix it\. I would appreciate it if someone would try it out\.
I tried to build it and got: Can't locate Exporter.pm in @INC (you may need to install the Exporter module)
I don't know offhand what's going on here. But the changes are now in blead\, and hopefully you can build that.
Still fails:
t/01_load.t ........... 1/6 # Failed test 'use Wx;' # at t/01_load.t line 6. # Tried to use 'Wx'. # Error: Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. # BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. # Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. # Compilation failed in require at t/01_load.t line 6. # BEGIN failed--compilation aborted at t/01_load.t line 6. Attempt to reload Wx.pm aborted. Compilation failed in require at t/01_load.t line 8. BEGIN failed--compilation aborted at t/01_load.t line 8. # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1. t/01_load.t ........... Dubious\, test returned 255 (wstat 65280\, 0xff00) Failed 6/6 subtests t/02_inheritance.t .... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/02_inheritance.t line 4. BEGIN failed--compilation aborted at t/02_inheritance.t line 4. t/02_inheritance.t .... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/03_event.t .......... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/03_event.t line 7. BEGIN failed--compilation aborted at t/03_event.t line 7. t/03_event.t .......... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/04_userdata.t ....... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/04_userdata.t line 6. BEGIN failed--compilation aborted at t/04_userdata.t line 6. t/04_userdata.t ....... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/05_timer.t .......... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/05_timer.t line 4. BEGIN failed--compilation aborted at t/05_timer.t line 4. t/05_timer.t .......... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/06_loadxpm.t ........ Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/06_loadxpm.t line 6. BEGIN failed--compilation aborted at t/06_loadxpm.t line 6. t/06_loadxpm.t ........ Dubious\, test returned 255 (wstat 65280\, 0xff00) Failed 2/2 subtests t/07_overload.t ....... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/07_overload.t line 4. BEGIN failed--compilation aborted at t/07_overload.t line 4. t/07_overload.t ....... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/08_ovl_func.t ....... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/08_ovl_func.t line 7. BEGIN failed--compilation aborted at t/08_ovl_func.t line 7. t/08_ovl_func.t ....... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/09_create_delete.t .. Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/09_create_delete.t line 4. BEGIN failed--compilation aborted at t/09_create_delete.t line 4. t/09_create_delete.t .. Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/10_oor.t ............ Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/10_oor.t line 7. BEGIN failed--compilation aborted at t/10_oor.t line 7. t/10_oor.t ............ Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/11_twostage.t ....... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/11_twostage.t line 4. BEGIN failed--compilation aborted at t/11_twostage.t line 4. t/11_twostage.t ....... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/12_pod.t ............ skipped: Author tests t/13_nbksizer.t ....... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/13_nbksizer.t line 4. BEGIN failed--compilation aborted at t/13_nbksizer.t line 4. t/13_nbksizer.t ....... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/14_eh_die.t ......... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/14_eh_die.t line 4. BEGIN failed--compilation aborted at t/14_eh_die.t line 4. t/14_eh_die.t ......... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/15_threads.t ........ Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/15_threads.t line 8. BEGIN failed--compilation aborted at t/15_threads.t line 8. t/15_threads.t ........ Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/16_stream.t ......... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/16_stream.t line 4. BEGIN failed--compilation aborted at t/16_stream.t line 4. t/16_stream.t ......... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/17_thread_evt.t ..... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/17_thread_evt.t line 9. BEGIN failed--compilation aborted at t/17_thread_evt.t line 9. t/17_thread_evt.t ..... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/18_unicode.t ........ Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/18_unicode.t line 4. BEGIN failed--compilation aborted at t/18_unicode.t line 4. t/18_unicode.t ........ Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/19_overlay.t ........ Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/19_overlay.t line 4. BEGIN failed--compilation aborted at t/19_overlay.t line 4. t/19_overlay.t ........ Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/20_ctx_threads.t .... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/20_ctx_threads.t line 13. BEGIN failed--compilation aborted at t/20_ctx_threads.t line 13. t/20_ctx_threads.t .... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/21_locale.t ......... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/21_locale.t line 4. BEGIN failed--compilation aborted at t/21_locale.t line 4. t/21_locale.t ......... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/22_interface.t ...... Invalid version format (non-numeric data) at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. BEGIN failed--compilation aborted at /home/ahartmai/perl5/perlbrew/perls/21/lib/5.21.1/Tie/Handle.pm line 3. Compilation failed in require at /home/ahartmai/.cpan/build/Wx-0.9923-x_7_ek/blib/lib/Wx.pm line 176. Compilation failed in require at t/22_interface.t line 7. BEGIN failed--compilation aborted at t/22_interface.t line 7. t/22_interface.t ...... Dubious\, test returned 255 (wstat 65280\, 0xff00) No subtests run t/zz_distrib.t ........ skipped: Author tests
Test Summary Report
t/01_load.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 6 tests but ran 1. t/02_inheritance.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/03_event.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/04_userdata.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/05_timer.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/06_loadxpm.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 2 tests but ran 0. t/07_overload.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/08_ovl_func.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/09_create_delete.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/10_oor.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/11_twostage.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/13_nbksizer.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/14_eh_die.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/15_threads.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/16_stream.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/17_thread_evt.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/18_unicode.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/19_overlay.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/20_ctx_threads.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/21_locale.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/22_interface.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=23\, Tests=1\, 2 wallclock secs ( 0.09 usr 0.02 sys + 1.33 cusr 0.26 csys = 1.70 CPU) Result: FAIL Failed 21/23 test programs. 1/1 subtests failed. make: *** [test_dynamic] Error 255 MDOOTSON/Wx-0.9923.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module\, try: reports MDOOTSON/Wx-0.9923.tar.gz
On 05.06.2014 20:10\, Karl Williamson wrote:
I don't know offhand what's going on here. But the changes are now in blead\, and hopefully you can build that.
I also still see the failure
# perl -e'use Gtk3; BEGIN{ Gtk3::init (); } use 5.8.0;' Invalid version format (non-numeric data) at -e line 1.
with today's blead.
On 06/06/2014 02:34 PM\, Torsten Schoenfeld wrote:
On 05.06.2014 20:10\, Karl Williamson wrote:
I don't know offhand what's going on here. But the changes are now in blead\, and hopefully you can build that.
I also still see the failure
# perl -e'use Gtk3; BEGIN{ Gtk3::init (); } use 5.8.0;' Invalid version format (non-numeric data) at -e line 1.
with today's blead.
If you are somewhat comfortable with using gdb\, you could give me some information that would be helpful.
First of all\, make sure your perl is compiled with -DDEBUGGING\, then run perl with the -DL parameter and capture the output to send to me.
Second\, run it with gdb\, and set a breakpoint gdb --args -Ilib CMD_THAT_FAILS b Perl_croak r bt
and send me the output
On 06.06.2014 23:12\, Karl Williamson wrote:
First of all\, make sure your perl is compiled with -DDEBUGGING\, then run perl with the -DL parameter and capture the output to send to me.
Specifying "-DL" doesn't produce any extra output. (Other "-D" flags do produce additional output.)
Second\, run it with gdb\, and set a breakpoint gdb --args -Ilib CMD_THAT_FAILS b Perl_croak r bt
Here's the backtrace for C\<\< perl -e'use Gtk3; BEGIN{ Gtk3::init (); } use 5.8.0;' >>:
#0 Perl_croak (pat=pat@entry=0x66d172 "%s") at util.c:1685
#1 0x00000000004c536d in Perl_scan_version (s=s@entry=0x1536610 "5\,015"\,
rv=rv@entry=0x1443f18\, qv=false) at vutil.c:290
#2 0x00000000004c5460 in Perl_upg_version (ver=ver@entry=0x1443f18\,
qv=\
On 07.06.2014 00:13\, Torsten Schoenfeld wrote:
Second\, run it with gdb\, and set a breakpoint gdb --args -Ilib CMD_THAT_FAILS b Perl_croak r bt
Here's the backtrace for C\<\< perl -e'use Gtk3; BEGIN{ Gtk3::init (); } use 5.8.0;' >>:
[...]
Now with "-O0":
#0 Perl_croak (pat=0x5f81c8 "%s") at util.c:1687 #1 0x00000000004c787a in Perl_scan_version (s=0x1456df0 "5\,015"\, rv=0x13cd3f8\, qv=false) at vutil.c:290 #2 0x00000000004c8c1f in Perl_upg_version (ver=0x13cd3f8\, qv=false) at vutil.c:682 #3 0x000000000041d65f in S_enable_feature_bundle (ver=0x85dcd8) at feature.h:134 #4 0x0000000000428c7c in Perl_utilize (aver=1\, floor=37\, version=0x0\, idop=0x862c78\, arg=0x0) at op.c:5457 #5 0x000000000047ecfb in Perl_yyparse (gramtype=258) at perly.y:398 #6 0x00000000004405dd in S_parse_body (env=0x0\, xsinit=0x41d2ab \<xs_init>) at perl.c:2290 #7 0x000000000043f446 in perl_parse (my_perl=0x83c010\, xsinit=0x41d2ab \<xs_init>\, argc=2\, argv=0x7fffffffe1b8\, env=0x0) at perl.c:1599 #8 0x000000000041d20d in main (argc=2\, argv=0x7fffffffe1b8\, env=0x7fffffffe1d0) at perlmain.c:112
On 06/06/2014 04:20 PM\, Torsten Schoenfeld wrote:
On 07.06.2014 00:13\, Torsten Schoenfeld wrote:
Second\, run it with gdb\, and set a breakpoint gdb --args -Ilib CMD_THAT_FAILS b Perl_croak r bt
Here's the backtrace for C\<\< perl -e'use Gtk3; BEGIN{ Gtk3::init (); } use 5.8.0;' >>:
[...]
Now with "-O0":
Thanks for finding that.
#0 Perl_croak (pat=0x5f81c8 "%s") at util.c:1687 #1 0x00000000004c787a in Perl_scan_version (s=0x1456df0 "5\,015"\, rv=0x13cd3f8\, qv=false) at vutil.c:290 #2 0x00000000004c8c1f in Perl_upg_version (ver=0x13cd3f8\, qv=false) at vutil.c:682 #3 0x000000000041d65f in S_enable_feature_bundle (ver=0x85dcd8) at feature.h:134 #4 0x0000000000428c7c in Perl_utilize (aver=1\, floor=37\, version=0x0\, idop=0x862c78\, arg=0x0) at op.c:5457 #5 0x000000000047ecfb in Perl_yyparse (gramtype=258) at perly.y:398 #6 0x00000000004405dd in S_parse_body (env=0x0\, xsinit=0x41d2ab \<xs_init>) at perl.c:2290 #7 0x000000000043f446 in perl_parse (my_perl=0x83c010\, xsinit=0x41d2ab \<xs_init>\, argc=2\, argv=0x7fffffffe1b8\, env=0x0) at perl.c:1599 #8 0x000000000041d20d in main (argc=2\, argv=0x7fffffffe1b8\, env=0x7fffffffe1d0) at perlmain.c:112
I believe I have now found the problem. Your initial analysis would have been sufficient\, should I have been astute enough. It is this:
"Gtk3::init is a wrapper around the C function gtk_init which for this bug boils down to setlocale (LC_ALL\, "")\, see \https://git.gnome.org/browse/gtk+/tree/gtk/gtkmain.c#n622."
I'm pretty confident that the attached patch will cause the immediate problem to go away\, but it isn't the real correct solution.
Perl has long thought in various places that it knew what the program's underlying locale is. (And all programs have an underlying locale.) What happened in 5.20 is that the number of such places increased (where Perl thought it knew the locale was)\, and ran afoul of this code in gnome which sets the locale\, without Perl knowing about it.
This is apparently not common\, or otherwise we would have gotten many more reports\, and over the years.
One solution is to have a setlocale wrapper that intercepts all calls to the real setlocale\, just as POSIX::setlocale() does for pure perl calls. That would require messing with the linker\, which I'm told may not be feasible portably across different platforms. leont suggested having a setlocale() in Perl that would be loaded ahead of the libc version\, but then we have to be able to call the real setlocale from the wrapper\, and that would have portability issues
Another solution is for Perl to change to avoid all assumptions about what the locale is\, and to set the locale unconditionally to what it should be around every operation that is locale-affected. That's too slow.
It is impossible to change the locale from pure perl without Perl's updating its info . Therefore\, another solution is for Perl to update its locale knowledge upon return from any XS function. The extra work in the usual case of said function not diddling with the locale would be a single setlocale call that returns the current state and a compare and jump with the last-known state.
Another solution is to "solve" this via documentation. Tell XS code writers that it is a bad idea generally to change the locale\, but if they do\, it should be done through the POSIX::setlocale interface.
But we can't tell this to foreign libraries\, like gtk. But as I said\, this has long been an issue in Perl\, just the number of instances where it is a problem increased in v5.20. So the problem existed to a lesser extent in previous Perls\, and a grep of cpan shows a bunch of modules look like they handled it this way:
require Gtk2; Gtk2->disable_setlocale; # leave LC_NUMERIC alone for version nums my $have_display = Gtk2->init_check;
It may be that we document that XS writers have to do something with disabling or restoring the locales around calls to alien libraries.
Suggestions welcome.
The cpan grep I used to find calls to the libc setlocale is below. It returned 56 distros\, many are false positives. The only results I know about that wouldn't be in it are if 'setlocale' is last on the line and its parentheses are on the next line\, or if there is a comment between the setlocale and its parentheses. I think either of those is unlikely
http://grep.cpan.me/?q=%28^|[^_%3A]%29setlocale\s*\%28%28%24|[^%29]%29+-file%3A%28config|Configure|Changes|.*\.%28t|cgi|log|pod|html|a|pl|pm|PL%29%24%29
Date: Sat\, 7 Jun 2014 15:45:54 -0600 From: public@khwilliamson.com To: kaffeetisch@gmx.de; perlbug-followup@perl.org Subject: Re: [perl #121930] Bleadperl breaks MDOOTSON/Wx-0.9923.tar.gz
It may be that we document that XS writers have to do something with disabling or restoring the locales around calls to alien libraries.
I think that is only choice. GUI libraries can seriously infect "normal" assumptions about OS design. Event loops\, signals\, handle states\, timers\, what keyboard key presses are\, OS threads (such as running C callbacks/C++ virtual method calls in random thread pool threads). It something that needs to be fixed in Wx the Perl module\, not in the core. If I understand correctly\, this is an issue where a C lib internal global is changed by GTK\, but Perl's cached copy of that internal global isn't updated\, since the C lib has no way to register a handler to be called when the locale is changed. Polling is slow and probably unacceptable. An API in GTK for a list of C callbacks to call when changing the locale would be nice\, but im not sure it can be convinced to happen on the GTK side.
Running any application which is using File::Copy gives following output:
Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 10.
The issue seems to be related to http://search.cpan.org/~rjbs/perl-5.20.0/pod/perldelta.pod#Locale_decimal_point_character_no_longer_leaks_outside_of_use%C2%A0locale_scope
Bug report on the Arch Linux bug tracker: https://bugs.archlinux.org/task/40718
On Sun Jun 15 09:16:07 2014\, michael.kogan@gmx.net wrote:
To: perlbug@perl.org Cc: nobody Message-Id: \5\.20\.0\_25922\_1402848368@​photon\-desktop Reply-To: michael.kogan@gmx.net From: michael.kogan@gmx.net Subject: Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10.
This is a bug report for perl from michael.kogan@gmx.net\, generated with the help of perlbug 1.40 running under perl 5.20.0.
----------------------------------------------------------------- [Please describe your issue here]
Running any application which is using File::Copy gives following output:
Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 10.
The issue seems to be related to http://search.cpan.org/~rjbs/perl- 5.20.0/pod/perldelta.pod#Locale_decimal_point_character_no_longer_leaks_outside_of_use%C2%A0locale_scope
Bug report on the Arch Linux bug tracker: https://bugs.archlinux.org/task/40718
Would it be possible for you to provide the full error output as well as the output of 'perl -V' from the machine on which you reproduce this error?
(My impression is that the perl -V output which your 'perlbug' generated is from a different machine.)
Thank you very much. Jim Keenan
The RT System itself - Status changed from 'new' to 'open'
Of course. The output of Shutter:
$ shutter Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 10. Compilation failed in require at /usr/bin/shutter line 56. BEGIN failed--compilation aborted at /usr/bin/shutter line 56.
The output of perl -V:
$ perl -V Summary of my perl5 (revision 5 version 20 subversion 0) configuration:
Platform: osname=linux\, osvers=3.14.2-1-arch\, archname=x86_64-linux-thread-multi uname='linux mnt-chroots-arch-extra-x86_64-flo-64 3.14.2-1-arch #1 smp preempt sun apr 27 11:28:44 cest 2014 x86_64 gnulinux ' config_args='-des -Dusethreads -Duseshrplib -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Dprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl -Dsitearch=/usr/lib/perl5/site_perl -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/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 -Dcccdlflags='-fPIC' -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=define\, use64bitall=define\, uselongdouble=undef usemymalloc=n\, bincompat5005=undef Compiler: cc='cc'\, ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'\, optimize='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'\, cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion=''\, gccversion='4.9.0 20140507 (prerelease)'\, gccosandvers='' intsize=4\, longsize=8\, ptrsize=8\, doublesize=8\, byteorder=12345678 d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=16 ivtype='long'\, ivsize=8\, 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 -L/usr/local/lib' libpth=/usr/local/lib /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include-fixed /usr/lib /lib/../lib /usr/lib/../lib /lib /lib64 /usr/lib64 libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=libc-2.19.so\, so=so\, useshrplib=true\, libperl=libperl.so gnulibc_version='2.19' Dynamic Linking: dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags='-Wl\,-E -Wl\,-rpath\,/usr/lib/perl5/core_perl/CORE' cccdlflags='-fPIC'\, lddlflags='-shared -Wl\,-O1\,--sort-common\,--as-needed\,-z\,relro -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under linux Compiled at May 28 2014 16:49:33 @INC: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl
Line 10 of Copy.pm:
use 5.006;
. What is your concern about the machine being not the same? Maybe something went wrong during some perl package updates and I have a mixture of different versions on my system? By the way\, several other perl modules are affected as observed by another user: https://bbs.archlinux.org/viewtopic.php?pid=1422917#p1422917
Thanks for the quick reply\, Michael
2014-06-16 3:13 GMT+02:00 James E Keenan via RT \perlbug\-followup@​perl\.org:
On Sun Jun 15 09:16:07 2014\, michael.kogan@gmx.net wrote:
To: perlbug@perl.org Cc: nobody Message-Id: \5\.20\.0\_25922\_1402848368@​photon\-desktop Reply-To: michael.kogan@gmx.net From: michael.kogan@gmx.net Subject: Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10.
This is a bug report for perl from michael.kogan@gmx.net\, generated with the help of perlbug 1.40 running under perl 5.20.0.
----------------------------------------------------------------- [Please describe your issue here]
Running any application which is using File::Copy gives following output:
Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 10.
The issue seems to be related to http://search.cpan.org/~rjbs/perl-
5.20.0/pod/perldelta.pod#Locale_decimal_point_character_no_longer_leaks_outside_of_use%C2%A0locale_scope
Bug report on the Arch Linux bug tracker: https://bugs.archlinux.org/task/40718
Would it be possible for you to provide the full error output as well as the output of 'perl -V' from the machine on which you reproduce this error?
(My impression is that the perl -V output which your 'perlbug' generated is from a different machine.)
Thank you very much. Jim Keenan
On Sun Jun 15 09:16:07 2014\, michael.kogan@gmx.net wrote:
Running any application which is using File::Copy gives following output:
Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 10.
The issue seems to be related to http://search.cpan.org/~rjbs/perl- 5.20.0/pod/perldelta.pod#Locale_decimal_point_character_no_longer_leaks_outside_of_use%C2%A0locale_scope
Bug report on the Arch Linux bug tracker: https://bugs.archlinux.org/task/40718
Could you please provide a complete example that demonstrates the problem?
This:
LANG=de_DE.utf8 ~/perl/5.20.0-dbg/bin/perl -w -MFile::Copy -e0
didn't fail for me. Neither did:
tony@mars:.../git/perl2$ LANG=de_DE.utf8 ./test.pl Hello\, World tony@mars:.../git/perl2$ cat test.pl #!/home/tony/perl/5.20.0-dbg/bin/perl use strict; use File::Copy;
print "Hello\, World\n";
Tony
Would you be able to inform us what
`perl -Mversion\ 9999` emits?
My suspicion is you have an old version.pm lying around in @INC\, and there's references in version.pm's changelog about problems with 'use locale'.
This won't be a problem on most Perl installations\, however\, arch does something not recommended: Sharing an @INC path between major versions of Perl\, requiring a full cleanout of @INC between installations ( as indicated by https://bbs.archlinux.org/viewtopic.php?pid=1424409#p1424409 ).
Its likely I'm completely wrong here\, but this seems to be the most likely explanation given the problem hasn't yet been seen outside Arch.
-- Kent
I think this is the same issue as the one discussed in
https://rt.perl.org/Public/Bug/Display.html?id=121930 https://rt.perl.org/Public/Bug/Display.html?id=121317 https://rt.perl.org/Public/Bug/Display.html?id=120723
It affects any program that directly or indirectly uses gtk+ (or any other library that calls setlocale())\, like Shutter.
Hello Tony\,
the two snippets you gave in your comment work for me either without any errors. Unfortunately\, I'm not a developer but just a regular user\, therefore I cannot provide a minimal example causing the problem. I can just point you at applications where this problem occurs:
- Shutter with Copy.pm. URL: https://code.launchpad.net/shutter Output:
$ shutter Invalid version format (non-numeric data) at /usr/share/perl5/core_perl/File/Copy.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 10. Compilation failed in require at /usr/bin/shutter line 56. BEGIN failed--compilation aborted at /usr/bin/shutter line 56.
Line 56 in /usr/bin/shutter is:
use File::Copy qw/ cp mv /;
- Gmusicbrowser with Encode.pm (see cpan ticket #96467 \https://rt.cpan.org/Ticket/Display.html?id=96467 attached by James). URL: https://github.com/squentin/gmusicbrowser Output:
$ gmusicbrowser Invalid version format (non-numeric data) at /usr/lib/perl5/core_perl/Encode.pm line 12. BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/Encode.pm line 12. Compilation failed in require at /usr/bin/gmusicbrowser line 26. BEGIN failed--compilation aborted at /usr/bin/gmusicbrowser line 26.
Line 26 in /usr/bin/gmusicbrowser is:
use Encode qw/_utf8_on _utf8_off/;
- Reported by another user: Pac Manager with Socket.pm. URL: no idea\, can ask the other user if important. Output:
$ pac Invalid version format (non-numeric data) at /usr/lib/perl5/core_perl/IO/Socket.pm line 13. BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Socket.pm line 13. Compilation failed in require at /usr/lib/perl5/core_perl/IO/Socket/INET.pm line 11. BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Socket/INET.pm line 11. Compilation failed in require at /usr/share/pacmanager/lib/PACTerminal.pm line 38. BEGIN failed--compilation aborted at /usr/share/pacmanager/lib/PACTerminal.pm line 38. Compilation failed in require at /usr/share/pacmanager/lib/PACMain.pm line 58. BEGIN failed--compilation aborted at /usr/share/pacmanager/lib/PACMain.pm line 58. Compilation failed in require at /usr/bin/pac line 62. BEGIN failed--compilation aborted at /usr/bin/pac line 62.
Thanks for your assistance\, Michael
Kent\, here is the output:
$ perl -Mversion\ 9999 version version 9999 required--this is only version 0.9908. BEGIN failed--compilation aborted. -------- However\, I had already discovered the post that you linked and followed the steps described in it. But the error reported above still persists. On the other hand\, running the command from step 2 still gives me the same list of bad packages even after reinstalling them as in step 3. The packages in my case are:
perl-data-random perl-goo-canvas perl-gtk2-imageview perl-gtk2-notify perl-gtk2-unique perl-mouse perl-net-dropbox-api perl-proc-processtable perl-proc-simple perl-test-leaktrace
Torsten\, the issues you referenced look fitting. Indeed\, Shutter\, Gmusicbrowser\, Gprename (which I forgot to mention in the previous comment) and Pac Manager all use Gtk+.
I sent already two replies\, 3 and 4 hours ago\, but none of them made it through to the bug report. In the hope that this short one will\, how can I deal with it?
Michael
2014-06-16 10:11 GMT+02:00 Michael Kogan \michael\.kogan@​gmx\.net:
Kent\, here is the output: -------- $ perl -Mversion\ 9999 version version 9999 required--this is only version 0.9908. BEGIN failed--compilation aborted. -------- However\, I had already discovered the post that you linked and followed the steps described in it. But the error reported above still persists. On the other hand\, running the command from step 2 still gives me the same list of bad packages even after reinstalling them as in step 3. The packages in my case are: -------- perl-data-random perl-goo-canvas perl-gtk2-imageview perl-gtk2-notify perl-gtk2-unique perl-mouse perl-net-dropbox-api perl-proc-processtable perl-proc-simple perl-test-leaktrace --------
Torsten\, the issues you referenced look fitting. Indeed\, Shutter\, Gmusicbrowser\, Gprename (which I forgot to mention in the previous comment) and Pac Manager all use Gtk+.
On 06/16/2014 01:53 AM\, "Torsten Schönfeld" wrote:
I think this is the same issue as the one discussed in
https://rt.perl.org/Public/Bug/Display.html?id=121930 https://rt.perl.org/Public/Bug/Display.html?id=121317 https://rt.perl.org/Public/Bug/Display.html?id=120723
It affects any program that directly or indirectly uses gtk+ (or any other library that calls setlocale())\, like Shutter.
Almost certainly this is the case.
I posted a patch to blead to try on 6/7\, but have not heard any response as to whether that works or not. Until we get someone who can reproduce the problem to try this\, we can't proceed.
Karl\, could you point me to the patch\, please? Thanks!
On 06/16/2014 05:38 AM\, Michael Kogan wrote:
I sent already two replies\, 3 and 4 hours ago\, but none of them made it through to the bug report. In the hope that this short one will\, how can I deal with it?
Michael
I believe your replies eventually got through. And I think your question above is about how you as a user and not a programmer can deal with shutter not working.
What would likely work for you immediately is to run it under a locale that uses a dot for the decimal point character\, instead of a comma
The command 'locale -a' should tell you what locales are available on your system. You could choose an English one\, for example. Let's say that en_UK.UTF-8 is there. Then\, from the shell command line you could say LC_NUMERIC=en_UK.UTF-8 export LC_NUMERIC shutter ... (or however it is invoked)
Another option is to revert to using Perl v5.18 until this issue is resolved.
My problem is that I can't get gtk to compile on the systems I have access too\, and am relying on people with development capabilities to try things out on their system\, which slows things down. We are not sure what the problem is\, though I believe I have isolated it. You can look at this url to see the discussion so far https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930
On 06/16/2014 01:25 PM\, Michael Kogan wrote:
Karl\, could you point me to the patch\, please? Thanks!
Attached
Karl\, thanks for the patch. I forwarded the call for testing to the Arch forums thread and the corresponding bug report in the Arch tracker. If everything else fails\, I will set up a Virtual Box Arch install and try applying the patch this weekend.
2014-06-16 21:25 GMT+02:00 Michael Kogan \michael\.kogan@​gmx\.net:
Karl\, could you point me to the patch\, please? Thanks!
Karl\, a user reported that your patch solves the problem: https://bugs.archlinux.org/task/40718#comment124393
On 06/16/2014 11:45 PM\, Michael Kogan wrote:
Karl\, a user reported that your patch solves the problem: https://bugs.archlinux.org/task/40718#comment124393
Thanks. Based on that\, I've merged this ticket into https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121930
I can produce a patch that should apply cleanly to v5.20. Things have changed slightly since then\, and I'm pretty sure that is why the patch I sent doesn't cleanly apply.
What we need to do is decide how to proceed. The problem isn't really a Perl problem\, but an interaction with the gtk library.
Let me first say that the basic issue isn't new in v5.20. It has been around probably from the beginning of interacting with gtk. Various modules in CPAN have encountered this before and solved it. What is new is that 5.20 perturbed things so that various modules that had avoided this issue\, mostly by luck\, were now exposed to it. That includes shutter and Wx (perhaps shutter is built on Wx\, I don't know).
Every C program has an underlying locale. Both perl and gtk set up the program to use that. One could argue that a library shouldn't be setting the locale\, but gtk does\, and we have to deal with that. Fortunately\, it has the ability to turn off locale setting\, and that is how other modules have coped.
http://grep.cpan.me/?q=disable_setlocale+
shows 20 modules that do this\, most of them authored by Kevin Ryde.
There are plenty of things that modules could do in C code that would screw up Perl; setting the locale is just one of them. In order to prevent needless setting and resetting of the locale\, Perl keeps track of what it thinks it is set to. In 5.20 Perl keeps better track than before\, and so when gtk changes it behind Perl's back\, Perl doesn't know that it got changed. There were code paths before 5.20 that could result in this\, but they didn't affect you.
I think the best long term solution would be for the underlying module(s) to tell gtk to not set the locale\, but it doesn't look like there is much work going on\, in Wx anyway. The patch makes Perl unconditionally set the locale even if it thinks it is already correct. We could put this into a 5.20.1 maintenance release\, but that isn't scheduled until August. As far as I know this would be the only candidate for that right now. In the past\, we've had maintenance releases a month after the dot zero one. Perhaps this one could be moved up to accommodate people\, should they be unable to get the disable into the appropriate modules
Sorry for the delay.
On 07.06.2014 23:45\, Karl Williamson wrote:
I'm pretty confident that the attached patch will cause the immediate problem to go away\, but it isn't the real correct solution.
Yes\, your patch does fix the symptom.
Thanks for your explanation of the circumstances.
You suggest that Gtk2/Gtk3 make gtk+ not call setlocale() in order to avoid violating perl's assumptions. Unfortunately\, this would mean that some aspects of the program's GUI do not follow the user's locale (the formatting of numbers\, for example). gtk+ has been relying on setlocale() being called early on so that the locale is synchronized with the user's environment for more than ten years now [1\, 2]\, so it seems unlikely that they will change their localization features to re-read the user's environment whenever locale-specific output is created.
As far as I remember\, we've never seen locale-related issues with Gtk2/Gtk3 before perl 5.19/5.20. As you say\, we might just not have tried hard enough to find them.
But I do wonder: when perl is parsing things that are supposed to be of a locale-independent format (like version numbers)\, should it not use locale-independet parsing routines?
[1] https://bugzilla.gnome.org/show_bug.cgi?id=60606 [2] https://mail.gnome.org/archives/gtk-devel-list/2001-October/msg00082.html
Migrated from rt.perl.org#121930 (status was 'resolved')
Searchable as RT121930$