When emerging spca5xx (latest ebuild for ~x86, ie. 20050701) on gentoo-sources-2.6.14 emerge fails. Reproducible: Always Steps to Reproduce: 1. Install and use gentoo-sources-2.6.14 2. ACCEPT_KEYWORDS="~x86" emerge spca5xx Actual Results: * Preparing spca5xx module Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /usr/src/linux M=/var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701 modules make[1]: Entering directory `/usr/src/linux-2.6.14-gentoo' CC [M] /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.o CC [M] /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spcadecoder.o In file included from /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spcadecoder.h:5, from /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spcadecoder.c:35: /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:23:5: warning: "LINUX_VERSION_CODE" is not defined /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:23:26: warning: "KERNEL_VERSION" is not defined /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:23:40: missing binary operator before token "(" /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:44:5: warning: "LINUX_VERSION_CODE" is not defined /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:44:26: warning: "KERNEL_VERSION" is not defined /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:44:40: missing binary operator before token "(" /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:51:27: linux/tqueue.h: Nie ma takiego pliku ani katalogu /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:54:5: warning: "LINUX_VERSION_CODE" is not defined /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:54:27: warning: "KERNEL_VERSION" is not defined /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:54:41: missing binary operator before token "(" In file included from /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spcadecoder.h:5, from /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spcadecoder.c:35: /var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spca5xx.h:455: error: field `task' has incomplete type make[2]: *** [/var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701/drivers/usb/spcadecoder.o] Błąd 1 make[1]: *** [_module_/var/tmp/portage/spca5xx-20050701/work/spca5xx-20050701] Błąd 2 make[1]: Leaving directory `/usr/src/linux-2.6.14-gentoo' make: *** [default] Błąd 2 Expected Results: Build and install spca5xx driver. Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.14-gentoo i686) ================================================================= System uname: 2.6.14-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre9 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl" LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="en pl" MAKEOPTS="-j 3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa avi bash-completion berkdb bitmap-fonts cdr crypt cups curl dvd dvdr dvdread eds emboss encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile i8x0 imagemagick imlib ipv6 java jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline real rtc samba sdl smp speex spell sse sse2 ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode v4l vorbis win32codecs xml xml2 xmms xv zlib linguas_en linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Fixed this problem by upgrading to the newest snapshot, 20051101. Please bump this in portage. To bump it yourself, in the meantime: # cp /usr/portage/media-video/spca5xx/spca5xx-20050903.ebuild /usr/portage/media-video/spca5xx/spca5xx-20051101.ebuild # ebuild /usr/portage/media-video/spca5xx/spca5xx-20051101.ebuild digest # emerge spca5xx
(In reply to comment #1) > Fixed this problem by upgrading to the newest snapshot, 20051101. Please bump > this in portage. To bump it yourself, in the meantime: That's not enough - I needed to also add ~x86 to supported architectures in this ebuild. Dunno why there's only amd64?
Created attachment 72348 [details] spca5xx/spca5xx-20051101.ebuild * works with kernel 2.6.14 * works on ~x86
Same problem here with versions of spca5xx >=20050701. Not tried yet with 20051101 (just synced but I didn't find it... mah...). *Solved* this issue adding: #include <linux/version.h> in file /var/tmp/portage/spca5xx-2005093/work/spca5xx-20050701/drivers/usb/spca5xx.h as stated in http://forums.gentoo.org/viewtopic-t-396475.html Works with both 2.6.14-gentoo{,-r1}. Sorry, not able to make any patch.
(In reply to comment #2) > That's not enough - I needed to also add ~x86 to supported architectures in this > ebuild. Dunno why there's only amd64? Because I only do development on amd64. There are open bugs for x86 and ppc to test and keyword
*** Bug 111848 has been marked as a duplicate of this bug. ***
spca5xx-20051105 compiled correctly on my machine. Fixed for me. Thank you all.
Worked fine for me too on ppc running 2.6.15-rc5 ;) cheers
I should add to the above comment that when I try to open the device in gnomemeeting: Dec 13 21:08:20 shiny gnomemeeting does an incomplete pfn remappingCall trace: Dec 13 21:08:20 shiny [c005b568] remap_pfn_range+0xb0/0x3a4 Dec 13 21:08:20 shiny [f217ebd4] spca5xx_mmap+0xec/0x1a4 [spca5xx] Dec 13 21:08:20 shiny [c0060a7c] do_mmap_pgoff+0x3a0/0x6dc Dec 13 21:08:20 shiny [c000caa4] sys_mmap+0xa0/0x134 Dec 13 21:08:20 shiny [c00047dc] ret_from_syscall+0x0/0x44
upgrade to 20060101 please