Subject: | Compilation problem : relocation error |
SUN Sparc hardware
Solaris 8
(SunOS itstst 5.8 Generic_117000-03 sun4u sparc SUNW,Sun-Fire-V240)
Per 5.8.0 (full 64 bits)
OpenSSL 0.9.7e 25 Oct 2004
gcc version 3.3.2
I needed to install Crypt-SSLeay for getting HTTPS pages with LWP module.
When I tried to compile the module, I got the following output :
*****
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/net_ssl........Can't load '/tmp/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: /usr/bin/perl: fatal: relocation error: file /tmp/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/SSLeay.so: symbol SSL_state_string_long: referenced symbol not found at /usr/local/perl5.8/lib/5.8.0/sun4-solaris/DynaLoader.pm line 229.
at lib/Net/SSL.pm line 16
Compilation failed in require at lib/Net/SSL.pm line 16.
Compilation failed in require at t/net_ssl.t line 5.
BEGIN failed--compilation aborted at t/net_ssl.t line 5.
t/net_ssl........dubious
Test returned status 255 (wstat 65280, 0xff00)
t/ssl_context....Can't load '/tmp/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: /usr/bin/perl: fatal: relocation error: file /tmp/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/SSLeay.so: symbol SSL_state_string_long: referenced symbol not found at /usr/local/perl5.8/lib/5.8.0/sun4-solaris/DynaLoader.pm line 229.
at /tmp/Crypt-SSLeay-0.51/blib/lib/Crypt/SSLeay/CTX.pm line 2
Compilation failed in require at /tmp/Crypt-SSLeay-0.51/blib/lib/Crypt/SSLeay/CTX.pm line 2.
Compilation failed in require at /tmp/Crypt-SSLeay-0.51/blib/lib/Crypt/SSLeay/MainContext.pm line 8.
Compilation failed in require at t/ssl_context.t line 3.
BEGIN failed--compilation aborted at t/ssl_context.t line 3.
t/ssl_context....dubious
Test returned status 255 (wstat 65280, 0xff00)
FAILED--2 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2
*****