wireless-tools FTBFS with latest kernel headers on natty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wireless-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: wireless-tools
wireless-tools appears to FTBFS because the ifmap, ifreq and ifconf structures are duplicated in linux/if.h and net/if.h. It appears that iwlib.h includes net/if.h and later (probably through wireless.h), includes linux/if.h which redefines those structures.
This was with:
libc6-dev 2.12.1-0ubuntu8
linux-libc-dev 2.6.37-2.10
Here is the log from attempting to build wireless-tools from a clean copy of lp:ubuntu/wireless-tools on natty:
gcc -O2 -W -Wall -Wstrict-prototypes -I. -DIW_USES_
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
make[1]: *** [iwevent.o] Erreur 1
make[1]: quittant le répertoire « /home/mtrudel/
make: *** [build-stamp] 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.
Related branches
- Colin Watson: Approve
- Ubuntu Sponsors: Pending requested
-
Diff: 68 lines (+28/-1)5 files modified.pc/applied-patches (+1/-0)
debian/changelog (+9/-0)
debian/patches/header-with-2.6.36.patch (+16/-0)
debian/patches/series (+1/-0)
iwlib.h (+1/-1)
Please see the linked branch, where build failures are fixed by switching headers used in iwlib.h.
I've tested this on my own system for the past few days and couldn't really notice adverse effects using the wireless-tools provided binaries or through NetworkManager compiled against this code.