Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140323 - ebuild for ivtvdev xdriver
Summary: ebuild for ivtvdev xdriver
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeffrey Gardner (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-07-14 02:30 UTC by Jeffrey Gardner (RETIRED)
Modified: 2007-10-15 15:01 UTC (History)
7 users (show)

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


Attachments
ebuild for ivtvdev_drv (xf86-video-ivtvdev-0.10.6.ebuild,1.77 KB, text/plain)
2006-07-14 02:31 UTC, Jeffrey Gardner (RETIRED)
Details
patch to clean up source package (xf86-video-ivtvdev-0.10.6-gentoo.patch,18.86 KB, patch)
2006-07-14 02:32 UTC, Jeffrey Gardner (RETIRED)
Details | Diff
improved ebuild for ivtvdev (xf86-video-ivtvdev-0.10.6.ebuild,1.80 KB, text/plain)
2006-07-15 16:20 UTC, Jeffrey Gardner (RETIRED)
Details
Error output from the patch (xf86-video-ivtvdev-0.10.6-gentoo.patch-12834.out,9.15 KB, text/plain)
2006-07-27 01:34 UTC, Zingo "Stefan" Andersen
Details
xf86-video-ivtvdev-0.10.6.ebuild (xf86-video-ivtvdev-0.10.6.ebuild,634 bytes, text/plain)
2006-08-01 07:44 UTC, Jeffrey Gardner (RETIRED)
Details
ivtv_xdriver-0.10.6.ebuild (ivtv_xdriver-0.10.6.ebuild,894 bytes, text/plain)
2006-08-08 08:38 UTC, Jeffrey Gardner (RETIRED)
Details
ivtv_xdriver-Imakefile.patch (ivtv_xdriver-Imakefile.patch,12.59 KB, patch)
2006-08-08 08:39 UTC, Jeffrey Gardner (RETIRED)
Details | Diff
xf86-video-ivtvdev-0.10.6.ebuild (xf86-video-ivtvdev-0.10.6.ebuild,865 bytes, text/plain)
2006-08-13 22:12 UTC, Jeffrey Gardner (RETIRED)
Details
patch for xf86-video-ivtvdev-0.10.6.ebuild (ivtv_xdriver-unified.patch,11.22 KB, patch)
2006-08-13 22:14 UTC, Jeffrey Gardner (RETIRED)
Details | Diff
xf86-video-ivtvdev-0.10.6-r1.ebuild (xf86-video-ivtvdev-0.10.6-r1.ebuild,1.12 KB, text/plain)
2006-11-06 20:58 UTC, Jeffrey Gardner (RETIRED)
Details
ivtv-0.10.6-r1-autotools.patch (ivtv-0.10.6-r1-autotools.patch,911.91 KB, patch)
2006-11-06 20:59 UTC, Jeffrey Gardner (RETIRED)
Details | Diff
ivtv-0.10.6-r1-xorg.patch (ivtv-0.10.6-r1-xorg.patch,130.77 KB, patch)
2006-11-06 20:59 UTC, Jeffrey Gardner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-14 02:30:23 UTC
Attached next is an ebuild for the ivtvdev xdriver for PVR-350 cards. It's not pretty, but it works.

Thanks,
je_fro
Comment 1 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-14 02:31:35 UTC
Created attachment 91691 [details]
ebuild for ivtvdev_drv
Comment 2 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-14 02:32:18 UTC
Created attachment 91692 [details, diff]
patch to clean up source package
Comment 3 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-15 16:20:00 UTC
Created attachment 91836 [details]
improved ebuild for ivtvdev

cleaned up
Comment 4 Zingo "Stefan" Andersen 2006-07-27 00:00:59 UTC
I have problem with this emerge, I have only included the emerge and changed ~amd64 to ~x86
I have not done anything with the patch (I figure that is done by the emerge but I could be wrong)

mythtv xf86-video-ivtvdev # emerge xf86-video-ivtvdev
Calculating dependencies  ... done!

>>> Emerging (1 of 1) x11-drivers/xf86-video-ivtvdev-0.10.6 to /
 * checking ebuild checksums ;-) ...                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                    [ ok ]
 * checking xf86-video-ivtvdev-0.10.6.tar.bz2 ;-) ...                                                                                     [ ok ]
 * checking x11-driver-patches-1.tar.bz2 ;-) ...                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking xf86-video-ivtvdev-0.10.6.tar.bz2 to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work
>>> Unpacking x11-driver-patches-1.tar.bz2 to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/local/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-0.10.6-gentoo.patch
 *   ( xf86-video-ivtvdev-0.10.6-gentoo.patch )


!!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  ebuild.sh, line 1254:   Called x-modular_src_unpack
  x-modular.eclass, line 267:   Called x-modular_patch_source
  x-modular.eclass, line 235:   Called epatch '/usr/local/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-0.10.6-gentoo.patch'
  eutils.eclass, line 190:   Called die

!!! Cannot find $EPATCH_SOURCE!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'

--------------------------------------------------------------------

mythtv xf86-video-ivtvdev # emerge --info
Portage 2.1.1_pre3-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r1, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apache2 apm arts asf avi berkdb big-tables bitmap-fonts bzip2 cli crypt cups dba dga divx4linux dk dlloader dri dts dvd eds emboss encode esd exif extrafilters ffmpeg foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 imagemagick imlib ipv6 isdnlog ivtv joystick jpeg kde libg++ libwww lirc mad mikmod mmx modplug motif mp3 mpeg mysql mythtv ncurses net nls nptl nptlonly ogg opengl oss pam pcre pdflib perl php png pppd python qt qt3 qt4 quicktime readline reflection sdl se_swedb session spell spl sse sse2 ssl tcpd transcode truetype truetype-fonts type1-fonts udev unicode v4l2 video_cards_ivtvdev vorbis wacom win32codecs xinerama xml xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux lirc_devices_hauppauge userland_GNU video_cards_fbdev video_cards_i810 video_cards_v4l video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 5 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-27 00:28:57 UTC
did you put the patch in /usr/local/portage/xf86-video-ivtvdev/files
?
Comment 6 Zingo "Stefan" Andersen 2006-07-27 01:34:35 UTC
Created attachment 92836 [details]
Error output from the patch

