Bug 215363

Summary: Irc/hexchat fails with libressl
Product: Ports & Packages Reporter: Walter Schwarzenfeld <w.schwarzenfeld>
Component: Individual Port(s)Assignee: Olivier Cochard <olivier>
Status: Closed FIXED    
Severity: Affects Only Me CC: olivier
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn_diff-Irc_hexchat none

Description Walter Schwarzenfeld freebsd_triage 2016-12-17 23:06:49 UTC
Created attachment 178040 [details]
svn_diff-Irc_hexchat

Update fails on 10.3-RELEASE_amd64  /I have libressl)
with:;
ssl.c:182:13: error: implicit declaration of function
 'X509_get_signature_nid' is invalid in C99 [-Werror,-Wimplicit-function-d
 eclaration]
         sign_alg = X509_get_signature_nid (peer_cert);
                    ^
ssl.c:312:11: error: implicit declaration of function
'SSL_CTX_get_ssl_method' is invalid in C99 [-Werror,-Wimplicit-function-d
eclaration]
        method = SSL_CTX_get_ssl_method (ctx);
                  ^
ssl.c:312:11: note: did you mean 'SSL_get_ssl_method'?
/usr/local/include/openssl/ssl.h:1708:19: note: 'SSL_get_ssl_method'
declared here
const SSL_METHOD *SSL_get_ssl_method(SSL *s);

-----
Testbuilds of the patch with poudriere 10.3amd64/i386 ok.
Comment 1 commit-hook freebsd_committer 2017-01-03 14:13:03 UTC
A commit references this bug:

Author: olivier
Date: Tue Jan  3 14:12:28 UTC 2017
New revision: 430473
URL: https://svnweb.freebsd.org/changeset/ports/430473

Log:
  Fix build with libressl

  PR:		215363
  Submitted by:	w.schwarzenfeld@utanet.at
  Reviewed by:	pkubaj@anongoth.pl (maintainer)
  Approved by:	jadawin (mentor)
  Differential Revision:	https://reviews.freebsd.org/D8824

Changes:
  head/irc/hexchat/Makefile
  head/irc/hexchat/files/patch-src__common__ssl.c
Comment 2 Olivier Cochard freebsd_committer 2017-01-03 14:13:41 UTC
Thanks a lot's for your patch, and sorry for the delay.