[Chixla] Next meeting's presentation

lisa@spiritualfruits.com lisa at spiritualfruits.com
Thu Feb 16 14:20:14 EST 2006


Hi there,
I'm looking forward to the next L.A. LinuxChix meet, and wondering if I
can pick
your brains for a little help.  I'm preparing for my Madwifi presentation next
meeting.  I got Madwifi and wpa_supplicant working in SUSE 10.0, but now I'm
using Kubuntu so I will have step-by-step directions as much as possible for
Sharon's new system.  But Madwifi steadfastly, obstinately, utterly refuses to
make properly in Kubuntu 5.10.  I checked all my requirements based on the <a
href="http://madwifi.org/wiki/UserDocs/FirstTimeHowTo">Madwifi Newbie
Instructions</a>, which only mentions sharutils, subversion, gcc, make, and
kernel-headers-(version); but it's a no-go and I can't figure out why the same
thing worked in SUSE.  One thing I did notice is that even though g++ isn't
mentioned in the instructions, Madwifi seems to need it.  (No fair! LOL)  I
don't remember having to select this package in SUSE, but it wouldn't even
attempt to compile in Kubuntu until I specifically added it.  But something is
still not right.  The make does start but spits out a host of errors (see end
of this e-mail).  I've spent hours upon hours on this and simply can't seem to
figure it out.
It's likely I'm doing some goofy n00b thing somewhere, such as not realizing
that installing those packages implies that you will need certain others, or
not pointing something to the right place.  I will keep trying things, but
honestly I'm kind of lost.  Any help you can give would be tremendously
appreciated.
TIA,
Lisa
*****
/home/lisa$ uname -r
2.6.12-9-386
/home/lisa$ sudo ifconfig ath0 down 2>/dev/null
/home/lisa$ sudo ifconfig wifi0 down 2>/dev/null
/home/lisa$ cd /usr/src
/usr/src$ sudo tar -zxvf /home/lisa/madwifi-ng-current.tar.gz
madwifi-ng-r1451-20060212/
madwifi-ng-r1451-20060212/regression/
...
(No errors)
/usr/src$ sudo mv madwifi-ng-r1451-20060212/ madwifi-ng
/usr/src$ cd madwifi-ng/scripts
/usr/src/madwifi-ng/scripts$ sudo ./madwifi-unload.bash
/usr/src/madwifi-ng/scripts$ sudo ./find-madwifi-modules.sh /lib/modules/
/usr/src/madwifi-ng/scripts$ cd ..
/usr/src/madwifi-ng$ sudo make
Password:
Checking requirements... ok.
Checking kernel configuration... ok.
echo -n '#define SVNVERSION "' > svnversion.h
if [ -d .svn ]; then \
        echo -n "xported" >> svnversion.h; \
elif [ -s SNAPSHOT ]; then \
        echo -n "1451" >> svnversion.h; \
else \
        echo -n "2006-02-16" >> svnversion.h; \
fi
echo '"' >> svnversion.h
mkdir -p ./symbols
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
        make -C $i || exit 1; \
done
make[1]: Entering directory `/usr/src/madwifi-ng/ath_hal'
cp -f ./../hal/public/i386-elf.opt_ah.h opt_ah.h
cp -f ./../hal/linux/ah_osdep.c ah_osdep.c
/usr/bin/uudecode ./../hal/public/i386-elf.hal.o.uu
make -C /lib/modules/2.6.12-9-386/build SUBDIRS=/usr/src/madwifi-ng/ath_hal
MODVERDIR=/usr/src/madwifi-ng/ath_hal/../symbols modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.12-9-386'
  CC [M]  /usr/src/madwifi-ng/ath_hal/ah_osdep.o
  LD [M]  /usr/src/madwifi-ng/ath_hal/ath_hal.o
  Building modules, stage 2.
  MODPOST
Warning: could not find /usr/src/madwifi-ng/ath_hal/.hal.o.cmd for
/usr/src/madwifi-ng/ath_hal/hal.o
  CC      /usr/src/madwifi-ng/ath_hal/ath_hal.mod.o
  LD [M]  /usr/src/madwifi-ng/ath_hal/ath_hal.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-9-386'
make[1]: Leaving directory `/usr/src/madwifi-ng/ath_hal'
make[1]: Entering directory `/usr/src/madwifi-ng/net80211'
make -C /lib/modules/2.6.12-9-386/build SUBDIRS=/usr/src/madwifi-ng/net80211
MODVERDIR=/usr/src/madwifi-ng/net80211/../symbols modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.12-9-386'
  CC [M]  /usr/src/madwifi-ng/net80211/if_media.o
cc1: warnings being treated as errors
In file included from include/linux/if_ether.h:107,
                 from include/linux/netdevice.h:29,
                 from /usr/src/madwifi-ng/net80211/if_media.c:58:
include/linux/skbuff.h: In function 'skb_add_data':
include/linux/skbuff.h:1067: warning: pointer targets in passing argument 1 of
'csum_and_copy_from_user' differ in signedness
make[3]: *** [/usr/src/madwifi-ng/net80211/if_media.o] Error 1
make[2]: *** [_module_/usr/src/madwifi-ng/net80211] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-9-386'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/madwifi-ng/net80211'
make: *** [modules] Error 1
/usr/src/madwifi-ng$
Here's what I get if I try a make install anyway:
/usr/src/madwifi-ng$ sudo make install
Password:
sh scripts/find-madwifi-modules.sh /lib/modules/2.6.12-9-386
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
        make -C $i install || exit 1; \
done
make[1]: Entering directory `/usr/src/madwifi-ng/ath_hal'
test -d //lib/modules/2.6.12-9-386/net || mkdir -p
//lib/modules/2.6.12-9-386/net
strip -S ath_hal.ko
cp ath_hal.ko //lib/modules/2.6.12-9-386/net
make[1]: Leaving directory `/usr/src/madwifi-ng/ath_hal'
make[1]: Entering directory `/usr/src/madwifi-ng/net80211'
test -d //lib/modules/2.6.12-9-386/net || mkdir -p
//lib/modules/2.6.12-9-386/net
for i in wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o wlan_xauth.o
wlan_scan_sta.o wlan_scan_ap.o; do \
        f=`basename $i .o`; \
        strip -S $f.ko; \
        cp $f.ko //lib/modules/2.6.12-9-386/net; \
done
strip: 'wlan.ko': No such file
cp: cannot stat `wlan.ko': No such file or directory
strip: 'wlan_wep.ko': No such file
cp: cannot stat `wlan_wep.ko': No such file or directory
strip: 'wlan_tkip.ko': No such file
cp: cannot stat `wlan_tkip.ko': No such file or directory
strip: 'wlan_ccmp.ko': No such file
cp: cannot stat `wlan_ccmp.ko': No such file or directory
strip: 'wlan_acl.ko': No such file
cp: cannot stat `wlan_acl.ko': No such file or directory
strip: 'wlan_xauth.ko': No such file
cp: cannot stat `wlan_xauth.ko': No such file or directory
strip: 'wlan_scan_sta.ko': No such file
cp: cannot stat `wlan_scan_sta.ko': No such file or directory
strip: 'wlan_scan_ap.ko': No such file
cp: cannot stat `wlan_scan_ap.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/madwifi-ng/net80211'
make: *** [install-modules] Error 1
/usr/src/madwifi-ng$


More information about the Chixla mailing list