[Bug 260154] [PATCH] irc/znc: fix build using LibreSSL 3.4.2

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 01 Dec 2021 02:53:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260154

            Bug ID: 260154
           Summary: [PATCH] irc/znc: fix build using LibreSSL 3.4.2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dbaio@freebsd.org
          Reporter: wcarson.bugzilla@disillusion.net
          Assignee: dbaio@freebsd.org
             Flags: maintainer-feedback?(dbaio@freebsd.org)

Created attachment 229826
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229826&action=edit
Fix build with libressl

irc/znc 1.8.2 fails to build against LibreSSL 3.4.2, which was resolved
upstream in commit dcb5f3df82fcfec48aab356252067dc897fb98cf:

https://github.com/znc/znc/commit/dcb5f3df82fcfec48aab356252067dc897fb98cf

They did not roll a new version, though, so I integrated the patches to get it
building again.

Error:

--- modules/CMakeFiles/module_schat.dir/all ---
/wrkdirs/usr/ports/irc/znc/work/znc-1.8.2/modules/schat.cpp:227:40: error:
member access into incomplete type 'SSL_SESSION' (aka 'ssl_session_st')
                            pSession ? SSL_SESSION_get0_cipher(pSession)
                                       ^
/wrkdirs/usr/ports/irc/znc/work/znc-1.8.2/modules/schat.cpp:33:55: note:
expanded from macro 'SSL_SESSION_get0_cipher'
# define SSL_SESSION_get0_cipher(pSession) ((pSession)->cipher)
                                                      ^
/usr/local/include/openssl/ssl.h:365:16: note: forward declaration of
'ssl_session_st'
typedef struct ssl_session_st SSL_SESSION;
               ^
/wrkdirs/usr/ports/irc/znc/work/znc-1.8.2/modules/schat.cpp:291:40: error:
member access into incomplete type 'SSL_SESSION' (aka 'ssl_session_st')
                            pSession ? SSL_SESSION_get0_cipher(pSession)
                                       ^
/wrkdirs/usr/ports/irc/znc/work/znc-1.8.2/modules/schat.cpp:33:55: note:
expanded from macro 'SSL_SESSION_get0_cipher'
# define SSL_SESSION_get0_cipher(pSession) ((pSession)->cipher)
                                                      ^
/usr/local/include/openssl/ssl.h:365:16: note: forward declaration of
'ssl_session_st'
typedef struct ssl_session_st SSL_SESSION;
               ^

https://github.com/znc/znc/commit/dcb5f3df82fcfec48aab356252067dc897fb98cf

-- 
You are receiving this mail because:
You are the assignee for the bug.