[Crypt::SSLeay] compile problems on Ubuntu/Linux 2.

[Crypt::SSLeay] compile problems on Ubuntu/Linux 2.

am 25.05.2006 11:02:04 von alan.gibson

Crypt::SSLeay apparently doesnt work on Ubuntu Linux 2.6.15-23-386
with openssl-0.9.7, openssl-0.9.8a, or openssl-0.9.8b

the following script outputs only 'Segmentation Fault' (from openssl im sur=
e)
--------------------------------
use LWP::UserAgent;
my $ua =3D new LWP::UserAgent;
my $req =3D new HTTP::Request('GET', 'https://www.nodeworks.com');
my $res =3D $ua->request($req);
print $res->code."\n";
------------------------------

i would blame this on openssl, but it has no problem building and
seems to work otherwise.

the tests do fail when installing in cpan. the rest of this message is
the cpan output:
--------------------------------
cpan> force install Crypt::SSLeay
CPAN: Storable loaded ok
Going to read /home/dyssident/.cpan/Metadata
Database was generated on Thu, 25 May 2006 02:27:55 GMT
Running install for module Crypt::SSLeay
Running make for C/CH/CHAMAS/Crypt-SSLeay-0.51.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /home/dyssident/.cpan/sources/authors/id/C/CH/CHAMAS/Crypt-S SL=
eay-0
..51.tar.gz ok
Scanning cache /home/dyssident/.cpan/build for sizes
Crypt-SSLeay-0.51/
Crypt-SSLeay-0.51/t/
Crypt-SSLeay-0.51/t/net_ssl.t
Crypt-SSLeay-0.51/t/ssl_context.t
Crypt-SSLeay-0.51/lib/
Crypt-SSLeay-0.51/lib/Crypt/
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/MainContext.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/Conn.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/X509.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/Err.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/CTX.pm
Crypt-SSLeay-0.51/lib/Net/
Crypt-SSLeay-0.51/lib/Net/SSL.pm
Crypt-SSLeay-0.51/certs/
Crypt-SSLeay-0.51/certs/ca-bundle.crt
Crypt-SSLeay-0.51/certs/notacakeynopass.pem
Crypt-SSLeay-0.51/certs/notacacert.pem
Crypt-SSLeay-0.51/MANIFEST
Crypt-SSLeay-0.51/typemap
Crypt-SSLeay-0.51/MANIFEST.SKIP
Crypt-SSLeay-0.51/SSLeay.pm
Crypt-SSLeay-0.51/CHANGES
Crypt-SSLeay-0.51/lwp-ssl-test
Crypt-SSLeay-0.51/net_ssl_test
Crypt-SSLeay-0.51/SSLeay.xs
Crypt-SSLeay-0.51/README
Crypt-SSLeay-0.51/Makefile.PL
Removing previously used /home/dyssident/.cpan/build/Crypt-SSLeay-0.51

CPAN.pm: Going to build C/CH/CHAMAS/Crypt-SSLeay-0.51.tar.gz

Found OpenSSL (version OpenSSL 0.9.7) installed at /usr/local/ssl
Which OpenSSL build path do you want to link against? [/usr/local/ssl]

==================== =====3D=
==================== ===3D
BUILD INFORMATION
==================== =====3D=
==================== ===3D

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=
..7

==================== =====3D=
==================== ===3D

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Note (probably harmless): No library found for -lRSAglue
Note (probably harmless): No library found for -lrsaref
Writing Makefile for Crypt::SSLeay
cpan> force install Crypt::SSLeaycp 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/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap SSLeay.xs >
SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c -I/usr/local/ssl/include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -O2
-DVERSION=3D\"0.51\" -DXS_VERSION=3D\"0.51\" -fPIC
"-I/usr/lib/perl/5.8/CORE" SSLeay.c
SSLeay.xs: In function 'XS_Crypt__SSLeay__Conn_new':
SSLeay.xs:252: warning: passing argument 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=3D"/usr/local/ssl/lib" cc -shared -L/usr/local/lib SSLeay.o
-o blib/arch/auto/Crypt/SSLeay/SSLeay.so -L/usr/local/ssl/lib -lssl
-lcrypto
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.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=3D1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/net_ssl........dubious
Test returned status 0 (wstat 11, 0xb)
t/ssl_context....dubious
Test returned status 0 (wstat 11, 0xb)
FAILED--2 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
Installing /usr/local/lib/perl/5.8.7/auto/Crypt/SSLeay/SSLeay.so
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Writing /usr/local/lib/perl/5.8.7/auto/Crypt/SSLeay/.packlist
Appending installation info to /usr/local/lib/perl/5.8.7/perllocal.pod
/usr/bin/make install -- OK