LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2003, 09:56 PM   #1
linman
Member
 
Registered: Aug 2003
Posts: 32

Rep: Reputation: 0
BCM V.92 56K Modem Mandrake 9.1 Driver?


Hello there!

I installed Mandrake 9.1 on my DELL Dimensions Desktop. Everyting worked fine until i tried to setup my internet connection no modem detected nor winmodem. I can see my modem in my pc hardware list but in module it says unknown. The issue here is i need a driver for my BCM V.92 56K Modem using Mandrake 9.1. i wonder if you or some one you know have succeded installing this kind of modem in Mandrake 9.1. If so please let me know were can i find the drivers and wich steps are necesary to set it up cause i am new at linux. By the way in Windows XP my modem appears like BCM V.92 56K and in Linux BCM V.90 56K if this matter. Also i got this data from the modems log ven_14e4&dev_4212&subsys_00011028.
Thanks to any one answers this thread, any help will be apreciated.
 
Old 09-08-2003, 06:56 PM   #2
linman
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 0
Hope This helps (This worked in mandrake linux 9.1 and 9.2 so far)

Hi If you are visiting this tread its maybe because you have been all around the net trying to find answers to your problem installing a BCM V.90 56k Modem. I hope this helps you and also hope some reply wheter it works for you or not.

1.-The very First thing you have to do is to install your kernel Sources provided in your 3rd. CD. Or download it from the net and then install it. You can find what your Kernel version is by typing uname -r in the terminal window.

2.-Once the Kernel Sources instaled download the file from the link http://www.cacs.louisiana.edu/~cxg97...4.19-6.src.rpm .

This driver is for RedHat 7.2/7.3 so we need to make the rpm for our kernel version.

