Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682894 - net-misc/stunnel-5.51 : ctx.c:97:36: error: unknown type name SSL_TICKET_STATUS
Summary: net-misc/stunnel-5.51 : ctx.c:97:36: error: unknown type name SSL_TICKET_STATUS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-04-08 17:59 UTC by Toralf Förster
Modified: 2019-04-24 04:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.46 KB, text/plain)
2019-04-08 17:59 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,130.07 KB, text/plain)
2019-04-08 17:59 UTC, Toralf Förster
Details
environment (environment,69.02 KB, text/plain)
2019-04-08 18:00 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.67 KB, application/x-bzip)
2019-04-08 18:00 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.51 KB, application/x-bzip)
2019-04-08 18:00 UTC, Toralf Förster
Details
net-misc:stunnel-5.51:20190407-210517.log (net-misc:stunnel-5.51:20190407-210517.log,21.74 KB, text/plain)
2019-04-08 18:00 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.94 KB, application/x-bzip)
2019-04-08 18:00 UTC, Toralf Förster
Details
Patch for stunnel >5.50-r1 (stunnel-libressl.patch,1.79 KB, patch)
2019-04-15 19:13 UTC, Tezeta
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-04-08 17:59:54 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2019-04-08 17:59:57 UTC
Created attachment 572240 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-04-08 17:59:59 UTC
Created attachment 572242 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-04-08 18:00:03 UTC
Created attachment 572244 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-04-08 18:00:06 UTC
Created attachment 572246 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-04-08 18:00:08 UTC
Created attachment 572248 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-04-08 18:00:11 UTC
Created attachment 572250 [details]
net-misc:stunnel-5.51:20190407-210517.log
Comment 7 Toralf Förster gentoo-dev 2019-04-08 18:00:14 UTC
Created attachment 572252 [details]
temp.tbz2
Comment 8 Tezeta 2019-04-15 19:13:27 UTC
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 9 Tezeta 2019-04-15 19:15:52 UTC
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);
Comment 10 Larry the Git Cow gentoo-dev 2019-04-24 04:56:43 UTC
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(-)