xf86-video-ivtvdev-0.10.6-gentoo.patch-12834.out
Comment 7 Zingo "Stefan" Andersen 2006-07-27 01:57:07 UTC
Sorry by fault, I missed the putting da' patch in files stuff, sorry for the false alarm.

Now it comes longer but I have trouble appling the patch..


mythtv xf86-video-ivtvdev # emerge xf86-video-ivtvdev
Calculating dependencies  ... done!

>>> Emerging (1 of 1) x11-drivers/xf86-video-ivtvdev-0.10.6 to /
 * checking ebuild checksums ;-) ...                                                                                                                                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                           [ ok ]
 * checking xf86-video-ivtvdev-0.10.6.tar.bz2 ;-) ...                                                                                                                                                            [ ok ]
 * checking x11-driver-patches-1.tar.bz2 ;-) ...                                                                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking xf86-video-ivtvdev-0.10.6.tar.bz2 to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work
>>> Unpacking x11-driver-patches-1.tar.bz2 to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work
 * Applying xf86-video-ivtvdev-0.10.6-gentoo.patch ...

 * Failed Patch: xf86-video-ivtvdev-0.10.6-gentoo.patch !
 *  ( /usr/local/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-0.10.6-gentoo.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/xf86-video-ivtvdev-0.10.6/temp/xf86-video-ivtvdev-0.10.6-gentoo.patch-12834.out


!!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  ebuild.sh, line 1254:   Called x-modular_src_unpack
  x-modular.eclass, line 267:   Called x-modular_patch_source
  x-modular.eclass, line 235:   Called epatch '/usr/local/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-0.10.6-gentoo.patch'
  eutils.eclass, line 333:   Called die

!!! Failed Patch: xf86-video-ivtvdev-0.10.6-gentoo.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
mythtv xf86-video-ivtvdev # 
Comment 8 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-27 06:19:47 UTC
Try commenting out the following line:
# PATCHES="${FILESDIR}/xf86-video-ivtvdev-0.10.6-gentoo.patch"
Comment 9 Zingo "Stefan" Andersen 2006-07-27 14:01:08 UTC
Removing the patch results in a build error, this is the same error I got trying to follow the instruction on 
http://ivtvdriver.org/index.php/Howto:Gentoo
I think that the xorg in ~x86 migth be sligthly newer then when this driver was created, this thread http://mythtv.org/pipermail/mythtv-users/2006-June/138751.html
seems to indicate something like this also, thanks for your help.

----------------------------build error
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -march=pentium4 -O2 -pipe -fomit-frame-pointer -MT ivtv_xv.lo -MD -MP -MF .deps/ivtv_xv.Tpo -c ivtv_xv.c  -fPIC -DPIC -o .libs/ivtv_xv.o
ivtv_xv.c: In function 'IvtvInitVideo':
ivtv_xv.c:110: warning: incompatible implicit declaration of built-in function 'memcpy'
ivtv_xv.c: In function 'IVTVSetupImageVideoOverlay':
ivtv_xv.c:322: warning: assignment from incompatible pointer type
ivtv_xv.c: In function 'IVTVStopVideo':
ivtv_xv.c:466: error: 'errno' undeclared (first use in this function)
ivtv_xv.c:466: error: (Each undeclared identifier is reported only once
ivtv_xv.c:466: error: for each function it appears in.)
ivtv_xv.c: In function 'de_macro_y':
ivtv_xv.c:515: warning: incompatible implicit declaration of built-in function 'memcpy'
ivtv_xv.c: In function 'IVTVPutImage':
ivtv_xv.c:707: error: 'O_RDWR' undeclared (first use in this function)
ivtv_xv.c:708: error: 'errno' undeclared (first use in this function)
ivtv_xv.c:708: error: 'ENODEV' undeclared (first use in this function)
make[2]: *** [ivtv_xv.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/xf86-video-ivtvdev-0.10.6/work/xf86-video-ivtvdev-0.10.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xf86-video-ivtvdev-0.10.6/work/xf86-video-ivtvdev-0.10.6'
make: *** [all] Error 2

!!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1254:   Called x-modular_src_compile
  x-modular.eclass, line 327:   Called x-modular_src_make
  x-modular.eclass, line 322:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 10 Zingo "Stefan" Andersen 2006-07-27 14:37:51 UTC
Hello 
Since my latest porblem was in "C" land I started to investigate it more
and adding some #include statement to ivtv_xv.c manage to get it to build

----------- add this to ivtv_xv.c in the begining

#include <stdio.h>
#include <stdlib.h>
#include <errno.h> 
#include <sys/stat.h> 
#include <fcntl.h>

------------------------------

This should be safe to add for older systems also, I think that ivtv_xv.c got this defines via another .h file and this file changed. This is usually what happens to me anyway.

Ill try to add a ticket for this in ivtvdriver.org
I don't have my system up so I can't make diff/patch and upload it here so I hope my instructions are ok for you all.
Thanks for the help.

/Zingo 
Comment 11 Zingo "Stefan" Andersen 2006-07-27 17:50:31 UTC
After the compiling went fine the running didn't so there is probably more xorg 7.1.1 issues, the current problem is that the xorg is crashing  with almost no output

---- end of Xorg.0.log -------
...
(II) IVTVDEV_TST: driver for framebuffer: PVR-350
(II) Primary Device is: PCI 00:02:0
(--) Chipset PVR-350 found
(II) resource ranges after xf86ClaimFixedResources() call:
  [0] -1  0 0x00100000 - 0x0fffffff (0xff00000) MX[B]E(B)
  [1] -1  0 0x000f0000 - 0x000fffff (0x10000) MX[B]
  [2] -1  0 0x000c0000 - 0x000effff (0x30000) MX[B]
  [3] -1  0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
  [4] -1  0 0xdc020000 - 0xdc03ffff (0x20000) MX[B]
  [5] -1  0 0xdc050000 - 0xdc050fff (0x1000) MX[B]
  [6] -1  0 0xdc000000 - 0xdc01ffff (0x20000) MX[B]
  [7] -1  0 0xdc182000 - 0xdc1820ff (0x100) MX[B]
  [8] -1  0 0xdc181000 - 0xdc1811ff (0x200) MX[B]
  [9] -1  0 0x10000000 - 0x100003ff (0x400) MX[B]
  [10] -1 0 0xdc180000 - 0xdc1803ff (0x400) MX[B]
  [11] -1 0 0xc0000000 - 0xbfffffff (0x0) MX[B]O
  [12] -1 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B](B)
  [13] -1 0 0xdc100000 - 0xdc17ffff (0x80000) MX[B](B)
  [14] -1 0 0xd0000000 - 0xd7ffffff (0x8000000) MX[B](B)
  [15] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
  [16] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
  [17] -1 0 0x0000c400 - 0x0000c43f (0x40) IX[B]
  [18] -1 0 0x0000c000 - 0x0000c03f (0x40) IX[B]
  [19] -1 0 0x0000e400 - 0x0000e43f (0x40) IX[B]
  [20] -1 0 0x0000e000 - 0x0000e0ff (0x100) IX[B]
  [21] -1 0 0x00000500 - 0x0000051f (0x20) IX[B]
  [22] -1 0 0x0000f000 - 0x0000f00f (0x10) IX[B]
  [23] -1 0 0x0000d400 - 0x0000d41f (0x20) IX[B]
  [24] -1 0 0x0000d000 - 0x0000d01f (0x20) IX[B]
  [25] -1 0 0x0000d800 - 0x0000d81f (0x20) IX[B]
(II) IVTVDEV_TST(0)using /dev/fb1
(II) resource ranges after probing:
  [0] -1  0 0x00100000 - 0x0fffffff (0xff00000) MX[B]E(B)
  [1] -1  0 0x000f0000 - 0x000fffff (0x10000) MX[B]
  [2] -1  0 0x000c0000 - 0x000effff (0x30000) MX[B]
  [3] -1  0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
  [4] -1  0 0xdc020000 - 0xdc03ffff (0x20000) MX[B]
  [5] -1  0 0xdc050000 - 0xdc050fff (0x1000) MX[B]
  [6] -1  0 0xdc000000 - 0xdc01ffff (0x20000) MX[B]
  [7] -1  0 0xdc182000 - 0xdc1820ff (0x100) MX[B]
  [8] -1  0 0xdc181000 - 0xdc1811ff (0x200) MX[B]
  [9] -1  0 0x10000000 - 0x100003ff (0x400) MX[B]
  [10] -1 0 0xdc180000 - 0xdc1803ff (0x400) MX[B]
  [11] -1 0 0xc0000000 - 0xbfffffff (0x0) MX[B]O
  [12] -1 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B](B)
  [13] -1 0 0xdc100000 - 0xdc17ffff (0x80000) MX[B](B)
  [14] -1 0 0xd0000000 - 0xd7ffffff (0x8000000) MX[B](B)
  [15] 0  0 0x000a0000 - 0x000affff (0x10000) MS[B]
  [16] 0  0 0x000b0000 - 0x000b7fff (0x8000) MS[B]
  [17] 0  0 0x000b8000 - 0x000bffff (0x8000) MS[B]
  [18] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
  [19] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
  [20] -1 0 0x0000c400 - 0x0000c43f (0x40) IX[B]
  [21] -1 0 0x0000c000 - 0x0000c03f (0x40) IX[B]
  [22] -1 0 0x0000e400 - 0x0000e43f (0x40) IX[B]
  [23] -1 0 0x0000e000 - 0x0000e0ff (0x100) IX[B]
  [24] -1 0 0x00000500 - 0x0000051f (0x20) IX[B]
  [25] -1 0 0x0000f000 - 0x0000f00f (0x10) IX[B]
  [26] -1 0 0x0000d400 - 0x0000d41f (0x20) IX[B]
  [27] -1 0 0x0000d000 - 0x0000d01f (0x20) IX[B]
  [28] -1 0 0x0000d800 - 0x0000d81f (0x20) IX[B]
  [29] 0  0 0x000003b0 - 0x000003bb (0xc) IS[B]
  [30] 0  0 0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(EE) IVTVDEV_TST(0)Framebuffer id from dev /dev/fb1is 1
