[Crypt::SSLeay] compile problems on Solaris

[Crypt::SSLeay] compile problems on Solaris

am 23.11.2005 11:31:06 von Tino.Barden

Hello,

I have tried to compile Crypt-SSLeay-0.51 on a Solaris 9 machine and got the following errors:

UZKT3 # perl Makefile.PL
Found OpenSSL (version OpenSSL 0.9.8) installed at /usr/local/ssl
Which OpenSSL build path do you want to link against? [/usr/local/ssl]

================================================
BUILD INFORMATION
================================================

ssl dir: /usr/local/ssl
libraries: -lssl -lcrypto -lgcc -lRSAglue -lrsaref
include dir: /usr/local/ssl/include
ssl header: openssl/ssl.h
ssl candidate: /usr/local/ssl; /usr/local/ssl/include/openssl; OpenSSL 0.9.8

================================================

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lRSAglue
Note (probably harmless): No library found for -lrsaref
Writing Makefile for Crypt::SSLeay
UZKT3 # make
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c -I/usr/local/ssl/include -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -fPIC "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" SSLeay.c
SSLeay.xs: In function `XS_Crypt__SSLeay__Conn_new':
SSLeay.xs:252: warning: passing arg 2 of `SSL_set_info_callback' from incompatible pointer type
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/local/ssl/lib" gcc -G -L/usr/local/lib SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so -L/usr/local/ssl/lib -lssl -lcrypto -lgcc
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
cp SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs
chmod 644 blib/arch/auto/Crypt/SSLeay/SSLeay.bs
Manifying blib/man3/Crypt::SSLeay.3
UZKT3 # make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/net_ssl........dubious
Test returned status 0 (wstat 139, 0x8b)
t/ssl_context....dubious
Test returned status 0 (wstat 139, 0x8b)
FAILED--2 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 255
UZKT3 #


What could be the problem on this machine?
I am using gcc 3.4.2.
Looking forward to hearing from you.

Thanks
Tino

Re: [Crypt::SSLeay] compile problems on Solaris

am 29.11.2005 22:49:16 von RP

On Wed, Nov 23, 2005 at 11:31:06AM +0100, Barden, Tino wrote:
> Hello,
>
> I have tried to compile Crypt-SSLeay-0.51 on a Solaris 9 machine and got the following errors:
>
> UZKT3 # perl Makefile.PL
> Found OpenSSL (version OpenSSL 0.9.8) installed at /usr/local/ssl
> Which OpenSSL build path do you want to link against? [/usr/local/ssl]

[...]

> LD_RUN_PATH="/usr/local/ssl/lib" gcc -G -L/usr/local/lib SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so -L/usr/local/ssl/lib -lssl -lcrypto -lgcc

The problem with compiling on Solaris is usually that a -R

has to be inserted for
every -L. So I'd guess hat inserting a -R/usr/local/lib on the gcc command line
would fix the problem in your case.

--
Reinier