Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112549 - wpa_supplicant-0.4.6/wpa_supplicant-0.4.5 don't compile with madwifi
Summary: wpa_supplicant-0.4.6/wpa_supplicant-0.4.5 don't compile with madwifi
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 13:22 UTC by Urs Joss
Modified: 2005-11-19 11:47 UTC (History)
1 user (show)

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


Attachments
Patch against wpa_supplicant-0.4.6.ebuild (wpa_supplicant-0.4.6.ebuild.patch,1.73 KB, patch)
2005-11-14 13:26 UTC, Urs Joss
Details | Diff
patch against driver_madwifi.c (driver_madwifi.c.patch,395 bytes, patch)
2005-11-14 13:31 UTC, Urs Joss
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Urs Joss 2005-11-14 13:22:04 UTC
wpa_supplicant-0.4.5.ebuild still has the madwifi use flag but doesn't compile. wpa_supplicant-0.4.6.ebuild 
does not have the use flag. Consequently the ebuild emerges successfully, but wpa_supplicant fails with -
Dmadwifi.

Reproducible: Always
Steps to Reproduce:
1. emerge =wpa_supplicant-0.4.6.ebuild
2. /etc/init.d/net.ath0 start


Actual Results:  
# /etc/init.d/net.ath0 restart
 * Stopping ath0
 *   Loading networking modules for ath0
 *     modules: adsl apipa arping macchanger macnet rename ifplugd iwconfig wpa_supplicant essidnet 
iptunnel ifconfig iproute2 pppd udhcpc system
 *   Bringing down ath0
 *     Shutting down ath0 ...                                                                                               [ ok ]
 *     Stopping wpa_supplicant on ath0 ...                                                                                  [ ok ]
 *   Running postdown function
 *   Selecting best interface: eth0
 * Starting ath0
 *   Loading networking modules for ath0
 *     modules: adsl apipa arping macchanger macnet rename wpa_supplicant essidnet iptunnel iproute2 
pppd udhcpc system
 *       wpa_supplicant provides wireless
 *       iproute2 provides interface
 *       pppd provides ppp
 *       udhcpc provides dhcp
 *   Running preup function
ath0                                                                                                                        [ ok ]
 *   Configuring ath0 for MAC address 00:11:0A:80:60:99 ...                                                                 [ 
ok ]
 *   Starting wpa_supplicant on ath0 ...
Unsupported driver 'madwifi'. 

Expected Results:  
/etc/init.d/net.ath0 restart
 * Starting ath0
 *   Loading networking modules for ath0
 *     modules: adsl apipa arping macchanger macnet rename wpa_supplicant essidnet iptunnel iproute2 
pppd udhcpc system
 *       wpa_supplicant provides wireless
 *       iproute2 provides interface
 *       pppd provides ppp
 *       udhcpc provides dhcp
 *   Running preup function
ath0                                                                                                                        [ ok ]
 *   Configuring ath0 for MAC address 00:11:0A:80:60:99 ...                                                                 [ 
ok ]
 *   Starting wpa_supplicant on ath0 ...                                                                                    [ ok ]
 *     Waiting for association                                                                                              [ ok ]
 *     Backgrounding ...


The bug seems to be introduced upstream (in 0.4.5?) in driver_madwifi.c line 91. Patch will follow in a few 
minutes. It lets the ebuild compile and run properly. Yet I'm not 100% sure about the fix (see comment to 
the patch). That's why I haven't posted the bug upstream too.

Still:
emerge --info
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Datei oder 
Verzeichnis nicht gefunden
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.0_pre10
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.
4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distcc distlocks emergemail fixpackages nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo ftp://ftp.tu-clausthal.de/pub/linux/
gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_CH.utf8"
LC_ALL="de_CH.utf8"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.i-no.de/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts 
bluetooth bonobo bzip2 cdb cdr crypt cups curl dga directfb divx4linux doc dts dvd dvdr dvdread eds emacs 
emboss encode ethereal examples exif expat fam fbcon ffmpeg flac foomaticdb fortran gcj gd gdbm gif glut 
gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imap imlib irda java jpeg junit kde 
kdeenablefinal lcms libg++ libwww lua lzo mad maildir mhash mikmod mmx mng motif mp3 mpeg mplayer 
mssql mysql ncurses nls nptl nsplugin odbc ogg oggvorbis opengl pam pcmcia pcre pda pdflib perl pic png 
pnp postgres python qt quicktime readline real recode rtc ruby samba sasl scanner sdl slang speex spell 
sqlite sse sse2 ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode 
usb utf8 vcd vidix vorbis win32codecs wmf xanim xine xml xml2 xmms xprint xv xvid yaz zlib 
video_cards_radeon linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-14 13:25:47 UTC
 09 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
  wpa_supplicant-0.4.6.ebuild:
  Temporarily removed madwifi support until upstream can provide a working
  version, bug #110791.
Comment 2 Urs Joss 2005-11-14 13:26:18 UTC
Created attachment 72898 [details, diff]
Patch against wpa_supplicant-0.4.6.ebuild

The patch reintroduces the use flag madwifi. In addition it patches
driver_madwifi.c
Comment 3 Urs Joss 2005-11-14 13:31:17 UTC
Created attachment 72899 [details, diff]
patch against driver_madwifi.c

The patch corrects an improper reference to constants defined in
/usr/include/madwifi/net80211/ieee80211_ioctl.h

I'm not sure IEEE80211_IOCTL_GETCHANLIST is the right thing to use in the
patch. 
Might just as well be IEEE80211_IOCTL_SETCHANLIST. 
I first thought it might be IEEE80211_IOC_CHANLIST but that didn't work. (I
know 
this trial'n'error thingo isn't really *the* way to go...)

By the way, I currently use madwifi-driver/0.1_pre20051111.