(EE) IVTVDEV_TST(0)open /dev/video48 returned  8
(EE) IVTVDEV_TST(0)get_fb returned  0 fbid 1
(**) IVTVDEV_TST(0)Depth 24, (**) framebuffer bpp 32
(==) IVTVDEV_TST(0)RGB weight 888
(==) IVTVDEV_TST(0)Default visual is TrueColor
(==) IVTVDEV_TST(0)Using gamma correction (1.0, 1.0, 1.0)
(II) IVTVDEV_TST(0)Hardware: cx23415 TV out (vidmem: 1665k)
(II) IVTVDEV_TST(0)Checking Modes against framebuffer device...
(II) IVTVDEV_TST(0)Checking Modes against monitor...
(--) IVTVDEV_TST(0)Virtual size is 720x576 (pitch 720)
(**) IVTVDEV_TST(0) Built-in mode "current": 41.5 MHz, 44.7 kHz, 74.5 Hz
(II) IVTVDEV_TST(0)Modeline "current"   41.47  720 752 840 928  576 580 584 600 -hsy
(==) IVTVDEV_TST(0)DPI set to (75, 75)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
  compiled for 7.1.1, module version = 1.0.0
  ABI class: X.Org ANSI C Emulation, version 0.3
(**) IVTVDEV_TST(0)Using "Shadow Framebuffer"
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/lib/xorg/modules/libshadow.so
(II) Module shadow: vendor="X.Org Foundation"
  compiled for 7.1.1, module version = 1.1.0
  ABI class: X.Org ANSI C Emulation, version 0.3
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
  [0] 0 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B]
  [1] -1  0 0x00100000 - 0x0fffffff (0xff00000) MX[B]E(B)
  [2] -1  0 0x000f0000 - 0x000fffff (0x10000) MX[B]
  [3] -1  0 0x000c0000 - 0x000effff (0x30000) MX[B]
  [4] -1  0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
  [5] -1  0 0xdc020000 - 0xdc03ffff (0x20000) MX[B]
  [6] -1  0 0xdc050000 - 0xdc050fff (0x1000) MX[B]
  [7] -1  0 0xdc000000 - 0xdc01ffff (0x20000) MX[B]
  [8] -1  0 0xdc182000 - 0xdc1820ff (0x100) MX[B]
  [9] -1  0 0xdc181000 - 0xdc1811ff (0x200) MX[B]
  [10] -1 0 0x10000000 - 0x100003ff (0x400) MX[B]
  [11] -1 0 0xdc180000 - 0xdc1803ff (0x400) MX[B]
  [12] -1 0 0xc0000000 - 0xbfffffff (0x0) MX[B]O
  [13] -1 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B](B)
  [14] -1 0 0xdc100000 - 0xdc17ffff (0x80000) MX[B](B)
  [15] -1 0 0xd0000000 - 0xd7ffffff (0x8000000) MX[B](B)
  [16] 0  0 0x000a0000 - 0x000affff (0x10000) MS[B]
  [17] 0  0 0x000b0000 - 0x000b7fff (0x8000) MS[B]
  [18] 0  0 0x000b8000 - 0x000bffff (0x8000) MS[B]
  [19] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
  [20] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
  [21] -1 0 0x0000c400 - 0x0000c43f (0x40) IX[B]
  [22] -1 0 0x0000c000 - 0x0000c03f (0x40) IX[B]
  [23] -1 0 0x0000e400 - 0x0000e43f (0x40) IX[B]
  [24] -1 0 0x0000e000 - 0x0000e0ff (0x100) IX[B]
  [25] -1 0 0x00000500 - 0x0000051f (0x20) IX[B]
  [26] -1 0 0x0000f000 - 0x0000f00f (0x10) IX[B]
  [27] -1 0 0x0000d400 - 0x0000d41f (0x20) IX[B]
  [28] -1 0 0x0000d000 - 0x0000d01f (0x20) IX[B]
  [29] -1 0 0x0000d800 - 0x0000d81f (0x20) IX[B]
  [30] 0  0 0x000003b0 - 0x000003bb (0xc) IS[B]
  [31] 0  0 0x000003c0 - 0x000003df (0x20) IS[B]
  bitsPerPixel=32, depth=24, defaultVisual=TrueColor
  mask: ff0000,ff00,ff, offset: 16,8,0

