Click to See Complete Forum and Search --> : Broadcom Integrated wireless


UnrealTear
03-28-2004, 10:44 AM
OK, I know your all probably saying not another intergrated wireless install, but this one is diffrent i swear. It turns out broadcom does have drivers for linux for their card. Score. But i seem to be stuke when im building the RPM or Compiling it from source. This is the error i get when trying to compile the RPM:
[root@nick SPECS]# rpmbuild -bb bcm4400.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.76154
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf bcm4400-3.0.7
+ /bin/mkdir -p bcm4400-3.0.7
+ cd bcm4400-3.0.7
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm4400-3.0.7.tgz
+ tar -xvvf -
-rw-r--r-- root/root 2901 2003-10-28 13:36:56 DISTRIB.TXT
-rw-r--r-- root/root 15153 2003-10-28 13:36:56 LICENSE
-rw-r--r-- root/root 3100 2003-10-28 13:36:56 Makefile
-rw-r--r-- root/root 7988 2003-10-28 13:36:56 README.TXT
-rw-r--r-- root/root 7313 2003-10-28 13:36:56 RELEASE.TXT
-rw-r--r-- root/root 38701 2003-10-28 13:36:57 b44.h
-rw------- root/root 64573 2003-10-28 13:36:57 b44lm.c
-rw-r--r-- root/root 17494 2003-10-28 13:36:57 b44lm.h
-rw-r--r-- root/root 8474 2003-10-28 13:36:57 b44mm.h
-rw-r--r-- root/root 10300 2003-10-28 13:36:57 b44proc.c
-rw-r--r-- root/root 11645 2003-10-28 13:36:57 b44queue.h
-rw-r--r-- root/root 53199 2003-10-28 13:36:57 b44um.c
-rw-r--r-- root/root 6047 2003-10-28 13:36:57 bcm4400.4
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm4400-3.0.7.tgz
+ tar -xvvf -
-rw-r--r-- root/root 2901 2003-10-28 13:36:56 DISTRIB.TXT
-rw-r--r-- root/root 15153 2003-10-28 13:36:56 LICENSE
-rw-r--r-- root/root 3100 2003-10-28 13:36:56 Makefile
-rw-r--r-- root/root 7988 2003-10-28 13:36:56 README.TXT
-rw-r--r-- root/root 7313 2003-10-28 13:36:56 RELEASE.TXT
-rw-r--r-- root/root 38701 2003-10-28 13:36:57 b44.h
-rw------- root/root 64573 2003-10-28 13:36:57 b44lm.c
-rw-r--r-- root/root 17494 2003-10-28 13:36:57 b44lm.h
-rw-r--r-- root/root 8474 2003-10-28 13:36:57 b44mm.h
-rw-r--r-- root/root 10300 2003-10-28 13:36:57 b44proc.c
-rw-r--r-- root/root 11645 2003-10-28 13:36:57 b44queue.h
-rw-r--r-- root/root 53199 2003-10-28 13:36:57 b44um.c
-rw-r--r-- root/root 6047 2003-10-28 13:36:57 bcm4400.4
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.76154
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm4400-3.0.7
+ make bcm4400.o
gcc -DMODULE -D__KERNEL__ -DDBG=0 -Wall -Wstrict-prototypes -O6 -I/lib/modules/2.4.22-1.2174.nptl/build/include -c -o b44um.o b44um.c
In file included from /usr/include/linux/sched.h:14,
from b44mm.h:42,
from b44um.c:57:
/usr/include/linux/timex.h:56: error: syntax error before "and"
In file included from /usr/include/linux/timex.h:126,
from /usr/include/linux/sched.h:14,
from b44mm.h:42,
from b44um.c:57:
/usr/include/asm/timex.h:33: error: syntax error before "cacheflush_time"
/usr/include/asm/timex.h:35: error: syntax error before "get_cycles"
In file included from /usr/include/linux/sched.h:14,
from b44mm.h:42,
from b44um.c:57:
/usr/include/linux/timex.h:147: error: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from b44mm.h:42,
from b44um.c:57:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from b44mm.h:42,
from b44um.c:57:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:81,
from b44mm.h:42,
from b44um.c:57:
/usr/include/linux/timer.h:45: error: syntax error before "spinlock_t"
/usr/include/linux/timer.h:53: error: syntax error before '}' token
/usr/include/linux/timer.h:67: error: syntax error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: syntax error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from b44mm.h:48,
from b44um.c:57:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
In file included from b44mm.h:48,
from b44um.c:57:
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:77: error: syntax error before '(' token
/usr/include/linux/interrupt.h:78: error: syntax error before '(' token
/usr/include/linux/interrupt.h:106: error: syntax error before "atomic_t"
/usr/include/linux/interrupt.h:109: error: syntax error before '}' token
/usr/include/linux/interrupt.h:127: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:127: error: requested alignment is not a constant/usr/include/linux/interrupt.h:154: error: syntax error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/include/linux/interrupt.h:158: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:162: error: syntax error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/include/linux/interrupt.h:166: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/usr/include/linux/interrupt.h:173: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_enable':
/usr/include/linux/interrupt.h:187: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_hi_enable':
/usr/include/linux/interrupt.h:193: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:224: error: syntax error before "global_bh_lock"
/usr/include/linux/interrupt.h: In function `mark_bh':
/usr/include/linux/interrupt.h:228: error: invalid use of undefined type `struct tasklet_struct'

I had to cut most of it out due to the fourm not letting me post anything that long.



A little bit of backround info, Its an Emachines M5312 Laptop running Fedora. Any help would be greatly greatly appreciated.

UnrealTear
03-28-2004, 11:16 AM
Edited to say that i cannot compile anything from source. i seem, to get the same error no matter what file i try.

mdwatts
03-28-2004, 11:39 AM
Do you have the kernel source installed for your current running kernel version? Canned reply from a text file I have.


You need to have the kernel-source package installed for your current running kernel version in order to compile hardware drivers.

If you are still running the stock/default kernel, install the kernel-source-#.#.#-#.i586.rpm package from your installation cd(s) or if running a updated kernel version, download and install from one of your distros ftp servers.

uname -r (tells you the running kernel version)

The kernel source will be installed in

/usr/src/linux-#.#.#-#

with a symlink pointing to

/usr/src/linux

JayMan8081
03-28-2004, 11:11 PM
The bcm4400 driver that you are trying to compile isn't for the wireless card, it is for the built-in ethernet port. And if I recall with fedora whenever building a driver module you have to set it to use gcc32 instead of the regular gcc compiler. Mahdi would probably know for sure since he has compiled a wireless driver for his Centrino card before. I'm not sure what wireless card you have but you might look at my post in the How I Did It forum. I used the ndiswrapper to load Windows drivers for my broadcom base mini-PCI card.