Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254564 - media-video/qc-usb-0.6.6-r1: doesn't compile with kernel 2.6.28
Summary: media-video/qc-usb-0.6.6-r1: doesn't compile with kernel 2.6.28
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
: 261215 263480 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-11 17:24 UTC by Pierre-Yves AILLET
Modified: 2009-03-23 23:20 UTC (History)
2 users (show)

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


Attachments
Patch correcting the compiling issues (qc-usb-0.6.6-kcompat-2.6.28.patch,4.38 KB, patch)
2009-01-11 17:26 UTC, Pierre-Yves AILLET
Details | Diff
Updated ebuild (qc-usb-0.6.6-r1.ebuild,1.51 KB, text/plain)
2009-01-11 17:27 UTC, Pierre-Yves AILLET
Details
Patch correcting the compiling issues (qc-usb-0.6.6-kcompat-2.6.28.patch,4.38 KB, patch)
2009-01-11 20:01 UTC, Pierre-Yves AILLET
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Yves AILLET 2009-01-11 17:24:58 UTC
Changes in the v4l headers break compilation of qc-usb-0.6.6-r1

Reproducible: Always

Steps to Reproduce:
1. emerge kernel-sources >= 2.6.28 
2. emerge qc-usb
3. watch it fails

Actual Results:  
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_i2c_init’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:827: attention : assignment from incompatible pointer type
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_isoc_start’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:1869: attention : assignment from incompatible pointer type
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_poll’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:2258: erreur: ‘struct video_device’ has no member named ‘priv’
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_open’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:2310: erreur: ‘struct video_device’ has no member named ‘priv’
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_close’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:2378: erreur: ‘struct video_device’ has no member named ‘priv’
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_read’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:2426: erreur: ‘struct video_device’ has no member named ‘priv’
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_mmap’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:2481: erreur: ‘struct video_device’ has no member named ‘priv’
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_ioctl’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:2513: erreur: ‘struct video_device’ has no member named ‘priv’
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c: In function ‘qc_usb_init’:
/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.c:3164: erreur: ‘struct video_device’ has no member named ‘priv’
make[2]: *** [/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6/qc-driver.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [_module_/var/tmp/portage/media-video/qc-usb-0.6.6-r1/work/qc-usb-0.6.6] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-2.6.28-gentoo »
make: *** [quickcam.ko] Erreur 2
Comment 1 Pierre-Yves AILLET 2009-01-11 17:26:10 UTC
Created attachment 178090 [details, diff]
Patch correcting the compiling issues

This patch corrects the compilation issues.
Comment 2 Pierre-Yves AILLET 2009-01-11 17:27:26 UTC
Created attachment 178091 [details]
Updated ebuild

An updated version of the ebuild including the patch
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-11 19:31:31 UTC
nice, thanks for the patch, I'll review asap but don't hesitate to kick back in a week if it's still not commited.
Comment 4 Pierre-Yves AILLET 2009-01-11 20:01:19 UTC
Created attachment 178111 [details, diff]
Patch correcting the compiling issues

Correcting a typo in the patch
Comment 5 Mario Bachmann 2009-02-04 17:56:24 UTC
The patch "qc-usb-0.6.6-kcompat-2.6.28.patch" should go to the portage tree. 

i modified the qc-usb-0.6.6-r1.ebuild and added these lines to "src_unpack() {}":
	if kernel_is ge 2 6 28; then
		# Fix compilation with 2.6.28
		epatch "${FILESDIR}/${P}-kcompat-2.6.28.patch"
	fi

...and it compiled and worked!
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-15 19:23:26 UTC
in tree as 0.6.6-r2. Thanks for reporting and the patch.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-04 20:55:44 UTC
*** Bug 261215 has been marked as a duplicate of this bug. ***
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-23 23:20:16 UTC
*** Bug 263480 has been marked as a duplicate of this bug. ***