Hi, I wanted to try latest (~amd64) qc-usb and it does not compile. This is the errors: x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/.qc-hdcs.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_hdcs)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.o /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.c In file included from /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:47: /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:96:28: error: media/v4l2-dev.h: No such file or directory In file included from /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.c:27: /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:96:28: error: media/v4l2-dev.h: No such file or directory /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.c:2985: warning: initialization from incompatible pointer type make[2]: *** [/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-hdcs.o] Error 1 make[2]: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/.qc-pb0100.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_pb0100)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-pb0100.o /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-pb0100.c make[2]: *** [/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-driver.o] Error 1 In file included from /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-pb0100.c:27: /var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/quickcam.h:96:28: error: media/v4l2-dev.h: No such file or directory make[2]: *** [/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4/qc-pb0100.o] Error 1 make[1]: *** [_module_/var/tmp/portage/qc-usb-0.6.4/work/qc-usb-0.6.4] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r8' make: *** [quickcam.ko] Error 2 !!! ERROR: media-video/qc-usb-0.6.4 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ebuild.sh, line 1255: Called linux-mod_src_compile linux-mod.eclass, line 482: Called die !!! Unable to make LINUX_DIR=/usr/src/linux OUTPUT_DIR=/usr/src/linux all. !!! If you need support, post the topmost build error, and the call stack if relevant.
Note: if I unpack /usr/portage/distfiles/qc-usb-0.6.4.tar.gz and do "make all" manually, it compiles without any problem.
I have resolved this issue by commenting all the patch (and prevent any patch to be applied to this). So, in my system, this patchs breaks the compilation. (code): src_unpack() { unpack ${A} cd ${S} convert_to_m ${S}/Makefile #epatch ${FILESDIR}/${P}-koutput.patch #epatch ${FILESDIR}/qc-usb-linux-2.6.18-1.patch #epatch ${FILESDIR}/qc-usb-linux-2.6.18-2.patch } I was using 2.6.17-r8 kernel (gentoo-sources) and patchs are prepaired for 2.6.18-? kernel version. I will upgrade kernel now and see if this patchs still breaks compilation.
I have the exact same problem. Will try ignoring the patches too.
As patchs are for version, 2.6.18-rx, upgrading to this kernel version compiles.
This does NOT fix this bug. The bug still exists for everyone using 2.6.17.
Yes, this doesn't fix it, but since this kernel is now stable, is a matter of time, this should be fixed for everyone. (I reopen it anyway) But, could any gentoo dev make a little script to detect kernel version and if it is lower than 2.6.18, DO NOT aply patchs?
just wanted to point out that 0.6.3 fails too with a very similar message make -C "/usr/src/linux" M="/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3" modules V=1 USER_OPT="" gcc -Wall -O2 -s qcset.c -o qcset -lm qcset.c: In function 'pnm_open': qcset.c:390: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness qcset.c: In function 'main': qcset.c:661: warning: pointer targets in passing argument 1 of 'pnm_open' differ in signedness make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r8' mkdir -p /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/.tmp_versions rm -f /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/.tmp_versions/* make -f scripts/Makefile.build obj=/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3 i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/.qc-driver.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_driver)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.o /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.c i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/.qc-hdcs.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_hdcs)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-hdcs.o /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-hdcs.c In file included from /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.c:47: /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/quickcam.h:96:28: error: media/v4l2-dev.h: No such file or directory In file included from /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-hdcs.c:27: /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/quickcam.h:96:28: error: media/v4l2-dev.h: No such file or directory make[2]: *** [/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-hdcs.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.o] Error 1 make[1]: *** [_module_/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r8' make: *** [quickcam.ko] Error 2 !!! ERROR: media-video/qc-usb-0.6.3 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ebuild.sh, line 1255: Called linux-mod_src_compile linux-mod.eclass, line 482: Called die !!! Unable to make LINUX_DIR=/usr/src/linux all. !!! If you need support, post the topmost build error, and the call stack if relevant. 0.6.4 fails with the same message as Description here is my system info. Linux localhost 2.6.17-gentoo-r8 #4 Fri Oct 27 01:33:15 UTC 2006 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
this is a relationship between this two http://bugs.gentoo.org/show_bug.cgi?id=154555 I'll recommend closing this on in favor of that one
It's not entirely a duplicate but bumping qc-usb to 0.6.6 should deprecate patches that cause this failure. And allow compilation with new gentoo-sources-2.6.19-r1. *** This bug has been marked as a duplicate of 154555 ***