wireless-tools FTBFS with latest kernel headers on natty

Bug #672584 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
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_ITS_OWN_DOGFOOD -MMD -c iwevent.c
In file included from /usr/include/linux/netdevice.h:28:0,
                 from /usr/include/linux/rtnetlink.h:9,
                 from iwevent.c:23:
/usr/include/linux/if.h:135:8: error: redefinition of ‘struct ifmap’
/usr/include/net/if.h:112:8: note: originally defined here
/usr/include/linux/if.h:169:8: error: redefinition of ‘struct ifreq’
/usr/include/net/if.h:127:8: note: originally defined here
/usr/include/linux/if.h:218:8: error: redefinition of ‘struct ifconf’
/usr/include/net/if.h:177:8: note: originally defined here
make[1]: *** [iwevent.o] Erreur 1
make[1]: quittant le répertoire « /home/mtrudel/Projects/ubuntu/build-area/wireless-tools-30~pre9 »
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

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

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wireless-tools - 30~pre9-3ubuntu5

---------------
wireless-tools (30~pre9-3ubuntu5) natty; urgency=low

  * header-with-2.6.36.patch: Replace the if.h header used in iwlib.h by
    the one provided by the kernel instead of using the one from libc. The
    kernel headers now provide the same structures and linux/if.h would
    otherwise conflict, since it gets pulled in from wireless.h. (LP: #672584)
 -- Mathieu Trudel-Lapierre <email address hidden> Tue, 09 Nov 2010 15:29:06 +0000

Changed in wireless-tools (Ubuntu):
status: New → Fix Released
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.