You are not logged in.
Here's the output when I try to build wavemon:
gcc -O2 -Wall -c -o conf.o conf.c
conf.c: In function `read_cf':
conf.c:414: error: label at end of compound statement
conf.c: In function `write_cf':
conf.c:485: error: label at end of compound statement
make: *** [conf.o] Error 1
When I try to compile madwifi out of the box, here's what I get:
[root@T41p madwifi]# make
for i in ./ath_hal ./wlan ./driver; do
(cd $i; make);
done
make[1]: Entering directory `/usr/src/madwifi/ath_hal'
uudecode ./../hal/linux/i386-elf.hal.o.uu
make[1]: uudecode: Command not found
make[1]: *** [hal.o] Error 127
make[1]: Leaving directory `/usr/src/madwifi/ath_hal'
make[1]: Entering directory `/usr/src/madwifi/wlan'
make -C /lib/modules/2.6.6/build SUBDIRS=/usr/src/madwifi/wlan modules
make[2]: Entering directory `/usr/src/linux-2.6.6'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/linux-2.6.6'
make[1]: Leaving directory `/usr/src/madwifi/wlan'
make[1]: Entering directory `/usr/src/madwifi/driver'
make -C /lib/modules/2.6.6/build SUBDIRS=/usr/src/madwifi/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.6'
CC [M] /usr/src/madwifi/driver/if_ath_module.o
/usr/src/madwifi/driver/if_ath_module.c:39:20: opt_ah.h: No such file or directory
make[3]: *** [/usr/src/madwifi/driver/if_ath_module.o] Error 1
make[2]: *** [/usr/src/madwifi/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.6'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/madwifi/driver'
make: *** [all] Error 2
Any idea what's going on? It does the same thing even when I go through and export and set the proper variables according to the readme.... though it suggests you only do that when cross compiling. Does anybody have these two working?
Offline
the first error would be a result of new coding standards tha gcc 3.4 adheres to. i don't know if there is a explanantion somewhere online or not. but if you google around using this error code:
error: label at end of compound statement
it may give you an idea of what to look for. so you know the line numbers and suspect file are mentioned in that error output you posted. so if you find out what to look for you can make a patch very easily.
AKA uknowme
I am not your friend
Offline
The same problem has just come up in a thread about compiling Evolution.
It's a change in code that gcc will accept - it's coming across a switch statement which ends with a default: label. To fix it you need to add a do-nothing break; statement after the label.
- olly
Offline
Yay, that bit of information allowed me to make it work.
Thanks a ton! Now what about madwifi?
Offline
looks to me like you may need a module. since wlan is mentioned perhaps you need one of the wlan packages?
AKA uknowme
I am not your friend
Offline
Thanks a ton! Now what about madwifi?
uudecode ./../hal/linux/i386-elf.hal.o.uu
make[1]: uudecode: Command not found
make[1]: *** [hal.o] Error 127
You haven't got uudecode installed. It's part of the sharutils package, so install that.
- olly
Offline
I was wondering what that was part of....
Thanks a ton!
Offline