Backtrace:
0: X(xf86SigHandler+0x85) [0x80cb325]

Fatal server error:
Caught signal 11.  Server aborting
Comment 12 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-27 19:54:05 UTC
Are you using this ebuild unmodified? Is it downloading http://www.mit.edu/~je18337/ivtvdev/xf86-video-ivtvdev-0.10.6.tar.bz2 ?
It works for me on every box I've tried...
Comment 13 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-28 06:50:49 UTC
If you're still having trouble, try this out:
http://jeffrey.homelinux.org/ivtvdev-svn.tar.bz2

untar and cd to ivtvdev-svn/

do:
xmkmf
make
make install
Comment 14 Zingo "Stefan" Andersen 2006-07-30 16:01:04 UTC
Hello (Sorry for the late testing)

I tried you ivtv-svn tar and I have the same problem, I have to add 

----------- add this to ivtv_xv.c in the begining

#include <stdio.h>
#include <stdlib.h>
#include <errno.h> 
#include <sys/stat.h> 
#include <fcntl.h>

------------------------------

To make it build and I still get the

Backtrace:
0: X(xf86SigHandler+0x85) [0x80cb325]

Fatal server error:
Caught signal 11.  Server aborting

I tried to add -g on the gcc line and start it using "gdb xinit"
but that gave nothing, but this was just a fast atempt so maybe -g is not debug anymore (or it never was in gcc) or I put it in the wrong section in the makefile.

I didn't manage to report the .h file problem above to ivtvdriver.org since I didn't manage to add a ticket for it, sorry for that.


Since we migth not have the same version as others (I live on ~x86)
I did a emerge -s xorg so my version are visiable, if this gives somebody a clue.

*  x11-base/xorg-server
      Latest version available: 1.1.1
      Latest version installed: 1.1.1
      Size of files: 9,096 kB
      Homepage:      http://xorg.freedesktop.org/
      Description:   X.Org X servers
      License:       xorg-server MIT

*  x11-base/xorg-x11
      Latest version available: 7.1
      Latest version installed: 7.1
      Size of files: 0 kB
      Homepage:      http://xorg.freedesktop.org
      Description:   An X11 implementation maintained by the X.Org Foundation (meta package)
      License:       as-is

Je_fro, thanks for your help and support. Ill be away on vacation for about two weeks now so I can't test anything until I come back.




Comment 15 Jeffrey Gardner (RETIRED) gentoo-dev 2006-07-30 17:07:48 UTC
Okay, see you when you get back. Have fun!

