Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678604 - net-vpn/openvpn-2.4.7[libressl] : ssl_openssl.c:1852:52: error: TLS1_3_VERSION undeclared (first use in this function)
Summary: net-vpn/openvpn-2.4.7[libressl] : ssl_openssl.c:1852:52: error: TLS1_3_VERSIO...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-02-22 21:27 UTC by Toralf Förster
Modified: 2019-03-13 00:43 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.69 KB, text/plain)
2019-02-22 21:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,202.48 KB, text/plain)
2019-02-22 21:28 UTC, Toralf Förster
Details
environment (environment,145.35 KB, text/plain)
2019-02-22 21:28 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.84 KB, application/x-bzip)
2019-02-22 21:28 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,18.91 KB, application/x-bzip)
2019-02-22 21:28 UTC, Toralf Förster
Details
net-vpn:openvpn-2.4.7:20190222-201619.log (net-vpn:openvpn-2.4.7:20190222-201619.log,47.57 KB, text/plain)
2019-02-22 21:28 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,41.04 KB, application/x-bzip)
2019-02-22 21:28 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-22 21:27:59 UTC
          SSL_CTX_set_cipher_list
ssl_openssl.c: In function ‘show_available_tls_ciphers_list’:
ssl_openssl.c:1852:52: error: ‘TLS1_3_VERSION’ undeclared (first use in this function); did you mean ‘TLS1_2_VERSION’?
         SSL_CTX_set_min_proto_version(tls_ctx.ctx, TLS1_3_VERSION);
                                                    ^~~~~~~~~~~~~~
                                                    TLS1_2_VERSION

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-hardened_libressl_20190218-201623

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *



emerge -qpvO net-vpn/openvpn
[ebuild  N    ] net-vpn/openvpn-2.4.7  USE="libressl lzo pam plugins ssl -down-root -examples -inotify -iproute2 -lz4 -mbedtls -pkcs11 (-selinux) -static -systemd -test"
Comment 1 Toralf Förster gentoo-dev 2019-02-22 21:28:02 UTC
Created attachment 566118 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-22 21:28:05 UTC
Created attachment 566120 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-22 21:28:07 UTC
Created attachment 566122 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-22 21:28:10 UTC
Created attachment 566124 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-22 21:28:13 UTC
Created attachment 566126 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-22 21:28:16 UTC
Created attachment 566128 [details]
net-vpn:openvpn-2.4.7:20190222-201619.log
Comment 7 Toralf Förster gentoo-dev 2019-02-22 21:28:18 UTC
Created attachment 566130 [details]
temp.tbz2
Comment 8 jospezial 2019-02-23 13:11:33 UTC
https://github.com/libressl-portable/portable/issues/228
TLS 1.3 support is in development. It's not ready currently.
It is disabled in current libressl source.

We have to add a check for libressl at 
#if (OPENSSL_VERSION_NUMBER < 0x1010100fL)
in src/openvpn/ssl_openssl.c
Comment 9 Larry the Git Cow gentoo-dev 2019-02-24 00:51:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f52b8e80566cb783ec05e419c11a1b604b645399

commit f52b8e80566cb783ec05e419c11a1b604b645399
Author:     Stefan Strogin <stefan.strogin@gmail.com>
AuthorDate: 2019-02-23 18:23:12 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-02-24 00:51:34 +0000

    net-vpn/openvpn: add patch to fix build with LibreSSL
    
    Closes: https://bugs.gentoo.org/678604
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/11145
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 net-vpn/openvpn/files/openvpn-2.4.7-libressl.patch | 49 ++++++++++++++++++++++
 ...penvpn-2.4.7.ebuild => openvpn-2.4.7-r1.ebuild} |  1 +
 2 files changed, 50 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2019-03-13 00:43:28 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c16af66cd6e5903520a80e73c6f594449e654a5f

commit c16af66cd6e5903520a80e73c6f594449e654a5f
Author:     Stefan Strogin <stefan.strogin@gmail.com>
AuthorDate: 2019-03-04 20:24:24 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2019-03-13 00:43:18 +0000

    net-vpn/openvpn: update LibreSSL patch to accepted upstream
    
    Bug: https://bugs.gentoo.org/678604
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/11260
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 net-vpn/openvpn/files/openvpn-2.4.7-libressl.patch | 133 +++++++++++++++++----
 ...vpn-2.4.7-r1.ebuild => openvpn-2.4.7-r2.ebuild} |   0
 2 files changed, 113 insertions(+), 20 deletions(-)