x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/lib64/stunnel"' -DCONFDIR='"/etc/stunnel"' -O2 -pipe -march=native -pthread -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fPIE -fstack-protector -D_FORTIFY_SOURCE=2 -c -o stunnel-ssl.o `test -f 'ssl.c' || echo './'`ssl.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/lib64/stunnel"' -DCONFDIR='"/etc/stunnel"' -O2 -pipe -march=native -pthread -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fPIE -fstack-protector -D_FORTIFY_SOURCE=2 -c -o stunnel-ctx.o `test -f 'ctx.c' || echo './'`ctx.c ctx.c:97:36: error: unknown type name ‘SSL_TICKET_STATUS’; did you mean ‘SCM_WIFI_STATUS’? const unsigned char *, size_t, SSL_TICKET_STATUS, void *); ^~~~~~~~~~~~~~~~~ SCM_WIFI_STATUS ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_libressl_20190405-161922 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-8.3.0 * Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) * [2] ruby25 (with Rubygems) [3] ruby26 (with Rubygems) java-config: The following VMs are available for generation-2: emerge -qpvO net-misc/stunnel [ebuild N ] net-misc/stunnel-5.51 USE="ipv6 libressl ssl tcpd (-selinux) -stunnel3"
Created attachment 572240 [details] emerge-info.txt
Created attachment 572242 [details] emerge-history.txt
Created attachment 572244 [details] environment
Created attachment 572246 [details] etc.portage.tbz2
Created attachment 572248 [details] logs.tbz2
Created attachment 572250 [details] net-misc:stunnel-5.51:20190407-210517.log
Created attachment 572252 [details] temp.tbz2
Created attachment 572986 [details, diff] Patch for stunnel >5.50-r1 this fixes building stunnel >5.50-r1 with libressl (2.8.3 here)
Comment on attachment 572986 [details, diff] Patch for stunnel >5.50-r1 >--- a/src/ctx.c 2019-04-15 13:57:35.767522787 -0400 >+++ b/src/ctx.c 2019-04-15 13:59:22.034253732 -0400 >@@ -91,7 +91,7 @@ > NOEXPORT int ui_retry(); > > /* session tickets */ >-#if OPENSSL_VERSION_NUMBER >= 0x10101000L >+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) > NOEXPORT int generate_session_ticket_cb(SSL *, void *); > NOEXPORT int decrypt_session_ticket_cb(SSL *, SSL_SESSION *, > const unsigned char *, size_t, SSL_TICKET_STATUS, void *); >@@ -176,7 +176,7 @@ > } > } > >-#ifndef OPENSSL_NO_TLS1_3 >+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_NO_TLS1_3) > /* ciphersuites */ > if(section->ciphersuites) { > s_log(LOG_DEBUG, "TLSv1.3 ciphersuites: %s", section->ciphersuites); >@@ -229,7 +230,7 @@ > #endif > > /* setup session tickets */ >-#if OPENSSL_VERSION_NUMBER >= 0x10101000L >+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) > SSL_CTX_set_session_ticket_cb(section->ctx, generate_session_ticket_cb, > decrypt_session_ticket_cb, NULL); > #endif /* OpenSSL 1.1.1 or later */ >@@ -969,7 +970,7 @@ > > /**************************************** session tickets */ > >-#if OPENSSL_VERSION_NUMBER >= 0x10101000L >+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) > > typedef struct { > void *session_authenticated; > >--- a/src/client.c 2019-04-15 13:57:56.010868367 -0400 >+++ b/src/client.c 2019-04-15 13:58:05.444207404 -0400 >@@ -680,7 +680,7 @@ > } > > /****************************** wait for an event */ >-#if OPENSSL_VERSION_NUMBER >= 0x10100000L >+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) > pending=SSL_pending(c->ssl) || SSL_has_pending(c->ssl); > #else > pending=SSL_pending(c->ssl);
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a85fb190b37206caed168691ad569c5c63932f7 commit 5a85fb190b37206caed168691ad569c5c63932f7 Author: Stefan Strogin <stefan.strogin@gmail.com> AuthorDate: 2019-04-24 04:42:13 +0000 Commit: Aaron Bauman <bman@gentoo.org> CommitDate: 2019-04-24 04:56:31 +0000 net-misc/stunnel: update LibreSSL patch for 5.51 Closes: https://bugs.gentoo.org/682894 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/11807 Signed-off-by: Aaron Bauman <bman@gentoo.org> net-misc/stunnel/files/stunnel-5.51-libressl.patch | 268 +++++++++++++++++++++ ...{stunnel-5.51.ebuild => stunnel-5.51-r1.ebuild} | 4 +- 2 files changed, 270 insertions(+), 2 deletions(-)