Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669596 - net-wireless/crda-3.18-r2 : ./.../libreg.so: undefined reference to RSA_set0_key
Summary: net-wireless/crda-3.18-r2 : ./.../libreg.so: undefined reference to RSA_set0_key
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: PullRequest
: 672604 (view as bug list)
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2018-10-25 17:12 UTC by Toralf Förster
Modified: 2019-02-16 18:28 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.65 KB, text/plain)
2018-10-25 17:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,267.76 KB, text/plain)
2018-10-25 17:12 UTC, Toralf Förster
Details
environment (environment,82.40 KB, text/plain)
2018-10-25 17:12 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.95 KB, application/x-bzip)
2018-10-25 17:12 UTC, Toralf Förster
Details
net-wireless:crda-3.18-r2:20181025-002832.log (net-wireless:crda-3.18-r2:20181025-002832.log,3.66 KB, text/plain)
2018-10-25 17:12 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,19.78 KB, application/x-bzip)
2018-10-25 17:12 UTC, Toralf Förster
Details
crda-3.18-libressl.patch (crda-3.18-libressl.patch,367 bytes, patch)
2018-10-26 01:50 UTC, alfredthetomato
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 2018-10-25 17:12:14 UTC
x86_64-pc-linux-gnu-gcc -c  -O2 -pipe -march=native -fpic -std=gnu99 -Wall  -pedantic -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `x86_64-pc-linux-gnu-pkg-config --cflags openssl` -DCONFIG_LIBNL30 `x86_64-pc-linux-gnu-pkg-config --cflags libnl-3.0` -o crda.o crda.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fpic -std=gnu99 -Wall  -pedantic -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `x86_64-pc-linux-gnu-pkg-config --cflags openssl` -DCONFIG_LIBNL30 `x86_64-pc-linux-gnu-pkg-config --cflags libnl-3.0` -Wl,-O1 -Wl,--as-needed -L ./ -o crda crda.o -lreg -lm `x86_64-pc-linux-gnu-pkg-config --libs openssl` -lnl-genl-3 -lnl-3 `x86_64-pc-linux-gnu-pkg-config --libs libnl-3.0`
.//libreg.so: undefined reference to `RSA_set0_key'
collect2: error: ld returned 1 exit status
make: *** [Makefile:136: crda] Error 1
 * ERROR: net-wireless/crda-3.18-r2::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_libressl_20181019-202112

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

  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)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby25 (with Rubygems) *



emerge -qpvO net-wireless/crda
[ebuild  N    ] net-wireless/crda-3.18-r2  USE="libressl -gcrypt"
Comment 1 Toralf Förster gentoo-dev 2018-10-25 17:12:17 UTC
Created attachment 552902 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-10-25 17:12:19 UTC
Created attachment 552904 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-10-25 17:12:22 UTC
Created attachment 552906 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-10-25 17:12:24 UTC
Created attachment 552908 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-10-25 17:12:27 UTC
Created attachment 552910 [details]
net-wireless:crda-3.18-r2:20181025-002832.log
Comment 6 Toralf Förster gentoo-dev 2018-10-25 17:12:30 UTC
Created attachment 552912 [details]
temp.tbz2
Comment 7 alfredthetomato 2018-10-26 01:50:41 UTC
Created attachment 553066 [details, diff]
crda-3.18-libressl.patch

Patch to fix compilation with libressl.
Comment 8 Stefan Strogin gentoo-dev 2018-10-26 18:16:22 UTC
alfredthetomato, thanks. Will you submit this patch upstream?
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-12-06 08:53:27 UTC
*** Bug 672604 has been marked as a duplicate of this bug. ***
Comment 10 Pavol Cupka 2018-12-07 00:43:50 UTC
I add just a small comment here, it seems that CRDA is needed only for kernels before 4.15 and is marked as legacy.

https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/commit/?id=f4ef2531698fb9ba006e8b31a223b3269be8bc7c

Maybe net-wireless/wpa_supplicant needs its deps relaxed or check if running kernel <4.15 and compile only then?

wpa_supplicant:
...
CDEPEND="dbus? ( sys-apps/dbus )
        kernel_linux? (
                dev-libs/libnl:3
                net-wireless/crda
                eap-sim? ( sys-apps/pcsc-lite )
        )
        !kernel_linux? ( net-libs/libpcap )
...
Comment 11 Larry the Git Cow gentoo-dev 2019-02-16 18:28:38 UTC
The bug has been closed via the following commit(s):

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

commit 24d747741061e9a86d4d56b953f55577ddd2e55f
Author:     Stefan Strogin <stefan.strogin@gmail.com>
AuthorDate: 2018-12-12 00:01:04 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-02-16 18:28:23 +0000

    net-wireless/crda: fix build with LibreSSL
    
    Closes: https://bugs.gentoo.org/669596
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/10617
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 .../crda/{crda-3.18-r2.ebuild => crda-3.18-r3.ebuild}         |  3 ++-
 net-wireless/crda/files/crda-3.18-libressl.patch              | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)