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.
[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.