FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-09-2008, 03:44 PM
James Allsopp
 
Default Installing Madwifi (atheros drivers) into Debian Etch.

Hi,
Just been following the instructions to install the madwifi driver, but
it doesn't compile on the final step. Does anyone have any suggestions?
I'm very new to debian, but experienced with Linux. If anyone needs more
information, please ask!


I've tried modprobing the ath_pci driver after this, on the chance that
it's been built, but it hadn't. It's a clean install, so there shouldn't
be any major cruft on the system.


Details below,
Thanks Jim

# apt-get update
# apt-get install madwifi-source # apt-get install madwifi-tools
# m-a prepare
# m-a a-i madwifi

mexican:~# cat /var/cache/modass/madwifi-source*buildlog*
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/madwifi clean
KERNELPATH=/lib/modules/2.6.21-2-686/build
KERNELRELEASE=2.6.21-2-686
KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample

make[1]: Entering directory `/usr/src/modules/madwifi'
for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
/usr/bin/make -C $i clean;
done
make[2]: Entering directory `/usr/src/modules/madwifi/ath'
rm -f *~ *.o *.ko *.mod.c .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/ath'
make[2]: Entering directory `/usr/src/modules/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
make[2]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
make[2]: Entering directory `/usr/src/modules/madwifi/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/net80211'
/usr/bin/make -C ./tools clean
make[2]: Entering directory `/usr/src/modules/madwifi/tools'
rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
wlanconfig core a.out

make[2]: Leaving directory `/usr/src/modules/madwifi/tools'
rm -rf .tmp_versions
rm -f *.symvers svnversion.h
make[1]: Leaving directory `/usr/src/modules/madwifi'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/madwifi'
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/madwifi clean
KERNELPATH=/lib/modules/2.6.21-2-686/build
KERNELRELEASE=2.6.21-2-686
KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample

make[2]: Entering directory `/usr/src/modules/madwifi'
for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
/usr/bin/make -C $i clean;
done
make[3]: Entering directory `/usr/src/modules/madwifi/ath'
rm -f *~ *.o *.ko *.mod.c .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/ath'
make[3]: Entering directory `/usr/src/modules/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
make[3]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
make[3]: Entering directory `/usr/src/modules/madwifi/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/net80211'
/usr/bin/make -C ./tools clean
make[3]: Entering directory `/usr/src/modules/madwifi/tools'
rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
wlanconfig core a.out

make[3]: Leaving directory `/usr/src/modules/madwifi/tools'
rm -rf .tmp_versions
rm -f *.symvers svnversion.h
make[2]: Leaving directory `/usr/src/modules/madwifi'
for templ in ; do
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-2-686/g'` ;
done
for templ in `ls debian/*.modules.in` ; do
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true;
sed -e 's/##KVERS##/2.6.21-2-686/g ;s/#KVERS#/2.6.21-2-686/g ;
s/_KVERS_/2.6.21-2-686/g ; s/##KDREV##/2.6.21-6~bpo.1/g ;
s/#KDREV#/2.6.21-6~bpo.1/g ; s/_KDREV_/2.6.21-6~bpo.1/g ' < $templ>
${templ%.modules.in};

done
dh_testdir
dh_testroot
dh_clean -k
# Build modules
/usr/bin/make -C /usr/src/modules/madwifi modules
KERNELPATH=/lib/modules/2.6.21-2-686/build
KERNELRELEASE=2.6.21-2-686
KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample

make[2]: Entering directory `/usr/src/modules/madwifi'
Checking requirements... ok.
Checking kernel configuration... ok.
/usr/bin/make -C /lib/modules/2.6.21-2-686/build
SUBDIRS=/usr/src/modules/madwifi modules

make[3]: Entering directory `/usr/src/linux-headers-2.6.21-2-686'
CC [M] /usr/src/modules/madwifi/ath/if_ath.o
In file included from :1:
/usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
redefined

