Created attachment 195660 [details] Patch for tls_bio.c using libressl Kamailio experiences these errors during a port build on FreeBSD 11.2S amd64 using libressl 2.7.4 tls_bio.c:88:14: error: static declaration of 'BIO_get_data' follows non-static declaration static void *BIO_get_data(BIO *b) ^ /usr/local/include/openssl/bio.h:608:8: note: previous declaration is here void *BIO_get_data(BIO *a); ^ tls_bio.c:92:13: error: static declaration of 'BIO_set_data' follows non-static declaration static void BIO_set_data(BIO *b, void *ptr) ^ /usr/local/include/openssl/bio.h:609:7: note: previous declaration is here void BIO_set_data(BIO *a, void *ptr); ^ tls_bio.c:96:13: error: static declaration of 'BIO_set_init' follows non-static declaration static void BIO_set_init(BIO *b, int init) ^ /usr/local/include/openssl/bio.h:610:7: note: previous declaration is here void BIO_set_init(BIO *a, int init); These declarations do not exist in the include files for openssl 1.0.2o, via ports. Building is successful with the enclosed patch. :)
Committed, thanks!
A commit references this bug: Author: pi Date: Wed Dec 12 17:59:32 UTC 2018 New revision: 487308 URL: https://svnweb.freebsd.org/changeset/ports/487308 Log: net/kamailio: update 5.1.6 -> 5.2.0, fix build with libressl PR: 230202 Submitted by: dewayne@heuristicsystems.com.au Relnotes: https://www.kamailio.org/w/kamailio-v5-2-0-release-notes/ Changes: head/net/kamailio/Makefile head/net/kamailio/distinfo head/net/kamailio/files/patch-src_modules_tls_sip-router__cert.sh head/net/kamailio/files/patch-src_modules_tls_tls__bio.c head/net/kamailio/pkg-plist