network card driver install problem (broadcom)

Rick Stevens rstevens at vitalstream.com
Wed Jan 5 01:21:54 UTC 2005


Rajesh wrote:
> 
> Hi Rick,
> 
> When I run rpmbuild -bb SPECS/bcm4400.spec I get the following error
> messages:
> 
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.77348 
> + umask 022 
> + cd /usr/src/redhat/BUILD 
> + cd /usr/src/redhat/BUILD 
> + rm -rf bcm4400-3.0.8 
> + /bin/mkdir -p bcm4400-3.0.8 
> + cd bcm4400-3.0.8 
> + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm4400-3.0.8.tgz 
> + tar -xvvf - 
> -r--r--r-- root/root     38701 2004-08-06 04:09:48 b44.h 
> -r--r--r-- root/root     64573 2004-08-06 04:09:48 b44lm.c 
> -r--r--r-- root/root     17494 2004-08-06 04:09:48 b44lm.h 
> -r--r--r-- root/root      8474 2004-08-06 04:09:48 b44mm.h 
> -r--r--r-- root/root     10300 2004-08-06 04:09:48 b44proc.c 
> -r--r--r-- root/root     11645 2004-08-06 04:09:48 b44queue.h 
> -r--r--r-- root/root     53148 2004-08-06 04:09:48 b44um.c 
> -r--r--r-- root/root      6047 2004-08-06 04:09:48 bcm4400.4 
> -r--r--r-- root/root      2900 2004-08-06 04:09:48 DISTRIB.TXT 
> -r--r--r-- root/root     15153 2004-08-06 04:09:48 LICENSE 
> -r--r--r-- root/root      3100 2004-08-06 04:09:48 Makefile 
> -r--r--r-- root/root      7987 2004-08-06 04:09:48 README.TXT 
> -r--r--r-- root/root      8296 2004-08-06 04:09:48 RELEASE.TXT 
> + STATUS=0 
> + '[' 0 -ne 0 ']' 
> + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm4400-3.0.8.tgz 
> + tar -xvvf - 
> -r--r--r-- root/root     38701 2004-08-06 04:09:48 b44.h 
> -r--r--r-- root/root     64573 2004-08-06 04:09:48 b44lm.c 
> -r--r--r-- root/root     17494 2004-08-06 04:09:48 b44lm.h 
> -r--r--r-- root/root      8474 2004-08-06 04:09:48 b44mm.h 
> -r--r--r-- root/root     10300 2004-08-06 04:09:48 b44proc.c 
> -r--r--r-- root/root     11645 2004-08-06 04:09:48 b44queue.h 
> -r--r--r-- root/root     53148 2004-08-06 04:09:48 b44um.c 
> -r--r--r-- root/root      6047 2004-08-06 04:09:48 bcm4400.4 
> -r--r--r-- root/root      2900 2004-08-06 04:09:48 DISTRIB.TXT 
> -r--r--r-- root/root     15153 2004-08-06 04:09:48 LICENSE 
> -r--r--r-- root/root      3100 2004-08-06 04:09:48 Makefile 
> -r--r--r-- root/root      7987 2004-08-06 04:09:48 README.TXT 
> -r--r--r-- root/root      8296 2004-08-06 04:09:48 RELEASE.TXT 
> + 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.77348 
> + umask 022 
> + cd /usr/src/redhat/BUILD 
> + cd bcm4400-3.0.8 
> + make 
> gcc -DMODULE -D__KERNEL__ -DDBG=0 -Wall -Wstrict-prototypes -O6
> -I/usr/src/linux/include   -c -o b44um.o b44um.c 
> In file included from /usr/include/linux/fs.h:23, 
>                  from /usr/include/linux/capability.h:17, 
>                  from /usr/include/linux/binfmts.h:5, 
>                  from /usr/include/linux/sched.h:9, 
>                  from b44mm.h:42, 
>                  from b44um.c:57: 
> /usr/include/linux/string.h:8:2: warning: #warning Using kernel header in
> userland! 
> In file included from /usr/include/linux/sched.h:14, 
>                  from b44mm.h:42, 
>                  from b44um.c:57: 
> /usr/include/linux/timex.h:173: 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: parse error before "sigset_t" 
> /usr/include/asm/signal.h:110: parse 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: parse error before "spinlock_t" 
> /usr/include/linux/timer.h:53: parse error before '}' token 
> /usr/include/linux/timer.h:67: parse error before "tvec_base_t" 
> /usr/include/linux/timer.h:101: parse error before "tvec_bases" 
> /usr/include/linux/timer.h: In function `init_timer': 

[lots of the error messages deleted]

> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.35013 (%build)
> 
> 
> Thanks,
> Rajesh.

You absolutely need to install the kernel source RPM and configure the
kernel source.  Put the second CD in your drive.  Make sure it's mounted
and enter:

	rpm -ivh /mnt/cdrom/kernel-source*

Once that's done, change directory to /usr/src/linux and edit the file
"Makefile".  Look at the "EXTRAVERSION=" line and delete anything after
the "=".  The line should read:

	EXTRAVERSION=

Then do the following:

	make mrproper
	cp /boot/config-2.4.20-8 .config
	make oldconfig
	make dep

You should then be able to build the driver:

	cd /usr/src/RedHat
	rpmbuild -bb SPECS/bcm4400.spec

Again, I really think you should drop RH9 and go to Fedora Core 3.
The driver is already built for you in FC3 and it's the latest version
of Red Hat Linux.  Red Hat 9 is almost a year old and is no longer
supported except through Fedora Legacy (http://www.fedoralegacy.org).

If you must continue to use RH9, make sure you download and install
yum or apt-get and update your system.  You're running an ancient
kernel.  The latest Fedora Legacy kernel for RH9 is 2.4.20-37.9.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-         If this is the first day of the rest of my life...         -
-                        I'm in BIG trouble!                         -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list