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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-04-2008, 05:12 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2008
Posts: 3
Rep:
|
Webcam Issues
Hi fella's (and ladies should there be any present),
I've been an on'n'off Linux user for a couple of years now, but recently due to events i wont bore you with now, I've obtained a copy of Fedora core 9(i've always used some form of fedora, i like it...must be a hat thing). I managed to get the system updated, i have everything i need except one small issue, My webcam.
As I've said i have used Linux before and i have had my webcam working before, i used the gspca bundle(?)(through lack of a better word). However this time I am having issues building the thing. The first time i tried it complained about me not having the kernel source. That issue was resolved with a quick
Yum -y update --noplugins
But now when i try and build i get the following errors.
Code:
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/Muzu/Download/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.7-53.fc9.i686'
CC [M] /home/Muzu/Download/gspcav1-20071224/gspca_core.o
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/home/Muzu/Download/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/Muzu/Download/gspcav1-20071224/gspca_core.c: At top level:
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/Muzu/Download/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/Muzu/Download/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/Muzu/Download/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/Muzu/Download/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.7-53.fc9.i686'
make: *** [default] Error 2
I have tried removing the folder an re-downloading to ensure i didn't miss any files while untaring. Any help would be grand.
Oh and by the way, in case it matters at all I am on duel boot with windows vista, and the webcam is a Labtec webcam, the old model that they don't support any more..(bastards).
Thanks in advance, all the best
Mr.Muzu
|
|
|
|
12-04-2008, 08:20 AM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,808
|
Quote:
Originally Posted by muzu
Hi fella's (and ladies should there be any present),
I've been an on'n'off Linux user for a couple of years now, but recently due to events i wont bore you with now, I've obtained a copy of Fedora core 9(i've always used some form of fedora, i like it...must be a hat thing). I managed to get the system updated, i have everything i need except one small issue, My webcam.
Code:
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/Muzu/Download/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.7-53.fc9.i686'
CC [M] /home/Muzu/Download/gspcav1-20071224/gspca_core.o
/home/Muzu/Download/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
I have tried removing the folder an re-downloading to ensure i didn't miss any files while untaring. Any help would be grand.
|
As the error says, you're missing an include file. You need to install your kernel source, before you can compile a kernel module.
|
|
|
|
12-04-2008, 08:34 AM
|
#3
|
|
LQ Newbie
Registered: Dec 2008
Posts: 3
Original Poster
Rep:
|
thanks for the reply, but I already HAVE the kernel source, I used
yum -y install kernel-devel Kernel-headers
Yum did its thing and everything was installed happily, i had to set up a symbolic link to the right source path, for some reason fedora likes to keep the source somewhere different.
If i try installing gspca from yum, i get an error about dependencies, here i'll print it out.
Code:
[root@localhost etc]# yum install gspcav1
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package gspcav1.i386 0:1.00.20-4.fc9 set to be updated
--> Processing Dependency: gspcav1-kmdl-1.00.20-4.fc9 for package: gspcav1
--> Finished Dependency Resolution
gspcav1-1.00.20-4.fc9.i386 from atrpms has depsolving problems
--> Missing Dependency: gspcav1-kmdl-1.00.20-4.fc9 is needed by package gspcav1-1.00.20-4.fc9.i386 (atrpms)
Error: Missing Dependency: gspcav1-kmdl-1.00.20-4.fc9 is needed by package gspcav1-1.00.20-4.fc9.i386 (atrpms)
P.S. i'll try and install kernel source again.
|
|
|
|
12-04-2008, 09:38 AM
|
#4
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,808
|
Quote:
Originally Posted by muzu
thanks for the reply, but I already HAVE the kernel source, I used
yum -y install kernel-devel Kernel-headers
Yum did its thing and everything was installed happily, i had to set up a symbolic link to the right source path, for some reason fedora likes to keep the source somewhere different.
If i try installing gspca from yum, i get an error about dependencies, here i'll print it out.
Code:
[root@localhost etc]# yum install gspcav1
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package gspcav1.i386 0:1.00.20-4.fc9 set to be updated
--> Processing Dependency: gspcav1-kmdl-1.00.20-4.fc9 for package: gspcav1
--> Finished Dependency Resolution
gspcav1-1.00.20-4.fc9.i386 from atrpms has depsolving problems
--> Missing Dependency: gspcav1-kmdl-1.00.20-4.fc9 is needed by package gspcav1-1.00.20-4.fc9.i386 (atrpms)
Error: Missing Dependency: gspcav1-kmdl-1.00.20-4.fc9 is needed by package gspcav1-1.00.20-4.fc9.i386 (atrpms)
P.S. i'll try and install kernel source again.
|
Your errors are telling you what you need....have you tried to install the gspcav1-kmdl file referenced, before you install gspacv1?? Or install both? If you've got the kernel source, you shouldn't get the errors about the semaphore.h, unless there's a problem with the symlink you made, or it's looking in the wrong place....
|
|
|
|
12-04-2008, 09:48 AM
|
#5
|
|
LQ Newbie
Registered: Dec 2008
Posts: 3
Original Poster
Rep:
|
I fail to understand it then. I created the symbolic link exactly as the fedora documentation told me to. The devel and headers installed without error, and if i try using yum OR an rpm to install gspcav1-kmdl it says it can't find a dependency and lists the original file i tried to install, which leads me in a continuous loop, i buggered about for three hours last night trying to install this stuff. Im rapidly running out of idea's. Currently im toying with the idea of just starting again, and making sure the installer actually installs the kernel source (though im sure i did that last time)...
Any other ideas before i have to start again?
|
|
|
|
12-04-2008, 10:18 AM
|
#6
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,808
|
Quote:
Originally Posted by muzu
I fail to understand it then. I created the symbolic link exactly as the fedora documentation told me to. The devel and headers installed without error, and if i try using yum OR an rpm to install gspcav1-kmdl it says it can't find a dependency and lists the original file i tried to install, which leads me in a continuous loop, i buggered about for three hours last night trying to install this stuff. Im rapidly running out of idea's. Currently im toying with the idea of just starting again, and making sure the installer actually installs the kernel source (though im sure i did that last time)...
Any other ideas before i have to start again?
|
Yes...read the man page for RPM. Specifically, there's a no-dependency check install option, which will let you get out of the 'loop'. Try:
rpm -i --nodeps <package name> for the first package. The second should then have dependencies satisfied, and won't need the nodeps option. Only use the nodeps option if you're SURE you're in a loop, otherwise, it'll just shove things out there, whether they work or not....
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:18 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|