Subject: | Compilation fails on debian/stretch (openssl 1.1.0) |
On debian/stretch systems the module compilation fails:
...
cc -c -I/usr/include/openssl -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -Wall -Werror -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC "-I/opt/perl-5.22.2/lib/5.22.2/x86_64-linux/CORE" VerifyX509.c
VerifyX509.xs: In function âverify_cbâ:
VerifyX509.xs:20:16: error: dereferencing pointer to incomplete type âX509_STORE_CTX {aka struct x509_store_ctx_st}â
switch (ctx->error) {
^~
VerifyX509.xs: In function âXS_Crypt__OpenSSL__VerifyX509___X509_cleanupâ:
VerifyX509.xs:143:3: error: âERR_remove_stateâ is deprecated [-Werror=deprecated-declarations]
ERR_remove_state(0);
^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from VerifyX509.xs:5:
/usr/include/openssl/err.h:247:1: note: declared here
DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
^
VerifyX509.xs: In function âctx_errorâ:
VerifyX509.xs:41:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
Makefile:346: recipe for target 'VerifyX509.o' failed
...