ov51x-jpeg-source won't compile on karmic

Bug #486007 reported by Jarius
36
This bug affects 12 people
Affects Status Importance Assigned to Milestone
ov51x-jpeg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi there,

Unable to compile module ov51x-jpeg-source.

Maybe, because kernel-header file gspca.h has NULL byte size??

Tested on up2date karmic with all updates.
root@chaotiker87:~# lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
root@chaotiker87:~# apt-cache policy ov51x-jpeg-source
ov51x-jpeg-source:
  Installiert: 1.5.9-1
  Kandidat: 1.5.9-1
  Versions-Tabelle:
 *** 1.5.9-1 0
        500 http://de.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

compile errors from:

root@chaotiker87:~# module-assistant a-i ov51x-jpeg
# Build the module ▒
 │ /usr/bin/make KERNEL_DIR=/usr/src/linux KDIR=/usr/src/linux ▒
 │ KVERS=2.6.31-14-generic ▒
 │ make[2]: Betrete Verzeichnis '/usr/src/modules/ov51x-jpeg' ▒
 │ /usr/bin/make -C /usr/src/linux M=/usr/src/modules/ov51x-jpeg modules ▒
 │ make[3]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.31-14-generic' ▒
 │ CC [M] /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.o ▮
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: In function ▒
 │ ‘create_proc_ov511_cam’: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:677: error: implicit ▒
 │ declaration of function ‘info’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:681: error: ‘struct ▒
 │ proc_dir_entry’ has no member named ‘owner’
/usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:681: error: ‘struct ▒
 │ proc_dir_entry’ has no member named ‘owner’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:689: error: ‘struct ▒
 │ proc_dir_entry’ has no member named ‘owner’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:700: error: ‘struct ▒
 │ proc_dir_entry’ has no member named ‘owner’ ▮
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:712: error: ‘struct ▒
 │ proc_dir_entry’ has no member named ‘owner’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: In function ▒
 │ ‘proc_ov511_create’: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:766: error: ‘struct ▒
 │ proc_dir_entry’ has no member named ‘owner’
/usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: In function ▒
 │ ‘ov51x_clear_snapshot’: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:1691: error: implicit ▒
 │ declaration of function ‘warn’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: In function ▒
 │ ‘ov51x_v4l1_ioctl’: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6386: warning: passing ▒
 │ argument 1 of ‘video_usercopy’ from incompatible pointer type ▮
 │ include/media/v4l2-ioctl.h:298: note: expected ‘struct file *’ but ▒
 │ argument is of type ‘struct inode *’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6386: warning: passing ▒
 │ argument 2 of ‘video_usercopy’ makes integer from pointer without a cast
include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but ↑
 │ argument is of type ‘struct file *’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6386: warning: passing ▒
 │ argument 4 of ‘video_usercopy’ makes pointer from integer without a cast ▒
 │ include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but ▒
 │ argument is of type ‘long unsigned int’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6386: error: too many ▒
 │ arguments to function ‘video_usercopy’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: At top level: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6651: warning: ▒
 │ initialization from incompatible pointer type ▒
 │ make[4]: *** [/usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.o] Fehler 1 ▒
 │ make[3]: *** [_module_/usr/src/modules/ov51x-jpeg] Fehler 2 ▮
 │ make[3]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.31-14-generic' ▒
 │ make[2]: *** [all] Fehler 2

root@chaotiker87:~# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 004 Device 002: ID 0518:0002 EzKEY Corp. EZ-9900C Keyboard
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 06f8:3002 Guillemot Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@chaotiker87:~# tail -f /var/log/messages
Nov 20 19:56:49 chaotiker87 kernel: [ 2441.072031] usb 1-8: new high speed USB device using ehci_hcd and address 4
Nov 20 19:56:49 chaotiker87 kernel: [ 2441.206278] usb 1-8: configuration #1 chosen from 1 choice

root@chaotiker87:~# ls -al /usr/src/linux-headers-2.6.31-14-generic/include/config/usb/gspca
total 8
drwxr-xr-x 2 root root 4096 2009-11-15 15:19 .
drwxr-xr-x 38 root root 4096 2009-10-22 23:23 ..
-rw-r--r-- 1 root root 0 2009-10-16 20:09 conex.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 etoms.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 finepix.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 mars.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 mr97310a.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 ov519.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 ov534.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 pac207.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 pac7311.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 sn9c20x.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 sonixb.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 sonixj.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 spca500.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 spca501.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 spca505.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 spca506.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 spca508.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 spca561.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 sq905c.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 sq905.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 stk014.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 sunplus.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 t613.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 tv8532.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 vc032x.h
-rw-r--r-- 1 root root 0 2009-10-16 20:09 zc3xx.h

