[ 68s] src/tls_openssl.c: In function '_x509_to_tlscert':
[ 68s] src/tls_openssl.c:171:32: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}'
[ 68s] int alg_nid = OBJ_obj2nid(cert->cert_info->key->algor->algorithm);
[ 68s] ^~
[ 68s] src/tls_openssl.c: In function 'verify_callback':
[ 68s] src/tls_openssl.c:206:26: warning: passing argument 1 of 'sk_X509_pop_free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
[ 68s] sk_X509_pop_free(sk, X509_free);
[ 68s] ^~
[ 68s] In file included from /usr/include/openssl/crypto.h:29:0,
[ 68s] from /usr/include/openssl/comp.h:16,
[ 68s] from /usr/include/openssl/ssl.h:47,
[ 68s] from src/tls_openssl.c:21:
[ 68s] /usr/include/openssl/x509.h:97:1: note: expected 'struct stack_st_X509 *' but argument is of type 'const struct stack_st_X509 *'
[ 68s] DEFINE_STACK_OF(X509)
[ 68s] ^
[ 68s] src/tls_openssl.c:212:26: warning: passing argument 1 of 'sk_X509_pop_free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
[ 68s] sk_X509_pop_free(sk, X509_free);
[ 68s] ^~
[ 68s] In file included from /usr/include/openssl/crypto.h:29:0,
[ 68s] from /usr/include/openssl/comp.h:16,
[ 68s] from /usr/include/openssl/ssl.h:47,
[ 68s] from src/tls_openssl.c:21:
[ 68s] /usr/include/openssl/x509.h:97:1: note: expected 'struct stack_st_X509 *' but argument is of type 'const struct stack_st_X509 *'
[ 68s] DEFINE_STACK_OF(X509)
[ 68s] ^
[ 68s] src/tls_openssl.c:234:26: warning: passing argument 1 of 'sk_X509_pop_free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
[ 68s] sk_X509_pop_free(sk, X509_free);
[ 68s] ^~
[ 68s] In file included from /usr/include/openssl/crypto.h:29:0,
[ 68s] from /usr/include/openssl/comp.h:16,
[ 68s] from /usr/include/openssl/ssl.h:47,
[ 68s] from src/tls_openssl.c:21:
[ 68s] /usr/include/openssl/x509.h:97:1: note: expected 'struct stack_st_X509 *' but argument is of type 'const struct stack_st_X509 *'
[ 68s] DEFINE_STACK_OF(X509)
Building libstrophe on the other hand works fine.