Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111385 - emerge spca5xx-20050701 fails on gentoo-source-2.6.14
Summary: emerge spca5xx-20050701 fails on gentoo-source-2.6.14
Status: RESOLVED WONTFIX
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:
: 111848 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-03 11:47 UTC by Bartosz Zapalowski
Modified: 2006-01-07 07:22 UTC (History)
1 user (show)

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


Attachments
spca5xx/spca5xx-20051101.ebuild (spca5xx-20051101.ebuild,800 bytes, text/plain)
2005-11-06 18:04 UTC, Jiri Tyr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosz Zapalowski 2005-11-03 11:47:11 UTC
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
Comment 1 Josh Pryor 2005-11-03 17:39:06 UTC
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 
Comment 2 Bartosz Zapalowski 2005-11-03 23:20:23 UTC
(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?
Comment 3 Jiri Tyr 2005-11-06 18:04:16 UTC
Created attachment 72348 [details]
spca5xx/spca5xx-20051101.ebuild

* works with kernel 2.6.14
* works on ~x86
Comment 4 Emiliano Vavassori 2005-11-10 06:53:48 UTC
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.
Comment 5 Mike Doty (RETIRED) gentoo-dev 2005-11-13 09:28:48 UTC
(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
Comment 6 Mike Doty (RETIRED) gentoo-dev 2005-11-13 09:29:33 UTC
*** Bug 111848 has been marked as a duplicate of this bug. ***
Comment 7 Emiliano Vavassori 2005-12-11 10:49:22 UTC
spca5xx-20051105 compiled correctly on my machine. Fixed for me.

Thank you all.
Comment 8 Andy Botting 2005-12-12 18:45:45 UTC
Worked fine for me too on ppc running 2.6.15-rc5 ;)

cheers
Comment 9 Andy Botting 2005-12-13 02:14:46 UTC
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
Comment 10 Mike Doty (RETIRED) gentoo-dev 2006-01-07 07:22:33 UTC
upgrade to 20060101 please