Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters
Multiarch support from Debian breaks all my old perls
 

Index | Next | Previous | View Flat


andreas.koenig.7os6VVqR at franz

May 1, 2012, 1:03 AM


Views: 180
Permalink
Multiarch support from Debian breaks all my old perls

I have observed it on Debian sid and have not looked at other OSes. I
used to build my perls with gcc 4.4.5 and since Debian upgraded to gcc
4.6.3 and multiarch I encounter dynamic loading problems.

The pattern is that a perl program tries to use dynamic loading to load
a system "so" library but does not find it anymore. This happens because
meanwhile some system update has put the library into directories like
/lib/x86_64-linux-gnu/ or /usr/lib/x86_64-linux-gnu/ or so. The old perl
does not know about and does not look into the new-fangled directories
and the dynamic loading fails.

The old perl that was built before multiarch support had something like
this:

% .../bin/perl -V:libpth
libpth='/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /lib64 /usr/lib64';

The perls I build now with gcc 4.6.3 have:

% .../bin/perl -V:libpth
libpth='/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib';

The only workaround I found so far is to edit the Config.pm of the old
perl and add the new installation directories there. This works
remarkably well but I'm not sure about details like best ordering.

I wonder if somebody has other solutions short of removing all old perls
from my disk and recompiling everything?

--
andreas

Subject User Time
Multiarch support from Debian breaks all my old perls andreas.koenig.7os6VVqR at franz May 1, 2012, 1:03 AM
    Re: Multiarch support from Debian breaks all my old perls tony at develop-help May 1, 2012, 2:25 AM
        Re: Multiarch support from Debian breaks all my old perls nick at ccl4 May 1, 2012, 2:27 AM
            RE: Multiarch support from Debian breaks all my old perls Tom.Horsley at ccur May 1, 2012, 3:18 AM
            Re: Multiarch support from Debian breaks all my old perls andreas.koenig.7os6VVqR at franz May 7, 2012, 11:34 PM
                Re: Multiarch support from Debian breaks all my old perls tony at develop-help May 8, 2012, 9:05 PM
                Re: Multiarch support from Debian breaks all my old perls rabbit-p5p at rabbit May 9, 2012, 11:46 PM
                    Re: Multiarch support from Debian breaks all my old perls andreas.koenig.7os6VVqR at franz May 10, 2012, 6:41 PM
    Re: Multiarch support from Debian breaks all my old perls nick at ccl4 May 1, 2012, 3:32 AM
    Re: Multiarch support from Debian breaks all my old perls ikegami at adaelis May 8, 2012, 9:37 PM
    Re: Multiarch support from Debian breaks all my old perls tony at develop-help May 8, 2012, 9:51 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.