LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 11-20-2009, 03:58 AM   #1
troublemaker05
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Rep: Reputation: 0
Error when compiling webcam driver - Suse 11.2 32bit


I'm running OpenSuse 11.2 32bit with KDE 4.3.1 "release 6" and kernel version 2.6.31.5-0.1-desktop

When I try to compile the webcam driver for my Creative VF0350 I get this error

Quote:
cellar:/home/gila/Downloads/ov51x-jpeg-1.5.9 # make
make -C /lib/modules/2.6.31.5-0.1-desktop/build M=/home/gila/Downloads/ov51x-jpeg-1.5.9 modules
make: *** /lib/modules/2.6.31.5-0.1-desktop/build: No such file or directory. Stop.
make: *** [all] Error 2
I had a look at the directory it couldn't find and it turns out to be a link to another directory, which does not exist.

Quote:
usr/src/linux-2.6.31.5-01-obj/i386/desktop
It's the linux-2.6.31.5-01-obj directory that's missing. I only have a linux-2.6.31.5-01 directory, but this does not contain a i386 folder.

I'm a newbie as far as compiling is concerned, therefore any help is greatly appreciated.
Many thanks in advance.
 
Old 11-20-2009, 04:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
# zypper in kernel-source

.. or use the Package Manager > Add / Remove Software .
( Or Yast2 )
 
Old 11-20-2009, 04:31 AM   #3
troublemaker05
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Nope, that's not it. :-( I already have it installed.
 
Old 11-20-2009, 08:33 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
Quote:
make: *** /lib/modules/2.6.31.5-0.1-desktop/build
No such file or directory
The symlink ' build ' must point to /usr/src/linux-2.6.31.5.....
i.e. the kernel-source ( or linux-2.6.31.5-01-obj may work.)
 
Old 11-20-2009, 09:01 AM   #5
troublemaker05
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy

Thanks for the quick reply. In the meantime I managed to totally mess up my system and did a quick re-install. I now have the proper build directory (with sub-directories) and the directory the link points to (/usr/src...) exists as well. But now I'm getting a totally different error.

Quote:
make -C /lib/modules/2.6.31.5-0.1-desktop/build M=/home/gila/Downloads/ov51x-jpeg-1.5.9 modules
make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop'
make -C ../../../linux-2.6.31.5-0.1 O=/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop/. modules
CC [M] /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘create_proc_ov511_cam’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:677: error: implicit declaration of function ‘info’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:681: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:689: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:700: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:712: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘proc_ov511_create’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:766: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘ov51x_clear_snapshot’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:1691: error: implicit declaration of function ‘warn’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘ov51x_v4l1_ioctl’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: warning: passing argument 1 of ‘video_usercopy’ from incompatible pointer type
/usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘struct file *’ but argument is of type ‘struct inode *’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: warning: passing argument 2 of ‘video_usercopy’ makes integer from pointer without a cast
/usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: warning: passing argument 4 of ‘video_usercopy’ makes pointer from integer without a cast
/usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but argument is of type ‘long unsigned int’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: error: too many arguments to function ‘video_usercopy’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: At top level:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6651: warning: initialization from incompatible pointer type
make[4]: *** [/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o] Error 1
make[3]: *** [_module_/home/gila/Downloads/ov51x-jpeg-1.5.9] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop'
make: *** [all] Error 2
I even tried running the "make" as su as well, exactly the same readout. Thanks for your help.
 
Old 11-20-2009, 01:05 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
The code : last update a year ago.

Patching may be required for 2.6.31.5 :
Arch patch ( one week old )
http://aur.archlinux.org/packages.php?ID=9861

Source + patch , Ubuntu Karmic
http://packages.ubuntu.com/lt/source/karmic/ov51x-jpeg
.....

Your thread in the Ubuntu Forum, april, says SOLVED ..
Solution is missing ... how did you do ? ?
.....
 
Old 11-20-2009, 01:32 PM   #7
troublemaker05
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply.

Hmm, on Suse 11.1 I didn't have to patch it at all. Anyway, I patched it, which worked fine, I typed "make" and got the same readout again. I'm a newbie to compiling, ie if it doesn't work, I'm stuck :-(


Quote:
make -C /lib/modules/2.6.31.5-0.1-desktop/build M=/home/gila/Downloads/ov51x-jpeg-1.5.9 modules
make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop'
make -C ../../../linux-2.6.31.5-0.1 O=/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop/. modules
CC [M] /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘create_proc_ov511_cam’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:677: error: implicit declaration of function ‘info’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:681: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:689: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:700: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:712: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘proc_ov511_create’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:766: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘ov51x_clear_snapshot’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:1691: error: implicit declaration of function ‘warn’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘ov51x_v4l1_ioctl’:
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6387: error: ‘inode’ undeclared (first use in this function)
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6387: error: (Each undeclared identifier is reported only once
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6387: error: for each function it appears in.)
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6387: warning: passing argument 2 of ‘video_usercopy’ makes integer from pointer without a cast
/usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6387: warning: passing argument 4 of ‘video_usercopy’ makes pointer from integer without a cast
/usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but argument is of type ‘long unsigned int’
/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6387: error: too many arguments to function ‘video_usercopy’
make[4]: *** [/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o] Error 1
make[3]: *** [_module_/home/gila/Downloads/ov51x-jpeg-1.5.9] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop'
make: *** [all] Error 2
your support is very much appreciated.
 
Old 11-20-2009, 01:49 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
OK , I will give it a try with 2.6.31.5 on Fedora 12.

I am out of CD-R's , can't burn the yesterday downloaded
iso until tomorrow.
 
Old 11-20-2009, 02:59 PM   #9
troublemaker05
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you very much knudfl! That's very nice of you.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Small error compiling modules ... for webcam? frenchn00b Linux - General 3 11-11-2008 01:12 PM
Compiling 32bit C++ on 64bit Linux linuxmthomson Programming 3 06-11-2008 06:05 PM
Compiling kernel for 32bit with an Athlon64 Sigmund Fraud Linux - General 1 02-10-2008 03:43 PM
BLKGETSIZE64 compiling error Gargnome Slack 10.2 Ker 2.6.17 Celeron 32bit 2.6Ghz Pier Slackware 9 11-05-2006 10:00 AM
Error installing Webcam driver coolfrog Linux - General 1 12-24-2004 11:33 AM


All times are GMT -5. The time now is 10:35 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration