Subject: | Problem linking Net-SSLeay-1.49 on Linux |
Date: | Wed, 24 Oct 2012 18:17:43 +0000 (GMT+00:00) |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | Mark G Pohl <mark.g.pohl [...] ugov.gov> |
Hi,
I am trying to build the Net-SSLeay-1.49 module on a Linux server and I'm not having much luck. I think I successfully did this with an earlier version of the the Linux that I am using but this new server seems to be quite different. I would appreciate it very much if you could shed any light on what I might do to fix this problem. Below is a lot of information that you requested as part of a problem report. Please note that you requested information for or had instructions related to two files test.pl and sslecho.log. I could not find those files anywhere. Please let me know if you need any other information.
Regards,
Mark
Mark Pohl
ISMC - Intelink
Web Developer
CSC Contractor
mark.g.pohl@ugov.gov
410-854-9637
Linux version
Linux 2.6.32-220.17.1.el6.x86_64 #1 SMP Tue May 15 17:16:46 CDT 2012 x86_64 x86_64 x86_64 GNU/Linux
glibc version
libc-2.12.so
Module name and version
Net-SSLeay-1.49
OpenSSL version
OpenSSL 0.9.7b 10 Apr 2003
GCC version
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
output from make clean; perl Makefile.PL -t
rm -f \
*.a core \
SSLeay.c core.[0-9] \
blib/arch/auto/Net/SSLeay/extralibs.all core.[0-9][0-9] \
SSLeay.bso pm_to_blib.ts \
core.[0-9][0-9][0-9][0-9] SSLeay.x \
SSLeay.bs perl \
tmon.out *.o \
pm_to_blib blib/arch/auto/Net/SSLeay/extralibs.ld \
blibdirs.ts core.[0-9][0-9][0-9][0-9][0-9] \
*perl.core core.*perl.*.? \
Makefile.aperl perl \
SSLeay.def core.[0-9][0-9][0-9] \
mon.out libSSLeay.def \
perlmain.c perl.exe \
so_locations SSLeay.exp
rm -rf \
t/local/ptr_cast_test examples/key.pem \
examples/*.0 examples/cert.pem \
sslecho.log tcpecho.log \
examples/key.pem.e makecert.err \
blib makecert.out
mv Makefile Makefile.old > /dev/null 2>&1
Cannot determine license info from lib/Net/SSLeay.pod
*** Found OpenSSL-0.9.7b installed in /usr/local/ssl
*** Be sure to use the same compiler and options to compile your OpenSSL, perl,
and Net::SSLeay. Mixing and matching compilers is not supported.
Do you want to run external tests?
These tests *will* *fail* if you do not have network connectivity. [n] y
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSLeay
Output from make test
cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
directory blib/lib/auto/Net/SSLeay:
do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx
get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http
head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt
post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt
put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http
ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read
tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ
cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
/usr/local/bin/perl "-Iinc" /usr/local/lib/perl5/5.10.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.10.1/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c -I/usr/local/ssl/include -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.49\" -DXS_VERSION=\"1.49\" -fPIC "-I/usr/local/lib/perl5/5.10.1/x86_64-linux/CORE" SSLeay.c
Running Mkbootstrap for Net::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
LD_RUN_PATH="/lib64" cc -shared -O2 -L/usr/local/lib -fstack-protector SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.so \
-L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto -lz \
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_meth.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1
perl -V output:
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.32-220.17.1.el6.x86_64, archname=x86_64-linux
uname='linux linsrchdev5o.ismc.intelink.gov 2.6.32-220.17.1.el6.x86_64 #1 smp tue may 15 17:16:46 cdt 2012 x86_64 x86_64 x86_64 gnulinux '
config_args='-de -Dprefix=/webroot/search'
hint=previous, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccversion='', gccversion='4.4.6 20120305 (Red Hat 4.4.6-4)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Oct 23 2012 17:36:44
%ENV:
PERLLIB="/webroot/search/perl/lib/perl5/site_perl/5.8.5:/webroot/search/perl/imolibs"
PERL_LWP_SSL_VERIFY_HOSTNAME="0"
@INC:
/webroot/search/perl/lib/perl5/site_perl/5.8.5
/webroot/search/perl/imolibs
/usr/local/lib/perl5/5.10.1/x86_64-linux
/usr/local/lib/perl5/5.10.1
/usr/local/lib/perl5/site_perl/5.10.1/x86_64-linux
/usr/local/lib/perl5/site_perl/5.10.1
.