In file included from include/linux/compiler-gcc4.h:4,
from include/linux/compiler.h:42,
from include/linux/stddef.h:4,
from include/linux/kernel.h:12,
from /usr/src/modules/madwifi/ath/../include/compat.h:47,
from :1:
include/linux/compiler-gcc.h:30:1: error: this is the location of the
previous definition

In file included from include/asm/pci.h:6,
from include/linux/pci.h:744,
from /usr/src/modules/madwifi/ath/if_ath_pci.h:43,
from /usr/src/modules/madwifi/ath/if_ath.c:86:
include/linux/mm.h:658:1: error: "offset_in_page" redefined
In file included from
/usr/src/modules/madwifi/ath/../net80211/if_media.h:44,

from /usr/src/modules/madwifi/ath/if_ath.c:66:
/usr/src/modules/madwifi/ath/../net80211/ieee80211_linux.h:431:1: error:
this is the location of the previous definition
/usr/src/modules/madwifi/ath/if_ath.c:417:60: error: macro "INIT_WORK"
passed 3 arguments, but takes just 2

/usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach':
/usr/src/modules/madwifi/ath/if_ath.c:417: error: 'INIT_WORK' undeclared
(first use in this function)
/usr/src/modules/madwifi/ath/if_ath.c:417: error: (Each undeclared
identifier is reported only once
/usr/src/modules/madwifi/ath/if_ath.c:417: error: for each function it
appears in.)

/usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_vap_create':
/usr/src/modules/madwifi/ath/if_ath.c:1149: error: 'struct net_device'
has no member named 'class_dev'
/usr/src/modules/madwifi/ath/if_ath.c: In function
'ath_dynamic_sysctl_register':
/usr/src/modules/madwifi/ath/if_ath.c:9573: error: too many arguments to
function 'register_sysctl_table'

/usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_sysctl_register':
/usr/src/modules/madwifi/ath/if_ath.c:9727: error: too many arguments to
function 'register_sysctl_table'

make[5]: *** [/usr/src/modules/madwifi/ath/if_ath.o] Error 1
make[4]: *** [/usr/src/modules/madwifi/ath] Error 2
make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-2-686'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/madwifi'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/madwifi'
make: *** [kdist_build] Error 2
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/madwifi clean
KERNELPATH=/lib/modules/2.6.21-2-686/build
KERNELRELEASE=2.6.21-2-686
KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample

make[1]: Entering directory `/usr/src/modules/madwifi'
for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
/usr/bin/make -C $i clean;
done
make[2]: Entering directory `/usr/src/modules/madwifi/ath'
rm -f *~ *.o *.ko *.mod.c .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/ath'
make[2]: Entering directory `/usr/src/modules/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
make[2]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
make[2]: Entering directory `/usr/src/modules/madwifi/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/madwifi/net80211'
/usr/bin/make -C ./tools clean
make[2]: Entering directory `/usr/src/modules/madwifi/tools'
rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
wlanconfig core a.out

make[2]: Leaving directory `/usr/src/modules/madwifi/tools'
rm -rf .tmp_versions
rm -f *.symvers svnversion.h
make[1]: Leaving directory `/usr/src/modules/madwifi'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/madwifi'
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/madwifi clean
KERNELPATH=/lib/modules/2.6.21-2-686/build
KERNELRELEASE=2.6.21-2-686
KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample

make[2]: Entering directory `/usr/src/modules/madwifi'
for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
/usr/bin/make -C $i clean;
done
make[3]: Entering directory `/usr/src/modules/madwifi/ath'
rm -f *~ *.o *.ko *.mod.c .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/ath'
make[3]: Entering directory `/usr/src/modules/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
make[3]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
make[3]: Entering directory `/usr/src/modules/madwifi/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[3]: Leaving directory `/usr/src/modules/madwifi/net80211'
/usr/bin/make -C ./tools clean
make[3]: Entering directory `/usr/src/modules/madwifi/tools'
rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
wlanconfig core a.out

make[3]: Leaving directory `/usr/src/modules/madwifi/tools'
rm -rf .tmp_versions
rm -f *.symvers svnversion.h
make[2]: Leaving directory `/usr/src/modules/madwifi'
for templ in ; do
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-2-686/g'` ;
done
for templ in `ls debian/*.modules.in` ; do
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true;
sed -e 's/##KVERS##/2.6.21-2-686/g ;s/#KVERS#/2.6.21-2-686/g ;
s/_KVERS_/2.6.21-2-686/g ; s/##KDREV##/2.6.21-6~bpo.1/g ;
s/#KDREV#/2.6.21-6~bpo.1/g ; s/_KDREV_/2.6.21-6~bpo.1/g ' < $templ>
${templ%.modules.in};

