wpasupplicant FTBFS with latest kernel headers on natty

Bug #672580 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wpasupplicant (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: wpasupplicant

I'll just *assume* it's the kernel headers, but the jist of the issue is duplication of the ifmap, ifreq, and ifconf structures in linux/if.h and net/if.h. AFAICT, this is because those would now be also included in linux/if.h while first loaded through net/if.h.

This is the exact error I get from 'bzr bd' in a clean copy of lp:ubuntu/wpasupplicant:

cc -c -o ../src/drivers/driver_nl80211.o -MMD -Wall -g -O2 -I../src -I../src/crypto -I../src/utils -I../src/common -I../src/rsn_supp -DCONFIG_BACKEND_FILE -DCONFIG_DRIVER_WEXT -DCONFIG_DRIVER_NL80211 -DCONFIG_DRIVER_WIRED -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP -DEAP_SIM -DEAP_LEAP -DEAP_PSK -DEAP_AKA -DEAP_PAX -DCONFIG_WPS -DEAP_WSC -DIEEE8021X_EAPOL -DPCSC_FUNCS -I/usr/include/PCSC -DEAP_TLS_FUNCS -DEAP_TLS_OPENSSL -DPKCS12_FUNCS -DCONFIG_SMARTCARD -DINTERNAL_SHA256 -DNEED_SHA256 -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_VERSION_MAJOR=1 -DDBUS_VERSION_MINOR=4 -DCONFIG_READLINE -DCONFIG_PEERKEY -DCONFIG_IEEE80211R -DCONFIG_NO_T_PRF -DCONFIG_DEBUG_SYSLOG -DCONFIG_DEBUG_FILE -DCONFIG_DEBUG_SYSLOG -DCONFIG_DELAYED_MIC_ERROR_REPORT ../src/drivers/driver_nl80211.c
In file included from ../src/common/wireless_copy.h:88:0,
                 from ../src/drivers/driver_nl80211.c:29:
/usr/include/net/if.h:45:5: error: expected identifier before numeric constant
/usr/include/net/if.h:112:8: error: redefinition of ‘struct ifmap’
/usr/include/linux/if.h:135:8: note: originally defined here
/usr/include/net/if.h:127:8: error: redefinition of ‘struct ifreq’
/usr/include/linux/if.h:169:8: note: originally defined here
/usr/include/net/if.h:177:8: error: redefinition of ‘struct ifconf’
/usr/include/linux/if.h:218:8: note: originally defined here
../src/drivers/driver_nl80211.c: In function ‘wpa_driver_nl80211_event_rtm_newlink’:
../src/drivers/driver_nl80211.c:818:24: error: ‘IFF_UP’ undeclared (first use in this function)
../src/drivers/driver_nl80211.c:818:24: note: each undeclared identifier is reported only once for each function it appears in
../src/drivers/driver_nl80211.c:819:24: error: ‘IFF_RUNNING’ undeclared (first use in this function)
../src/drivers/driver_nl80211.c: In function ‘wpa_driver_nl80211_finish_drv_init’:
../src/drivers/driver_nl80211.c:1532:21: error: ‘IFF_UP’ undeclared (first use in this function)
../src/drivers/driver_nl80211.c: In function ‘wpa_driver_nl80211_deinit’:
../src/drivers/driver_nl80211.c:1587:55: error: ‘IFF_UP’ undeclared (first use in this function)
../src/drivers/driver_nl80211.c: In function ‘wpa_driver_nl80211_set_mode’:
../src/drivers/driver_nl80211.c:2277:55: error: ‘IFF_UP’ undeclared (first use in this function)
make[2]: *** [../src/drivers/driver_nl80211.o] Erreur 1
make[2]: quittant le répertoire « /home/mtrudel/Projects/ubuntu/build-area/wpasupplicant-0.6.10/wpa_supplicant »
dh_auto_build: make -j1 returned exit code 2
make[1]: *** [override_dh_auto_build] Erreur 2
make[1]: quittant le répertoire « /home/mtrudel/Projects/ubuntu/build-area/wpasupplicant-0.6.10 »
make: *** [build] Erreur 2
dpkg-buildpackage: erreur: debian/rules build a produit une erreur de sortie de type 2
debuild: fatal error at line 1337:
dpkg-buildpackage -rfakeroot -D -us -uc failed
bzr: ERROR: The build failed

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This was with:
libc6-dev 2.12.1-0ubuntu8
linux-libc-dev 2.6.37-2.10

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Invalid, fixed some time ago by kernel upload.

Changed in wpasupplicant (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.