Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672632 - net-wireless/wpa_supplicant-2.7 : tls_openssl.c:(.text+<snip>): undefined reference to ASN1_STRING_get0_data
Summary: net-wireless/wpa_supplicant-2.7 : tls_openssl.c:(.text+<snip>): undefined ref...
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:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2018-12-06 16:54 UTC by Toralf Förster
Modified: 2019-03-25 12:36 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.79 KB, text/plain)
2018-12-06 16:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,334.33 KB, text/plain)
2018-12-06 16:54 UTC, Toralf Förster
Details
environment (environment,101.23 KB, text/plain)
2018-12-06 16:54 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.04 KB, application/x-bzip)
2018-12-06 16:54 UTC, Toralf Förster
Details
net-wireless:wpa_supplicant-2.7:20181206-002721.log (net-wireless:wpa_supplicant-2.7:20181206-002721.log,196.10 KB, text/plain)
2018-12-06 16:54 UTC, Toralf Förster
Details
Fix (wpa_supplicant-2.7-libressl.patch,324 bytes, patch)
2018-12-13 19:30 UTC, TSM
Details | Diff
Ebuild fix (diff.patch,357 bytes, patch)
2018-12-13 19:33 UTC, TSM
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-12-06 16:54:05 UTC
../src/crypto/tls_openssl.o: In function `tls_verify_cb':
tls_openssl.c:(.text+0x16ad): undefined reference to `ASN1_STRING_get0_data'
../src/crypto/tls_openssl.o: In function `tls_connection_peer_serial_num':
tls_openssl.c:(.text+0x35b3): undefined reference to `ASN1_STRING_get0_data'
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_libressl_20181127-210345

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

  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]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems)
  [3]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.30.1 *
  [2]   rust-bin-1.30.1
java-config:
The following VMs are available for generation-2:


emerge -qpvO net-wireless/wpa_supplicant
[ebuild     U ] net-wireless/wpa_supplicant-2.7 [2.6-r9] USE="hs2-0 libressl readline ssl -ap -bindist -dbus -eap-sim -eapol_test -fasteap -gnutls -p2p -privsep (-ps3) -qt5 (-selinux) -smartcard -suiteb -tdls -uncommon-eap-types (-wimax) -wps"
Comment 1 Toralf Förster gentoo-dev 2018-12-06 16:54:08 UTC
Created attachment 557158 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-12-06 16:54:11 UTC
Created attachment 557160 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-12-06 16:54:14 UTC
Created attachment 557162 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-12-06 16:54:16 UTC
Created attachment 557164 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-12-06 16:54:19 UTC
Created attachment 557166 [details]
net-wireless:wpa_supplicant-2.7:20181206-002721.log
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2018-12-10 19:13:30 UTC
The error looks like it is trying to build against openssl 1.1 but it is actually building against libressl.  Not sure why it breaks though
Comment 7 TSM 2018-12-13 19:30:40 UTC
Created attachment 557742 [details, diff]
Fix

seems like it compiles properly with this patch, check it out
Comment 8 TSM 2018-12-13 19:33:41 UTC
Created attachment 557744 [details, diff]
Ebuild fix

jeez, what a mess of an ebuild
i've spent like thrice more time trying to figure out why doesn't my patch apply by default than fixing the actual error
Comment 9 Stefan Strogin gentoo-dev 2019-01-09 09:32:44 UTC
This was fixed in 837e36583a "Fix build with LibreSSL", http://lists.infradead.org/pipermail/hostap/2018-December/039110.html

See also: https://bugs.gentoo.org/672834

Yet we need to add the patch into the wpa_supplicant-2.7 ebuild.
Comment 10 Rick Farina (Zero_Chaos) gentoo-dev 2019-01-14 01:44:50 UTC
https://github.com/gentoo/gentoo/pull/10827

Thanks for the PR, merged