Subject: | Crypt::SSLeay fails to build |
Date: | Thu, 28 Jan 2010 16:36:50 -0800 (PST) |
To: | bug-Crypt-SSLeay [...] rt.cpan.org |
From: | Sergei Steshenko <sergstesh [...] yahoo.com> |
Hello,
I tried to build Crypt::SSLeay using self-built perl-5.10.1 and self-built
openssl-0.9.8l and the build fails - I know it's because of wrong include
statements in 'crypt_ssleay_version.h' file.
Please see below an excerpt from the screen session:
"
No installed SSL libraries found in any of the following places.
/local
/local/ssl
/opt/ssl
/usr
/usr/local
/usr/local/ssl
/usr/local/openssl
You will have to either specify a directory location at the following
prompt, or rerun the Makefile.PL program and use the --lib switch
to specify the path. If the path in question is considered standard
on your platform, please consider filing a bug report in order to
have it taken into account in a subsequent version of Crypt::SSLeay.
Which SSL install path do you want to use? /home/sergei/AFSWD/install/openssl-0.9.8l
BUILD INFORMATION
================================================
ssl library: OpenSSL 0.9.8 in /home/sergei/AFSWD/install/openssl-0.9.8l
ssl header: openssl/ssl.h
libraries: -L/home/sergei/AFSWD/install/openssl-0.9.8l/lib -lssl -lcrypto -lgcc
include dir: -I/home/sergei/AFSWD/install/openssl-0.9.8l/include/openssl
================================================
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Writing Makefile for Crypt::SSLeay
The test suite can attempt to connect to public servers
to ensure that the code is working properly. If you are
behind a strict firewall or have no network connectivity,
these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N) ? [N] y
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/Conn.pm blib/lib/Crypt/SSLeay/Conn.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/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/home/sergei/my_perl-5.10.1/bin/perl /home/sergei/my_perl-5.10.1/lib/5.10.1/ExtUtils/xsubpp -typemap /home/sergei/my_perl-5.10.1/lib/5.10.1/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
/home/sergei/AFSWD/install/gcc-4.4.2/binsh/gcc -c -I/home/sergei/AFSWD/install/openssl-0.9.8l/include/openssl -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" -fPIC "-I/home/sergei/my_perl-5.10.1/lib/5.10.1/i686-linux-thread-multi/CORE" SSLeay.c
In file included from SSLeay.xs:25:
crypt_ssleay_version.h:1:25: error: openssl/ssl.h: No such file or directory
crypt_ssleay_version.h:2:28: error: openssl/crypto.h: No such file or directory
crypt_ssleay_version.h:3:25: error: openssl/err.h: No such file or directory
crypt_ssleay_version.h:4:26: error: openssl/rand.h: No such file or directory
crypt_ssleay_version.h:5:28: error: openssl/pkcs12.h: No such file or directory
...
".
Please note that, on the one hand, in response to my entry of
/home/sergei/AFSWD/install/openssl-0.9.8l
build mechanism correctly guessed include and lib directories:
"
ssl library: OpenSSL 0.9.8 in /home/sergei/AFSWD/install/openssl-0.9.8l
ssl header: openssl/ssl.h
libraries: -L/home/sergei/AFSWD/install/openssl-0.9.8l/lib -lssl -lcrypto -lgcc
include dir: -I/home/sergei/AFSWD/install/openssl-0.9.8l/include/openssl
",
on the other hand, 'crypt_ssleay_version.h' file has a wrong/redundant 'openssl' subdirectory in 'openssl/ssl.h' entry and the like.
'openssl' uses pkg-config, so include paths should solely be based on its
info. e.g.:
"
cat /home/sergei/AFSWD/install/openssl-0.9.8l/lib/pkgconfig/openssl.pc
prefix=/mnt/sdb8/sergei/AFSWD_debug/20091207/openssl-0.9.8l
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: 0.9.8l
Requires:
Libs: -L${libdir} -lssl -lcrypto -ldl
Cflags: -I${includedir}
".
N.B. /home/sergei/AFSWD/install is a symbolic link to
/home/sergei/AFSWD/install .
Regards,
Sergei.