Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388589 - net-wireless/wpa_supplicant-0.7.3-r5 : build broken with libnl-3.2.1
Summary: net-wireless/wpa_supplicant-0.7.3-r5 : build broken with libnl-3.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
: 388599 (view as bug list)
Depends on:
Blocks: libnl:3
  Show dependency tree
 
Reported: 2011-10-26 18:05 UTC by Emmanuel Andry
Modified: 2011-10-27 20:24 UTC (History)
14 users (show)

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


Attachments
Build log for errors (build.log,4.64 KB, text/plain)
2011-10-27 05:28 UTC, stephen.thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Andry 2011-10-26 18:05:50 UTC
>>> Emerging (1 of 2) net-wireless/wpa_supplicant-0.7.3-r5
 * wpa_supplicant-0.7.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...           [ ok ]
 * You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE="ssl"
>>> Unpacking source...
>>> Unpacking wpa_supplicant-0.7.3.tar.gz to /var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/work
>>> Source unpacked in /var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/work
>>> Preparing source in /var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/work/wpa_supplicant-0.7.3/wpa_supplicant ...
 * Applying wpa_supplicant-0.7.3-dbus_path_fix.patch ...                 [ ok ]
 * Applying do-not-call-dbus-functions-with-NULL-path.patch ...          [ ok ]
 * Applying wpa_supplicant-0.7.3-dbus-api-changes.patch ...              [ ok ]
 * Applying wpa_supplicant-0.7.3-dbus-WPAIE-fix.patch ...                [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/work/wpa_supplicant-0.7.3/wpa_supplicant ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/work/wpa_supplicant-0.7.3/wpa_supplicant ...
 * Building wpa_supplicant
make -j9 
  CC  eap_register.c
  CC  ../src/utils/common.c
  CC  ../src/utils/os_unix.c
  CC  notify.c
  CC  ../src/utils/wpabuf.c
  CC  ../src/utils/wpa_debug.c
  CC  ../src/utils/eloop.c
  CC  bss.c
  CC  ../src/rsn_supp/pmksa_cache.c
  CC  ../src/rsn_supp/preauth.c
  CC  config_file.c
  CC  ../src/rsn_supp/wpa_ie.c
  CC  ../src/common/wpa_common.c
  CC  ../src/eap_peer/eap_tls.c
  CC  ../src/eap_common/eap_peap_common.c
  CC  ../src/eap_peer/eap_md5.c
  CC  ../src/eap_peer/eap_gtc.c
  CC  ../src/rsn_supp/peerkey.c
  CC  ../src/eap_peer/mschapv2.c
  CC  ../src/eap_peer/eap_otp.c
  CC  config.c
  CC  ../src/eap_common/eap_psk_common.c
  CC  ../src/eap_peer/eap_mschapv2.c
  CC  ../src/eap_peer/eap_leap.c
  CC  ../src/eap_common/eap_pax_common.c
  CC  ../src/eap_peer/eap_psk.c
  CC  ../src/utils/uuid.c
  CC  ../src/eap_peer/eap_peap.c
  CC  ../src/eap_peer/eap_pax.c
  CC  ../src/rsn_supp/wpa.c
  CC  ../src/eap_peer/eap_ttls.c
  CC  ../src/eap_common/eap_wsc_common.c
  CC  ../src/wps/wps_attr_parse.c
  CC  ../src/eap_peer/eap_wsc.c
  CC  ../src/wps/wps.c
  CC  ../src/wps/wps_attr_process.c
  CC  ../src/wps/wps_attr_build.c
  CC  wps_supplicant.c
  CC  ../src/wps/wps_dev_attr.c
  CC  ../src/wps/wps_common.c
  CC  ../src/eap_common/chap.c
  CC  ../src/eap_peer/eap_methods.c
  CC  ../src/crypto/ms_funcs.c
  CC  ../src/wps/wps_enrollee.c
  CC  ../src/crypto/aes-unwrap.c
  CC  ../src/crypto/aes-ctr.c
  CC  ../src/crypto/aes-eax.c
  CC  ../src/crypto/aes-encblock.c
  CC  ../src/eap_peer/eap_tls_common.c
  CC  ../src/crypto/crypto_openssl.c
  CC  ../src/eapol_supp/eapol_supp_sm.c
  CC  ../src/crypto/aes-cbc.c
  CC  ../src/crypto/md5.c
  CC  ../src/crypto/dh_groups.c
  CC  ../src/crypto/aes-omac1.c
  CC  ../src/crypto/sha256.c
  CC  ../src/eap_peer/eap.c
  CC  dbus/dbus_old_handlers_wps.c
  CC  dbus/dbus_dict_helpers.c
  CC  dbus/dbus_old.c
  CC  ctrl_iface_unix.c
  CC  ../src/crypto/tls_openssl.c
  CC  ../src/wps/wps_registrar.c
  CC  dbus/dbus_old_handlers.c
  CC  dbus/dbus_new_introspect.c
  CC  dbus/dbus_new_helpers.c
  CC  dbus/dbus_new_handlers_wps.c
  CC  dbus/dbus_common.c
  CC  ../src/utils/base64.c
  CC  dbus/dbus_new.c
  CC  ../src/crypto/sha1-tlsprf.c
  CC  ../src/eap_common/eap_common.c
  CC  ../src/crypto/sha1.c
  CC  ../src/common/ieee802_11_common.c
  CC  ../src/crypto/sha1-pbkdf2.c
  CC  sme.c
  CC  blacklist.c
  CC  main.c
  CC  ../src/drivers/driver_atmel.c
  CC  wpas_glue.c
  CC  ../src/drivers/driver_ndiswrapper.c
  CC  scan.c
  CC  ctrl_iface.c
  CC  dbus/dbus_new_handlers.c
../src/drivers/driver_nl80211.c:22:31: erreur fatale: netlink/genl/genl.h : Aucun fichier ou dossier de ce type
compilation terminée.
make: *** [../src/drivers/driver_nl80211.o] Erreur 1
make: *** Attente des tâches non terminées....
  CC  ../src/drivers/driver_ipw.c
  CC  ../src/utils/radiotap.c
  CC  ../src/drivers/driver_wired.c
  CC  ../src/drivers/driver_hostap.c
  CC  events.c
  CC  wpa_supplicant.c
  CC  ../src/drivers/driver_ralink.c
  CC  ../src/drivers/driver_wext.c
 * ERROR: net-wireless/wpa_supplicant-0.7.3-r5 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =net-wireless/wpa_supplicant-0.7.3-r5',
 * the complete build log and the output of 'emerge -pqv =net-wireless/wpa_supplicant-0.7.3-r5'.
 * The complete build log is located at '/var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/temp/environment'.
 * S: '/var/tmp/portage/net-wireless/wpa_supplicant-0.7.3-r5/work/wpa_supplicant-0.7.3/wpa_supplicant'


Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-10-26 18:49:59 UTC
*** Bug 388599 has been marked as a duplicate of this bug. ***
Comment 2 ron widler 2011-10-26 19:34:47 UTC
same thing happens on my ~amd64 system.
once i installed libnl:1 and removed libnl:3 it compiled just fine.

hth
ron
Comment 3 Mike Gilbert gentoo-dev 2011-10-27 00:13:08 UTC
Please provide emerge --info, and attach the build log in English.
Comment 4 stephen.thomas 2011-10-27 05:28:38 UTC
Created attachment 290967 [details]
Build log for errors

Build log that fails.
Comment 5 stephen.thomas 2011-10-27 05:49:11 UTC
To compile with libnl-3 it was a trivial change, but I am not sure if this works.

The include path needs to add /usr/include/libnl3 as the netlink headers are in that subdirectory, and the src/drivers/drivers.mak should link against -lnl-3 and -lnl-gen1-3.

But it appears that there is a dependency on libnl-1 which isn't handled in the ebuild.
Comment 6 Andrew Karakotov 2011-10-27 06:48:38 UTC
I agree with [5], I got wpa_supplicant and NetworkManager broken when updating this morning on my ~amd64 system.

Steps I've done:
1) emerge --sync
2) emerge -uND world // new libnl-3 emerged
3) emerge --depclean // old libnl-1 unmerged
4) revdep-rebuild // found broken dependencies of wpa_supplicant and NetworkManager, failed to reemerge those.

