Subject: | issue with http://search.cpan.org/~nanis/Crypt-SSLeay-0.58 installation on Linux RHEL 5.3 x86_64 |
Hello guys!
My system is Linux RHEL 5.3 x86_64:
[root@rhelvm01 ~]# uname -a
Linux rhelvm01.symdemo.local 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38
EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Perl version is:
[root@rhelvm01 ~]# which perl
/usr/bin/perl
[root@rhelvm01 ~]# perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi
I’ve installed http://www.openssl.org/source/openssl-1.0.0a.tar.gz
according to INSTALL instructions:
./config
make
make test
make install
The last few lines of ‘make install’ are:
installing libcrypto.a
installing libssl.a
cp libcrypto.pc /usr/local/ssl/lib64/pkgconfig
chmod 644 /usr/local/ssl/lib64/pkgconfig/libcrypto.pc
cp libssl.pc /usr/local/ssl/lib64/pkgconfig
chmod 644 /usr/local/ssl/lib64/pkgconfig/libssl.pc
cp openssl.pc /usr/local/ssl/lib64/pkgconfig
chmod 644 /usr/local/ssl/lib64/pkgconfig/openssl.pc
Now I’m trying to install
http://search.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-
0.58.tar.gz
[root@rhelvm01 Crypt-SSLeay-0.58]# perl Makefile.PL --no-live-tests
Did not locate expected SSL library files
in /usr/local/ssl/lib,/usr/local/ssl/../lib
Found multiple possibilities for OpenSSL
/usr (OpenSSL 0.9.8b)
/usr/local/ssl (OpenSSL 1.0.0a)
Which SSL install path do you want to use? [/usr]
It seems the installer doesn’t look into /usr/local/ssl/lib64 directory
(only in /usr/local/ssl/lib,/usr/local/ssl/../lib)
So if I choose ‘/usr/local/ssl’ I get the following screen:
Which SSL install path do you want to use? [/usr] /usr/local/ssl
Use of uninitialized value in concatenation (.) or string at
Makefile.PL line 493, <STDIN> line 1.
BUILD INFORMATION
================================================
ssl library: OpenSSL 1.0.0a in /usr/local/ssl
ssl header: openssl/ssl.h
libraries: -L -lssl -lcrypto -lgcc
include dir: -I/usr/local/ssl/include
================================================
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Writing Makefile for Crypt::SSLeay
Is it OK?
Then ‘make’ command executes with warnings:
[root@rhelvm01 Crypt-SSLeay-0.58]# 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/CTX.pm blib/lib/Crypt/SSLeay/CTX.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/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -
typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap
SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c -I/usr/local/ssl/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-
aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -
pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --
param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.58\" -
DXS_VERSION=\"0.58\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-
thread-multi/CORE" SSLeay.c
SSLeay.c: In function тXS_Crypt__SSLeay__CTX_newт:
SSLeay.c:118: warning: unused variable тpacknameт
SSLeay.c: In function тXS_Crypt__SSLeay__Conn_newт:
SSLeay.c:395: warning: unused variable тpacknameт
SSLeay.c: In function тXS_Crypt__SSLeay__CTX_use_pkcs12_fileт:
SSLeay.c:287: warning: тRETVALт may be used uninitialized in this
function
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \
-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/Net::SSL.3pm
Manifying blib/man3/Crypt::SSLeay.3pm
Is it correct?
brgds
Alexey