help compiling madwifi for a compiling n00b

Using applications, configuring, problems
Post Reply
Message
Author
violetdream
Posts: 109
Joined: Sat 15 Apr 2006, 22:03

help compiling madwifi for a compiling n00b

#1 Post by violetdream »

Hi everyone, I'm seriously experiencing MadWifi withdrawal so I tried to compile it myself. I got dev_202.sfs and I typed "make" in the console and this is what I got:

Code: Select all

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.16.7/build SUBDIRS=/root/madwifi-0.9.2 modules
make[1]: Entering directory `/usr/src/linux-2.6.16.7'
gcc: ./kernelversion.c: No such file or directory
gcc: no input files
scripts/Makefile.build:51: kbuild: /root/madwifi-0.9.2/Makefile - Usage of export-objs is obsolete in 2.6. Please fix!
scripts/Makefile.build:63: kbuild: /root/madwifi-0.9.2/Makefile - list-multi :=  is obsolete in 2.6. Please fix!
gcc: ../kernelversion.c: No such file or directory
gcc: no input files
scripts/Makefile.build:29: scripts/Makefile.host: No such file or directory
scripts/Makefile.build:51: kbuild: /root/madwifi-0.9.2/ath/Makefile - Usage of export-objs is obsolete in 2.6. Please fix!
scripts/Makefile.build:63: kbuild: /root/madwifi-0.9.2/ath/Makefile - list-multi := /root/madwifi-0.9.2/ath/ath_pci.o /root/madwifi-0.9.2/ath/ath_hal.o is obsolete in 2.6. Please fix!
make[3]: *** No rule to make target `scripts/Makefile.host'.  Stop.
make[2]: *** [/root/madwifi-0.9.2/ath] Error 2
make[1]: *** [_module_/root/madwifi-0.9.2] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.7'
make: *** [modules] Error 2
I don't know ANYTHING about compiling so any tips on what I'm doing wrong would be appreciated. Thanks!

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#2 Post by John Doe »

try:

Code: Select all

./configure --prefix=/usr
make
make install

violetdream
Posts: 109
Joined: Sat 15 Apr 2006, 22:03

#3 Post by violetdream »

There doesn't seem to be a file "configure" so I can't try out what you said :(

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#4 Post by John Doe »

Sorry I replied too fast.

See this part:

Code: Select all

make[1]: Entering directory `/usr/src/linux-2.6.16.7'
gcc: ./kernelversion.c: No such file or directory
gcc: no input files 
You need to download the kernel source and put it there.

You can get it here:
http://www.puppyos.com/test/

violetdream
Posts: 109
Joined: Sat 15 Apr 2006, 22:03

#5 Post by violetdream »

Thanks for your help, I just realised I needed to do this after chatting with some people on IRC. I'll try that on my computer with more ram, but if I don't have enough space to put the source in ram, is there a way to specify another location for the source?

Post Reply