Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684442 - net-wireless/wpa_supplicant-2.8-r1 - ld: ../src/drivers/driver_macsec_linux.o: in function `macsec_drv_create_receive_sa': driver_macsec_linux.c:(.text+0x918): undefined reference to `mka_sci_u64'
Summary: net-wireless/wpa_supplicant-2.8-r1 - ld: ../src/drivers/driver_macsec_linux.o...
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
Depends on:
Blocks:
 
Reported: 2019-04-26 19:24 UTC by Conrad Kostecki
Modified: 2022-03-02 03:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,536.65 KB, text/plain)
2019-04-26 19:25 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2019-04-26 19:24:17 UTC
This build faulure seems to be releated to the new MACSEC feature.

x86_64-pc-linux-gnu-gcc -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now    -o wpa_priv ../src/crypto/crypto_openssl.o  ../src/crypto/sha1-prf.o ../src/crypto/sha1-tprf.o ../src/crypto/sha1-tlsprf.o ../src/drivers/driver_common.o  ../src/drivers/driver_wired.o ../src/drivers/driver_macsec_linux.o ../src/drivers/driver_wired_common.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/netlink.o ../src/drivers/linux_ioctl.o ../src/drivers/rfkill.o ../src/utils/radiotap.o  ../src/drivers/driver_wext.o  ../src/drivers/driver_hostap.o ../src/drivers/drivers.o ../src/l2_packet/l2_packet_linux.o ../src/utils/os_unix.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o wpa_priv.o ../src/common/ieee802_11_common.o -lrt  -lnl-3 -lnl-genl-3 -lnl-route-3   -ldl -lpcsclite -lpthread -lssl -lcrypto -ldl -ldbus-1
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/drivers/driver_macsec_linux.o: in function `macsec_drv_create_receive_sa':
driver_macsec_linux.c:(.text+0x918): undefined reference to `mka_sci_u64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/drivers/driver_macsec_linux.o: in function `macsec_drv_create_transmit_sc':
driver_macsec_linux.c:(.text+0x105c): undefined reference to `mka_sci_u64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/drivers/driver_macsec_linux.o: in function `macsec_drv_get_receive_lowest_pn':
driver_macsec_linux.c:(.text+0x1487): undefined reference to `mka_sci_u64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/drivers/driver_macsec_linux.o: in function `macsec_drv_delete_receive_sc':
driver_macsec_linux.c:(.text+0x1711): undefined reference to `mka_sci_u64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/drivers/driver_macsec_linux.o: in function `macsec_drv_create_receive_sc':
driver_macsec_linux.c:(.text+0x199f): undefined reference to `mka_sci_u64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/drivers/driver_macsec_linux.o:driver_macsec_linux.c:(.text+0x26e0): more undefined references to `mka_sci_u64' follow
collect2: Fehler: ld gab 1 als Ende-Status zurück
make: *** [Makefile:1870: wpa_priv] Fehler 1
 * ERROR: net-wireless/wpa_supplicant-2.8-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-wireless/wpa_supplicant-2.8-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/wpa_supplicant-2.8-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/wpa_supplicant-2.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/wpa_supplicant-2.8-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/wpa_supplicant-2.8-r1/work/wpa_supplicant-2.8/wpa_supplicant'
 * S: '/var/tmp/portage/net-wireless/wpa_supplicant-2.8-r1/work/wpa_supplicant-2.8/wpa_supplicant'
Comment 1 Conrad Kostecki gentoo-dev 2019-04-26 19:24:34 UTC
Portage 2.3.64 (python 3.7.3-final-0, default/linux/amd64/17.1, gcc-8.3.0, glibc-2.29-r2, 5.0.9-gentoo x86_64)
=================================================================
System uname: Linux-5.0.9-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_C2758_@_2.40GHz-with-gentoo-2.6
KiB Swap:   34078716 total,  34078716 free
Timestamp of repository gentoo: Fri, 26 Apr 2019 00:45:01 +0000
Head commit of repository gentoo: b7294c1009ad6f505ae08667f7baf3ec29a61cd8
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.6 [enabled]
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

crossdev
    location: /usr/local/crossdev
    masters: gentoo

galactica
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/fhem /usr/share/gnupg/qualified.txt /var/lib/fhem /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-frecord-gcc-switches"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now"
LINGUAS="de de_DE"
MAKEOPTS="-j9 -l8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aalib acl alsa amd64 berkdb bluetooth bzip2 cairo calendar caps cddb cgi cjk cracklib crypt cups curl cvs cxx dbus dga djvu dri encode exif fbcon fbcpm ffmpeg fftw flac fontconfig fortran ftp gd gdbm geolocation gif git gmp gnutls gphoto2 gpm graphviz gsm gstreamer iconv icu idn ieee1394 imap imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k lcms ldap libass libcaca libnotify libsamplerate lm_sensors lua luajit lzma lzo mad maildir mbox mhash mikmod milter mmap modplug mono mp3 mysql mysqli ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit posix postgres postscript pulseaudio python raw readline rtmp samba sasl scanner sdl session slang slp smartcard sndfile snmp soap sockets sound sox speex spell sqlite ssl startup-notification subversion suid svg symlink syslog tcpd theora threads tiff truetype udev unicode usb v4l vaapi vcd vdpau vhosts vim-syntax vnc vorbis wavpack wayland webkit webp wifi wmf x264 xattr xcb xface xft xinetd xml xmp xpm xscreensaver xv xvid zeroconf zlib zsh-completion zstd" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount hddtemp hugepages interface ipc ipmi iptables irq load lvm java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip gzip_static headers_more image_filter javascript limit_conn limit_req map metrics proxy realip referer rewrite secure_link sticky stub_status upload_progress upstream_keepalive vhost_traffic_status xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn map realip return ssl_preread" PHP_TARGETS="php7-3" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="ast fbdev"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Comment 2 Conrad Kostecki gentoo-dev 2019-04-26 19:25:05 UTC
Created attachment 574290 [details]
build.log
Comment 3 Tully Gray 2019-05-09 17:46:34 UTC
I just hit this bug too.

It builds fine with USE="macsec -privsep".  Disabling "privsep" seems to have done the trick.
Comment 4 Conrad Kostecki gentoo-dev 2019-06-02 11:16:28 UTC
Upstream says:
CONFIG_PRIVSEP=y does not have sufficient support for the new driver
interface functions used for MACsec, so this combination cannot be used
at least for now. The particular build issue is actually somewhat
independent of that since the driver wrapper code (which would be in
privileged part) seems to be using functions that are defined in the
unprivileged component. That itself might be easy to work around, but
that won't help much due to that main issue of the driver interface
functions not being supported in the privilege separate path.
Comment 5 Conrad Kostecki gentoo-dev 2019-08-03 12:51:35 UTC
ping
Comment 6 Larry the Git Cow gentoo-dev 2019-08-16 15:56:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39a43a7c4c0256848f5b5934eab38bb73699506b

commit 39a43a7c4c0256848f5b5934eab38bb73699506b
Author:     Conrad Kostecki <conrad@kostecki.com>
AuthorDate: 2019-08-15 12:22:29 +0000
Commit:     Rick Farina <zerochaos@gentoo.org>
CommitDate: 2019-08-16 15:53:34 +0000

    net-wireless/wpa_supplicant: bump to version 2.9
    
    Also allowing privsep only without macsec.
    According to upstream, it's not a valid combination, when you do enable
    macsec and privsep together.
    
    Upstream says:
    CONFIG_PRIVSEP=y does not have sufficient support for the new driver
    interface functions used for MACsec, so this combination cannot be used
    at least for now.
    
    Instead of creating a new desktop file, the shipped one is used.
    
    Closes: https://bugs.gentoo.org/615872
    Closes: https://bugs.gentoo.org/684442
    Closes: https://bugs.gentoo.org/692062
    Package-Manager: Portage-2.3.71, Repoman-2.3.17
    Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
    Signed-off-by: Rick Farina <zerochaos@gentoo.org>

 net-wireless/wpa_supplicant/Manifest               |   1 +
 .../wpa_supplicant/wpa_supplicant-2.9.ebuild       | 458 +++++++++++++++++++++
 2 files changed, 459 insertions(+)
Comment 7 Attila Tóth 2022-01-18 14:44:45 UTC
I've just run into this with net-wireless/wpa-supplicant-2.10
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-18 14:54:14 UTC
(In reply to Attila Tóth from comment #7)
> I've just run into this with net-wireless/wpa-supplicant-2.10

Please file a new bug with the full log and reference this one.