Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141476 - media-video/spca5xx-20060501: compilation fail with kernel 2.6.18-rc2
Summary: media-video/spca5xx-20060501: compilation fail with kernel 2.6.18-rc2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2006-07-23 03:36 UTC by blackhawk
Modified: 2006-07-23 04:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of the emerge spca5xx command with kernel 2.6.18-rc2 (spca5xxEmerge.log,10.51 KB, text/plain)
2006-07-23 03:39 UTC, blackhawk
Details
Patch to apply to make spca5xx compilation work with kernel 2.6.18-rc2 (spca5xx-kernel-2.6.18-rc2.patch,482 bytes, patch)
2006-07-23 03:54 UTC, blackhawk
Details | Diff
My kernel config (.config,45.79 KB, text/plain)
2006-07-23 04:16 UTC, blackhawk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blackhawk 2006-07-23 03:36:32 UTC
Hi everyone !!
There is a bug with spca5xx last version ( 20060501 ) when you compile it with the last kernel installed ( vanilla-sources-2.6.18-rc2 ). Indeed, the interface for v4l has changed in this new version, and so included files aren't correctly included..
Comment 1 blackhawk 2006-07-23 03:39:51 UTC
Created attachment 92542 [details]
Output of the emerge spca5xx command with kernel 2.6.18-rc2

You can see that none of the functions needed are defined...
Comment 2 blackhawk 2006-07-23 03:54:26 UTC
Created attachment 92543 [details, diff]
Patch to apply to make spca5xx compilation work with kernel 2.6.18-rc2
Comment 3 blackhawk 2006-07-23 03:58:46 UTC
To solve this bug, you have to apply the patch as this :
# pwd
/usr/local/src/
# ls
spca5xx-20060501 spca5xx-20060501.tar.gz spca5xx-kernel-2.6.18-rc2.patch
# patch -p0 < spca5xx-kernel-2.6.18-rc2.patch
patching file spca5xx-20060501/drivers/usb/spca5xx.c
# cd spca5xx-20060501
# make
   Building SPCA5XX driver for 2.5/2.6 kernel.
   Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/local/src/spca5xx-20060501 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.18-rc2'
  CC [M]  /usr/local/src/spca5xx-20060501/drivers/usb/spca5xx.o
  CC [M]  /usr/local/src/spca5xx-20060501/drivers/usb/spcadecoder.o
/usr/local/src/spca5xx-20060501/drivers/usb/spcadecoder.c: In function 'fun_D':
/usr/local/src/spca5xx-20060501/drivers/usb/spcadecoder.c:809: warning: value computed is not used
  LD [M]  /usr/local/src/spca5xx-20060501/spca5xx.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/local/src/spca5xx-20060501/spca5xx.mod.o
  LD [M]  /usr/local/src/spca5xx-20060501/spca5xx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.18-rc2'
# make install
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca50x.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/et61x.ko
install -c -m 0644 spca5xx.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
/sbin/depmod -ae

And enjoy your webcam...
Comment 4 blackhawk 2006-07-23 04:16:05 UTC
Created attachment 92545 [details]
My kernel config 

You must have CONFIG_VIDEO_V4L1=y and CONFIG_VIDEO_V4L1_COMPAT=y in your kernel config