473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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.org/perlsolaris.html#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::Command::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::Handle;'
# at t/handle/local/05_use.t line 8.
# Tried to use 'Net::SSLeay::Handle'.
# 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]#
Feb 7 '12 #1
3 2968
chorny
80 Expert
Did you use GNU ld? Which version?
Feb 8 '12 #2
How can I find if GNU ld is used? Thank you!
Feb 8 '12 #3
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?
Feb 9 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Matt Raines | last post by:
Hi, Has anybody had success getting the oggvorbis module from PECL to work? I installed the latest versions of libogg and libvorbis from xiph.org (with the default configure options) and then...
3
by: contact | last post by:
I'm trying to get mxDateTime working on a Mac so that I can use pyscopg and cx_Oracle. The Egenix base package builds and installs quite happily, but then when I try to import it I get >> import...
0
by: w00t | last post by:
I am running Suse 9.0 and have been working with postgresql 7.3.3 When I run psql as psql -v or psql -V and even psql --help I get a relocation error psql: relocation error:...
5
by: Barbara Lindsey | last post by:
If this is the wrong list, let me know... I am trying to install the Pg DBD module for Perl DBI and am having a problem. It keeps coming up asking if I read the README file, which i have several...
4
by: Phil Campaigne | last post by:
Hi All, I just installed postgresql 7.3.4 as an upgrade to 7.3.2 and all went well untill I tried to log into a database that I successfully created. Here are the steps in question: bash-2.05b$...
5
by: NTPT | last post by:
Regardi I recently compile Postgresql 7.4.3 with gcc 3.4.0 on RH 7.3 . Regression tests work well All passed, but Some binaries report a relocation error: :pg_dumpall undefined symbol...
1
by: Suneeel | last post by:
Hi All, I'm having a problem with STL on Red Hat Linux 9, gcc 4.1.0. I have a Shared Object that is inserting an object into a MAP. When this shared object is used, I get a runtime error...
0
by: Chuck Anderson | last post by:
I have a set of Php scripts that run on my home PC (Windows XP- Apache 2 - Php 4.4.1) that reads my web sites' daily Apache access log file (a gzipped file) on the remote server...
3
varuns
by: varuns | last post by:
hi while importing my module i m getting error as Fatal Python error: can't initialise module trayicon i have made my own module derived from gtk to be accessible from python. whether...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.