Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 750842

Summary: app-admin/rsyslog-8.2010.0 : nsd_ossl.c: error: implicit declaration of function SSL_get_shared_curve
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Maciej Barć <xgqt>
Status: RESOLVED WONTFIX    
Severity: normal CC: brad
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=694520
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-admin:rsyslog-8.2010.0:20201022-193455.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
patch to mask use of SSL_get_shared_curve when using libressl

Description Toralf Förster gentoo-dev 2020-10-23 15:06:53 UTC
nsd_ossl.c: In function ‘osslPostHandshakeCheck’:
nsd_ossl.c:1385:5: error: implicit declaration of function ‘SSL_get_shared_curve’; did you mean ‘SSL_get_shared_ciphers’? [-Werror=implicit-function-declaration]
 1385 |  if(SSL_get_shared_curve(pNsd->ssl, -1) == 0) {
      |     ^~~~~~~~~~~~~~~~~~~~
      |     SSL_get_shared_ciphers

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl-20201008-134631

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.47.0
  [2]   rust-1.47.0 *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Oct 22 07:05:42 PM UTC 2020
/var/db/repos/libressl	Sun Oct 18 04:35:14 PM UTC 2020

emerge -qpvO app-admin/rsyslog
[ebuild     U ] app-admin/rsyslog-8.2010.0 [8.2008.0] USE="gcrypt libressl openssl snmp ssl uuid -clickhouse -curl -dbi -debug -doc -elasticsearch -gnutls -imhttp% -impcap% -jemalloc -kafka -kerberos -kubernetes -mdblookup -mongodb -mysql -normalize -omhttp -omhttpfs -omudpspoof -postgres -rabbitmq -redis -relp -rfc3195 -rfc5424hmac -systemd -test -usertools -xxhash -zeromq"
Comment 1 Toralf Förster gentoo-dev 2020-10-23 15:06:54 UTC
Created attachment 668027 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-10-23 15:06:56 UTC
Created attachment 668030 [details]
app-admin:rsyslog-8.2010.0:20201022-193455.log
Comment 3 Toralf Förster gentoo-dev 2020-10-23 15:06:58 UTC
Created attachment 668033 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-10-23 15:07:00 UTC
Created attachment 668036 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-10-23 15:07:01 UTC
Created attachment 668039 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-10-23 15:07:03 UTC
Created attachment 668042 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-10-23 15:07:04 UTC
Created attachment 668045 [details]
temp.tbz2
Comment 8 Bradley Jarvis 2021-01-16 10:04:02 UTC
Created attachment 683122 [details, diff]
patch to mask use of SSL_get_shared_curve when using libressl

Mask the use of this function if LIBRESSL_VERSION_NUMBER is defined. This mechanism is used in other parts of the the file runtime/nsd_ossl.c and it also currently depends on openssl version being greater than or equal to 1.0.2.

Not sure if this is the best way to handle this issue but it does allow the code to compile.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 20:33:48 UTC
libressl support was dropped.