Can I build ov51x-jpeg-source against kernel-2.6.27 ?

Asked by David Hugh-Jones

I have a Creative Webcam (ID 041e:4068) and need the ov51x-jpeg-source to make it work. Using module-assistant I can successfluly build it against the 2.6.24 kernel, but building against 2.6.27 fails as follows:

make[2]: Entering directory `/usr/src/modules/ov51x-jpeg'
 │ /usr/bin/make -C /usr/src/linux M=/usr/src/modules/ov51x-jpeg modules
 │ make[3]: Entering directory `/usr/src/linux-headers-2.6.27-1-generic' ▒
 │ CC [M] /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.o ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:115:27: error: ▒
 │ asm/semaphore.h: No such file or directory ▮
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: In function ▒
 │ ‘ov51x_v4l1_ioctl’: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6382: error: implicit ▒
 │ declaration of function ‘video_usercopy’ ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: At top level:
 /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6637: error: unknown field ↑
 │ ‘owner’ specified in initializer ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6637: warning: ▒
 │ initialization from incompatible pointer type ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:6639: error: unknown field ▒
 │ ‘type’ specified in initializer ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c: In function ‘ov51x_probe’: ▒
 │ /usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.c:8368: error: incompatible ▒
 │ types in assignment ▒
 │ make[4]: *** [/usr/src/modules/ov51x-jpeg/ov51x-jpeg-core.o] Error 1 ▒
 │ make[3]: *** [_module_/usr/src/modules/ov51x-jpeg] Error 2 ▒
 │ make[3]: Leaving directory `/usr/src/linux-headers-2.6.27-1-generic' ▒
 │ make[2]: *** [all] Error 2 ▮
 │ make[2]: Leaving directory `/usr/src/modules/ov51x-jpeg' ▒
 │ make[1]: *** [binary-modules] Error 2
 make[1]: Leaving directory `/usr/src/modules/ov51x-jpeg' ▒
 │ make: *** [kdist_build] Error 2

Has anyone successfully built this against a new kernel?

Cheers
David

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
vovans (vovans-rnd) said :
#1

~/svn/wcam/trunk# make clean && make all
rm -rf .*.cmd *.mod.c *.ko *.o .tmp_versions Module.symvers *~ core *.i *.cmd .ov51x-jpeg-core.o.d
make -C /lib/modules/2.6.27-rc5-git1/build M=/root/svn/wcam/trunk modules
make[1]: Entering directory `/usr/src/linux-2.6.27-rc5'
  CC [M] /root/svn/wcam/trunk/ov51x-jpeg-core.o
/root/svn/wcam/trunk/ov51x-jpeg-core.c: In function 'ov51x_v4l1_ioctl':
/root/svn/wcam/trunk/ov51x-jpeg-core.c:6382: error: implicit declaration of function 'video_usercopy'
/root/svn/wcam/trunk/ov51x-jpeg-core.c: At top level:
/root/svn/wcam/trunk/ov51x-jpeg-core.c:6637: error: unknown field 'owner' specified in initializer
/root/svn/wcam/trunk/ov51x-jpeg-core.c:6637: warning: initialization from incompatible pointer type
/root/svn/wcam/trunk/ov51x-jpeg-core.c:6639: error: unknown field 'type' specified in initializer
/root/svn/wcam/trunk/ov51x-jpeg-core.c: In function 'ov51x_probe':
/root/svn/wcam/trunk/ov51x-jpeg-core.c:8368: error: incompatible types in assignment
make[2]: *** [/root/svn/wcam/trunk/ov51x-jpeg-core.o] Error 1
make[1]: *** [_module_/root/svn/wcam/trunk] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-rc5'
make: *** [all] Error 2

Can you help with this problem?

Provide an answer of your own, or ask David Hugh-Jones for more information if necessary.

To post a message you must log in.