develooper Front page | perl.perl5.porters | Postings from December 2015

[perl #126958] openindiana blead build failure

From:
Jarkko Hietaniemi
Date:
December 18, 2015 13:16
Subject:
[perl #126958] openindiana blead build failure
Message ID:
rt-4.0.18-1424-1450444598-1425.126958-75-0@perl.org
# New Ticket Created by  Jarkko Hietaniemi 
# Please include the string:  [perl #126958]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126958 >


...
./perl -Ilib -f pod/buildtoc -q
Can't load 'lib/auto/re/re.so' for module re: ld.so.1: perl: fatal: relocation error: file lib/auto/re/re.so: symbol PL_localizing: referenced symbol not found at lib/XSLoader.pm line 71.
 at lib/re.pm line 88.

Already resolved with 68bcb86, creating this ticket for reference.  Pasting 68bcb86 commit message here:

    Explicitly build the shared Perl library in Solaris and variants.
    
    Symptom of failure: in openindiana "make" fails:
    
    ...
    ./perl -Ilib -f pod/buildtoc -q
    Can't load 'lib/auto/re/re.so' for module re: ld.so.1: perl: fatal:
    relocation error: file lib/auto/re/re.so: symbol PL_localizing:
    referenced symbol not found at lib/XSLoader.pm line 71.
      at lib/re.pm line 88.
    ...
    
    Running the above command with 'env LD_DEBUG=files ...' shows that
    there are many other symbol lookup failures, the one above is just
    the last one before bailing.
    
    If configured explicitly with -Duseshrplib, openindiana build succeeds.
    
    Curiously, while the hints/solaris_2.sh (which openindiana uses) does
    not specify useshrplib, Oracle/Sun builds/has been building their perl
    with useshrplib since Perl 5.6.1 or thereabouts (source: Alan Burlison).
    Using shared libraries is strongly recommended in Solaris in general
    (source: the same).
    
    Tested in:
    - Solaris 5.10/i386 with solstudio 12.2 and gcc 4.8.0
    - Solaris 5.10/sparc with solarisstudio 12.3 and gcc 4.9.2
    - OpenIndiana 5.11/i386 with solarisstudio 12.3 and gcc 4.5.0




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About