3.- Open a terminal window, type su and when asked for password type de root password of your system. Move to the directory were you saved the uncompressed files and type rpmbuild --rebuild BCMSM-3.4.19-6.src.rpm (Don't worry about the error messages at this step ).

4.- Move to /usr/src/RPM/SPECS (cd /usr/src/RPM/SPECS), type chmod 666 BCMSM-3.4.19.spec this is to change the permissions of the file allowing us to modify it.

5.-Open the spec file BCMSM-3.4.19.spec with any text editor i used Kwrite, and replace all the references to 2.4.18-27.8.0 with your kernel version, in mi case it was 2.4.21-0.13mdk (The resulting of uname -r), then save the spec file with the changes you made (There must be 6 replaces).

6.- Make sure the symbolic link /dev/modem doesn't exist (ls -l /dev/modem), if it exists remove it by typing rm /dev/modem and answer yes when asked to remove. (This worked for me, i only had my BCM modem attached to my computer, if you have another modem be carefull.)

7.-Type rpmbuild -bb --target i686 BCMSM-3.4.19.spec while you are at /usr/src/RPM/SPECS. If all goes fine by now you must have the fileBCMSM-3.4.19-6.i686.rpm in the path /usr/src/RPM/RPMS/i686 (ls -l /usr/src/RPM/RPMS/i686)

8.- Move to /usr/src/RPM/RPMS/i686 and type rpm -ivh --replacepkgs BCMSM-3.4.19-6.i686.rpm, you will get something like this:
Preparing... ########################################### [100%]
1:BCMSM ########################################### [100%]
...thats it.
type ls -l /dev/modem and you have to see something like this lr-xr-xr-x 1 root root 11 sep 8 17:47 /dev/modem -> /dev/ttySM0. If you have it but it is backgrounded in red there must be a problem. In my system /dev/modem appears colored in light blue and /dev/ttySM0 in yellow. Now use kppp to setup your internet connection and thats it.
Again, I hope this helps you but i assume no responsability of anything taht could go wrong with your system, i repeat this worked for me but its not for sure it will work for you. I am posting this because it has been quite frustating having so many questions and no body answering them and want to share the little bit i learned the hard way from here and there. by the time i posted this my tread was visited 40 times and no replys from no body. If you find something wrong in this tutorial let me know.

Last edited by linman; 12-02-2003 at 04:07 PM.
 
Old 09-18-2003, 09:49 AM   #3
august_west
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake 9.1
Posts: 6

Rep: Reputation: 0
I, like you installed Mandrake 9.1 on my Dell PC and everything worked fine except the modem. I found your message yesterday and tried it last night. I think I did everything correctly but when I got to [step 7], I got an error when I typed
"rpmbuild -bb --target i686 BCMSM-3.4.19.spec".

I was at /usr/src/RPM/SPECS and I was logged in as "root".

The error I got was
"bash: rpmbuild: command not found".

Do you have any ideas of what caused the error?

Thanks

Last edited by august_west; 09-18-2003 at 11:31 AM.
 
Old 09-21-2003, 12:01 AM   #4
linman
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 0
Not much comes to my mind right now but i remember having that message when i typed a command that i knew linux had.
Try typing at the terminal window the command 'su' with no arguments and when asked for password "type the root password of your system". I know you were loged as root but give it a try any way. Let me know if worked or not.

Have fun...!
 
Old 09-22-2003, 09:07 AM   #5
august_west
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake 9.1
Posts: 6

Rep: Reputation: 0
Actually, I gave up on trying to get my modem to work and bought an external Best Data modem. It works great. Thanks for your help.
 
Old 09-25-2003, 09:38 PM   #6
Demonflyer
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Problems

hello Linman i recently read your post on linuxquestions.org about the BCM v.90 56k modem and found that i had a problem when i tried to do it. i followed your tutorial EXACTLY, and, trust me i didnt just try it once. i keep getting this error when i try the "rpmbuild -bb --target i686 BCMSM-3.4.19.spec" when im at /usr/src/RPM/SPECS.

*************************This is the error****************************

[root@localhost SPECS]# rpmbuild -bb --target i686 BCMSM-3.4.19.spec
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.50063
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x luisgm/games 0 2002-07-18 21:46:49 BCMSM-3.4.19/
-rwxr-xr-x luisgm/games 100087 2002-07-18 21:46:49 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x luisgm/games 20442 2002-07-18 21:46:49 BCMSM-3.4.19/lkvi.h
-rw-r--r-- luisgm/games 1109440 2002-07-18 21:46:49 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- luisgm/games 2377 2002-07-18 21:46:49 BCMSM-3.4.19/BCMSM-init-redhat
-rw-r--r-- luisgm/games 3252 2002-07-18 21:46:49 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- luisgm/games 39907 2002-07-18 21:46:49 BCMSM-3.4.19/INF2C.c
-rw-r--r-- luisgm/games 9641 2002-07-18 21:46:49 BCMSM-3.4.19/Makefile
-rw-r--r-- luisgm/games 3108 2002-07-18 21:46:49 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.50063
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.50063
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.21-0.13mdk KERNEL_DIR=/usr/src/linux RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
In file included from /usr/src/linux/include/linux/wait.h:13,
from /usr/src/linux/include/linux/fs.h:12,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:6,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/vmalloc.h:4,
from lkvi.c:160:
/usr/src/linux/include/linux/kernel.h:177:1: missing binary operator
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.50063 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.50063 (%install)

*****************************************************************

I dont understand why it keeps saying that. I am a complete NOOB at linux so im sorry if the solution to this problem is so obvious and its jus a waste of ur time to help me. Im pretty sure that i installed the kernel sources and all that kernel crap and the system stuff i need to do it right. at first i tried modifiing the spec file to what u told me to modifiy it as in ur tutorial. but i kept getting this error...

*****************************************************


[root@localhost SPECS]# rpmbuild -bb --target i686 BCMSM-3.4.19.spec
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.73176
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x luisgm/games 0 2002-07-18 21:46:49 BCMSM-3.4.19/
-rwxr-xr-x luisgm/games 100087 2002-07-18 21:46:49 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x luisgm/games 20442 2002-07-18 21:46:49 BCMSM-3.4.19/lkvi.h
-rw-r--r-- luisgm/games 1109440 2002-07-18 21:46:49 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- luisgm/games 2377 2002-07-18 21:46:49 BCMSM-3.4.19/BCMSM-init-redhat
-rw-r--r-- luisgm/games 3252 2002-07-18 21:46:49 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- luisgm/games 39907 2002-07-18 21:46:49 BCMSM-3.4.19/INF2C.c
-rw-r--r-- luisgm/games 9641 2002-07-18 21:46:49 BCMSM-3.4.19/Makefile
-rw-r--r-- luisgm/games 3108 2002-07-18 21:46:49 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.73176
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.73176
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.21-0.13mdk KERNEL_DIR=/usr/src/include/linux-$k RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
In file included from lkvi.c:14:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from lkvi.c:22:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from lkvi.c:22:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from lkvi.c:22:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
lkvi.c:49:2: #error This driver compiles only for Linux versions 2.0.0 and later
In file included from /usr/include/linux/wait.h:13,
from /usr/include/linux/fs.h:11,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:6,
from /usr/include/linux/sched.h:8,
from /usr/include/linux/mm.h:4,
from lkvi.c:155:
/usr/include/linux/kernel.h:177:1: missing binary operator
In file included from lkvi.c:156:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
lkvi.c:563:26: linux/bios32.h: No such file or directory
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.73176 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.73176 (%install)

*************************************************************


So then i just tried modifying the hell out of that spec file but that didnt help any. then i went online at my neighbors and tried to find a soloution to my problem and i couldnt find anything that would make it work on my system. after that i noticed that in the begining of the first error that i had it said that the kernel dir was "/usr/src/include/linux-$k"
and i noticed that my kernel dir was "/usr/src/linux/" so i just put that in and it looked like everything was gunna be ok and then at the bottom it gave me this crap at the end again.

*************************************************************
/usr/src/linux/include/linux/kernel.h:177:1: missing binary operator
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.50063 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.50063 (%install)
*************************************************************

This pisses me off so freaking much!!! i really would like to go online with my comp and i would like to avoid having to go out and buying another modem unless i absolutly have to, cuz money is always a problem with me. Dailup access is the only i-net access we have here (i live in the sticks) so i cant go for cable or anything like that.

plz, if you have any suggestions or anything that would help me that would be awsome.


P.S.-- i dont know if u can do this or if it will even work... but if you have a copy of the RPM that is for the mandrake Kernel (my kernel is 2.4.21-0.13mdk) could you email it to me? so i could just bypass the step that doesnt work.

My email is demonflyer@hotmail.com

************************
Thank you for anything *
that you could do to *
help me on this!! *
************************
 
Old 09-27-2003, 12:34 AM   #7
linman
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 0
Hi demonflyer!
I apologize for the inconvenients this has caused to you. Actually there was something wrong in the tutorial and I have corrected it (check the step number 2) everyting else is ok and as i posted before is what worked on my system. Again i apologize and understand your frustration since I my self felt that way when there was and still are many questions about Linux and too little answers or none at all. So i am trying to change that by sharing the tiny piece of knowledge i have aquired by consulting diferent forums and putting all that together. You will be receiving de rpm file with the correct instructions to install it shortly and shortly i hope you will be surfing the net with your mandrake.
Have fun.
 
Old 09-28-2003, 08:45 PM   #8
Demonflyer
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Talking Thank You

Linman,

I got ur email and everything worked perfectly!!! I thank you very much for your help on this. i am so happy that i can finally go online at home again!




~Demonflyer~
 
Old 10-04-2003, 09:26 PM   #9
runn
LQ Newbie
 
Registered: Sep 2003
Distribution: 9.1
Posts: 1

Rep: Reputation: 0
Hi Lyman,
Could you e-mail me whatever you sent Demonflyer to get his modem working. runn@sover.net
Please Tell me what I am doing wrong.


First error:
[root@localhost bcm4212-source]# rpmbuild --rebuild BCMSM-3.4.19-6.src.rpm
Installing BCMSM-3.4.19-6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.88314
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x luisgm/games 0 2002-07-18 23:46:49 BCMSM-3.4.19/
-rwxr-xr-x luisgm/games 100087 2002-07-18 23:46:49 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x luisgm/games 20442 2002-07-18 23:46:49 BCMSM-3.4.19/lkvi.h
-rw-r--r-- luisgm/games 1109440 2002-07-18 23:46:49 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- luisgm/games 2377 2002-07-18 23:46:49 BCMSM-3.4.19/BCMSM-init-redhat
-rw-r--r-- luisgm/games 3252 2002-07-18 23:46:49 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- luisgm/games 39907 2002-07-18 23:46:49 BCMSM-3.4.19/INF2C.c
-rw-r--r-- luisgm/games 9641 2002-07-18 23:46:49 BCMSM-3.4.19/Makefile
-rw-r--r-- luisgm/games 3108 2002-07-18 23:46:49 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.88314
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.88314
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.9-e.3 KERNEL_DIR=/usr/src/kernel_headers/linux-2.4.9-e.3 RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
In file included from lkvi.c:14:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from lkvi.c:22:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from lkvi.c:22:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from lkvi.c:22:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
lkvi.c:49:2: #error This driver compiles only for Linux versions 2.0.0 and later
In file included from /usr/include/linux/wait.h:13,
from /usr/include/linux/fs.h:11,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:6,
from /usr/include/linux/sched.h:8,
from /usr/include/linux/mm.h:4,
from lkvi.c:155:
/usr/include/linux/kernel.h:177:1: missing binary operator
In file included from lkvi.c:156:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
lkvi.c:563:26: linux/bios32.h: No such file or directory
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.88314 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.88314 (%install)
[root@localhost bcm4212-source]#




EDITED BCMSM-3.4.19.scr.rpm

Summary: BCM V.92 56K Modem kernel module.
Name: BCMSM
Vendor: Broadcom Corporation
Version: 3.4.19
Release: 6
Source: BCMSM-3.4.19.tar.gz
Copyright: Commercial
Group: System Environment/Kernel
Provides: BCMSM


%description
This package contains the BCM V.92 56K Modem module compiled
for kernel versions 2.4.21-0.13mdk 2.4.21-0.13mdksmp 2.4.21-0.13mdkenterprise 2.4.21-0.13mdksummit .

%prep
%setup

%build

%install
for k in 2.4.21-0.13mdk 2.4.21-0.13mdksmp 2.4.21-0.13mdkenterprise 2.4.21-0.13mdksummit ; do
make clean
make install KERNEL_VERSION=$k KERNEL_DIR=/usr/src/kernel_headers/linux-$k RPM=1 INSTALL_ROOT=$RPM_BUILD_ROOT
done

%clean

%pre
set allow_null_glob_expansion;

#Unload device if present
if lsmod | grep -q BCMSM ; then
rmmod BCMSM 2>&1 > /dev/null
fi

ok=0
for v in 2.4.21-0.13mdk 2.4.21-0.13mdksmp 2.4.21-0.13mdkenterprise 2.4.21-0.13mdksummit ; do
if [ "`uname -r`" == $v ] ; then ok=1 ; fi
done;
#Disable this check by OEM request.
ok=1
if [ $ok == 0 ] ; then
echo "error: the installed kernel is `uname -r` but this package requires one of the following kernels: 2.4.21-0.13mdk 2.4.21-0.13mdksmp 2.4.21-0.13mdkenterprise 2.4.21-0.13mdksummit "
exit -1
fi



%post

/sbin/depmod -a

for v in 2.4.21-0.13mdk 2.4.21-0.13mdksmp 2.4.21-0.13mdkenterprise 2.4.21-0.13mdksummit ; do
if [ "`uname -r`" == $v ] ; then
/etc/rc.d/init.d/BCMSM start 2>&1 > /dev/null
break
fi
done;

if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --add BCMSM
fi

#If chkconfig fails setup links manually
if [ "`echo /etc/rc.d/rc[12345].d`" != '/etc/rc.d/rc[12345].d' ]; then
for RCDIR in /etc/rc.d/rc[12345].d; do
if [ ! -e $RCDIR/S99BCMSM ]; then
ln -s /etc/rc.d/init.d/BCMSM $RCDIR/S99BCMSM
fi
done
fi
if [ "`echo /etc/rc.d/rc[06].d`" != '/etc/rc.d/rc[06].d' ]; then
for RCDIR in /etc/rc.d/rc[06].d; do
if [ ! -e $RCDIR/K01BCMSM ]; then
ln -s /etc/rc.d/init.d/BCMSM $RCDIR/K01BCMSM
fi
done
fi

#Back up previous /dev/modem
if [ "`echo /dev/modem*`" != '/dev/modem*' ] ; then
mv /dev/modem /dev/BCMSM_old_modem_link ;
fi
ln -s /dev/ttySM0 /dev/modem


%preun
set allow_null_glob_expansion;

if [ -x /sbin/chkconfig ] ; then
if /sbin/chkconfig --list | grep -q BCMSM ; then
/sbin/chkconfig --del BCMSM
fi
fi

#In case chkconfig fails and doesnt remove links
if [ "`echo /etc/rc.d/rc[12345].d`" != '/etc/rc.d/rc[12345].d' ]; then
for RCDIR in /etc/rc.d/rc[12345].d; do
rm -f $RCDIR/S99BCMSM;
done;
fi;
if [ "`echo /etc/rc.d/rc[06].d`" != '/etc/rc.d/rc[06].d' ]; then
for RCDIR in /etc/rc.d/rc[06].d; do
rm -f $RCDIR/K01BCMSM;
done;
fi;

if [ "`echo /dev/BCMSM_old_modem_link*`" != '/dev/BCMSM_old_modem_link*' ] ; then
rm -f /dev/modem
mv -f /dev/BCMSM_old_modem_link /dev/modem ;
fi

rm -f /dev/ttySM*
rm -f /etc/BCMSM.conf
rm -f /var/lock/subsys/BCMSM

if lsmod | grep -q BCMSM ; then
rmmod BCMSM
fi

exit 0

%postun

/sbin/depmod -a

exit 0

%files
%defattr(-,root,root)
/lib/modules/2.4.21-0.13mdk/misc/BCMSM.o
/lib/modules/2.4.21-0.13mdksmp/misc/BCMSM.o
/lib/modules/2.4.21-0.13mdkenterprise/misc/BCMSM.o
/lib/modules/2.4.21-0.13mdksummit/misc/BCMSM.o

/etc/rc.d/init.d/BCMSM

%changelog
*Fri May 17 2002 Luis Gutierrez <luisgm@broadcom.com>
-First revision




ERROR2

[root@localhost SPECS]# rpmbuild -bb --target athlon BCMSM-3.4.19.spec
Building target platforms: athlon
Building for target athlon
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.24203
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x luisgm/games 0 2002-07-18 23:46:49 BCMSM-3.4.19/
-rwxr-xr-x luisgm/games 100087 2002-07-18 23:46:49 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x luisgm/games 20442 2002-07-18 23:46:49 BCMSM-3.4.19/lkvi.h
-rw-r--r-- luisgm/games 1109440 2002-07-18 23:46:49 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- luisgm/games 2377 2002-07-18 23:46:49 BCMSM-3.4.19/BCMSM-init-redhat
-rw-r--r-- luisgm/games 3252 2002-07-18 23:46:49 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- luisgm/games 39907 2002-07-18 23:46:49 BCMSM-3.4.19/INF2C.c
-rw-r--r-- luisgm/games 9641 2002-07-18 23:46:49 BCMSM-3.4.19/Makefile
-rw-r--r-- luisgm/games 3108 2002-07-18 23:46:49 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.24203
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.24203
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.21-0.13mdk KERNEL_DIR=/usr/src/kernel_headers/linux-2.4.21-0.13mdk RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
In file included from lkvi.c:14:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from lkvi.c:22:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from lkvi.c:22:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from lkvi.c:22:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
lkvi.c:49:2: #error This driver compiles only for Linux versions 2.0.0 and later
In file included from /usr/include/linux/wait.h:13,
from /usr/include/linux/fs.h:11,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:6,
from /usr/include/linux/sched.h:8,
from /usr/include/linux/mm.h:4,
from lkvi.c:155:
/usr/include/linux/kernel.h:177:1: missing binary operator
In file included from lkvi.c:156:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
lkvi.c:563:26: linux/bios32.h: No such file or directory
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.24203 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.24203 (%install)
[root@localhost SPECS]#


Last edited by runn; 10-07-2003 at 05:54 PM.
 
Old 10-08-2003, 06:14 PM   #10
zebra5
LQ Newbie
 
Registered: Oct 2003
Distribution: mandrake 9.1
Posts: 7

Rep: Reputation: 0
Question

Linman,

I have also some problems as runn, demonflyer...
It seems you find something wrong in your tutorial
Could you tell us more?

My email: b_m_75@hotmail.com
 
Old 10-09-2003, 07:39 PM   #11
linman
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 0
It seems you find something wrong in your tutorial

yes, please take it easy, i am working on this again. You'll have an answer shortly.
 
Old 10-09-2003, 09:37 PM   #12
linman
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 0
The answer

First, I apologize again but i will not send any rpm since the main idea of this tutorial is to share some knowledge and even when i am not an expert at Linux (i am a newbie as several of you) I will try to fix all bugs and errors you find in this tutorial based in the experiences i have had with Linux in order to make it functional, also i think you deserve at least an explanation of what went wrong ..
As I said before i visited several forums and web pages in order to get my modem working, during this jumps from a site to another, i picked diferent versions of the same driver but with the same name, so when at least the modem finally worked I started writing the tutorial but in the process I posted the link to Dell's driver instead of the link to the driver that worked for Me (Please if you are still interested check again the tutorial and download the right driver from the edited link -note that it is not from Dell-). I must say that now I uninstalled my modem, downloaded the src.rpm file, and i succesfully uninstalled/installed the modem 3 times with that driver and the tutorial. Also i tried to install with the previous driver from Dell having the same errors you got so i can tell you for sure that the problem this time was with the driver.
 
Old 10-19-2003, 08:34 PM   #13
banjobacon
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Thanks for the tutorial linman. It kinda works for me, and was wondering if you or anyone else could help me out with what's wrong. When I do step 8, I get the following:

Preparing... ########################################### [100%]
1:BCMSM ########################################### [100%]
depmod: *** Unresolved symbols in /lib/modules/2.4.21-0.13mdk/kernel/drivers/char/536ep.o
depmod: *** Unresolved symbols in /lib/modules/2.4.21-0.13mdk/kernel/drivers/char/536epcore.o

I can use the modem fine after this, but after a reboot, /dev/modem points back to the old modem. Even if i try pointing kppp to the new modem, it won't work, and I have to reinstall the RPM.

What's wrong?
 
Old 10-23-2003, 06:05 PM   #14
zebra5
LQ Newbie
 
Registered: Oct 2003
Distribution: mandrake 9.1
Posts: 7

Rep: Reputation: 0
I downloaded the driver from the link http://www.cacs.louisiana.edu/~cxg9....4.19-6.src.rpm
(not the Dell driver).
I still got errors:

STEP 3
[root@localhost BCM_last]# rpmbuild --rebuild BCMSM-3.4.19-6.src.rpm
Installing BCMSM-3.4.19-6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.74744
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root 0 2003-04-06 19:35:27 BCMSM-3.4.19/
-rwxr-xr-x root/root 100322 2003-04-06 19:35:27 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x root/root 20442 2003-04-06 19:35:27 BCMSM-3.4.19/lkvi.h
-rw-r--r-- root/root 1109440 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- root/root 2377 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM-init-redha
t
-rw-r--r-- root/root 3252 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- root/root 39907 2003-04-06 19:35:27 BCMSM-3.4.19/INF2C.c
-rw-r--r-- root/root 9788 2003-04-06 19:35:27 BCMSM-3.4.19/Makefile
-rw-r--r-- root/root 485 2003-04-06 19:35:27 BCMSM-3.4.19/ChangeLog
-rw-r--r-- root/root 2957 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM-3.4.19.spe
c.template
-rw-r--r-- root/root 3150 2003-04-06 19:35:27 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.16931
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.16931
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.18-27.8.0 KERNEL_DIR=/usr/src/linux-2.4.18-27.
8.0 RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
gcc -minline-all-stringops -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.18-27.8.0
/include -O2 -o lkvi.o -c lkvi.c
In file included from lkvi.c:15:
/usr/include/linux/version.h:2:2: #error "======================================
================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l
inux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of
kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro
m a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended
by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may
not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should
only be"
/usr/include/linux/version.h:10:2: #error "included via other system header file
s - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include
<linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the
following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exis
ts and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directo
ry"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t
o"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/incl
ude/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t
he following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct
include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/in
clude"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordi
ngly."
/usr/include/linux/version.h:35:2: #error "=====================================
=================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from lkvi.c:25:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (no
t in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from lkvi.c:25:
/usr/include/linux/version.h:2:2: #error "======================================
================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l
inux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of
kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro
m a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended
by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may
not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should
only be"
/usr/include/linux/version.h:10:2: #error "included via other system header file
s - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include
<linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the
following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exis
ts and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directo
ry"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t
o"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/incl
ude/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t
he following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct
include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/in
clude"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordi
ngly."
/usr/include/linux/version.h:35:2: #error "=====================================
=================="
In file included from lkvi.c:25:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only on
ce
/usr/include/linux/module.h:433: for each function it appears in.)
lkvi.c:53:2: #error This driver compiles only for Linux versions 2.0.0 and later
In file included from lkvi.c:163:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated,
use linux/slab.h instead.
lkvi.c: In function `lkvi_use_lock_init_unused':
lkvi.c:269: incompatible types in assignment
lkvi.c:574:26: linux/bios32.h: No such file or directory
lkvi.c: In function `lkvi_wait_queue_sleep':
lkvi.c:675: warning: passing arg 1 of `sleep_on' from incompatible pointer type
lkvi.c: In function `lkvi_wait_queue_sleep_interruptible':
lkvi.c:685: warning: passing arg 1 of `interruptible_sleep_on' from incompatible
pointer type
lkvi.c: In function `lkvi_wait_queue_wake':
lkvi.c:695: warning: passing arg 1 of `__wake_up' from incompatible pointer type
lkvi.c: In function `lkvi_wait_queue_wake_interruptible':
lkvi.c:705: warning: passing arg 1 of `__wake_up' from incompatible pointer type
lkvi.c: In function `lkvi_tty_driver__write':
lkvi.c:945: `VERIFY_READ' undeclared (first use in this function)
lkvi.c: In function `lkvi_tty_driver__ioctl':
lkvi.c:1158: `VERIFY_WRITE' undeclared (first use in this function)
lkvi.c:1181: `VERIFY_READ' undeclared (first use in this function)
lkvi.c: In function `lkvi_char_device__read':
lkvi.c:2359: `VERIFY_WRITE' undeclared (first use in this function)
lkvi.c: In function `lkvi_char_device__write':
lkvi.c:2395: `VERIFY_READ' undeclared (first use in this function)
lkvi.c: At top level:
lkvi.c:2413: parse error before "select_table"
lkvi.c: In function `lkvi_char_device__select':
lkvi.c:2421: `filp' undeclared (first use in this function)
lkvi.c:2433: `mode' undeclared (first use in this function)
lkvi.c:2439: `table' undeclared (first use in this function)
lkvi.c: In function `lkvi_char_device_init':
lkvi.c:2575: warning: assignment from incompatible pointer type
lkvi.c:2576: warning: assignment from incompatible pointer type
lkvi.c:2578: structure has no member named `select'
lkvi.c:2582: warning: assignment from incompatible pointer type
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from lkvi.c:2822:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in
a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from lkvi.c:2822:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from lkvi.c:2822:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
lkvi.c: In function `lkvi_atomic_int_init':
lkvi.c:2938: incompatible types in assignment
lkvi.c: In function `lkvi_atomic_int_get':
lkvi.c:2949: incompatible types in return
lkvi.c: In function `lkvi_atomic_int_set':
lkvi.c:2959: incompatible types in assignment
lkvi.c: In function `lkvi_is_signal_pending':
lkvi.c:3663: structure has no member named `signal'
lkvi.c:3663: wrong type argument to bit-complement
make: *** [lkvi.o] Erreur 1
error: Bad exit status from /var/tmp/rpm-tmp.16931 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.16931 (%install)
[root@localhost BCM_last]#

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
STEP 7:

[root@localhost SPECS]# rpmbuild -bb --target i686 BCMSM-3.4.19.spec
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8856
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root 0 2003-04-06 19:35:27 BCMSM-3.4.19/
-rwxr-xr-x root/root 100322 2003-04-06 19:35:27 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x root/root 20442 2003-04-06 19:35:27 BCMSM-3.4.19/lkvi.h
-rw-r--r-- root/root 1109440 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- root/root 2377 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM-init-redhat
-rw-r--r-- root/root 3252 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- root/root 39907 2003-04-06 19:35:27 BCMSM-3.4.19/INF2C.c
-rw-r--r-- root/root 9788 2003-04-06 19:35:27 BCMSM-3.4.19/Makefile
-rw-r--r-- root/root 485 2003-04-06 19:35:27 BCMSM-3.4.19/ChangeLog
-rw-r--r-- root/root 2957 2003-04-06 19:35:27 BCMSM-3.4.19/BCMSM-3.4.19.spec.template
-rw-r--r-- root/root 3150 2003-04-06 19:35:27 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8856
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.8856
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.21-0.13mdk KERNEL_DIR=/usr/src/linux-2.4.21-0.13mdk RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
gcc -minline-all-stringops -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.21-0.13mdk/include -O2 -o lkvi.o -c lkvi.c
In file included from lkvi.c:15:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from lkvi.c:25:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from lkvi.c:25:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from lkvi.c:25:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
lkvi.c:53:2: #error This driver compiles only for Linux versions 2.0.0 and later
In file included from lkvi.c:163:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
lkvi.c: In function `lkvi_use_lock_init_unused':
lkvi.c:269: incompatible types in assignment
lkvi.c:574:26: linux/bios32.h: No such file or directory
lkvi.c: In function `lkvi_wait_queue_sleep':
lkvi.c:675: warning: passing arg 1 of `sleep_on' from incompatible pointer type
lkvi.c: In function `lkvi_wait_queue_sleep_interruptible':
lkvi.c:685: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
lkvi.c: In function `lkvi_wait_queue_wake':
lkvi.c:695: warning: passing arg 1 of `__wake_up' from incompatible pointer type
lkvi.c: In function `lkvi_wait_queue_wake_interruptible':
lkvi.c:705: warning: passing arg 1 of `__wake_up' from incompatible pointer type
lkvi.c: In function `lkvi_tty_driver__write':
lkvi.c:945: `VERIFY_READ' undeclared (first use in this function)
lkvi.c: In function `lkvi_tty_driver__ioctl':
lkvi.c:1158: `VERIFY_WRITE' undeclared (first use in this function)
lkvi.c:1181: `VERIFY_READ' undeclared (first use in this function)
lkvi.c: In function `lkvi_char_device__read':
lkvi.c:2359: `VERIFY_WRITE' undeclared (first use in this function)
lkvi.c: In function `lkvi_char_device__write':
lkvi.c:2395: `VERIFY_READ' undeclared (first use in this function)
lkvi.c: At top level:
lkvi.c:2413: parse error before "select_table"
lkvi.c: In function `lkvi_char_device__select':
lkvi.c:2421: `filp' undeclared (first use in this function)
lkvi.c:2433: `mode' undeclared (first use in this function)
lkvi.c:2439: `table' undeclared (first use in this function)
lkvi.c: In function `lkvi_char_device_init':
lkvi.c:2575: warning: assignment from incompatible pointer type
lkvi.c:2576: warning: assignment from incompatible pointer type
lkvi.c:2578: structure has no member named `select'
lkvi.c:2582: warning: assignment from incompatible pointer type
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from lkvi.c:2822:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from lkvi.c:2822:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from lkvi.c:2822:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
lkvi.c: In function `lkvi_atomic_int_init':
lkvi.c:2938: incompatible types in assignment
lkvi.c: In function `lkvi_atomic_int_get':
lkvi.c:2949: incompatible types in return
lkvi.c: In function `lkvi_atomic_int_set':
lkvi.c:2959: incompatible types in assignment
lkvi.c: In function `lkvi_is_signal_pending':
lkvi.c:3663: structure has no member named `signal'
lkvi.c:3663: wrong type argument to bit-complement
make: *** [lkvi.o] Erreur 1
error: Bad exit status from /var/tmp/rpm-tmp.8856 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.8856 (%install)

Thanks for your help !
 
Old 10-23-2003, 10:52 PM   #15
linman
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 0
Hi guys
The driver should be working by now so what we can do now is
1. Make shure you have your kernel sources installed (you must have a symbolic link "/usr/src/linux" pointing to your sources for the apropiate kernel version). banjobacon, since you have your modem already installed this may not apply to you.
2. Remove any bcm modem previous driver installed in your system since this could be a point of conflict and try the installation again.
3. Remove any file generate when you perform steps 3 and 6 and try the installation again.
If you try again the installation remember to remove the /dev/modem symbolic link
The object of this is obviously first be sure you have your kernel sources and second try to make a fresh installation since there could be older drivers/files messing the install process.

Please guys note that this are only sugestions that i make based in the info you are providing and only you have the decision to try them so any damage or loss of data in your computer is your sole responsability.
Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need drivers 4 BCM V.90 56K Modem bobFz Linux - Hardware 4 06-27-2005 07:56 AM
BCM V.92 56K modem on RH9 pqb Linux - Laptop and Netbook 5 04-24-2004 12:00 PM
Mandrake 9.2 Broadcom (BCM) modem driver?? Nilihanth Mandriva 2 11-07-2003 10:19 PM
Mandrake 9.1 With BCM V.90 56K HARDWARE Modem Sno Linux - Hardware 21 09-08-2003 07:11 PM
BCM v.90 56k modem in Mandrake 9.1 SMACK Linux - Hardware 2 09-08-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration