Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Building the src RPM for BCM5700 on Centos

SOLVED
Go to solution
j0n
Occasional Visitor

Building the src RPM for BCM5700 on Centos

I'm trying to build the BCM5700-8.3.14a-1 driver on Centos 4.1. The build fails with: -

make -C /usr/src/linux SUBDIRS=/usr/src/redhat/BUILD/bcm5700-8.3.14a modules
make[1]: Entering directory `/usr/src/linux-2.6.9-11.EL'
CC [M] /usr/src/redhat/BUILD/bcm5700-8.3.14a/b57um.o
In file included from /usr/src/redhat/BUILD/bcm5700-8.3.14a/b57um.c:19:
/usr/src/redhat/BUILD/bcm5700-8.3.14a/mm.h:31:27: linux/version.h: No such file or directory
/usr/src/redhat/BUILD/bcm5700-8.3.14a/mm.h:37:31: linux/modversions.h: No such file or directory

I guess it's to do with how we've setup the kernel source. Has anyone seen this problem before ? Any ideas how to setup the src correctly ?
Thanks

6 REPLIES
Vipulinux
Respected Contributor

Re: Building the src RPM for BCM5700 on Centos

Hi
Use the following series of commands:

I install the source RPM package:
rpm -ivh bcm5700-x.x.x.x.src.rpm
2. CD to the RPM path and build the binary driver for my kernel:
cd /usr/src/centos
rpmbuild -bb SPECS/bcm5700.spec
( rpm-build package should be present)

Cheers
Vipulinux
Respected Contributor

Re: Building the src RPM for BCM5700 on Centos

Hi
Use the following series of commands:

I install the source RPM package:
rpm -ivh bcm5700-x.x.x.x.src.rpm
2. CD to the RPM path and build the binary driver for my kernel:
cd /usr/src/centos
rpmbuild -bb SPECS/bcm5700.spec
( rpm-build package should be present)
3.rpm -ivh --force RPMS/i386/bcm5700-x.x.x.x.i386.rpm

Cheers
j0n
Occasional Visitor

Re: Building the src RPM for BCM5700 on Centos

Thanks but I'm not sure that this solves the problem. I did the following as per the instructions included with the driver.

> # cd /usr/src/linux-
> # make mrproper
> # make -e KERNELRELEASE=`uname -r` oldconfig

That worked

> # make -e KERNELRELEASE=`uname -r` dep

This returned "make dep" is not necessary anymore.

rpmbuild -bb SPECS/bcm5700.spec failed immediately.

We then did a: -

ln -s /usr/src/linux- /usr/src/linux

rpmbuild -bb SPECS/bcm5700.spec

which resulted in the error log. I've attached the full log.
Vitaly Karasik_1
Honored Contributor
Solution

Re: Building the src RPM for BCM5700 on Centos

do you have kernel-devel package installed?

Rgds,
Vitaly
j0n
Occasional Visitor

Re: Building the src RPM for BCM5700 on Centos

Thanks guys - that did it. I needed to install the kernel-devel package.
Vipulinux
Respected Contributor

Re: Building the src RPM for BCM5700 on Centos

Hi

You will always need kernel-devel package is you are building from a source.

Cheers