Summary: | net-wireless/wpa_supplicant-2.6-r4 USE=-ssl or USE="gnutls ssl" - sae.c:(.text+0x16f): undefined reference to `crypto_bignum_to_bin' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | Current packages | Assignee: | Bjarke Istrup Pedersen (RETIRED) <gurligebis> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, amade, ansla80, anton.kochkov, atoth, conikost, eugene.shalygin, fturco, gef.kornflakes, gentoo, iivanich, jeremy.william.murphy, kalin, mark+gentoobugs, me, mike, nrndda, orzel, phantom4, polynomial-c, remi, tacvbo, tka, vityokster, v_2e, xxoo, zerochaos |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
net-wireless:wpa_supplicant-2.6-r4:20171209-083654.log
wpa_supplicant-2.6-r4.ebuild.diff |
Portage 2.3.14 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.26-r3, 4.13.0-pf13-mgorny-amd64+ x86_64) ================================================================= System uname: Linux-4.13.0-pf13-mgorny-amd64+-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.4.1 Timestamp of repository gentoo: Sat, 09 Dec 2017 07:45:01 +0000 Head commit of repository gentoo: ba5a5ecc054042622c753ebb962af58112c192ff sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 distcc 3.2rc1 x86_64-pc-linux-gnu [enabled] ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.10.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 6.4.0::gentoo sys-devel/gcc-config: 1.9.0-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-umask: 027 sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 python location: /home/mgorny/git/python-repo sync-umask: 027 masters: gentoo mgorny location: /home/mgorny/git/mgorny-repo sync-umask: 027 masters: gentoo priority: 10000 Installed sets: @mg_depends_cb_agent, @mg_depends_qaweb ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="CC-BY-2.0 GPL-3+ GPL-1+ GPL-2+ FDL-1.1 FDL-1.1+ FDL-1.2+ FDL-1.3+ CC-BY-SA-3.0 GPL-1 CC-BY-3.0 FDL-1.2 CC-BY-SA-4.0 CC-BY-2.5 CC-BY-SA-2.0 Arphic FDL-1.3 OFL-1.1 GPL-3 FreeArt CC-BY-SA-2.5 OFL OPL IPAfont GPL-2 CC-BY-4.0 MaxMind2 BitstreamVera LDP-1 man-pages-posix-2013 mplus-fonts CC-SA-1.0 myspell-en_CA-KevinAtkinson Texinfo-manual UbuntuFontLicense-1.0 man-pages wxWinFDL-3 Unicode_Fonts_for_Ancient_Scripts CC-BY-SA-1.0 vlgothic man-pages-posix CC-PD LDP-1a quake1-textures ZLIB GPL-3+ W3C APL-1.0 GPL-1+ POSTGRESQL GPL-2+ LPPL-1.3c NOSA PHP-3.01 LGPL-2+ CPL-1.0 ECL-2.0 Ms-PL BSD Boost-1.0 nethack Apache-1.1 CDDL AFL-3.0 Artistic-2 EUPL-1.1 AGPL-3+ UoI-NCSA OSL-2.1 wxWinLL-3 MPL-1.0 IBM ISC CNRI ZPL BSD-2 Watcom-1.0 LGPL-2.1+ PSF-2 EPL-1.0 MPL-2.0 LGPL-2.1 AGPL-3 Artistic OFL-1.1 GPL-3 MIT Sleepycat CPAL-1.0 IPAfont PHP-3 Apache-2.0 GPL-2 LGPL-3 QPL HPND LGPL-3+ MPL-1.1 APSL-2 mm shrimp rdisc PHP-2.02 FVWM alternate x2x w3m perforce wxWinLL-3.1 Time-modules tcltk gsm BEER-WARE lsof Info-ZIP LPPL-1.3b SNIA UCAR-Unidata dom4j XC NCSA-HDF LLGPL-2.1 imagemagick CDDL-Schily Sendmail xvt noweb libpng mapm-4.9.5 CeCILL-C tm-align bea.ri.jsr173 xbatt libtiff keynote CAOSL torque-2.5 JasPer2.0 Princeton ipadic LPPL-1.3 Sendmail-Open-Source ElementTree docbook BZIP2 Emacs Time-Format otter scanlogd ZSH qmail-nelson Mini-XML Snd freetts eGenixPublic-1.1 tablelist rc boehm-gc icu YaTeX CMake JDOM CPL-0.5 yuuji ACE Old-MIT FastCGI psutils BSD-1 xboing libmng rwpng DES matplotlib regexp-UofT TeX mpich2 ngrep LambdaMOO totd photopc SSLeay NEWLIB Toyoda buddy tcp_wrappers_license gd BSD-with-attribution telegram the-Click-license openafs-krb5-a repoze pngnq SMAIL ErlPL-1.1 VTK Subversion IDPL RSA Mail-Sendmail Crypt-IDEA MIT-with-advertising File-MMagic LLVM-Grant feh inner-net bufexplorer.vim HTML-Tidy xtrs libodialog iASL PCRE Flashpix FLTK symlinks pngcrush canfep htmlc freemarker AMPAS LIBGLOSS Openwall CRACKLIB ipx-utils netcat TeX-other-free flexmock Allegro FLEX Xdebug minpack Ispell JNIC SVFL URT JOVE PHP-3.01 BSD-4 CPL-1.0 openssl gnuplot Ms-PL OSL-2.0 Zend-2.0 Apache-1.1 CDDL AFL-3.0 LPPL-1.2 EUPL-1.1 OSL-2.1 MPL-1.0 IBM CNRI FTL gcc-runtime-library-exception-3.1 Clear-BSD ZLIB libstdc++ GPL-3+ GPL-3+-with-opencl-openssl-exception W3C GPL-1+ GPL-3-with-openssl-exception CeCILL-2 GPL-2+ LGPL-2+ IJG Clarified-Artistic ECL-2.0 PYTHON GPL-3+-with-opencl-exception LGPL-2.1-with-linking-exception metapackage BSD Boost-1.0 PSF-2.4 WTFPL-2 UPX-exception vim Artistic-2 GPL-2+-with-openssl-exception PSF-2.2 AGPL-3+ GPL-1 qwt UoI-NCSA GPL-2-with-classpath-exception GPL-2-with-MySQL-FLOSS-exception Nokia-Qt-LGPL-Exception-1.1 ISC Ruby-BSD ZPL BSD-2 SGI-B-2.0 LGPL-2.1+ PSF-2 Transmission-OpenSSL-exception GPL-2-with-font-exception GPL-3+-with-cuda-openssl-exception MPL-2.0 LGPL-2.1 AGPL-3 OPENLDAP PSF-2.3 GPL-3-with-font-exception GPL-3 LGPL-2-with-linking-exception MIT Sleepycat CC0-1.0 GPL-3+-with-cuda-exception unicode Unlicense Apache-2.0 GPL-2 GPL-2-with-exceptions LGPL-2 LGPL-3 LGPL-3-with-linking-exception public-domain tanuki-community GPL-2-with-linking-exception HPND LGPL-3+ libgcc Ruby EPL-1.0 QPL-1.0 NPL-1.1 AFL-2.1 OSL-1.1 CPAL-1.0 QPL Apache-1.0 MPL-1.1 APSL-2" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc-6.4.0" CFLAGS="-march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXX="x86_64-pc-linux-gnu-g++-6.4.0" CXXFLAGS="-march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches" DISTDIR="/srv/nfs/common/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --ask --keep-going --quiet-build=n --dynamic-deps=n" FCFLAGS="-march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg" FFLAGS="-march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS=" http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.vectranet.pl/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/" INSTALL_MASK="/test /usr/share/locale -/usr/share/locale/pl" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j12" PKGDIR="/srv/nfs/common/packages/athlon64" PORTAGE_COMPRESS="lzip" PORTAGE_COMPRESS_FLAGS="-9" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --times --compress --force --whole-file --delete --stats --timeout=45 --exclude=/distfiles --exclude=/packages --exclude=/local --exclude=CVS --exclude=/metadata/cache --omit-dir-times" PORTAGE_TMPDIR="/tmp" USE="3dnow 3dnowext X a52 aac acl adns aio alsa amd64 ayatana bash-completion bluetooth branding btrfs bzip2 cairo caps cdda cdr cli crypt cups curl cxx dbus djvu dri dts dvb dvd dvdr egl emboss exif fftw firefox flac fontconfig fortran gd gif glamor gmp gnuplot gnutls gphoto2 gstreamer gtk iconv idn imagemagick ipv6 jpeg jpeg2k kate latex lcms libass libatomic liblockfile libnotify libproxy libsamplerate libsecret libtiger lz4 lzma lzo mad mmap mmxext mng modules mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg openal opencl opengl openmp openvg opus osmesa pam pango pch pcre pcre-jit pdf plotutils png policykit postscript ppds pulseaudio qt3support qt5 readline sctp sdl seccomp session slang smp sndfile speex spell sse3 ssl startup-notification svg systemd t1lib tcpd threads tiff truetype udev udisks unicode upower usb v4l2 vaapi vhosts vim-syntax vorbis wavpack wayland webp wmf wxwidgets x264 xattr xcb xft xml xpm xv xvid xvmc zeroconf zlib zsh-completion" ABI_X86="64 32" ALSA_CARDS="hda-intel emu10k1 mpu401 pcsp virmidi" APACHE2_MODULES="socache_shmcb unixd actions alias deflate filter mime mime_magic negotiation rewrite" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 3dnow 3dnowext sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" LIRC_DEVICES="serial" LLVM_TARGETS="*" NGINX_MODULES_HTTP="gzip limit_conn limit_req rewrite spdy uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 jython2_7 pypy pypy3 python3_4 python3_6" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 ppc ppc64 ppc64abi32 x86_64" QEMU_USER_TARGETS="aarch64 arm ppc ppc64" RUBY_TARGETS="ruby22 *" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="nouveau radeon vesa r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS I got the same problem on my system and did a few tests: Build fails with USE="fasteap" + any accepted combination of crypto lib flags (USE="-ssl" or USE="-ssl gnutls" which is equivalent as gnutls have no effect without ssl), and also with "-fasteap -ssl". Build successful only with "-fasteap ssl -gnutls". After I locally merged https://github.com/gentoo/gentoo/pull/5236 : Build is successfull with USE="fasteap ssl" or "-fasteap ssl" but fails with any non-OpenSSL combination (tried "-ssl", "ssl gnutls", with "fasteap" or "-fasteap" ) So it seems ssl useflag is needed, and the linked PR for fasteap. (my other useflags: ap dbus hs2-0 p2p privsep qt5 readline tdls uncommon-eap-types wps) (for information, no guarantee on result, I put here the merged - a few conflicts - wpa_supplicant-2.6-r4.ebuild here if desired: https://gist.github.com/anonymous/17fb58980bfe231b2c1a1744a4d2163f) Hm, it seems here to build fine on my amd64 machine, but on my arm machine it fails with this error. Created attachment 510472 [details, diff]
wpa_supplicant-2.6-r4.ebuild.diff
Possible fix.
The ebuild patched with Polynomial-C patch merged with no issue for me. (I haven't even tried to understand it) Same problem, patched ebuild emerges without errors. Great, attachment 510472 [details, diff] worked for me too. It has a nice side effect of fixing bug 640492 which I was fighting for an hour... Time for -r5? BTW, setting S="${WORKDIR}/${P}/${PN}" before calling default in src_prepare() with EAPI=6 means that I cannot use epatch_user properly, i.e. I cannot patch files in "${WORKDIR}/${P}" which I thought was required for bug 640492. (In reply to Kalin KOZHUHAROV from comment #8) > Great, attachment 510472 [details, diff] [details, diff] worked for me too. It has a nice > side effect of fixing bug 640492 which I was fighting for an hour... > > Time for -r5? > > BTW, setting S="${WORKDIR}/${P}/${PN}" before calling default in > src_prepare() with EAPI=6 means that I cannot use epatch_user properly, i.e. > I cannot patch files in "${WORKDIR}/${P}" which I thought was required for > bug 640492. I doubt the ebuild patch really fixes the issue meintioned in bug #640492. I rather think the issue now is just hidden either behind the ssl or the gnutls USE flag. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=454714bd9c39b2ca6008b136d7e4423e1b8acd7c commit 454714bd9c39b2ca6008b136d7e4423e1b8acd7c Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-01-06 19:49:24 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-01-06 19:51:38 +0000 net-wireless/wpa_supplicant: Fixed build with USE="-ssl" or USE="ssl gnutls". Committed without explicit permission due to maintainer timeout. Closes: https://bugs.gentoo.org/640350 Package-Manager: Portage-2.3.19, Repoman-2.3.6 net-wireless/wpa_supplicant/wpa_supplicant-2.6-r4.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) |
Created attachment 509006 [details] net-wireless:wpa_supplicant-2.6-r4:20171209-083654.log It fails to build on all of my systems, with different sets of USE flags: abi_x86_64 amd64 dbus elibc_glibc fasteap hs2-0 kernel_linux p2p readline userland_GNU abi_x86_64 amd64 dbus elibc_glibc gnutls hs2-0 kernel_linux readline userland_GNU abi_x86_32 dbus elibc_glibc gnutls hs2-0 kernel_linux qt5 readline userland_GNU x86 ../src/common/sae.o: In function `sae_cn_confirm.isra.2': sae.c:(.text+0x16f): undefined reference to `crypto_bignum_to_bin' sae.c:(.text+0x1a2): undefined reference to `crypto_bignum_to_bin' [...]