Loading SSL module issue - 'ld.so.1: perl: fatal: relocation error'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thesunlover
    New Member
    • Feb 2012
    • 3

    Loading SSL module issue - 'ld.so.1: perl: fatal: relocation error'

    Hello,

    I've compiled Perl and OpenSSL from sources under Solaris 10 as requested, but loading SSL module is still failed with error 'ld.so.1: perl: fatal: relocation error'. Got this one but don't understand well - http://perldoc.perl.or g/perlsolaris.htm l#MAKE-PROBLEMS.

    Please help (desperately)! Here are the full errors:

    server:/export/home/user/software/Net-SSLeay-1.42]# make test
    PERL_DL_NONLAZY =1 /usr/bin/perl "-MExtUtils::Comm and::MM" "-e" "test_harness(0 , 'inc', 'blib/lib', 'blib/arch')" t/*/*.t t/*/*/*.t
    t/external/08_external.t ......... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/external/08_external.t line 7
    Compilation failed in require at t/external/08_external.t line 7.
    BEGIN failed--compilation aborted at t/external/08_external.t line 7.
    t/external/08_external.t ......... Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/external/15_altnames.t ......... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/external/15_altnames.t line 6
    Compilation failed in require at t/external/15_altnames.t line 6.
    BEGIN failed--compilation aborted at t/external/15_altnames.t line 6.
    t/external/15_altnames.t ......... Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/handle/external/10_destroy.t ... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7
    Compilation failed in require at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7.
    BEGIN failed--compilation aborted at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7.
    Compilation failed in require at t/handle/external/10_destroy.t line 21.
    BEGIN failed--compilation aborted at t/handle/external/10_destroy.t line 21.
    t/handle/external/10_destroy.t ... Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/handle/external/50_external.t .. Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7
    Compilation failed in require at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7.
    BEGIN failed--compilation aborted at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7.
    Compilation failed in require at t/handle/external/50_external.t line 7.
    BEGIN failed--compilation aborted at t/handle/external/50_external.t line 7.
    t/handle/external/50_external.t .. Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/handle/local/05_use.t .......... 1/1
    # Failed test 'use Net::SSLeay::Ha ndle;'
    # at t/handle/local/05_use.t line 8.
    # Tried to use 'Net::SSLeay::H andle'.
    # Error: Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    # at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7
    # Compilation failed in require at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7.
    # BEGIN failed--compilation aborted at /export/home/user/software/Net-SSLeay-1.42/blib/lib/Net/SSLeay/Handle.pm line 7.
    # Compilation failed in require at (eval 4) line 2.
    # BEGIN failed--compilation aborted at (eval 4) line 2.
    # Looks like you failed 1 test of 1.
    t/handle/local/05_use.t .......... Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/1 subtests
    t/local/01_pod.t ............... .. skipped: Test::Pod 1.00 required for testing POD
    t/local/02_pod_coverage .t ........ skipped: currently disabled
    t/local/03_use.t ............... .. 1/1
    # Failed test 'use Net::SSLeay;'
    # at t/local/03_use.t line 8.
    # Tried to use 'Net::SSLeay'.
    # Error: Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    # at (eval 4) line 2
    # Compilation failed in require at (eval 4) line 2.
    # BEGIN failed--compilation aborted at (eval 4) line 2.
    # Looks like you failed 1 test of 1.
    t/local/03_use.t ............... .. Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/1 subtests
    t/local/04_basic.t ............... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/04_basic.t line 6
    Compilation failed in require at t/local/04_basic.t line 6.
    BEGIN failed--compilation aborted at t/local/04_basic.t line 6.
    # Looks like your test exited with 2 before it could output anything.
    t/local/04_basic.t ............... Dubious, test returned 2 (wstat 512, 0x200)
    Failed 4/4 subtests
    t/local/05_passwd_cb.t ........... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/05_passwd_cb.t line 7
    Compilation failed in require at t/local/05_passwd_cb.t line 7.
    BEGIN failed--compilation aborted at t/local/05_passwd_cb.t line 7.
    # Looks like your test exited with 2 before it could output anything.
    t/local/05_passwd_cb.t ........... Dubious, test returned 2 (wstat 512, 0x200)
    Failed 13/13 subtests
    t/local/06_tcpecho.t ............. Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/06_tcpecho.t line 8
    Compilation failed in require at t/local/06_tcpecho.t line 8.
    BEGIN failed--compilation aborted at t/local/06_tcpecho.t line 8.
    # Looks like your test exited with 2 before it could output anything.
    t/local/06_tcpecho.t ............. Dubious, test returned 2 (wstat 512, 0x200)
    Failed 4/4 subtests
    t/local/07_sslecho.t ............. Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/07_sslecho.t line 9
    Compilation failed in require at t/local/07_sslecho.t line 9.
    BEGIN failed--compilation aborted at t/local/07_sslecho.t line 9.
    # Looks like your test exited with 2 before it could output anything.
    t/local/07_sslecho.t ............. Dubious, test returned 2 (wstat 512, 0x200)
    Failed 71/71 subtests
    t/local/08_pipe.t ............... . Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/08_pipe.t line 6
    Compilation failed in require at t/local/08_pipe.t line 6.
    BEGIN failed--compilation aborted at t/local/08_pipe.t line 6.
    t/local/08_pipe.t ............... . Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/local/15_bio.t ............... .. Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/15_bio.t line 6
    Compilation failed in require at t/local/15_bio.t line 6.
    BEGIN failed--compilation aborted at t/local/15_bio.t line 6.
    # Looks like your test exited with 2 before it could output anything.
    t/local/15_bio.t ............... .. Dubious, test returned 2 (wstat 512, 0x200)
    Failed 7/7 subtests
    t/local/20_autoload.t ............ Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/20_autoload.t line 6
    Compilation failed in require at t/local/20_autoload.t line 6.
    BEGIN failed--compilation aborted at t/local/20_autoload.t line 6.
    t/local/20_autoload.t ............ Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/local/30_error.t ............... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/30_error.t line 11
    Compilation failed in require at t/local/30_error.t line 11.
    BEGIN failed--compilation aborted at t/local/30_error.t line 11.
    t/local/30_error.t ............... Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/local/31_rsa_generate _key.t .... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/31_rsa_generate _key.t line 6
    Compilation failed in require at t/local/31_rsa_generate _key.t line 6.
    BEGIN failed--compilation aborted at t/local/31_rsa_generate _key.t line 6.
    t/local/31_rsa_generate _key.t .... Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/local/35_ephemeral.t ........... Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/35_ephemeral.t line 6
    Compilation failed in require at t/local/35_ephemeral.t line 6.
    BEGIN failed--compilation aborted at t/local/35_ephemeral.t line 6.
    # Looks like your test exited with 2 before it could output anything.
    t/local/35_ephemeral.t ........... Dubious, test returned 2 (wstat 512, 0x200)
    Failed 3/3 subtests
    t/local/50_digest.t .............. Can't load '/export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: ld.so.1: perl: fatal: relocation error: file /export/home/user/software/Net-SSLeay-1.42/blib/arch/auto/Net/SSLeay/SSLeay.so: symbol SSL_get_ex_data _X509_STORE_CTX _idx: referenced symbol not found at /usr/local/lib/perl5/5.14.2/i86pc-solaris/DynaLoader.pm line 190.
    at t/local/50_digest.t line 6
    Compilation failed in require at t/local/50_digest.t line 6.
    BEGIN failed--compilation aborted at t/local/50_digest.t line 6.
    t/local/50_digest.t .............. Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run
    t/local/kwalitee.t ............... skipped: Needs Test::Kwalitee

    Test Summary Report
    -------------------
    t/external/08_external.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/external/15_altnames.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/handle/external/10_destroy.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/handle/external/50_external.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/handle/local/05_use.t (Wstat: 256 Tests: 1 Failed: 1)
    Failed test: 1
    Non-zero exit status: 1
    t/local/03_use.t (Wstat: 256 Tests: 1 Failed: 1)
    Failed test: 1
    Non-zero exit status: 1
    t/local/04_basic.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 4 tests but ran 0.
    t/local/05_passwd_cb.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 13 tests but ran 0.
    t/local/06_tcpecho.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 4 tests but ran 0.
    t/local/07_sslecho.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 71 tests but ran 0.
    t/local/08_pipe.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/local/15_bio.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 7 tests but ran 0.
    t/local/20_autoload.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/local/30_error.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/local/31_rsa_generate _key.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/local/35_ephemeral.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 3 tests but ran 0.
    t/local/50_digest.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    Files=20, Tests=2, 1 wallclock secs ( 0.07 usr 0.05 sys + 0.62 cusr 0.17 csys = 0.91 CPU)
    Result: FAIL
    Failed 17/20 test programs. 2/2 subtests failed.
    make: *** [test_dynamic] Error 255
    [14:21:56][server:/export/home/user/software/Net-SSLeay-1.42]#
  • chorny
    Recognized Expert New Member
    • Jan 2008
    • 80

    #2
    Did you use GNU ld? Which version?

    Comment

    • thesunlover
      New Member
      • Feb 2012
      • 3

      #3
      How can I find if GNU ld is used? Thank you!

      Comment

      • thesunlover
        New Member
        • Feb 2012
        • 3

        #4
        This document (http://perldoc.perl.org/perlsolaris....-as-and-GNU-ld) indicates that GNU ld should not be used, instead using the ld supplied with Solaris.

        How can I tell which ld currently being used? Can I simply remove GNU ld and recompile Perl and OpenSSL?

        Comment

        Working...