Here are my packages....

[ebuild   R   ] x11-base/xorg-server-1.0.2-r7  
[ebuild   R   ] x11-base/xorg-x11-7.0-r1  
Comment 16 Jeffrey Gardner (RETIRED) gentoo-dev 2006-08-01 07:44:21 UTC
Created attachment 93201 [details]
xf86-video-ivtvdev-0.10.6.ebuild

Please try this one when you get a chance. If the fetch fails, just grab the source from http://jeffrey.homelinux.org/xf86-video-ivtvdev-0.10.6.tar.bz2 and move it to /usr/portage/distfiles and recreate your digest.
Good Luck!
Comment 17 Jeffrey Gardner (RETIRED) gentoo-dev 2006-08-08 08:38:29 UTC
Created attachment 93762 [details]
ivtv_xdriver-0.10.6.ebuild

Improved ebuild: ivtv_xdriver-0.10.6.ebuild
Comment 18 Jeffrey Gardner (RETIRED) gentoo-dev 2006-08-08 08:39:04 UTC
Created attachment 93763 [details, diff]
ivtv_xdriver-Imakefile.patch

ivtv_xdriver-Imakefile.patch
Comment 19 Zingo "Stefan" Andersen 2006-08-13 18:25:21 UTC
Hello
I have trouble with the latest files also  (Sorry)
I had to change ~amd64 -> ~x86 and .tgz -> .tar.bz2 in the .ebuild file 
e.g.
from: 
SRC_URI="http://dl.ivtvdriver.org/xdriver/${PV}/${MY_P}.tgz"
to:
SRC_URI="http://dl.ivtvdriver.org/xdriver/${PV}/xf86-video-ivtvdev-0.10.6.tar.bz2"