What happend to the header files?

Revision history for this message
cucujoidea (cucujoidea) wrote :

Same Problems here, for instance:

ov51x-jpeg-core.c:6434: error: implicit declaration of function ‘info’

by commenting out the PDBUG s and some other debug functionality, and adding some headers, the following problem remains:

rc = video_usercopy(inode, file, cmd, arg, ov51x_v4l1_ioctl_internal);
error: too many arguments to function ‘video_usercopy’

This could be connected to the problem:
http://readlist.com/lists/vger.kernel.org/linux-kernel/10/51849.html

The following appears in /var/log/messages, when the module is loaded:

Nov 27 19:21:23 de kernel: [ 4993.657566] Pid: 3767, comm: v4l_id Tainted: P (2.6.31-15-generic #50-Ubuntu) System Product Name
Nov 27 19:21:23 de kernel: [ 4993.657573] EIP: 0060:[<f81b31a7>] EFLAGS: 00010286 CPU: 0
Nov 27 19:21:23 de kernel: [ 4993.657587] EIP is at ov51x_v4l1_ioctl+0x7/0x30 [ov51x_jpeg]
Nov 27 19:21:23 de kernel: [ 4993.657593] EAX: 40048d5c EBX: 00000000 ECX: f99238d0 EDX: f81b31a0
Nov 27 19:21:23 de kernel: [ 4993.657598] ESI: f3cc1400 EDI: f4c9ec04 EBP: f3de5e48 ESP: f3de5e44
Nov 27 19:21:23 de kernel: [ 4993.657604] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Nov 27 19:21:23 d kernel: [ 4993.657618] 00000000 f3de5e5c f9923932 00000000 f575af40 00000000 f3de5e80 c01eaa5d
Nov 27 19:21:23 d kernel: [ 4993.657632] <0> f3cc1400 f60485b8 c0894300 00000000 f3cc1400 f60485b8 f69ed000 f3de5e9c
Nov 27 19:21:23 d kernel: [ 4993.657646] <0> c01e5a39 f353ca18 00000000 f353ca18 f3cc1400 f3de5ef0 f3de5eb8 c01e5c95
Nov 27 19:21:23 de kernel: [ 4993.657677] [<f9923932>] ? v4l2_open+0x62/0xa0 [videodev]
Nov 27 19:21:23 de kernel: [ 4993.657691] [<c01eaa5d>] ? chrdev_open+0xcd/0x190
Nov 27 19:21:23 de kernel: [ 4993.657699] [<c01e5a39>] ? __dentry_open+0xb9/0x230
Nov 27 19:21:23 de kernel: [ 4993.657707] [<c01e5c95>] ? nameidata_to_filp+0x55/0x70
Nov 27 19:21:23 de kernel: [ 4993.657715] [<c01ea990>] ? chrdev_open+0x0/0x190
Nov 27 19:21:23 de kernel: [ 4993.657723] [<c01f39ba>] ? do_filp_open+0x53a/0x890
Nov 27 19:21:23 de kernel: [ 4993.657732] [<c012d3cd>] ? kmap_atomic_prot+0xcd/0xf0
Nov 27 19:21:23 de kernel: [ 4993.657740] [<c01e57d0>] ? do_sys_open+0x50/0x150
Nov 27 19:21:23 de kernel: [ 4993.657747] [<c01e5939>] ? sys_open+0x29/0x40
Nov 27 19:21:23 de kernel: [ 4993.657755] [<c010336c>] ? syscall_call+0x7/0xb
Nov 27 19:21:23 de kernel: [ 4993.657858] ---[ end trace 445aa8a72c8c7ce3 ]

(and the camera doesnt work)

Thanks and regards,
Phonon

Revision history for this message
cucujoidea (cucujoidea) wrote :
Revision history for this message
cucujoidea (cucujoidea) wrote :

My camera works with XawTV, my problem turned out to be a skype problem, which was solved this way:

http://ubuntuforums.org/showthread.php?t=1318506&page=2#13

sh -c 'export XLIB_SKIP_ARGB_VISUALS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype'

Regards,
Phonon

Changed in ov51x-jpeg (Ubuntu):
status: New → Confirmed
Revision history for this message
Roland (r-poppi) wrote :

@Phonon

Solution works: Problem solved for me - thanks a lot

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.