Error when compiling webcam driver - Suse 11.2 32bit
Linux - HardwareThis 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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.