done
dh_testdir
dh_testroot
dh_clean -k
# Build modules
/usr/bin/make -C /usr/src/modules/madwifi modules
KERNELPATH=/lib/modules/2.6.21-2-686/build
KERNELRELEASE=2.6.21-2-686
KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample

make[2]: Entering directory `/usr/src/modules/madwifi'
Checking requirements... ok.
Checking kernel configuration... ok.
/usr/bin/make -C /lib/modules/2.6.21-2-686/build
SUBDIRS=/usr/src/modules/madwifi modules

make[3]: Entering directory `/usr/src/linux-headers-2.6.21-2-686'
CC [M] /usr/src/modules/madwifi/ath/if_ath.o
In file included from :1:
/usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
redefined

In file included from include/linux/compiler-gcc4.h:4,
from include/linux/compiler.h:42,
from include/linux/stddef.h:4,
from include/linux/kernel.h:12,
from /usr/src/modules/madwifi/ath/../include/compat.h:47,
from :1:
include/linux/compiler-gcc.h:30:1: error: this is the location of the
previous definition

In file included from include/asm/pci.h:6,
from include/linux/pci.h:744,
from /usr/src/modules/madwifi/ath/if_ath_pci.h:43,
from /usr/src/modules/madwifi/ath/if_ath.c:86:
include/linux/mm.h:658:1: error: "offset_in_page" redefined
In file included from
/usr/src/modules/madwifi/ath/../net80211/if_media.h:44,

from /usr/src/modules/madwifi/ath/if_ath.c:66:
/usr/src/modules/madwifi/ath/../net80211/ieee80211_linux.h:431:1: error:
this is the location of the previous definition
/usr/src/modules/madwifi/ath/if_ath.c:417:60: error: macro "INIT_WORK"
passed 3 arguments, but takes just 2

/usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach':
/usr/src/modules/madwifi/ath/if_ath.c:417: error: 'INIT_WORK' undeclared
(first use in this function)
/usr/src/modules/madwifi/ath/if_ath.c:417: error: (Each undeclared
identifier is reported only once
/usr/src/modules/madwifi/ath/if_ath.c:417: error: for each function it
appears in.)

/usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_vap_create':
/usr/src/modules/madwifi/ath/if_ath.c:1149: error: 'struct net_device'
has no member named 'class_dev'
/usr/src/modules/madwifi/ath/if_ath.c: In function
'ath_dynamic_sysctl_register':
/usr/src/modules/madwifi/ath/if_ath.c:9573: error: too many arguments to
function 'register_sysctl_table'

/usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_sysctl_register':
/usr/src/modules/madwifi/ath/if_ath.c:9727: error: too many arguments to
function 'register_sysctl_table'

make[5]: *** [/usr/src/modules/madwifi/ath/if_ath.o] Error 1
make[4]: *** [/usr/src/modules/madwifi/ath] Error 2
make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-2-686'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/madwifi'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/madwifi'
make: *** [kdist_build] Error 2


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-09-2008, 05:16 PM
Till Wimmer
 
Default Installing Madwifi (atheros drivers) into Debian Etch.

James Allsopp wrote:

Hi,
Just been following the instructions to install the madwifi driver, but
it doesn't compile on the final step. Does anyone have any suggestions?
I'm very new to debian, but experienced with Linux. If anyone needs more
information, please ask!


I've tried modprobing the ath_pci driver after this, on the chance that
it's been built, but it hadn't. It's a clean install, so there shouldn't
be any major cruft on the system.


Details below,
Thanks Jim
I use madwifi on my laptop with Etch for a while. I just used module-assistant for downloading the needed packages and
everything worked fine... Maybe you have the wrong gcc installed? maybe there's a problem with gcc4 and you should try gcc3.x or
the other way round.


What System/Version you're using?

Bye
Till



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-10-2008, 12:46 PM
tyler
 
Default Installing Madwifi (atheros drivers) into Debian Etch.

Till Wimmer <news-dfn@substring.ch> writes:

> James Allsopp wrote:
>> Just been following the instructions to install the madwifi driver,
>> but it doesn't compile on the final step. Does anyone have any
>> suggestions? I'm very new to debian, but experienced with Linux. If
>> anyone needs more information, please ask!

> I use madwifi on my laptop with Etch for a while. I just used
> module-assistant for downloading the needed packages and everything
> worked fine... Maybe you have the wrong gcc installed? maybe there's a
> problem with gcc4 and you should try gcc3.x or the other way round.
>

I think you have to use gcc4. This is what I did to get madwifi onto my
thinkpad:

http://www.thinkwiki.org/wiki/Installing_Debian_Etch_on_a_ThinkPad_R60#Wireless

I started with Etch, but I did the exact same thing last week with the
latest Lenny kernel, and it worked as expected.

Tyler

--
There is something fascinating about science. One gets such wholesale
returns of conjecture out of such a trifling investment of fact.
--Mark Twain


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-10-2008, 01:53 PM
Thierry Chatelet
 
Default Installing Madwifi (atheros drivers) into Debian Etch.