It seems there is no explicit libnl-1 dependencies in wpa_supplicant and NetworkManager ebuilds.
Comment 7 Stefan Wimmer 2011-10-27 07:15:27 UTC
Besides wpa_supplicant those packages fail as well for the same reason on my system (~amd64):

   net-wireless/iw
   net-wireless/crda
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2011-10-27 16:31:11 UTC
Restoring the Summary since the ChangeLog says it was already fixed, so this is an incompatibility going from 2.0 to 3, it would seem.1
Comment 9 Alec Meyers 2011-10-27 16:43:18 UTC
(In reply to comment #8)
> Restoring the Summary since the ChangeLog says it was already fixed, so this is
> an incompatibility going from 2.0 to 3, it would seem.1

It builds fine with 3.1, so it's an incompatibility between 3.1 and 3.2.1
Comment 10 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-10-27 19:25:45 UTC
Should be fixed now (please allow a few hours for the ebuild to hit the tree).

The dependency has been changed to dev-libs/libnl:1.1 and CONFIG_LIBNL20 has been removed from the generated compile config file.

Please reopen if it is still an issue.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2011-10-27 20:03:37 UTC
(In reply to comment #10)
> Should be fixed now (please allow a few hours for the ebuild to hit the tree).
> 
> The dependency has been changed to dev-libs/libnl:1.1 and CONFIG_LIBNL20 has
> been removed from the generated compile config file.
> 
> Please reopen if it is still an issue.

If it worked nicely with libnl-2 (i.e. no API incompatibilities), then you might be able to properly fix the issue by using pkgconfig, according to upstream, that is.
Comment 12 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-10-27 20:24:58 UTC
I've been trying to make it work, but the messing around with pkgconfig for libnl version 1.1, 2.0, 3.0, 3.1 and 3.2.1 all needs different patching (experince from net-wireless/iw) , so until I find a more generic way to fix it, I go for just going for 1.1 support.

If you have a patch that enables support for alle versions of libnl, please attach it, would be more than happy to apply it :)