Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217515 - media-tv/wis-go7007 will not compile on 2.6.24
Summary: media-tv/wis-go7007 will not compile on 2.6.24
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Steve Dibb (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-13 14:40 UTC by David Snider
Modified: 2008-09-30 01:34 UTC (History)
3 users (show)

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


Attachments
Updated tarball from site listed in bug report. (wis-go7007-linux-0.9.8-2.tar.bz2,142.78 KB, text/plain)
2008-04-13 14:42 UTC, David Snider
Details
Ebuild overlay including patch (wis-go7007-custom-ebuild.tar.bz2,7.00 KB, application/octet-stream)
2008-05-28 20:56 UTC, Joe
Details
patch for 2.6.24 for wis-go7007 (wis-go7007_0.9.8_2.6.24.patch,1.44 KB, patch)
2008-06-09 09:14 UTC, Alan Hourihane
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Snider 2008-04-13 14:40:39 UTC
After upgrading to sys-kernel/gentoo-sources-2.6.24-r4 media-tv/wis-go7007-0.9.8-r2 will no longer emerge.   

Reproducible: Always

Steps to Reproduce:
1. emerge wis-go7007

Actual Results:  
Emerge fails with the following output:
>>> Emerging (1 of 2) media-tv/wis-go7007-0.9.8-r2 to /
 * wis-go7007-linux-0.9.8.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.24-gentoo-r4/build
 * Found sources for kernel version:
 *     2.6.24-gentoo-r4
 * Checking for suitable kernel configuration options...                            [ ok ]
>>> Unpacking source...
>>> Unpacking wis-go7007-linux-0.9.8.tar.bz2 to /var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work
 * Applying wis-go7007-0.9.8-fix-udev.diff ...                                      [ ok ]
 * Applying wis-go7007-0.9.8-kernel-2.6.17.diff ...                                 [ ok ]
 * Applying snd.patch ...                                                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8 ...
 * Preparing go7007 module

***** Using kernel source in /usr/src/linux-2.6.24-gentoo-r4 *****

make modules -C /usr/src/linux-2.6.24-gentoo-r4 M=/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel
make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo-r4'
  CC [M]  /var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel/go7007-v4l2.o
  CC [M]  /var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel/go7007-driver.o
  CC [M]  /var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel/go7007-i2c.o
/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel/go7007-i2c.c:299: error: unknown field 'algo_control' specified in initializer
/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel/go7007-i2c.c:299: warning: initialization from incompatible pointer type
make[2]: *** [/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel/go7007-i2c.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/work/wis-go7007-linux-0.9.8/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r4'
make: *** [all] Error 2
 * 
 * ERROR: media-tv/wis-go7007-0.9.8-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3158:  Called linux-mod_src_compile
 *             environment, line 2398:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                            ${BUILD_FIXES}                           ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERNELSRC=/usr/src/linux all
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/wis-go7007-0.9.8-r2/temp/environment'.
 * 

Expected Results:  
emerge completes successfully.

There is a patch and an updated tarball @ http://nikosapi.org/wiki/index.php/WIS_Go7007_Linux_driver.  I followed these steps:

1.  ebuild /usr/portage/media-tv/wis-go7007/wis-go7007-0.9.8-r2.ebuild unpack
2.  patch the go7007-i2c.c and go7007-usb.c
3.  ebuild /usr/portage/media-tv/wis-go7007/wis-go7007-0.9.8-r2.ebuild compile
4.  ebuild /usr/portage/media-tv/wis-go7007/wis-go7007-0.9.8-r2.ebuild install
5.  ebuild /usr/portage/media-tv/wis-go7007/wis-go7007-0.9.8-r2.ebuild qmerge

Everything worked great.
Comment 1 David Snider 2008-04-13 14:42:50 UTC
Created attachment 149559 [details]
Updated tarball from site listed in bug report.
Comment 2 David Snider 2008-04-13 14:43:14 UTC
# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Celeron(R) CPU 2.20GHz
Timestamp of tree: Sun, 13 Apr 2008 10:15:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa bacula-clientonly berkdb cli client-only cracklib crypt divx4linux dri dts dv dvd dvdread examples fortran gdbm gpm gtk iconv isdnlog lirc logrotate logwatch mailwrapper midi mmx mmxext mpeg mudflap mysql mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses netboot nls nptl nptlonly oggvorbis openmp pam pcre perl png pppd python quicktime readline real reflection rtc session spl sse sse2 ssl tcpd transcode unicode usb v4l v4l2 win32codecs x86 xorg xv xvid zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="digimatrix" USERLAND="GNU" VIDEO_CARDS="sis vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Thomas 2008-04-20 08:23:59 UTC
I found a patch at:

http://blog.zoeloelip.be/2007/02/19/go7007-driver-update/

The 2.6.24 edition works fine for me, when I compile and install the driver manual with:

make && make install USE_UDEV=y
Comment 4 Joe 2008-05-28 20:56:56 UTC
Created attachment 154625 [details]
Ebuild overlay including patch

I was going to file this as a bug, but found someone already sent it.  I made an ebuild with the patch, as version wis-go7007-0.9.8-r9999.  I am uploading it here in case someone finds it useful.
Comment 5 Thomas 2008-05-31 17:27:09 UTC
(In reply to comment #4)

Tried the ebuild, installs fine.. but it won't regonize my tuner as a v4l device. I tried plugging it in and out:

Is one of the patches you supplied for fixing sound problems, because I still havn't found a solution to my sound problem...?

PanicToshiba ~ # dmesg | tail -n 5
usb 1-3: new high speed USB device using ehci_hcd and address 8
usb 1-3: configuration #1 chosen from 1 choice
usb 1-3: USB disconnect, address 8
usb 1-3: new high speed USB device using ehci_hcd and address 9
usb 1-3: configuration #1 chosen from 1 choice

PanicToshiba ~ # lsusb 
Bus 001 Device 009: ID 093b:a004 Plextor Corp. 
Bus 001 Device 003: ID 1058:0702 Western Digital Technologies, Inc. 
Bus 001 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 003: ID 046d:c50c Logitech, Inc. 
Bus 002 Device 004: ID 046d:abd0 Logitech, Inc. 
Bus 002 Device 002: ID 0451:2036 Texas Instruments, Inc. TUSB2036 Hub
Bus 002 Device 001: ID 0000:0000  

PanicToshiba ~ # ls /dev/v4l
ls: cannot access /dev/v4l: No such file or directory

PanicToshiba ~ # ls /sys/class/video4linux/

PanicToshiba ~ # lsmod 
Module                  Size  Used by
wis_sony_tuner          6664  0 
wis_uda1342             2304  0 
wis_saa7115             4352  0 
go7007_usb             10500  0 
go7007                 48256  4 wis_sony_tuner,wis_uda1342,wis_saa7115,go7007_usb
snd_go7007              3364  1 go7007
vboxdrv                35328  0 
svgalib_helper         10276  0 
ipw2200               128964  0 
fglrx                 705792  11 

PanicToshiba ~ # eselect kernel show
Current kernel symlink:
  /usr/src/linux-2.6.24-gentoo-r4 
Comment 6 Alan Hourihane 2008-06-09 09:14:27 UTC
Created attachment 156049 [details, diff]
patch for 2.6.24 for wis-go7007

By adding this to the ebuild and the small attached patch, it works for me.

    if kernel_is ge 2 6 24; then
        epatch "${FILESDIR}/wis-go7007_0.9.8_2.6.24.patch"
    fi
Comment 7 Steve Dibb (RETIRED) gentoo-dev 2008-08-20 04:58:15 UTC
Alright,

wis-go7007-0.9.8-r3.ebuild is in the tree, uses patches from http://home.comcast.net/~bender647/go7007/ and requires 2.6.26.

Lemme know how that works.