On Wednesday 09 April 2008 17:44:49 James Allsopp wrote:
> Hi,
> Just been following the instructions to install the madwifi driver, but
> it doesn't compile on the final step. Does anyone have any suggestions?
> I'm very new to debian, but experienced with Linux. If anyone needs more
> information, please ask!
>
> I've tried modprobing the ath_pci driver after this, on the chance that
> it's been built, but it hadn't. It's a clean install, so there shouldn't
> be any major cruft on the system.
>
> Details below,
> Thanks Jim
>
> # apt-get update
> # apt-get install madwifi-source # apt-get install madwifi-tools
> # m-a prepare
> # m-a a-i madwifi
>
> mexican:~# cat /var/cache/modass/madwifi-source*buildlog*
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[1]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[2]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[2]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[2]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[2]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
> make[1]: Entering directory `/usr/src/modules/madwifi'
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[3]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[3]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[3]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[3]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> for templ in ; do
> cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-2-686/g'` ;
> done
> for templ in `ls debian/*.modules.in` ; do
> test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
> ${templ%.modules.in}.backup 2>/dev/null || true;
> sed -e 's/##KVERS##/2.6.21-2-686/g ;s/#KVERS#/2.6.21-2-686/g ;
> s/_KVERS_/2.6.21-2-686/g ; s/##KDREV##/2.6.21-6~bpo.1/g ;
> s/#KDREV#/2.6.21-6~bpo.1/g ; s/_KDREV_/2.6.21-6~bpo.1/g ' < $templ>
> ${templ%.modules.in};
> done
> dh_testdir
> dh_testroot
> dh_clean -k
> # Build modules
> /usr/bin/make -C /usr/src/modules/madwifi modules
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> Checking requirements... ok.
> Checking kernel configuration... ok.
> /usr/bin/make -C /lib/modules/2.6.21-2-686/build
> SUBDIRS=/usr/src/modules/madwifi modules
> make[3]: Entering directory `/usr/src/linux-headers-2.6.21-2-686'
> CC [M] /usr/src/modules/madwifi/ath/if_ath.o
> In file included from :1:
> /usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
> redefined
> In file included from include/linux/compiler-gcc4.h:4,
> from include/linux/compiler.h:42,
> from include/linux/stddef.h:4,
> from include/linux/kernel.h:12,
> from /usr/src/modules/madwifi/ath/../include/compat.h:47,
> from :1:
> include/linux/compiler-gcc.h:30:1: error: this is the location of the
> previous definition
> In file included from include/asm/pci.h:6,
> from include/linux/pci.h:744,
> from /usr/src/modules/madwifi/ath/if_ath_pci.h:43,
> from /usr/src/modules/madwifi/ath/if_ath.c:86:
> include/linux/mm.h:658:1: error: "offset_in_page" redefined
> In file included from
> /usr/src/modules/madwifi/ath/../net80211/if_media.h:44,
> from /usr/src/modules/madwifi/ath/if_ath.c:66:
> /usr/src/modules/madwifi/ath/../net80211/ieee80211_linux.h:431:1: error:
> this is the location of the previous definition
> /usr/src/modules/madwifi/ath/if_ath.c:417:60: error: macro "INIT_WORK"
> passed 3 arguments, but takes just 2
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach':
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: 'INIT_WORK' undeclared
> (first use in this function)
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: (Each undeclared
> identifier is reported only once
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: for each function it
> appears in.)
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_vap_create':
> /usr/src/modules/madwifi/ath/if_ath.c:1149: error: 'struct net_device'
> has no member named 'class_dev'
> /usr/src/modules/madwifi/ath/if_ath.c: In function
> 'ath_dynamic_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9573: error: too many arguments to
> function 'register_sysctl_table'
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9727: error: too many arguments to
> function 'register_sysctl_table'
> make[5]: *** [/usr/src/modules/madwifi/ath/if_ath.o] Error 1
> make[4]: *** [/usr/src/modules/madwifi/ath] Error 2
> make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
> make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-2-686'
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> make[1]: *** [binary-modules] Error 2
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> make: *** [kdist_build] Error 2
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[1]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[2]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[2]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[2]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[2]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
> make[1]: Entering directory `/usr/src/modules/madwifi'
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[3]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[3]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[3]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[3]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> for templ in ; do
> cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-2-686/g'` ;
> done
> for templ in `ls debian/*.modules.in` ; do
> test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
> ${templ%.modules.in}.backup 2>/dev/null || true;
> sed -e 's/##KVERS##/2.6.21-2-686/g ;s/#KVERS#/2.6.21-2-686/g ;
> s/_KVERS_/2.6.21-2-686/g ; s/##KDREV##/2.6.21-6~bpo.1/g ;
> s/#KDREV#/2.6.21-6~bpo.1/g ; s/_KDREV_/2.6.21-6~bpo.1/g ' < $templ>
> ${templ%.modules.in};
> done
> dh_testdir
> dh_testroot
> dh_clean -k
> # Build modules
> /usr/bin/make -C /usr/src/modules/madwifi modules
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> Checking requirements... ok.
> Checking kernel configuration... ok.
> /usr/bin/make -C /lib/modules/2.6.21-2-686/build
> SUBDIRS=/usr/src/modules/madwifi modules
> make[3]: Entering directory `/usr/src/linux-headers-2.6.21-2-686'
> CC [M] /usr/src/modules/madwifi/ath/if_ath.o
> In file included from :1:
> /usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
> redefined
> In file included from include/linux/compiler-gcc4.h:4,
> from include/linux/compiler.h:42,
> from include/linux/stddef.h:4,
> from include/linux/kernel.h:12,
> from /usr/src/modules/madwifi/ath/../include/compat.h:47,
> from :1:
> include/linux/compiler-gcc.h:30:1: error: this is the location of the
> previous definition
> In file included from include/asm/pci.h:6,
> from include/linux/pci.h:744,
> from /usr/src/modules/madwifi/ath/if_ath_pci.h:43,
> from /usr/src/modules/madwifi/ath/if_ath.c:86:
> include/linux/mm.h:658:1: error: "offset_in_page" redefined
> In file included from
> /usr/src/modules/madwifi/ath/../net80211/if_media.h:44,
> from /usr/src/modules/madwifi/ath/if_ath.c:66:
> /usr/src/modules/madwifi/ath/../net80211/ieee80211_linux.h:431:1: error:
> this is the location of the previous definition
> /usr/src/modules/madwifi/ath/if_ath.c:417:60: error: macro "INIT_WORK"
> passed 3 arguments, but takes just 2
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach':
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: 'INIT_WORK' undeclared
> (first use in this function)
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: (Each undeclared
> identifier is reported only once
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: for each function it
> appears in.)
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_vap_create':
> /usr/src/modules/madwifi/ath/if_ath.c:1149: error: 'struct net_device'
> has no member named 'class_dev'
> /usr/src/modules/madwifi/ath/if_ath.c: In function
> 'ath_dynamic_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9573: error: too many arguments to
> function 'register_sysctl_table'
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9727: error: too many arguments to
> function 'register_sysctl_table'
> make[5]: *** [/usr/src/modules/madwifi/ath/if_ath.o] Error 1
> make[4]: *** [/usr/src/modules/madwifi/ath] Error 2
> make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
> make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-2-686'
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> make[1]: *** [binary-modules] Error 2
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> make: *** [kdist_build] Error 2


I installed it last week, no problem. I don't remember if you don't have to
have madwifi-tools installed prior to installing madwifi. You may have a look
at it.
Thierry


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-22-2008, 04:56 PM
James Allsopp
 
Default Installing Madwifi (atheros drivers) into Debian Etch.

Hi,
I'm trying to install the atheros drivers onto a desktop machine, and
I've been told the version in stable has a bug in it.

On Tue, 2008-04-15 at 12:32 +0100, James Allsopp wrote:


> Hi,
> I'm trying to build the following packages:
> madwifi-source_1%3a0.9.2+r1842.20061207-2etch2_all.deb
> madwifi-tools_1%3a0.9.2+dfsg-1_i386.deb



That's very old. The current version of MadWifi is 0.9.4.




> CC [M] /usr/src/modules/madwifi/ath/if_ath.o
> In file included from :1:
> /usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
> redefined



This is fixed in version 0.9.4.

I've tried using apt-get -t testing install madwifi-tools (or something
like that, I'm not actually at that computer at the moment) and it tells
me that I've already got the latest package.I've tried this also with
unstable.


I've tried following the manual install instructions but these don't
work and one branch of the instructions tells me I need kernel sources
install, but when I try apt-get install kernel-source it can't find the
package.

If anyone's got any advice I would be very grateful.
Jim


n Wednesday 09 April 2008 17:44:49 James Allsopp wrote:


> Hi,
> Just been following the instructions to install the madwifi driver, but
> it doesn't compile on the final step. Does anyone have any suggestions?
> I'm very new to debian, but experienced with Linux. If anyone needs more
> information, please ask!
>
> I've tried modprobing the ath_pci driver after this, on the chance that
> it's been built, but it hadn't. It's a clean install, so there shouldn't
> be any major cruft on the system.
>
> Details below,
> Thanks Jim
>
> # apt-get update
> # apt-get install madwifi-source # apt-get install madwifi-tools
> # m-a prepare
> # m-a a-i madwifi
>
> mexican:~# cat /var/cache/modass/madwifi-source*buildlog*
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[1]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[2]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[2]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[2]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[2]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
> make[1]: Entering directory `/usr/src/modules/madwifi'
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[3]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[3]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[3]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[3]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> for templ in ; do
> cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-2-686/g'` ;
> done
> for templ in `ls debian/*.modules.in` ; do
> test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
> ${templ%.modules.in}.backup 2>/dev/null || true;
> sed -e 's/##KVERS##/2.6.21-2-686/g ;s/#KVERS#/2.6.21-2-686/g ;
> s/_KVERS_/2.6.21-2-686/g ; s/##KDREV##/2.6.21-6~bpo.1/g ;
> s/#KDREV#/2.6.21-6~bpo.1/g ; s/_KDREV_/2.6.21-6~bpo.1/g ' < $templ>
> ${templ%.modules.in};
> done
> dh_testdir
> dh_testroot
> dh_clean -k
> # Build modules
> /usr/bin/make -C /usr/src/modules/madwifi modules
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> Checking requirements... ok.
> Checking kernel configuration... ok.
> /usr/bin/make -C /lib/modules/2.6.21-2-686/build
> SUBDIRS=/usr/src/modules/madwifi modules
> make[3]: Entering directory `/usr/src/linux-headers-2.6.21-2-686'
> CC [M] /usr/src/modules/madwifi/ath/if_ath.o
> In file included from :1:
> /usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
> redefined
> In file included from include/linux/compiler-gcc4.h:4,
> from include/linux/compiler.h:42,
> from include/linux/stddef.h:4,
> from include/linux/kernel.h:12,
> from /usr/src/modules/madwifi/ath/../include/compat.h:47,
> from :1:
> include/linux/compiler-gcc.h:30:1: error: this is the location of the
> previous definition
> In file included from include/asm/pci.h:6,
> from include/linux/pci.h:744,
> from /usr/src/modules/madwifi/ath/if_ath_pci.h:43,
> from /usr/src/modules/madwifi/ath/if_ath.c:86:
> include/linux/mm.h:658:1: error: "offset_in_page" redefined
> In file included from
> /usr/src/modules/madwifi/ath/../net80211/if_media.h:44,
> from /usr/src/modules/madwifi/ath/if_ath.c:66:
> /usr/src/modules/madwifi/ath/../net80211/ieee80211_linux.h:431:1: error:
> this is the location of the previous definition
> /usr/src/modules/madwifi/ath/if_ath.c:417:60: error: macro "INIT_WORK"
> passed 3 arguments, but takes just 2
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach':
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: 'INIT_WORK' undeclared
> (first use in this function)
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: (Each undeclared
> identifier is reported only once
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: for each function it
> appears in.)
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_vap_create':
> /usr/src/modules/madwifi/ath/if_ath.c:1149: error: 'struct net_device'
> has no member named 'class_dev'
> /usr/src/modules/madwifi/ath/if_ath.c: In function
> 'ath_dynamic_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9573: error: too many arguments to
> function 'register_sysctl_table'
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9727: error: too many arguments to
> function 'register_sysctl_table'
> make[5]: *** [/usr/src/modules/madwifi/ath/if_ath.o] Error 1
> make[4]: *** [/usr/src/modules/madwifi/ath] Error 2
> make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
> make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-2-686'
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> make[1]: *** [binary-modules] Error 2
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> make: *** [kdist_build] Error 2
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[1]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[2]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[2]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[2]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[2]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[2]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[2]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
> make[1]: Entering directory `/usr/src/modules/madwifi'
> dh_testdir
> dh_testroot
> dh_clean
> /usr/bin/make -C /usr/src/modules/madwifi clean
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> for i in ./ath ./ath_hal ath_rate/sample ./net80211; do
> /usr/bin/make -C $i clean;
> done
> make[3]: Entering directory `/usr/src/modules/madwifi/ath'
> rm -f *~ *.o *.ko *.mod.c .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_hal'
> rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
> rm -f .depend .version .*.o.flags .*.o.d
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
> make[3]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
> make[3]: Entering directory `/usr/src/modules/madwifi/net80211'
> rm -f *~ *.o *.ko *.mod.c
> rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
> rm -rf .tmp_versions
> make[3]: Leaving directory `/usr/src/modules/madwifi/net80211'
> /usr/bin/make -C ./tools clean
> make[3]: Entering directory `/usr/src/modules/madwifi/tools'
> rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
> wlanconfig core a.out
> make[3]: Leaving directory `/usr/src/modules/madwifi/tools'
> rm -rf .tmp_versions
> rm -f *.symvers svnversion.h
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> for templ in ; do
> cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-2-686/g'` ;
> done
> for templ in `ls debian/*.modules.in` ; do
> test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
> ${templ%.modules.in}.backup 2>/dev/null || true;
> sed -e 's/##KVERS##/2.6.21-2-686/g ;s/#KVERS#/2.6.21-2-686/g ;
> s/_KVERS_/2.6.21-2-686/g ; s/##KDREV##/2.6.21-6~bpo.1/g ;
> s/#KDREV#/2.6.21-6~bpo.1/g ; s/_KDREV_/2.6.21-6~bpo.1/g ' < $templ>
> ${templ%.modules.in};
> done
> dh_testdir
> dh_testroot
> dh_clean -k
> # Build modules
> /usr/bin/make -C /usr/src/modules/madwifi modules
> KERNELPATH=/lib/modules/2.6.21-2-686/build
> KERNELRELEASE=2.6.21-2-686
> KERNELCONF=/lib/modules/2.6.21-2-686/build/.config ATH_RATE=ath_rate/sample
> make[2]: Entering directory `/usr/src/modules/madwifi'
> Checking requirements... ok.
> Checking kernel configuration... ok.
> /usr/bin/make -C /lib/modules/2.6.21-2-686/build
> SUBDIRS=/usr/src/modules/madwifi modules
> make[3]: Entering directory `/usr/src/linux-headers-2.6.21-2-686'
> CC [M] /usr/src/modules/madwifi/ath/if_ath.o
> In file included from :1:
> /usr/src/modules/madwifi/ath/../include/compat.h:60:1: error: "__packed"
> redefined
> In file included from include/linux/compiler-gcc4.h:4,
> from include/linux/compiler.h:42,
> from include/linux/stddef.h:4,
> from include/linux/kernel.h:12,
> from /usr/src/modules/madwifi/ath/../include/compat.h:47,
> from :1:
> include/linux/compiler-gcc.h:30:1: error: this is the location of the
> previous definition
> In file included from include/asm/pci.h:6,
> from include/linux/pci.h:744,
> from /usr/src/modules/madwifi/ath/if_ath_pci.h:43,
> from /usr/src/modules/madwifi/ath/if_ath.c:86:
> include/linux/mm.h:658:1: error: "offset_in_page" redefined
> In file included from
> /usr/src/modules/madwifi/ath/../net80211/if_media.h:44,
> from /usr/src/modules/madwifi/ath/if_ath.c:66:
> /usr/src/modules/madwifi/ath/../net80211/ieee80211_linux.h:431:1: error:
> this is the location of the previous definition
> /usr/src/modules/madwifi/ath/if_ath.c:417:60: error: macro "INIT_WORK"
> passed 3 arguments, but takes just 2
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach':
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: 'INIT_WORK' undeclared
> (first use in this function)
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: (Each undeclared
> identifier is reported only once
> /usr/src/modules/madwifi/ath/if_ath.c:417: error: for each function it
> appears in.)
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_vap_create':
> /usr/src/modules/madwifi/ath/if_ath.c:1149: error: 'struct net_device'
> has no member named 'class_dev'
> /usr/src/modules/madwifi/ath/if_ath.c: In function
> 'ath_dynamic_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9573: error: too many arguments to
> function 'register_sysctl_table'
> /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_sysctl_register':
> /usr/src/modules/madwifi/ath/if_ath.c:9727: error: too many arguments to
> function 'register_sysctl_table'
> make[5]: *** [/usr/src/modules/madwifi/ath/if_ath.o] Error 1
> make[4]: *** [/usr/src/modules/madwifi/ath] Error 2
> make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
> make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-2-686'
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/usr/src/modules/madwifi'
> make[1]: *** [binary-modules] Error 2
> make[1]: Leaving directory `/usr/src/modules/madwifi'
> make: *** [kdist_build] Error 2






--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-23-2008, 01:37 PM
tyler
 
Default Installing Madwifi (atheros drivers) into Debian Etch.

James Allsopp <ja@astro.livjm.ac.uk> writes:

> I'm trying to install the atheros drivers onto a desktop machine,
> and I've been told the version in stable has a bug in it.

Do you have gcc-4.0?

apt-get install gcc-4.0 madwifi-source madwifi-tools madwifi-doc

m-a prepare
m-a a-i madwifi
modprobe ath_pci

Tyler

--
I'm Tyler Smith and I approve of this email.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:35 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org