Hi, I was testing out the masked wpa_supplicant-0.6.3 and found that with USE="madwifi" compilation fails with the error message below. Without USE="madwifi" it compiles fine. I have the following versions of related applications installed: net-wireless/wireless-tools-29 net-wireless/madwifi-ng-0.9.4 i686-pc-linux-gnu-gcc -O2 -mtune=prescott -pipe -ggdb -I../src -I../src/crypto -I../src/utils -I../src/common -I../src/rsn_supp -I/usr/include/madwifi -DCONFIG_BACKEND_FILE -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_WEXT -DCONFIG_DRIVER_PRISM54 -DCONFIG_DRIVER_MADWIFI -DCONFIG_DRIVER_ATMEL -DCONFIG_DRIVER_NDISWRAPPER -DCONFIG_DRIVER_IPW -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_TLV -DEAP_PAX -DIEEE8021X_EAPOL -DPCSC_FUNCS -I/usr/include/PCSC -DEAP_TLS_FUNCS -DEAP_TLS_OPENSSL -DPKCS12_FUNCS -DCONFIG_SMARTCARD -DINTERNAL_SHA256 -DCONFIG_WIRELESS_EXTENSION -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=1 -DCONFIG_READLINE -DCONFIG_PEERKEY -DCONFIG_NO_T_PRF -c -o ../src/drivers/driver_madwifi.o ../src/drivers/driver_madwifi.c In file included from ../src/drivers/driver_madwifi.c:21: ../src/drivers/driver_wext.h:22: error: 'IFNAMSIZ' undeclared here (not in a function) make: *** [../src/drivers/driver_madwifi.o] Error 1 Emerge info: Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz Timestamp of tree: Sat, 15 Mar 2008 19:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc6-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=prescott -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=prescott -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="" LINGUAS="en en_GB" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/desktop-effects /usr/local/overlays/wschlich-testing /usr/local/overlays/vmware /usr/local/overlays/gnome /usr/local/overlays/ikelos /usr/local/overlays/personal" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="GAPING_SECURITY_HOLE X a52 aac acl acpi additions aiglx alsa apache2 applet asf avahi bash-completion berkdb bluetooth boundschecking branding browserplugin bzip2 cairo ccache cdda cdr cli cracklib crypt cups curl dba dbus dell deskbar divx dlloader dri dv dvb dvd dvdr dvi encode epiphany evo fam ffmpeg fftw ftp fuse gd gedit gif glade glitz gmedia gnome gnuplot gps graphviz gsm gstreamer gtk gtk2 gtkhtml hal hdaps hpn httpd iconv ilbc imap injection iontruetype iproute2 ipv6 isdnlog java java5 java6 javascript jingle john jpeg kerberos keyring ladspa lame laptop ldap ldapsam libnotify libsexy mad madwifi maildir mdnsresponder-compat midi mikmod mmx mmxext mng mono mozbranding mozdevelop mozdom moznopango mp3 mpeg mscash mssql mudflap mysql nautilus ncurses netboot networkmanager nls nntp nogecko-sdk nptl nptlonly ntlm ogg opengl openmp pam patch pcmcia pcre pcsc-lite pdf perl pic png postgres ppds pppd python quicktime rdesktop readline realmedia reflection resolvconf rtsp samba sasl sdl session skins sloppy-lock slp smp smux snmp sox spell spl sqlite3 sse sse2 ssl stream svg svn-mirror syslog tcpd textables theora tokenizer tracker truetype truetype-fonts udev unicode usb usrp v4l2 vditool vlm vnc vorbis webdav wifi win32codecs winbind wmp x264 x86 xcb xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="i810 vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I fixed this by adding the following line to /usr/include/linux/wireless.h at the very top: #include <linux/if.h> I also think it's fixed upstream in the latest SVN
Created attachment 147984 [details, diff] patch to fix this bug Well, I run into this bug some days ago but I was too busy to debug it. For me it boils down partial use of the ps3 useflag (i.e. source is patched regardless of the flag) The attached simple patch fixes that. The fixed ebuild is available in my pkalin[1] overlay. [1] https://svn.tar.bz/repos/pkalin/trunk/README.txt
Thank you for report guys. Please test with the recent wpa_supplicant releases. I think this problem was fixed there.