Bug 230202 - net/kamailio fails to build with libressl 2.7.4 on FreeBSD 11.2 - patch included
Summary: net/kamailio fails to build with libressl 2.7.4 on FreeBSD 11.2 - patch included
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-30 22:08 UTC by dewayne
Modified: 2018-12-12 17:59 UTC (History)
1 user (show)

See Also:
pi: maintainer-feedback+


Attachments
Patch for tls_bio.c using libressl (897 bytes, text/plain)
2018-07-30 22:08 UTC, dewayne
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 2018-12-12 17:59:43 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer 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