then I get into trouble applying this patch also
--------------------
>>> Unpacking source...
>>> Unpacking xf86-video-ivtvdev-0.10.6.tar.bz2 to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work
/usr/local/portage/x11-drivers/xf86-video-ivtvdev/xf86-video-ivtvdev-0.10.6.ebuild: line 30: cd: /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work/xf86-video-ivtvdev_0.10.6: No such file or directory
mv: cannot stat `ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/*': No such file or directory
 * Applying xf86-video-ivtvdev-Imakefile.patch ...

 * Failed Patch: xf86-video-ivtvdev-Imakefile.patch !
 *  ( /usr/local/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-Imakefile.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/xf86-video-ivtvdev-0.10.6/temp/xf86-video-ivtvdev-Imakefile.patch-31628.out

--------------
An interesting note is that both the cd and the mv seems to fail below (se the log above)
------------------- .ebuild
src_unpack() {

        unpack ${A}
        cd ${MY_S}

        # This package uses an old build method which relied on the xfree source.
        # We move the source to ${MY_S}.
        mv ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/* .

       epatch ${FILESDIR}/${PN}-Imakefile.patch

}

------------------
Commenting out the epatch line makes it compile but it fails to install
--------------------
...
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/xf86-video-ivtvdev-0.10.6

>>> Install xf86-video-ivtvdev-0.10.6 into /var/tmp/portage/xf86-video-ivtvdev-0.10.6/image/ category x11-drivers
/usr/local/portage/x11-drivers/xf86-video-ivtvdev/xf86-video-ivtvdev-0.10.6.ebuild: line 42: cd: /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work/xf86-video-ivtvdev_0.10.6: No such file or directory
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
imake: No such file or directory
imake: No description file.
  Stop.

!!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  xf86-video-ivtvdev-0.10.6.ebuild, line 44:   Called die

!!! Running xmkmf failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
--------------------


Comment 20 Jeffrey Gardner (RETIRED) gentoo-dev 2006-08-13 22:12:27 UTC
Created attachment 94196 [details]
xf86-video-ivtvdev-0.10.6.ebuild

This works on my amd64 box. You'll have to keyword it for any other arch you want to try it on. 
/usr/local/portage/x11-drivers/xf86-video-ivtvdev/xf86-video-ivtvdev-0.10.6.ebuild
Comment 21 Jeffrey Gardner (RETIRED) gentoo-dev 2006-08-13 22:14:04 UTC
Created attachment 94197 [details, diff]
patch for xf86-video-ivtvdev-0.10.6.ebuild

place in /usr/local/portage/x11-drivers/xf86-video-ivtvdev/files/
Comment 22 Zingo "Stefan" Andersen 2006-08-14 12:18:40 UTC
------------- Xorg 1.1
This patches and compiles almost. I had to add 

diff -aurN ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/i$
--- ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/ivt$
+++ ivtv_xdriver_0.10.6-new/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv$
@@ -0,0 +1,5 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <sys/stat.h>
+#include <fcntl.h>

to your patch (I hand crafted the patch section so I dont know if it ended up compleatly correct, but it seems to work in xorg 1.0.* )

Now I get my old error with sig 11
-------------
0: X(xf86SigHandler+0x??) [0x?????????] (I dont remember the exact numbers...)

Fatal server error:
Caught signal 11.  Server aborting
------------

------------- Xorg 1.0

I got tired of "lurking around" this so I switched to the same xorg as you had 
e.g.
[ebuild   R   ] x11-base/xorg-server-1.0.2-r7  
[ebuild   R   ] x11-base/xorg-x11-7.0-r1  
and I had to recompiler ivtv,keyboard and mouse driver fo the old version.

And the good news is that it works. (I keept my patch part)

There migth be some ABI breakage between xorg-1.0 and xorg-1.1 that is not detected compiletime.

Well I'm happy for now and my wife also :). I assume that ivtv driver for xorg 1.1 will be avalible soon from ivtvdriver.org I will probably not investigate any futher if no one asks me to. Thanks je_fro for all the support and help.
Comment 23 David Grant 2006-08-30 02:02:18 UTC
Sorry for my ignorance, but does this mean that we can now run X on the TVout of the Hauppage-350 card? whereas before you could only play mythtv shows through the TVout/decoder but still had to run X through your video card.

Dave
Comment 24 Jeffrey Gardner (RETIRED) gentoo-dev 2006-08-30 07:34:02 UTC
According to http://ivtv.writeme.ch/tiki-index.php?page=XDriverHowTo

"Note, this X driver still requires that the ivtv-fb driver be installed. Using this driver just optimizes the connection between the X server and the ivtv framebuffer."
Comment 25 Sander Sweers 2006-10-12 14:42:55 UTC
(In reply to comment #23)
> Sorry for my ignorance, but does this mean that we can now run X on the TVout
> of the Hauppage-350 card? whereas before you could only play mythtv shows
> through the TVout/decoder but still had to run X through your video card.


You could always run an xserver on the ivtv framebuffer but it is very slow. This adds xv capabilities, in other words fast and you can do magic with the picture.

And when I am on the subject, thanks for comitting this ;-) I will try it on my mythbox and report if it's working.
Comment 26 Sander Sweers 2006-10-14 13:17:44 UTC
(In reply to comment #16)
> Created an attachment (id=93201) [edit]
> xf86-video-ivtvdev-0.10.6.ebuild
> 
> Please try this one when you get a chance. If the fetch fails, just grab the
> source from http://jeffrey.homelinux.org/xf86-video-ivtvdev-0.10.6.tar.bz2 and
> move it to /usr/portage/distfiles and recreate your digest.
> Good Luck!

This one works fine but the ebuild in portage fails with:

gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing   -fPIC  -I. -I../../include -I/usr/include/xorg -I/usr/include/X11 -I/usr/include/X11/extensions  -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                           -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP        -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension   -DXPRINT -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR   -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE     -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                          -DXFreeXDGA -DXvExtension           -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server                            -DXF86VIDMODE                           -DXvMCExtension                             -DSMART_SCHEDULE                                 -DBUILDDEBUG -DXResExtension                            -DX_BYTE_ORDER=X_LITTLE_ENDIAN                      -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * 1000) + 903)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DUSE_AFB                     -DX_USE_REGION_NULL   -c ivtv_xv.c
ivtv_xv.c: In function `IVTVPutImage':
ivtv_xv.c:699: error: `IVTV_YUV_TYPE_HME12' undeclared (first use in this function)
ivtv_xv.c:699: error: (Each undeclared identifier is reported only once
ivtv_xv.c:699: error: for each function it appears in.)
make: *** [ivtv_xv.o] Error 1
>>> Completed installing xf86-video-ivtvdev-0.10.6 into /var/tmp/portage/xf86-video-ivtvdev-0.10.6/image/
---------------------------------------------
emerge --info
Portage 2.1.2_pre2-r4 (default-linux/x86/2006.1/desktop, gcc-3.4.5, glibc-2.4-r3, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) XP
Gentoo Base System version 1.12.5
Last Sync: Sat, 14 Oct 2006 19:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/mine"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apache2 berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dvb dvd dvdr eds elibc_glibc emboss encode esd fam fbcon firefox fortran gdbm gif gnome gpm gstreamer gtk hal input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux ldap libg++ lirc lirc_devices_all mad mikmod mmx mmxext mp3 mpeg mysql mythtv ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_ivtvdev video_cards_nv vorbis win32codecs xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 27 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-14 22:35:40 UTC
okay, let me take a look...

Comment 28 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-14 22:38:14 UTC
I've got preliminary reports that compilation is broken agains xorg-7.1. Are you using that by chance?
Thanks.
Comment 29 Sander Sweers 2006-10-15 01:40:39 UTC
(In reply to comment #28)
> I've got preliminary reports that compilation is broken agains xorg-7.1. Are
> you using that by chance?
> Thanks.

No I masked that version because it does not work with ivtvdev. I use 7.0 and xorg-server is at 1.0.2-r7
Comment 30 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-15 13:12:32 UTC
I can't reproduce that same error, can you post the entire output from emerge xf86-video-ivtvdev ?
Thanks
Comment 31 Jesse Adelman 2006-10-16 15:04:25 UTC
Any reccomendation for those who upgraded to Xorg 7.1? Is that a fundamentally broken combo? Thanks.
Comment 32 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-16 15:33:15 UTC
at this time, yes...the ivtv xdriver doesn't appear to work with xorg 7.1

~sorry!~
Comment 33 Sander Sweers 2006-10-22 13:08:16 UTC
(In reply to comment #30)
> I can't reproduce that same error, can you post the entire output from emerge
> xf86-video-ivtvdev ?
> Thanks

Sure, here it is :)

>>> Emerging (1 of 1) x11-drivers/xf86-video-ivtvdev-0.10.6 to /
 * ivtv_xdriver_src_0.10.6.tgz MD5 ;-) ...                                                             [ ok ]
 * ivtv_xdriver_src_0.10.6.tgz RMD160 ;-) ...                                                          [ ok ]
 * ivtv_xdriver_src_0.10.6.tgz SHA1 ;-) ...                                                            [ ok ]
 * ivtv_xdriver_src_0.10.6.tgz SHA256 ;-) ...                                                          [ ok ]
 * ivtv_xdriver_src_0.10.6.tgz size ;-) ...                                                            [ ok ]
 * checking ebuild checksums ;-) ...                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                 [ ok ]
 * checking ivtv_xdriver_src_0.10.6.tgz ;-) ...                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking ivtv_xdriver_src_0.10.6.tgz to /var/tmp/portage/x11-drivers/xf86-video-ivtvdev-0.10.6/work
 * Applying ivtv_xdriver-unified.patch ...                                                             [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/xf86-video-ivtvdev-0.10.6/work/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/ ...
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
rm -f ivtvdev.o
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing   -fPIC  -I. -I../../include -I/usr/include/xorg -I/usr/include/X11 -I/usr/include/X11/extensions  -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                           -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP        -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension   -DXPRINT -DPIXPRIV -DPANORAMIX        -DRENDER -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                               -DXFreeXDGA -DXvExtension           -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server                            -DXF86VIDMODE                       -DXvMCExtension                          -DSMART_SCHEDULE                                -DBUILDDEBUG -DXResExtension                                 -DX_BYTE_ORDER=X_LITTLE_ENDIAN                          -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * 1000) + 903)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DUSE_AFB                         -DX_USE_REGION_NULL   -c ivtvdev.c
rm -f ivtvhw.o
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing   -fPIC  -I. -I../../include -I/usr/include/xorg -I/usr/include/X11 -I/usr/include/X11/extensions  -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                           -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP        -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension   -DXPRINT -DPIXPRIV -DPANORAMIX        -DRENDER -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                               -DXFreeXDGA -DXvExtension           -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server                            -DXF86VIDMODE                       -DXvMCExtension                          -DSMART_SCHEDULE                                -DBUILDDEBUG -DXResExtension                                 -DX_BYTE_ORDER=X_LITTLE_ENDIAN                          -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * 1000) + 903)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DUSE_AFB                         -DX_USE_REGION_NULL   -c ivtvhw.c
rm -f ivtv_xv.o
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing   -fPIC  -I. -I../../include -I/usr/include/xorg -I/usr/include/X11 -I/usr/include/X11/extensions  -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                           -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP        -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension   -DXPRINT -DPIXPRIV -DPANORAMIX        -DRENDER -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                               -DXFreeXDGA -DXvExtension           -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server                            -DXF86VIDMODE                       -DXvMCExtension                          -DSMART_SCHEDULE                                -DBUILDDEBUG -DXResExtension                                 -DX_BYTE_ORDER=X_LITTLE_ENDIAN                          -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * 1000) + 903)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DUSE_AFB                         -DX_USE_REGION_NULL   -c ivtv_xv.c
ivtv_xv.c: In function `IVTVPutImage':
ivtv_xv.c:699: error: `IVTV_YUV_TYPE_HME12' undeclared (first use in this function)
ivtv_xv.c:699: error: (Each undeclared identifier is reported only once
ivtv_xv.c:699: error: for each function it appears in.)
make: *** [ivtv_xv.o] Error 1
Comment 34 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-26 15:51:06 UTC
Okay, there has been progress by Ian Campbell (god bless him :).
He's got a new driver working that you can download here:
http://www.hellion.org.uk/ivtv/debian/

There are precompiled drivers ivtvdev_drv.so~$ARCH, and the amd64 version works great here. He's created a source package too, which can be generated by downloading xserver-xorg-video-ivtvdev_0.10.6.orig.tar.gz extracting and renaming it (xserver-xorg-video-ivtvdev-0.10.6) and a patch xserver-xorg-video-ivtvdev_0.10.6-1~unreleased.1.diff.gz. The trouble is that it's some kind of debian package and I can't get it to build a working driver. I end up with a driver of a different size than his, and it crashes X.

jeff 1000 33032 2006-10-24 22:37 ivtvdev_drv.so <--my driver (broken)
root root 32696 2006-10-25 04:11 /usr/lib/xorg/modules/drivers/ivtvdev_drv.so <--Ian's driver (working)

If anyone can get his source compiled properly, I'd sure be interested to hear about it. :D

Thanks,
je_fro
Comment 35 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-26 16:36:56 UTC
(Ian's new driver works with xorg-7.1. I was unclear about that.)
Comment 36 Sander Sweers 2006-10-26 17:40:20 UTC
(In reply to comment #34)
> If anyone can get his source compiled properly, I'd sure be interested to hear
> about it. :D

There is a patch in the debian/patches folder which you need to apply.
patch -p1 < debian/patches/00_xorg_7_1

When using the src and the patch from http://www.hellion.org.uk/ivtv/debian/ I can confirm all my issues with xorg-7.1 and ivtvdev have gone away. Hurray ;-)
Comment 37 Jeffrey Gardner (RETIRED) gentoo-dev 2006-10-26 18:13:36 UTC
Gah! Ian even told me about that....
Okay, look for the new package in portage tomorrow...
Comment 38 Douglas Hitchcock 2006-11-06 08:55:32 UTC
I didn't even realize it was actually in portage yet, I still had it in overlay.  However mine still hasn't changed, has this happened yet?  or was that just a joke, like FREE BEER TOMORROW :-D
Comment 39 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-06 10:09:04 UTC
still not compatible with xorg-7.1 yet....it'll be done by tonight...
Comment 40 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-06 20:58:21 UTC
Created attachment 101370 [details]
xf86-video-ivtvdev-0.10.6-r1.ebuild

should work with xorg-7.1
Many many thanks to Ian Campbell.
Comment 41 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-06 20:59:13 UTC
Created attachment 101371 [details, diff]
ivtv-0.10.6-r1-autotools.patch

ivtv-0.10.6-r1-autotools.patch
Comment 42 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-06 20:59:51 UTC
Created attachment 101372 [details, diff]
ivtv-0.10.6-r1-xorg.patch

ivtv-0.10.6-r1-xorg.patch
Comment 43 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-06 21:18:43 UTC
Comment on attachment 101372 [details, diff]
ivtv-0.10.6-r1-xorg.patch

whoops...almost there
Comment 44 Frank van de Pol (RETIRED) gentoo-dev 2006-11-08 01:01:40 UTC
Hi Jeffrey,
thanks for your work. Just want give some feedback; 
the xf86-video-ivtvdev-0.10.6-r1.ebuild now cleanly compiles on my box (x86). 

However, when starting the X Server it gives next error:
(EE) LoadModule: Module ivtvdev does not have a ivtvdevModuleData data object.
(EE) Failed to load module "ivtvdev" (invalid module, 0)

At start of the X server it tells me that it is version 7.1.1, though I have org-x11 7.1 emerged?
Comment 45 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-08 11:24:48 UTC
Yeah, sorry for the hassle....
Real life has intervened and I need a couple days to get this fixed.

Thanks,
je_fro
Comment 46 Roalt Dot Com 2006-11-29 13:34:10 UTC
Hi, I'm also trying xorg 7.1. Using ivtv-0.8.1 and using the abovexf86-video-ivtvdev-0.10.6-r1.ebuild, ivtv-0.10.6-r1-autotools.patch and ivtv-0.10.6-r1-xorg.patch (why is the last one dashed out???) I get the following error during build:

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/include/X11 -I/usr/include/xorg -MT ivtvdev.lo -MD -MP -MF .deps/ivtvdev.Tpo -c ivtvdev.c  -fPIC -DPIC -o .libs/ivtvdev.o
In file included from ivtvhw.h:10,
                 from ivtvdev.c:10:
/usr/include/linux/ivtv.h:71: error: parse error before "__u32"
/usr/include/linux/ivtv.h:73: error: parse error before "scr"
/usr/include/linux/ivtv.h:94: error: parse error before "__u32"
/usr/include/linux/ivtv.h:101: error: parse error before "__u64"
/usr/include/linux/ivtv.h:121: error: parse error before "__u32"
make[2]: *** [ivtvdev.lo] Error 1


How come? (BTW: it also complains "libtoolize: `config.guess' exists: use `--force' to overwrite" but I'm not sure if this really hurts...)
Comment 47 Jeffrey Gardner (RETIRED) gentoo-dev 2006-11-30 11:38:47 UTC
Heya Roalt....
Sorry I'm taking so long to get this done....I'm facing a crunch at the end of the semester, and I barely have time to have a decent meal!
I'm sure the build problems arise from xorg-7.1, so see if you can use the binary for awhile until I can patch this package...

