Build fails with LibreSSL
--with-crypto-library=openssl
, LibreSSL-2.6.5
CC stunhmac.lo
stunhmac.c: In function ‘stun_sha1’:
stunhmac.c:83:19: error: implicit declaration of function ‘HMAC_CTX_new’; did you mean ‘HMAC_CTX_init’? [-Werror=implicit-function-declaration]
HMAC_CTX *ctx = HMAC_CTX_new ();
^~~~~~~~~~~~
HMAC_CTX_init
stunhmac.c:83:19: error: nested extern declaration of ‘HMAC_CTX_new’ [-Werror=nested-externs]
stunhmac.c:83:19: error: initialization of ‘HMAC_CTX *’ {aka ‘struct hmac_ctx_st *’} from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
stunhmac.c:107:3: error: implicit declaration of function ‘HMAC_CTX_free’; did you mean ‘HMAC_CTX_copy’? [-Werror=implicit-function-declaration]
HMAC_CTX_free (ctx);
^~~~~~~~~~~~~
HMAC_CTX_copy
stunhmac.c:107:3: error: nested extern declaration of ‘HMAC_CTX_free’ [-Werror=nested-externs]
stunhmac.c: In function ‘stun_hash_creds’:
stunhmac.c:178:9: error: implicit declaration of function ‘EVP_MD_CTX_new’; did you mean ‘EVP_MD_CTX_init’? [-Werror=implicit-function-declaration]
ctx = EVP_MD_CTX_new ();
^~~~~~~~~~~~~~
EVP_MD_CTX_init
stunhmac.c:178:9: error: nested extern declaration of ‘EVP_MD_CTX_new’ [-Werror=nested-externs]
stunhmac.c:178:7: error: assignment to ‘EVP_MD_CTX *’ {aka ‘struct env_md_ctx_st *’} from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
ctx = EVP_MD_CTX_new ();
^
stunhmac.c:192:3: error: implicit declaration of function ‘EVP_MD_CTX_free’; did you mean ‘EVP_MD_CTX_create’? [-Werror=implicit-function-declaration]
EVP_MD_CTX_free (ctx);
^~~~~~~~~~~~~~~
EVP_MD_CTX_create
stunhmac.c:192:3: error: nested extern declaration of ‘EVP_MD_CTX_free’ [-Werror=nested-externs]
See also: https://bugs.gentoo.org/678000