Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695630 - net-vpn/openconnect-8.05 : openssl-esp.c:39:25: error: static declaration of HMAC_CTX_new follows non-static declaration
Summary: net-vpn/openconnect-8.05 : openssl-esp.c:39:25: error: static declaration of ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-09-25 16:06 UTC by Toralf Förster
Modified: 2020-04-03 14:27 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.35 KB, text/plain)
2019-09-25 16:06 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,114.51 KB, text/plain)
2019-09-25 16:07 UTC, Toralf Förster
Details
environment (environment,109.12 KB, text/plain)
2019-09-25 16:07 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.99 KB, application/x-bzip)
2019-09-25 16:07 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.08 KB, application/x-bzip)
2019-09-25 16:07 UTC, Toralf Förster
Details
net-vpn:openconnect-8.05:20190924-221311.log (net-vpn:openconnect-8.05:20190924-221311.log,32.32 KB, text/plain)
2019-09-25 16:07 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.08 KB, application/x-bzip)
2019-09-25 16:07 UTC, Toralf Förster
Details
libressl patch (openconnect-8.05-libressl.patch,5.44 KB, patch)
2019-10-05 12:48 UTC, Philipp Ammann
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-09-25 16:06:55 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DLOCALEDIR=\"/usr/share/locale\" -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Werror=pointer-to-int-cast -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wnested-externs -Wpointer-arith -Wwrite-strings -I/usr/include/libxml2 -I/usr/include/p11-kit-1 -O2 -pipe -march=native -c openssl-esp.c  -fPIC -DPIC -o .libs/libopenconnect_la-openssl-esp.o
openssl-esp.c:39:25: error: static declaration of ‘HMAC_CTX_new’ follows non-static declaration
   39 | static inline HMAC_CTX *HMAC_CTX_new(void)
      |                         ^~~~~~~~~~~~
In file included from /usr/include/openssl/ssl.h:150,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-libressl-20190921-191550

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.37.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 24 Sep 2019 22:06:12 +0000

emerge -qpvO net-vpn/openconnect
[ebuild  N    ] net-vpn/openconnect-8.05  USE="libressl lz4 nls -doc -gnutls -gssapi -libproxy -smartcard -static-libs -stoken"
Comment 1 Toralf Förster gentoo-dev 2019-09-25 16:06:57 UTC
Created attachment 591040 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-09-25 16:07:00 UTC
Created attachment 591042 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-09-25 16:07:03 UTC
Created attachment 591044 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-09-25 16:07:05 UTC
Created attachment 591046 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-09-25 16:07:08 UTC
Created attachment 591048 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-09-25 16:07:11 UTC
Created attachment 591050 [details]
net-vpn:openconnect-8.05:20190924-221311.log
Comment 7 Toralf Förster gentoo-dev 2019-09-25 16:07:14 UTC
Created attachment 591052 [details]
temp.tbz2
Comment 8 Mike Gilbert gentoo-dev 2019-09-25 16:09:38 UTC
Someone using libressl will need to provide a patch.
Comment 9 Philipp Ammann 2019-10-05 12:48:49 UTC
Created attachment 591896 [details, diff]
libressl patch

Here you go.

I've sent the first two patches upstream in August but haven't received any feedback so far:

  https://lists.infradead.org/pipermail/openconnect-devel/2019-August/005395.html
  https://lists.infradead.org/pipermail/openconnect-devel/2019-August/005394.html

The third one is kinda ugly. Please read the commit message for more info.
Comment 10 Mike Gilbert gentoo-dev 2019-12-09 19:56:04 UTC
(In reply to Philipp Ammann from comment #9)

Please let me know when upstream has accepted all patches; I do not want to carry patches I cannot test.
Comment 11 Quentin Casasnovas 2020-04-02 07:54:55 UTC
FWIW I have tested those two patches and net-vpn/openconnect-8.05 now works for me with libressl.
Comment 12 Larry the Git Cow gentoo-dev 2020-04-03 14:26:37 UTC
The bug has been referenced in the following commit(s):

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

commit 92b665c22286041455f9f4a110dbe6b425d962af
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-04-03 14:25:24 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-04-03 14:26:29 +0000

    net-vpn/openconnect: drop libressl support
    
    Building with LibreSSL is currently broken.
    When it does work, it doesn't support DTLS anyway.
    GnuTLS is a more viable alternative.
    
    Bug: https://bugs.gentoo.org/695630
    Closes: https://bugs.gentoo.org/715990
    Package-Manager: Portage-2.3.96_p4, Repoman-2.3.22_p1
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-vpn/openconnect/openconnect-8.05.ebuild | 5 ++---
 net-vpn/openconnect/openconnect-8.06.ebuild | 5 ++---
 net-vpn/openconnect/openconnect-9999.ebuild | 5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)