You are not logged in.

#1 2015-10-17 02:25:36

epicepee
Member
Registered: 2014-11-02
Posts: 54

Perl errors since updating to 5.22

Hi!  Ever since I updated to Perl 5.22, I've been having problems with perl-based AUR packages.  For example, when I try to install perl-threads-aur, I get the following:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/auto/Encode/Encode.so: undefined symbol: Perl_xs_apiversion_bootcheck

I get the same error when updating perl-extutils-cppguess, perl-math-planepath, or perl-opengl; I get very similar errors (Util/Util.so) with glib and perl-extutils-makemaker-aur.  I usually use aura, but I've had the same issue with yaourt and when installing the normal way.  I also get Util.so errors when running cpanm or cpanp, and I've encountered a few others that I can't remember off the top of my head.

I've poked around and it looks like the issue is that the packages don't support my perl version.  But when it doesn't just seem to be that.  For example, I found a script that's supposed to solve this problem by updating old perl scripts, but it fails with the same problem.  It seems like that script, of all things, would work with the newest version.

Any ideas?  Anyone else have this problem?

Offline

#2 2015-10-17 02:35:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Perl errors since updating to 5.22

That script doesn't solve anything: it identifies the packages you need to rebuild (ie, anything you installed from AUR or CPAN).

This is well documented here, eg., https://bbs.archlinux.org/viewtopic.php?id=198700


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-10-17 02:42:31

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

Yeah, sorry.  Either way, it doesn't seem to work.  Here's what I get:

error: No package owns /usr/lib/perl5/site_perl/auto/Slic3r/XS/XS.so
error: No package owns /usr/lib/perl5/site_perl/auto/List/Util/Util.so
error: No package owns /usr/lib/perl5/site_perl/auto/List/Util/Util.so
error: No package owns /usr/lib/perl5/site_perl/auto/List/Util/Util.so
error: No package owns /usr/lib/perl5/site_perl/auto/Encode/Encode.so
error: No package owns /usr/lib/perl5/site_perl/auto/Encode/Encode.so
./find-broken-perl-packages.sh: line 52: module-to-dist.pl: command not found
./find-broken-perl-packages.sh: line 53: module-to-dist.pl: command not found
results are in "/tmp/find-broken-perl-package.Bn1GaFt6"
- {local-,}raw.txt is a list of files that caused errors
- pacman.txt is a list of packages that need to be rebuilt. Those are likely AUR packages
- local-perl-dists.txt is a list of cpan distributions installed to site_perl. Use cpan to rebuild them

additional files:
- {local-,}perl-modules.txt is a list of cpan modules that caused errors
- perl-dists.txt is a list of cpan distributions that caused errors


I've read through the thread you linked a few times, never found a solution.  One problem is that even if I can find the outdated packages, I can't update them with cpanm or replace them with cpanp because neither works.

Sorry if I'm missing something obvious!

Offline

#4 2015-10-17 02:45:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Perl errors since updating to 5.22

Those files aren't owned because you installed them via CPAN, so you need to remove them.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-10-17 02:47:03

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

Alright.  If I remove them, an update should bring them back, right?  Or should I reinstall whatever would otherwise provide them?

Offline

#6 2015-10-17 02:51:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Perl errors since updating to 5.22

You remove everything that pacman doesn't know about: that is what is causing your breakage. Then, once you have a working setup, you reinstall the modules you need using pacman or PKGBUILDs so they are tracked in your system.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-10-17 02:53:28

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

Alright, that makes sense.  I'll do that, and then reinstall the packages the script listed from pacman.  Thanks for the help!

Offline

#8 2015-10-17 03:47:36

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

This seems to have solved some problems -- perl-threads-aur works now -- but I'm getting quite a few more errors now.  Many take the form of:

Pod::Man is not available: Encode object version 2.72 does not match bootstrap parameter 2.73 at /usr/lib/perl5/core_perl/DynaLoader.pm line 216.

And similar messages about version mismatches.  I reinstalled everything that depends on perl, it didn't appear to help.

Offline

#9 2015-10-17 04:51:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Perl errors since updating to 5.22

pacman -Qo /usr/lib/perl5/core_perl/DynaLoader.pm

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2015-10-17 17:43:24

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

It's owned by perl, which I tried reinstalling.  Does this mean the package isn't compatible with new perl?

Offline

#11 2015-10-17 18:39:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Perl errors since updating to 5.22

Did you rebuild your AUR packages? What owns Pod::Man?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2015-10-17 18:46:00

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

pkgfile doesn't give anything for Pod::Man; I'm not sure where the file would be.

Yes, I tried rebuilding the packages; that's what gave that error.

Offline

#13 2015-10-17 19:35:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Perl errors since updating to 5.22

So, as I have said repeatedly in this thread and all the others, you not pacman, are responsible for packages you installed via AUR or CPAN. Pod::Man is clearly one of them,


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2015-10-17 21:28:02

epicepee
Member
Registered: 2014-11-02
Posts: 54

Re: Perl errors since updating to 5.22

That may be the case, but it's not only AUR packages that are failing.  cpanm gives this message:

Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at /usr/share/perl5/core_perl/File/Temp.pm line 18.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Temp.pm line 18.
Compilation failed in require at /usr/bin/vendor_perl/cpanm line 32.
BEGIN failed--compilation aborted at /usr/bin/vendor_perl/cpanm line 32.
Compilation failed in require at /usr/bin/vendor_perl/cpanm line 497.
BEGIN failed--compilation aborted at /usr/bin/vendor_perl/cpanm line 497.

Offline

Board footer

Powered by FluxBB