Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453652 - net-wireless/wpa_supplicant-2.0 - crypto_openssl.c:(.text+0xfe0): multiple definition of `hmac_sha1_vector' / / / ../crypto/sha1.o:sha1.c:(.text+0x0): first defined here
Summary: net-wireless/wpa_supplicant-2.0 - crypto_openssl.c:(.text+0xfe0): multiple de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
: 454064 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-23 11:06 UTC by Fabio Coatti
Modified: 2013-01-26 15:36 UTC (History)
9 users (show)

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


Attachments
build.log (gzipped) (build.log.gz,4.81 KB, application/x-gzip)
2013-01-23 15:34 UTC, Fabio Coatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2013-01-23 11:06:41 UTC
Trying to emerge net-wireless/wpa_supplicant-2.0, i got this message:
DIEEE8021X_EAPOL -DEAP_TLS_OPENSSL -DINTERNAL_SHA256 -fPIC -DPIC   -c -o ../eap_peer/eap_tls_common.o ../eap_peer/eap_tls_common.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared ../utils/common.o ../utils/os_unix.o ../utils/wpa_debug.o ../utils/base64.o ../utils/wpabuf.o ../crypto/md5.o ../crypto/sha1.o ../crypto/sha1-tlsprf.o ../crypto/aes-encblock.o ../crypto/aes-wrap.o ../crypto/aes-ctr.o ../crypto/aes-eax.o ../crypto/aes-omac1.o ../crypto/ms_funcs.o ../crypto/sha256.o ../eap_common/eap_peap_common.o ../eap_common/eap_psk_common.o ../eap_common/eap_pax_common.o ../eap_common/eap_sake_common.o ../eap_common/eap_gpsk_common.o ../eap_common/chap.o ../crypto/tls_openssl.o ../crypto/crypto_openssl.o ../eap_peer/eap_tls.o ../eap_peer/eap_peap.o ../eap_peer/eap_ttls.o ../eap_peer/eap_md5.o ../eap_peer/eap_mschapv2.o ../eap_peer/mschapv2.o ../eap_peer/eap_otp.o ../eap_peer/eap_gtc.o ../eap_peer/eap_leap.o ../eap_peer/eap_psk.o ../eap_peer/eap_pax.o ../eap_peer/eap_sake.o ../eap_peer/eap_gpsk.o ../eap_peer/eap.o ../eap_common/eap_common.o ../eap_peer/eap_methods.o ../eap_peer/eap_tls_common.o -Wl,-soname -Wl,libeap.so.0 -o libeap.so.0.0.0 -lssl -lcrypto
../crypto/crypto_openssl.o: nella funzione "hmac_sha1_vector":
crypto_openssl.c:(.text+0xfe0): definizione multipla di "hmac_sha1_vector"
../crypto/sha1.o:sha1.c:(.text+0x0): definito qui per la prima volta
../crypto/crypto_openssl.o: nella funzione "hmac_sha1":
crypto_openssl.c:(.text+0x10b0): definizione multipla di "hmac_sha1"
../crypto/sha1.o:sha1.c:(.text+0x1e0): definito qui per la prima volta
collect2: ld returned 1 exit status
make: *** [libeap.so.0.0.0] Errore 1
make: Leaving directory `/var/tmp/portage/net-wireless/wpa_supplicant-2.0/work/wpa_supplicant-2.0/src/eap_peer'



Reproducible: Always




Portage 2.2.0_alpha159 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.4 x86_64)
=================================================================
System uname: Linux-3.7.4-x86_64-Intel-R-_Core-TM-_i5-3427U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     8096252 total,    393520 free
KiB Swap:    8386556 total,   8360932 free
Timestamp of tree: Wed, 23 Jan 2013 10:00:01 +0000
ld ld di GNU (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo overlay
Installed sets: @kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -ftree-loop-linear -floop-interchange -floop-strip-mine -fgraphite-identity -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -ftree-loop-linear -floop-interchange -floop-strip-mine -fgraphite-identity -floop-block"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X \ a52 aac aalib acl acpi aim alsa amd64 apng ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo caps ccdda cdda cdr cjk cli consolekit cracklib crypt cups curl cxx dba dbus declarative device-mapper dga divx divx4linux dparanoia dri dts dv dvb dvd dvdr dvdread eap-sim edl embedded emboss encode ethereal exif expat faad fam fame fbcon ffmpeg fftw firefox flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp gmedia gmp gnutls gphoto2 gpm gps gsm gtk h264 h323 iconv icq icu idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber jack java javascript joystick jpeg kde kipi kontact kvm lastfm lcms ldap libcaca libnotify libvirtd live lm_sensors lua lvm lxc lzma lzo mad maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 mpeg msn mtp mudflap multilib mysql ncurses nepomuk network networkmanager new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam pango parted pcap pcre pdf phonon php plasma plotutils png policykit ppds qemu qt3support qt4 readline rtc ruby samba sasl sdl semantic-desktop session sha512 sip slang slp smartcard sndfile snmp sox speex spell srt sse sse2 ssh ssl ssse3 startup-notification svg symlink tcltk tcpd theora threads tiff tk tremor truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vcd vde vhosts video videos vim-syntax virt-network virtualbox vorbis wav webkit wifi wimax wmf wmp wps wxwidgets wxwindows x264 xanim xattr xcb xcomposite xen xface xft xine xinerama xml xosd xpm xscreensaver xsl xulrunner xv xvid zlib zpm" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 jannis 2013-01-23 13:43:26 UTC
can you please attach a build.log with LC_ALL=C ?
Comment 2 Fabio Coatti 2013-01-23 15:33:38 UTC
Sure; some additional info:

cova@calvin ~ $ equery uses wpa_supplicant
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-wireless/wpa_supplicant-2.0:
 U I
 - - ap       : Add support for access point mode
 + + dbus     : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - + eap-sim  : Add support for EAP-SIM authentication algorithm
 - - fasteap  : Add support for FAST-EAP authentication algorithm
 + + gnutls   : Adds support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
 - - p2p      : Add support for Wi-Fi Direct mode
 + + qt4      : Adds support for the Qt GUI/Application Toolkit version 4.x
 + + readline : Enables support for libreadline, a GNU line-editing library that almost everyone wants
 - + ssl      : Adds support for Secure Socket Layer connections
 + + wimax    : Add support for Wimax EAP-PEER authentication algorithm
 + + wps      : Add support for Wi-Fi Protected Setup
Comment 3 Fabio Coatti 2013-01-23 15:34:06 UTC
Created attachment 336592 [details]
build.log (gzipped)
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-01-24 03:27:45 UTC
This problem seems to happen only if USE=wimax
Comment 5 Attila Tóth 2013-01-24 03:57:15 UTC
Of course the compiler is right: hmac_sha1_vector and hmac_sha1 is definitely defined both in crypto_openssl.c and sha1.c. I'm not sure about the proper resolution...
Comment 6 Attila Tóth 2013-01-24 03:58:03 UTC
(In reply to comment #5)
> Of course the compiler is right: hmac_sha1_vector and hmac_sha1 is
> definitely defined both in crypto_openssl.c and sha1.c. I'm not sure about
> the proper resolution...

I wanted to say the linker is right
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2013-01-25 14:29:02 UTC
I have fixed the problem, please wait a little while and do an emerge --sync.

The problem was introduced in this commit: 030d062facf3acb490c442033b437aa99aa31aca (see: http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff;h=030d062facf3acb490c442033b437aa99aa31aca )

Taking the changes from there, and adding it to the Makefile in eap_peer fixes the problem.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-26 15:36:13 UTC
*** Bug 454064 has been marked as a duplicate of this bug. ***