Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2112 (new defect)

Opened 11 years ago

Last modified 10 years ago

Errors when doing make command..

Reported by: anonymous Assigned to:
Priority: critical Milestone:
Component: madwifi: other Version: v0.9.4
Keywords: Cc:
Patch is attached: 0 Pending: 0

Description

I recieve the following error when trying "make" command.

root@laptop:/home/dean/Desktop/madwifi# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.24-19-generic/build SUBDIRS=/home/dean/Desktop/madwifi modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
  HOSTCC  /home/dean/Desktop/madwifi/ath_hal/uudecode
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/home/dean/Desktop/madwifi/ath_hal/uudecode.c: In function 'uudecode_usage':
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:37: warning: implicit declaration of function 'printf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c: At top level:
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:40: error: expected ')' before '*' token
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:70: error: expected ')' before '*' token
/home/dean/Desktop/madwifi/ath_hal/uudecode.c: In function 'main':
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:121: error: for each function it appears in.)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:130: warning: implicit declaration of function 'getopt'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:138: warning: implicit declaration of function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:141: error: 'optind' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:144: warning: implicit declaration of function 'fopen'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:146: warning: implicit declaration of function 'fprintf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:147: warning: implicit declaration of function 'strerror'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:147: error: 'errno' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:157: warning: implicit declaration of function 'strncmp'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:168: warning: implicit declaration of function 'strtoul'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:170: warning: implicit declaration of function 'strchr'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:178: warning: implicit declaration of function 'strcmp'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:182: error: 'O_CREAT' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:182: error: 'O_TRUNC' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:186: error: 'O_EXCL' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:188: warning: implicit declaration of function 'open'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:189: error: 'S_IRWXU' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:189: error: 'S_IRWXG' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:189: error: 'S_IRWXO' undeclared (first use in this function)
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:191: warning: implicit declaration of function 'fdopen'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:193: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:194: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:195: warning: incompatible implicit declaration of built-in function 'exit'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:199: warning: implicit declaration of function 'read_stduu'
/home/dean/Desktop/madwifi/ath_hal/uudecode.c:201: warning: implicit declaration of function 'fclose'
make[3]: *** [/home/dean/Desktop/madwifi/ath_hal/uudecode] Error 1
make[2]: *** [/home/dean/Desktop/madwifi/ath_hal] Error 2
make[1]: *** [_module_/home/dean/Desktop/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make: *** [modules] Error 2

Im completely confused on how to fix it as i'm not great with Linux!

I have an Atheros A315

Change History

09/12/08 09:24:40 changed by anonymous

same problem

~/madwifi-0.9.4$ make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.26-1-686/build SUBDIRS=/home/pmddeb/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-686'
  CC [M]  /home/pmddeb/madwifi-0.9.4/net80211/ieee80211_power.o
/home/pmddeb/madwifi-0.9.4/net80211/ieee80211_power.c: In function 'ieee80211_pwrsave':
/home/pmddeb/madwifi-0.9.4/net80211/ieee80211_power.c:240: error: implicit declaration of function '__skb_append'
make[3]: *** [/home/pmddeb/madwifi-0.9.4/net80211/ieee80211_power.o] Error 1
make[2]: *** [/home/pmddeb/madwifi-0.9.4/net80211] Error 2
make[1]: *** [_module_/home/pmddeb/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-686'
make: *** [modules] Erreur 2

09/12/08 22:56:32 changed by anonymous

yeh it had me that one, i have no clue what i'm doing on linux but i did this:

sudo apt-get update
sudo apt-get install libc6-dev

then from the madwifi directory you downloaded...

make
make install
sudo modprobe ath_pci (no messages = good i think)

(follow-ups: ↓ 4 ↓ 19 ) 09/12/08 22:57:21 changed by anonymous

uh the formatting went wrong on that in case u never got that

(in reply to: ↑ 3 ) 09/24/08 21:50:10 changed by anonymous

Replying to anonymous:

uh the formatting went wrong on that in case u never got that

Thanks for the clue about the "libc6-dev" deb. Installing the deb solved my make errors (same errors as above) My computer is a Toshiba A205-S5000 with UBUNTU 8.04 OS. It has an Atheros AR5007EG wifi chip.

09/25/08 13:42:57 changed by anonymous

For the reported problem, try

sudo apt-get install build-essential

since it seems that you are missing the normal C/C++ headers.

09/26/08 11:12:47 changed by mtorres

Uh oh, I've got the same problem, but have no luck solving it:

debian:/usr/src/madwifi-0.9.4# apt-get update
[...]
Reading package lists... Done                   
debian:/usr/src/madwifi-0.9.4# apt-get install build-essential libc6-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
libc6-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 109 not upgraded.
debian:/usr/src/madwifi-0.9.4# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.26-1-686/build SUBDIRS=/usr/src/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-686'
  CC [M]  /usr/src/madwifi-0.9.4/net80211/ieee80211_power.o
/usr/src/madwifi-0.9.4/net80211/ieee80211_power.c: In function 'ieee80211_pwrsave':
/usr/src/madwifi-0.9.4/net80211/ieee80211_power.c:240: error: implicit declaration of function '__skb_append'
make[3]: *** [/usr/src/madwifi-0.9.4/net80211/ieee80211_power.o] Error 1
make[2]: *** [/usr/src/madwifi-0.9.4/net80211] Error 2
make[1]: *** [_module_/usr/src/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-686'
make: *** [modules] Error 2
debian:/usr/src/madwifi-0.9.4# uname -r
2.6.26-1-686
debian:/usr/src/madwifi-0.9.4#

Any clue?

09/26/08 11:32:50 changed by mtorres

I discover that I cannot compile because of 2.6.26 kernel. But compiling from trunk seems to work (svn.madwifi.org/madwifi/trunk), as it's said in #1923

10/31/08 15:34:51 changed by alroger@cafe-ti.blog.br

To get the latest "trunk":

svn checkout http://svn.madwifi-project.org/madwifi/trunk madwifi

11/06/08 21:17:03 changed by ZettaByte

I can't compile madwifi in ubuntu 8.10 -- Compaq CQ50 I have installed libc6-dev and build-essential but continue present the error ...

/home/marcod/madwifi-0.9.4/net80211/ieee80211_power.c: In function 'ieee80211_pwrsave':
/home/marcod/madwifi-0.9.4/net80211/ieee80211_power.c:240: error: implicit declaration of function '__skb_append'
make[3]: *** [/home/marcod/madwifi-0.9.4/net80211/ieee80211_power.o] Error 1
make[2]: *** [/home/marcod/madwifi-0.9.4/net80211] Error 2
make[1]: *** [_module_/home/marcod/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2

11/09/08 21:32:28 changed by acreque@roadrunner.com

Same exact problem here. I just bought one of those $298 Walmart Presario CQ50s. Great machine for the $ - runs Vista Home Basic nicely. Configured for Ubuntu / Vista dual boot. Works great - but after 2 days I still can't get wireless working.

11/11/08 04:42:03 changed by jaredmmoore@charter.net

Same here, running Ubuntu 8.10 and getting the same errors.

11/11/08 09:58:45 changed by sandeepr

I got the same problem on compaq laptop & Ubuntu linux

Wot is build-essential????

sudo apt-get install build-essential not working!!

Package is nt available!!!

(follow-up: ↓ 14 ) 11/14/08 02:48:05 changed by mario

OK, I am on Ubuntu 8.10 with VAIO VGN-NR21J I have gone as far as downloading madwifi from trunk (normal install wouldn't work) going through make, make install, modprobe ath_pci but now I don't know what to do. There was no errors while installing. System can't see the card (Atheros AR5006X). I tried lspci and I can't see it there. I really could use some help here, please.

(in reply to: ↑ 13 ; follow-ups: ↓ 15 ↓ 18 ↓ 20 ) 11/14/08 12:01:23 changed by alroger@cafe-ti.blog.br

Guys, I think ticket is about compiling madwifi, but if you just want to make your wireless work try on Ubuntu 8.10: sudo apt-get install linux-backports-modules-intrepid reboot Deactivate and activate again 5xxx series of Atheros in Hardware Drivers.

Replying to mario:

OK, I am on Ubuntu 8.10 with VAIO VGN-NR21J I have gone as far as downloading madwifi from trunk (normal install wouldn't work) going through make, make install, modprobe ath_pci but now I don't know what to do. There was no errors while installing. System can't see the card (Atheros AR5006X). I tried lspci and I can't see it there. I really could use some help here, please.

(in reply to: ↑ 14 ) 11/30/08 06:29:04 changed by anonymous

Replying to alroger@cafe-ti.blog.br:

Guys, I think ticket is about compiling madwifi, but if you just want to make your wireless work try on Ubuntu 8.10: sudo apt-get install linux-backports-modules-intrepid reboot Deactivate and activate again 5xxx series of Atheros in Hardware Drivers.

Ah - indeed. This does work. I have an Acer Aspire One with Ubuntu 8.10 and this, finally, resulted in a functional wireless network interface. I would add that a second reboot is required as a final step.

12/03/08 22:21:16 changed by lonescoutjt@yahoo.com

Ok, I have installed build-essential, libc6-dev, and any other programs that I've found crawling the net and still had no luck with the "make" command. I'm running Ubuntu 8.10 and an Atheros 802.11 wireless chipset. From what I have read madwifi is the only linux supported driver for my wireless to work. After I give the "make' command I get the following errors.

root@JTs-Laptop:/home/jt/Desktop/madwifi-0.9.4# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.27-10-generic/build SUBDIRS=/home/jt/Desktop/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-10-generic'
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath/if_ath.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath/if_ath_pci.o
  LD [M]  /home/jt/Desktop/madwifi-0.9.4/ath/ath_pci.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath_hal/ah_os.o
  HOSTCC  /home/jt/Desktop/madwifi-0.9.4/ath_hal/uudecode
  UUDECODE /home/jt/Desktop/madwifi-0.9.4/ath_hal/i386-elf.hal.o
  LD [M]  /home/jt/Desktop/madwifi-0.9.4/ath_hal/ath_hal.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/amrr/amrr.o
  LD [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/amrr/ath_rate_amrr.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/minstrel/minstrel.o
  LD [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/minstrel/ath_rate_minstrel.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/onoe/onoe.o
  LD [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/onoe/ath_rate_onoe.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/sample/sample.o
  LD [M]  /home/jt/Desktop/madwifi-0.9.4/ath_rate/sample/ath_rate_sample.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/if_media.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_beacon.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_crypto.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_crypto_none.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_input.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_node.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_output.o
  CC [M]  /home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_power.o
/home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_power.c: In function 'ieee80211_pwrsave':
/home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_power.c:240: error: implicit declaration of function '__skb_append'
make[3]: *** [/home/jt/Desktop/madwifi-0.9.4/net80211/ieee80211_power.o] Error 1
make[2]: *** [/home/jt/Desktop/madwifi-0.9.4/net80211] Error 2
make[1]: *** [_module_/home/jt/Desktop/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-10-generic'
make: *** [modules] Error 2

Any help to get my wireless up and running would be much appreciated. I would try the "trunk" method but I don't know what that entails.

12/08/08 13:21:40 changed by anonymous

0.9.4 didn't work for me but trunk did. Thanks!

(in reply to: ↑ 14 ) 12/08/08 16:26:33 changed by Indolence

Replying to alroger@cafe-ti.blog.br:

Guys, I think ticket is about compiling madwifi, but if you just want to make your wireless work try on Ubuntu 8.10: sudo apt-get install linux-backports-modules-intrepid reboot Deactivate and activate again 5xxx series of Atheros in Hardware Drivers. Replying to mario:

OK, I am on Ubuntu 8.10 with VAIO VGN-NR21J I have gone as far as downloading madwifi from trunk (normal install wouldn't work) going through make, make install, modprobe ath_pci but now I don't know what to do. There was no errors while installing. System can't see the card (Atheros AR5006X). I tried lspci and I can't see it there. I really could use some help here, please.

GREAT IT WORKS WOOOO THANKS

(in reply to: ↑ 3 ) 12/09/08 13:46:13 changed by anonymous

many thanks. sudo apt-get install libc6-dev solved it

(in reply to: ↑ 14 ) 01/28/09 00:50:25 changed by anonymous

Thank you!! this solved my problem:

sudo apt-get install linux-backports-modules-intrepid

(follow-up: ↓ 22 ) 03/18/09 11:43:02 changed by teetz@gmx.de

Hi,

the problem seems to lie in the ieee_80211_power implementation, building from trunk works:

sudo apt-get install libc6-dev sudo apt-get install build-essential sudo apt-get install subversion svn checkout {http doublepoint doubleslash}svn.madwifi-project.org/madwifi/trunk madwifi cd madwifi make

if you habe a modified madwifi such as "+ar5007", instead of "cd madwifi etc..." do cp ./madwifi/net80211/ieee80211_power.c ./net80211/ieee80211_power.c cp ./madwifi/net80211/ieee80211_power.h ./net80211/ieee80211_power.h make

works fine for me now

(in reply to: ↑ 21 ) 03/18/09 11:44:56 changed by anonymous

Hi,
the problem seems to lie in the ieee_80211_power implementation, building from trunk works:

sudo apt-get install libc6-dev
sudo apt-get install build-essential
sudo apt-get install subversion
svn checkout http://madwifi-project.org/svn/madwifi/trunk madwifi
cd madwifi
make

if you habe a modified madwifi such as "+ar5007", instead of "cd madwifi etc..." do
cp ./madwifi/net80211/ieee80211_power.c ./net80211/ieee80211_power.c
cp ./madwifi/net80211/ieee80211_power.h ./net80211/ieee80211_power.h
make

works fine for me now

sorry for the unformatted post, it was my first here :)

05/19/09 01:46:44 changed by anonymous

The svn worked!!

07/28/09 21:53:10 changed by anonymous

svn did the trick for me. It is the easiest solution here I think.

Thanks!!

(follow-up: ↓ 26 ) 10/20/09 13:54:15 changed by anonymous

All this is not working on my UBUNTU 9.04 Stil have problem whit Atheros

(in reply to: ↑ 25 ) 10/28/09 04:34:31 changed by anonymous

Replying to anonymous:

All this is not working on my UBUNTU 9.04 Stil have problem whit Atheros

Don't know how old this problem is, but as for 9.04 with Atheros AR5001, I was able to do the following: Go to madwifi-project.org and download the latest madwifi-hal-<bunch of numbers> directory. Then cd to that directory. cd scripts/ sudo ./madwifi-update.bash sudo ./find-<just hit tab> cd .. sudo make sudo make install sudo modprobe ath_pci

Sorry for the "tab" and "bunch of numbers," but I recently upgraded to 9.10 and thus do not have the same hal package anymore. Worked for me in 9.04 though!

10/28/09 04:37:55 changed by anonymous

Don't know how old this problem is, but as for 9.04 with Atheros AR5001, I was able to do the following: Go to madwifi-project.org and download the latest madwifi-hal-<bunch of numbers> directory.
Then cd to that directory.
cd scripts/
sudo ./madwifi-update.bash
sudo ./find-<just hit tab>
cd ..
sudo make
sudo make install
sudo modprobe ath_pci

Sorry for the "tab" and "bunch of numbers," but I recently upgraded to 9.10 and thus do not have the same hal package anymore. Worked for me in 9.04 though!