Comment 48 Roalt Dot Com 2006-11-30 13:10:32 UTC
Hi Jeffrey,

Don't spoil your semester, and more importantly, don't forget to eat!

Adding '#include <asm/types.h>' on line 10 in ivtvhw.h solves the compilation issue (just before the #include <linux/ivtv.h> line).

xorg is now only complaining:
(EE) LoadModule: Module ivtvdev does not have a ivtvdevModuleData data object.

Looking further myself to see if this is caused by my manual building of the module...
Comment 49 Jeffrey Gardner (RETIRED) gentoo-dev 2006-12-13 00:34:31 UTC
Kernel and driver development is happening too fast for this driver to keep up...masking until things settle down.
Comment 50 Jason 2007-01-04 19:10:46 UTC
Im in the same boat with an unusable mythtv box now that ive upgraded to xorg 7.1 and would like to offer help testing whatever you might have.

-DB

(In reply to comment #49)
> Kernel and driver development is happening too fast for this driver to keep
> up...masking until things settle down.
> 

Comment 51 Jeffrey Gardner (RETIRED) gentoo-dev 2007-01-04 19:47:49 UTC
I'll be back on it when things settle down...
Comment 52 Jason 2007-01-06 22:53:34 UTC
so whats everyone doing as a "workaround" till the dust settles?
can we go back to version 7.0? will the ivtvdev work with it?
I cant seem to emerge 6.9 or any earlier versions.

-db
(In reply to comment #51)
> I'll be back on it when things settle down...
> 

Comment 53 Jeffrey Gardner (RETIRED) gentoo-dev 2007-01-07 23:35:38 UTC
Speaking for myself, I'm still using one of these binaries...
http://www.hellion.org.uk/ivtv/debian/ivtvdev_drv.so~amd64
http://www.hellion.org.uk/ivtv/debian/ivtvdev_drv.so~i386

The folks above claim to be able to compile Ian Campbells' source, with a couple of patches, but I haven't been able to do that with media-tv/ivtv-0.8.2.
Comment 54 Sander Sweers 2007-02-21 13:15:12 UTC
All, The Xdriver was updated with many fixes and improvements. Please be aware this needs >=kernel headers 2.6.18. If people want to be adventures please try it out and report to the list how it went.

Announcement on the devel list:
Just before John Harvey went on vacation he delivered a first Xdriver
version that supports Xorg 7.x (as well as older Xorg/Xfee86 servers).

It's available for download here:

http://ivtvdriver.org/viewcvs/xdriver/trunk.tar.gz?view=tar

It's only been tested against 7.1 servers so any feedback is welcome.
Next weekend, when John is back from his vacation, he will start on any
remaining issues (including merging some pending patches from Ian
Armstrong) and his aim is to get a full release out in the next 3-4
weeks.

According to John the performance of this new Xdriver has been improved
significantly.

So please test and post any problems on this list!
Comment 55 Sander Sweers 2007-08-02 21:13:11 UTC
There has been another round of fixes and improvements on the xdriver (now autotooled). No official release yet but I suspect there will be one soon. Link to the trunk remains the same. It should also work on kernels 2.6.22 which has ivtv included.

This needs testing so please get the source build it and report your findings on the user list ivtv-users@ivtvdriver.org. Even if it just works let us know :-)
Comment 56 Sander Sweers 2007-10-15 08:16:29 UTC
Ok, version 1 has now been released. It should be working with the default x-modular eclass but I have no time to check this out.

http://www.gossamer-threads.com/lists/ivtv/users/36974
Comment 57 Jeffrey Gardner (RETIRED) gentoo-dev 2007-10-15 15:01:17 UTC
Cool, I'll drag a television into my office and check it out...