Bug 230202

Summary: net/kamailio fails to build with libressl 2.7.4 on FreeBSD 11.2 - patch included
Product: Ports & Packages Reporter: dewayne
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me CC: dpetrov67
Priority: --- Flags: pi: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch for tls_bio.c using libressl none

Description dewayne 2018-07-30 22:08:53 UTC
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.  :)
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2018-12-12 17:59:43 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-12-12 17:59:55 UTC
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