You are not logged in.

#1 2004-06-08 22:04:04

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 481

Can't compile wavemon or madwifi...?

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

#2 2004-06-08 22:31:06

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Can't compile wavemon or madwifi...?

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

#3 2004-06-08 22:48:21

olly-bh
Member
Registered: 2004-04-22
Posts: 14

Re: Can't compile wavemon or madwifi...?

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

#4 2004-06-09 00:08:02

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 481

Re: Can't compile wavemon or madwifi...?

Yay, that bit of information allowed me to make it work. big_smile

Thanks a ton! Now what about madwifi? smile

Offline

#5 2004-06-09 05:12:40

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Can't compile wavemon or madwifi...?

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

#6 2004-06-09 07:05:36

olly-bh
Member
Registered: 2004-04-22
Posts: 14

Re: Can't compile wavemon or madwifi...?

kleptophobiac wrote:

Thanks a ton! Now what about madwifi? smile

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

#7 2004-06-09 18:01:03

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 481

Re: Can't compile wavemon or madwifi...?

I was wondering what that was part of.... smile

Thanks a ton!

Offline

Board footer

Powered by FluxBB