LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   broadcom rpm issues (https://www.linuxquestions.org/questions/linux-hardware-18/broadcom-rpm-issues-306496/)

JMcLaine 03-26-2005 10:16 PM

broadcom rpm issues
 
looking for guidance on following error when trying to install Broadcom rpm in Suse 9.1

jmclaine@linux:~> /usr/src/packages/SPECS
bash: /usr/src/packages/SPECS: is a directory
jmclaine@linux:~> cd /usr/src/packages
jmclaine@linux:/usr/src/packages> ls
BUILD RPMS SOURCES SPECS SRPMS
jmclaine@linux:/usr/src/packages> cd SPECS
jmclaine@linux:/usr/src/packages/SPECS> rpmbuild -bb bcm5700.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.19064
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf bcm5700-7.3.5
+ /bin/mkdir -p bcm5700-7.3.5
+ cd bcm5700-7.3.5
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/bcm5700-7.3.5.tgz
+ tar -xvvf -
-rw-r--r-- root/root 1935 2004-06-22 19:25:24 5701rls.c
-rw-r--r-- root/root 7954 2004-06-22 19:25:24 5701rls.h
-rw-r--r-- root/root 7243 2004-06-22 19:25:24 DISTRIB.TXT
-rw-r--r-- root/root 15153 2004-06-22 19:25:24 LICENSE
-rw-r--r-- root/root 4373 2004-06-22 19:25:24 Makefile
-rw-r--r-- root/root 19623 2004-06-22 19:25:24 README.TXT
-rw-r--r-- root/root 51001 2004-06-22 19:25:24 RELEASE.TXT
-rw-r--r-- root/root 14209 2004-06-22 19:25:24 autoneg.c
-rw-r--r-- root/root 14308 2004-06-22 19:25:24 autoneg.h
-rw-r--r-- root/root 25339 2004-06-22 19:25:24 b57diag.c
-rw-r--r-- root/root 17126 2004-06-22 19:25:24 b57proc.c
-rw-r--r-- root/root 134477 2004-06-22 19:25:24 b57um.c
-rw-r--r-- root/root 16831 2004-06-22 19:25:24 bcm5700.4
-rw-r--r-- root/root 2486 2004-06-22 19:25:24 bits.h
-rw-r--r-- root/root 13411 2004-06-22 19:25:24 fw_lso05.h
-rw-r--r-- root/root 24994 2004-06-22 19:25:24 fw_stkoffld.h
-rw-r--r-- root/root 19688 2004-06-22 19:25:24 lm.h
-rw-r--r-- root/root 14874 2004-06-22 19:25:24 mm.h
-rw-r--r-- root/root 8520 2004-06-22 19:25:24 nicext.h
-rw-r--r-- root/root 11780 2004-06-22 19:25:24 queue.h
-rw-r--r-- root/root 3941 2004-06-22 19:25:24 tcp_seg.c
-rw------- root/root 259456 2004-06-22 19:25:24 tigon3.c
-rw-r--r-- root/root 128738 2004-06-22 19:25:24 tigon3.h
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/bcm5700-7.3.5.tgz
+ tar -xvvf -
-rw-r--r-- root/root 1935 2004-06-22 19:25:24 5701rls.c
-rw-r--r-- root/root 7954 2004-06-22 19:25:24 5701rls.h
-rw-r--r-- root/root 7243 2004-06-22 19:25:24 DISTRIB.TXT
-rw-r--r-- root/root 15153 2004-06-22 19:25:24 LICENSE
-rw-r--r-- root/root 4373 2004-06-22 19:25:24 Makefile
-rw-r--r-- root/root 19623 2004-06-22 19:25:24 README.TXT
-rw-r--r-- root/root 51001 2004-06-22 19:25:24 RELEASE.TXT
-rw-r--r-- root/root 14209 2004-06-22 19:25:24 autoneg.c
-rw-r--r-- root/root 14308 2004-06-22 19:25:24 autoneg.h
-rw-r--r-- root/root 25339 2004-06-22 19:25:24 b57diag.c
-rw-r--r-- root/root 17126 2004-06-22 19:25:24 b57proc.c
-rw-r--r-- root/root 134477 2004-06-22 19:25:24 b57um.c
-rw-r--r-- root/root 16831 2004-06-22 19:25:24 bcm5700.4
-rw-r--r-- root/root 2486 2004-06-22 19:25:24 bits.h
-rw-r--r-- root/root 13411 2004-06-22 19:25:24 fw_lso05.h
-rw-r--r-- root/root 24994 2004-06-22 19:25:24 fw_stkoffld.h
-rw-r--r-- root/root 19688 2004-06-22 19:25:24 lm.h
-rw-r--r-- root/root 14874 2004-06-22 19:25:24 mm.h
-rw-r--r-- root/root 8520 2004-06-22 19:25:24 nicext.h
-rw-r--r-- root/root 11780 2004-06-22 19:25:24 queue.h
-rw-r--r-- root/root 3941 2004-06-22 19:25:24 tcp_seg.c
-rw------- root/root 259456 2004-06-22 19:25:24 tigon3.c
-rw-r--r-- root/root 128738 2004-06-22 19:25:24 tigon3.h
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 1000 = 0 ']'
++ /usr/bin/id -u
+ '[' 1000 = 0 ']'
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.19064
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /var/tmp/bcm5700-buildroot
++ dirname /var/tmp/bcm5700-buildroot
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/bcm5700-buildroot
+ cd bcm5700-7.3.5
+ make
make -C /lib/modules/2.6.4-52-smp/build SUBDIRS=/usr/src/packages/BUILD/bcm5700-7.3.5 modules
make: *** /lib/modules/2.6.4-52-smp/build: No such file or directory. Stop.
make: *** [default] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.19064 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.19064 (%build)
jmclaine@linux:/usr/src/packages/SPECS>

What can I do from here to get this thing going?? I looked at the directory path and the "build" file does exist after I execute the command. I also tried to run as "root" and recieved same error.

Thanks all.
:scratch:

toes 03-27-2005 04:58 PM

I had a similar issue and similar error when trying to compile modules for my webcam. As I recall, it had something to do with 'build' being either not symlinked or symlinked to the wrong location.

I just checked, and mine is linked to /usr/src/linux. You can check yours by issung
ls -l /lib/modules/<kernel version>/build
where <kernel version> is, according to your pasted text above, '2.6.4-52-smp'.

For reference, my output is
lrwxrwxrwx 1 root root 14 Mar 7 01:45 build -> /usr/src/linux/

If the link is not present or correct, it will give you some problems.

JMcLaine 03-30-2005 09:13 PM

Respnce to post
 
Thanks for helping the "linux challenged". I issued the ls -l command as you instructed and have the following output.

lrwxrwxrwx 1 root root 39 2005-03-27 15:13 build -> /usr/src/linux-2.6.5-7 .151-obj/i386/smp

What's my next step? This is certainly helping me learn. I'm grateful for your insight.


All times are GMT -5. The time now is 06:17 PM.