Subject: | SSLeay CPAN install crash on 'ld: cannot find -lz' |
Date: | Tue, 30 Oct 2018 08:57:28 +0100 |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | Karel Východský <k.vychodsky [...] skynet-systems.cz> |
Hi,
I'm having trouble install SSLeay 1.85 on Debian 9.5 (up to date). The
error occured while installing NetDisco.
After some investigation I'm using command 'cpanm Net:SSLeay::Handle -f
-v' to see what happens. Here's the end of the output before crash.
...
In file included from /usr/include/openssl/objects.h:916:0,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from SSLeay.xs:167:
/usr/include/openssl/ocsp.h:336:1: note: expected âOCSP_CERTID * {aka
struct ocsp_cert_id_st *}â but argument is of type âconst OCSP_CERTID *
{aka const struct ocsp_cert_id_st *}â
DECLARE_ASN1_FUNCTIONS(OCSP_CERTID)
^
SSLeay.xs:6790:23: warning: passing argument 1 of âi2d_OCSP_CERTIDâ
discards âconstâ qualifier from pointer target type [-Wdiscarded-qualifiers]
i2d_OCSP_CERTID(OCSP_SINGLERESP_get0_id(sir),&pi);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/objects.h:916:0,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from SSLeay.xs:167:
/usr/include/openssl/ocsp.h:336:1: note: expected âOCSP_CERTID * {aka
struct ocsp_cert_id_st *}â but argument is of type âconst OCSP_CERTID *
{aka const struct ocsp_cert_id_st *}â
DECLARE_ASN1_FUNCTIONS(OCSP_CERTID)
^
rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
x86_64-linux-gnu-gcc -shared -L/usr -L/usr/lib -L/usr/local/lib
-fstack-protector-strong SSLeay.o -o
blib/arch/auto/Net/SSLeay/SSLeay.so \
-L/usr -L/usr/lib -lssl -lcrypto -lz \
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:497: recipe for target 'blib/arch/auto/Net/SSLeay/SSLeay.so' failed
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1
FAIL
! Installing Net::SSLeay::Handle failed. See
/root/.cpanm/work/1540885611.15537/build.log for details. Retry with
--force to force install it.
build.log contains same information as this output.
As I'm not familiar with the process I'm humbly asking for help or
advice - I'm not sure if problem is global or with my configuration. I
can supply any other necessary information if needed.
Best regards,
Karel Vychodsky
--
Message body is not shown because it is too large.