Re: Subject: [Crypt::SSLeay] test problems on Solaris 2.8
am 29.03.2006 13:43:29 von jansenJames Tullett wrote:
> Could somebody suggest something to help me get past this problem?
sorry, no, but I hope someone else can, because I have the same problem here!
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> perl Makefile.PL
Found OpenSSL (version OpenSSL 0.9.8) installed at /digibib/tools
Which OpenSSL build path do you want to link against? [/digibib/tools]
================================================
BUILD INFORMATION
================================================
ssl dir: /digibib/tools
libraries: -lpthread -lssl -lcrypto
include dir: /digibib/tools/include
ssl header: openssl/ssl.h
ssl candidate: /digibib/tools; /digibib/tools/include/openssl; OpenSSL 0.9.8
================================================
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::SSLeay
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> 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
/digibib/tools/bin/perl /digibib/tools/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /digibib/tools/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c -I/digibib/tools/include -D_REENTRANT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O2 -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -fPIC "-I/digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/ 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="/digibib/tools/lib" gcc -Wl,-E -G SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \
-L/digibib/tools/lib -lpthread -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.3
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> make test
PERL_DL_NONLAZY=1 /digibib/tools/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
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> uname -a
SunOS priapos 5.10 Generic_118822-27 sun4u sparc SUNW,Sun-Fire-V440 Solaris
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ./configure --prefix=/digibib/tools
Thread model: posix
gcc version 4.1.0
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-thread-multi
uname='sunos priapos 5.10 generic_118822-27 sun4u sparc sunw,sun-fire-v440 solaris '
config_args='-DCC=gcc -Dusethreads -Duseshrplib -Doptimize=-O2 -Uusemymalloc'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV',
optimize='-O2',
cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -Wdeclaration-after-statement'
ccversion='', gccversion='4.1.0', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' '
libpth=/digibib/tools/lib /usr/lib /usr/ccs/lib
libs=-lpthread -lsocket -lnsl -ldl -lm -lc
perllibs=-lpthread -lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E -R /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/COR E'
cccdlflags='-fPIC', lddlflags=' -Wl,-E -G'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP PERL_USE_SAFE_PUTENV
USE_ITHREADS USE_LARGE_FILES USE_PERLIO
USE_REENTRANT_API
Built under solaris
Compiled at Mar 9 2006 17:05:05
@INC:
/digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi
/digibib/tools/lib/perl5/5.8.8
/digibib/tools/lib/perl5/site_perl/5.8.8/sun4-solaris-thread -multi
/digibib/tools/lib/perl5/site_perl/5.8.8
/digibib/tools/lib/perl5/site_perl
.
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> perl -w t/net_ssl.t
Segmentation Fault (core dumped)
#################################################
###~/.cpan/build/Crypt-SSLeay-0.51> gdb perl core
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details. This GDB was configured as "sparc-sun-solaris2.10"...(no debugging
symbols found)
Core was generated by `perl -w t/net_ssl.t'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /digibib/tools/lib/libperl.so...done.
Loaded symbols for /digibib/tools/lib/libperl.so
Reading symbols from /lib/libpthread.so.1...
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074
done.
Loaded symbols for /lib/libpthread.so.1
Reading symbols from /lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.1...
warning: Lowest section in /lib/libdl.so.1 is .dynamic at 00000094
done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /lib/libm.so.2...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1...done.
Loaded symbols for /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
Reading symbols from /usr/lib/locale/en_GB.ISO8859-1/en_GB.ISO8859-1.so.3...done.
Loaded symbols for /usr/lib/locale/en_GB.ISO8859-1/en_GB.ISO8859-1.so.3
Reading symbols from /usr/lib/locale/de_DE.UTF-8/de_DE.UTF-8.so.3...done.
Loaded symbols for /usr/lib/locale/de_DE.UTF-8/de_DE.UTF-8.so.3
Reading symbols from /usr/lib/locale/common/methods_unicode.so.3...done.
Loaded symbols for /usr/lib/locale/common/methods_unicode.so.3
Reading symbols from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/aut o/MIME/Base64/Base64.so...done.
Loaded symbols for /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/aut o/MIME/Base64/Base64.so
Reading symbols from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/aut o/Socket/Socket.so...done.
Loaded symbols for /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/aut o/Socket/Socket.so
Reading symbols from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/aut o/IO/IO.so...done.
Loaded symbols for /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi/aut o/IO/IO.so
Reading symbols from /digibib/tools/lib/perl5/site_perl/5.8.8/sun4-solaris-thread -multi/auto/Crypt/SSLeay/SSLeay.so...done.
Loaded symbols for /digibib/tools/lib/perl5/site_perl/5.8.8/sun4-solaris-thread -multi/auto/Crypt/SSLeay/SSLeay.so
Reading symbols from /digibib/tools/lib/libssl.so.0.9.8...done.
Loaded symbols for /digibib/tools/lib/libssl.so.0.9.8
Reading symbols from /digibib/tools/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /digibib/tools/lib/libcrypto.so.0.9.8
Reading symbols from /digibib/tools/lib/libgcc_s.so.1...done.
Loaded symbols for /digibib/tools/lib/libgcc_s.so.1
#0 0xf74089f4 in SSL_CTX_ctrl () from
/digibib/tools/lib/libssl.so.0.9.8
(gdb) bt
#0 0xf74089f4 in SSL_CTX_ctrl () from /digibib/tools/lib/libssl.so.0.9.8
#1 0xf7448364 in XS_Crypt__SSLeay__CTX_new () from /digibib/tools/lib/perl5/site_perl/5.8.8/sun4-solaris-thread -multi/auto/Crypt/SSLeay/SSLeay.so
#2 0xf7a88998 in Perl_pp_entersub () from /digibib/tools/lib/libperl.so
#3 0xf7a86fac in Perl_runops_standard () from /digibib/tools/lib/libperl.so
#4 0xf7a2ad68 in perl_run () from /digibib/tools/lib/libperl.so
#5 0x00011278 in main ()
Things _do_ work on Solaris 10 with gcc version 3.3.2 and OpenSSL
0.9.7e
Any hints would be highly welcome.
Heiko