LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2011, 05:08 PM   #1
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Rep: Reputation: 0
Question Make error + Gspca error.


Code:
uname -a
Linux sok-HP-ProBook-4520s 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux

Code:
sok@sok-HP-ProBook-4520s:~/Downloads/gspca-2.9.51-vx1000-patch-20100712$ make
make -C /lib/modules/2.6.35-25-generic/build M=/home/sok/Downloads/gspca-2.9.51-vx1000-patch-20100712/build modules
make: *** /lib/modules/2.6.35-25-generic/build: No such file or directory.  Stop.
make: *** [modules] Error 2
What is the problem I face make error during several operations. what's wrong, please?

Last edited by MODYSAMA; 02-09-2011 at 07:41 AM.
 
Old 02-08-2011, 12:41 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Hi,

The build directory is a symlink to the kernel sources directory, so I guess you're missing the kernel-headers package of your distro
Code:
sudo apt-get install linux-headers-$(uname -r)
Regards
 
1 members found this post helpful.
Old 02-08-2011, 02:37 PM   #3
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Thanks, I did it.
But still error:
Quote:
root@sok-HP-ProBook-4520s:/home/sok/Downloads/gspcav1-20071224# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/sok/Downloads/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-25-generic'
CC [M] /home/sok/Downloads/gspcav1-20071224/gspca_core.o
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:54: fatal error: asm/semaphore.h: No such file or directory
compilation terminated.
make[2]: *** [/home/sok/Downloads/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/sok/Downloads/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-25-generic'
make: *** [default] Error 2
What is missing?!

Last edited by MODYSAMA; 02-08-2011 at 05:13 PM.
 
Old 02-08-2011, 03:15 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,620

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
Quote:
asm/semaphore.h: No such file or directory
'semaphore.h' has been moved from asm/ to linux/. ( No asm/ in 2.6.35 ).


This may work :
cd /usr/src/linux-headers-2.6.35-25-generic/include/
sudo mkdir asm
cd asm/
sudo ln -s ../linux/semaphore.h

..
 
1 members found this post helpful.
Old 02-08-2011, 03:44 PM   #5
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Exclamation

Hello,
I get the following. asm and semaphore.h are already exsists.
Code:
sok@sok-HP-ProBook-4520s:~$ cd /usr/src/linux-headers-2.6.35-25-generic/include/
sok@sok-HP-ProBook-4520s:/usr/src/linux-headers-2.6.35-25-generic/include$ sudo mkdir asm
[sudo] password for sok: 
mkdir: cannot create directory `asm': File exists
sok@sok-HP-ProBook-4520s:/usr/src/linux-headers-2.6.35-25-generic/include$ cd asm
bash: cd: asm: No such file or directory
sok@sok-HP-ProBook-4520s:/usr/src/linux-headers-2.6.35-25-generic/include$ sudo ln -s ../linux/semaphore.h
sok@sok-HP-ProBook-4520s:/usr/src/linux-headers-2.6.35-25-generic/include$ ls
acpi        config  generated  linux        mtd      rdma    semaphore.h  video
asm         crypto  Kbuild     math-emu     net      rxrpc   sound        xen
asm-generic drm     keys       media        pcmcia   scsi    trace

Last edited by MODYSAMA; 02-08-2011 at 03:47 PM.
 
Old 02-08-2011, 05:00 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Hi,

Why don't you edit /home/sok/Downloads/gspcav1-20071224/gspca_core.c and change:
Quote:
#include <asm/semaphore.h>
to just
Code:
#include <semaphore.h>
 
1 members found this post helpful.
Old 02-08-2011, 05:12 PM   #7
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Hello,
I tried it but I get the same error with the modified include.

Quote:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:54: fatal error: semaphore.h: No such file or directory
compilation terminated
 
Old 02-08-2011, 05:44 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Oups sorry, it should be:
Code:
#include <linux/semaphore.h>
 
1 members found this post helpful.
Old 02-08-2011, 06:22 PM   #9
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Ok, Thanks all for being helpful!
I did it. Progress with extra errors, unfortunately.
what is the missing?!!!

Code:
sok@sok-HP-ProBook-4520s:~/Downloads/gspcav1-20071224$ make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/sok/Downloads/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-25-generic'
  CC [M]  /home/sok/Downloads/gspcav1-20071224/gspca_core.o
In file included from /home/sok/Downloads/gspcav1-20071224/gspca_core.c:845:
/home/sok/Downloads/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/sok/Downloads/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/sok/Downloads/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/sok/Downloads/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/sok/Downloads/gspcav1-20071224/gspca_core.c:853:
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/sok/Downloads/gspcav1-20071224/gspca_core.c: In function ‘gspca_kill_transfert’:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:986: error: implicit declaration of function ‘usb_buffer_free’
/home/sok/Downloads/gspcav1-20071224/gspca_core.c: In function ‘gspca_init_transfert’:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:1030: error: implicit declaration of function ‘usb_buffer_alloc’
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:1035: warning: assignment makes pointer from integer without a cast
/home/sok/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/sok/Downloads/gspcav1-20071224/gspca_core.c: At top level:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/sok/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/sok/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/sok/Downloads/gspcav1-20071224/gspca_core.c:4301: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’
make[2]: *** [/home/sok/Downloads/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/sok/Downloads/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-25-generic'
make: *** [default] Error 2
 
Old 02-09-2011, 12:52 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Hi,

I guess the driver cannot be compiled against recent kernels.
Note that newer kernels already have a gspca module, so you can try it and see if it works with your hardware. Just run:
Code:
sudo modprobe gspca
Regards
 
1 members found this post helpful.
Old 02-09-2011, 04:57 AM   #11
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Hi,
I tried it but get error although the new kernel version !

Code:
sok@sok-HP-ProBook-4520s:/home/sok# uname -a
Linux sok-HP-ProBook-4520s 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux
sok@sok-HP-ProBook-4520s:~$ sudo su
root@sok-HP-ProBook-4520s:/home/sok# modprobe gspca
WARNING: All config files need .conf: /etc/modprobe.d/psmouse.modprobe, it will be ignored in a future release.
FATAL: Module gspca not found.
What shall I do, please?
 
Old 02-09-2011, 05:54 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Doh, take a look at this post, especially post #2
Maybe you need to use the gspca_main.ko module
Code:
sudo modprobe gspca_main
 
1 members found this post helpful.
Old 02-09-2011, 06:42 AM   #13
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
I saw that post it's same as my problem but in that post no replys.
I see that I have gspca_main..
Code:
root@sok-HP-ProBook-4520s:/home/sok# lsmod | grep gspca
gspca_main             23644  0 
videodev               43098  2 gspca_main,uvcvideo

Code:
root@sok-HP-ProBook-4520s:/home/sok# sudo m-a a-i gspca
gspca, what is gspca?
root@sok-HP-ProBook-4520s:/home/sok# sudo modprobe -l | grep gsp
kernel/drivers/media/video/gspca/gspca_main.ko
kernel/drivers/media/video/gspca/gspca_benq.ko
kernel/drivers/media/video/gspca/gspca_conex.ko
kernel/drivers/media/video/gspca/gspca_cpia1.ko
kernel/drivers/media/video/gspca/gspca_etoms.ko
kernel/drivers/media/video/gspca/gspca_finepix.ko
kernel/drivers/media/video/gspca/gspca_jeilinj.ko
kernel/drivers/media/video/gspca/gspca_mars.ko
kernel/drivers/media/video/gspca/gspca_mr97310a.ko
kernel/drivers/media/video/gspca/gspca_ov519.ko
kernel/drivers/media/video/gspca/gspca_ov534.ko
kernel/drivers/media/video/gspca/gspca_ov534_9.ko
kernel/drivers/media/video/gspca/gspca_pac207.ko
kernel/drivers/media/video/gspca/gspca_pac7302.ko
kernel/drivers/media/video/gspca/gspca_pac7311.ko
kernel/drivers/media/video/gspca/gspca_sn9c2028.ko
kernel/drivers/media/video/gspca/gspca_sn9c20x.ko
kernel/drivers/media/video/gspca/gspca_sonixb.ko
kernel/drivers/media/video/gspca/gspca_sonixj.ko
kernel/drivers/media/video/gspca/gspca_spca500.ko
kernel/drivers/media/video/gspca/gspca_spca501.ko
kernel/drivers/media/video/gspca/gspca_spca505.ko
kernel/drivers/media/video/gspca/gspca_spca506.ko
kernel/drivers/media/video/gspca/gspca_spca508.ko
kernel/drivers/media/video/gspca/gspca_spca561.ko
kernel/drivers/media/video/gspca/gspca_sq905.ko
kernel/drivers/media/video/gspca/gspca_sq905c.ko
kernel/drivers/media/video/gspca/gspca_sunplus.ko
kernel/drivers/media/video/gspca/gspca_stk014.ko
kernel/drivers/media/video/gspca/gspca_stv0680.ko
kernel/drivers/media/video/gspca/gspca_t613.ko
kernel/drivers/media/video/gspca/gspca_tv8532.ko
kernel/drivers/media/video/gspca/gspca_vc032x.ko
kernel/drivers/media/video/gspca/gspca_zc3xx.ko
kernel/drivers/media/video/gspca/m5602/gspca_m5602.ko
kernel/drivers/media/video/gspca/stv06xx/gspca_stv06xx.ko
kernel/drivers/media/video/gspca/gl860/gspca_gl860.ko
root@sok-HP-ProBook-4520s:/home/sok# sudo modprobe gspca
WARNING: All config files need .conf: /etc/modprobe.d/psmouse.modprobe, it will be ignored in a future release.
FATAL: Module gspca not found.
I wish find out what is the problem..

Last edited by MODYSAMA; 02-09-2011 at 06:45 AM.
 
Old 02-09-2011, 07:46 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Quote:
root@sok-HP-ProBook-4520s:/home/sok# sudo modprobe gspca
WARNING: All config files need .conf: /etc/modprobe.d/psmouse.modprobe, it will be ignored in a future release.
FATAL: Module gspca not found.
Try to load the gspca_main module since gspca does not exist. Run:
Code:
sudo modprobe gspca_main
 
1 members found this post helpful.
Old 02-09-2011, 08:01 AM   #15
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Question

Bathory Thanks in advance. Thanks for being helpfull.
I had tried it but still the problem.

Code:
root@sok-HP-ProBook-4520s:/home/sok# sudo modprobe gspca_main
WARNING: All config files need .conf: /etc/modprobe.d/psmouse.modprobe, it will be ignored ifuture release.
I can't ubderstand that error!
 
  


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
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 05:13 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM


All times are GMT -5. The time now is 01:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration