Subject: | Compilation fails on debian/stretch (openssl 1.1.0) |
On debian/stretch the compilation fails. Here's the output (errors only):
...
cc -c -I. -I/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.0.29\" -DXS_VERSION=\"2.0.29\" -fPIC "-I/opt/perl-5.22.2/lib/5.22.2/x86_64-linux/CORE" OpenSSL.c -w
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__X509_pubkey_algorithm’:
OpenSSL.xs:472:11: error: dereferencing pointer to incomplete type ‘X509 {aka struct x509_st}’
ci = cert->cert_info;
^~
OpenSSL.xs:473:25: error: dereferencing pointer to incomplete type ‘X509_CINF {aka struct x509_cinf_st}’
i2a_ASN1_OBJECT(out, ci->key->algor->algorithm);
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__X509_pubkey’:
OpenSSL.xs:496:11: error: dereferencing pointer to incomplete type ‘EVP_PKEY {aka struct evp_pkey_st}’
if (pkey->type == EVP_PKEY_RSA)
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__X509_keysize’:
OpenSSL.xs:540:41: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
BIO_printf(out,"%d", BN_num_bits(rsa->n));
^~
OpenSSL.xs:549:41: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’
BIO_printf(out,"%d", BN_num_bits(dsa->pub_key));
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__CRL_signature_algorithm’:
OpenSSL.xs:931:26: error: dereferencing pointer to incomplete type ‘X509_CRL {aka struct X509_crl_st}’
i2a_ASN1_OBJECT(out, crl->sig_alg->algorithm);
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__CRL_revoked’:
OpenSSL.xs:1027:25: error: dereferencing pointer to incomplete type ‘X509_REVOKED {aka struct x509_revoked_st}’
i2a_ASN1_INTEGER(out,r->serialNumber);
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__SPKAC_pubkey_algorithm’:
OpenSSL.xs:1087:43: error: dereferencing pointer to incomplete type ‘X509_PUBKEY {aka struct X509_pubkey_st}’
i2a_ASN1_OBJECT(out, spkac->spkac->pubkey->algor->algorithm);
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__PKCS10_version’:
OpenSSL.xs:1296:10: error: dereferencing pointer to incomplete type ‘X509_REQ {aka struct X509_req_st}’
neg=(csr->req_info->version->type == V_ASN1_NEG_INTEGER)?"-":"";
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__PKCS10_pubkey_algorithm’:
OpenSSL.xs:1413:25: error: dereferencing pointer to incomplete type ‘X509_REQ_INFO {aka struct X509_req_info_st}’
i2a_ASN1_OBJECT(out, ri->pubkey->algor->algorithm);
^~
OpenSSL.xs: In function ‘XS_OpenCA__OpenSSL__PKCS10_attributes’:
OpenSSL.xs:1633:42: error: dereferencing pointer to incomplete type ‘X509_ATTRIBUTE {aka struct x509_attributes_st}’
if(X509_REQ_extension_nid(OBJ_obj2nid(a->object)))
^~
...