This ebuild is broken for some reason. I've installed all the pre-requisites for this package. Here is my make.conf file... # cat /etc/make.conf CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" ALSA_CARDS="emu10k1" VIDEO_CARDS="ivtvdev" # emerge --info Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r2 i686) ================================================================= System uname: 2.6.18-gentoo-r2 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.12.1 Last Sync: Wed, 15 Nov 2006 13:30:06 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 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.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.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo http://adelie.polymtl.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ " 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 berkdb bitmap-fonts cli cracklib crypt cups dlloader dri dvb elibc_glibc fortran gdbm gpm iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ lirc mysql mythtv ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_ivtvdev xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY # emerge xf86-video-ivtvdev Calculating dependencies... done! >>> Emerging (1 of 1) x11-drivers/xf86-video-ivtvdev-0.10.6 to / //---------------------------------CUT--------------------------------// 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 !!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile xf86-video-ivtvdev-0.10.6.ebuild, line 41: Called x-modular_src_compile x-modular.eclass, line 333: Called x-modular_src_make x-modular.eclass, line 328: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
Yes, I know...there's a patched version in the works, but I've got no time to do anything until the weekend. If you need the driver, grab it at http://www.hellion.org.uk/ivtv/debian/ Get the binary ivtvdev_drv.so~ARCH and put it in /usr/lib/xorg/modules/drivers/ Rename the binary, taking the ~arch out. It'll work until I get our ebuild fixed. Sorry for the hassle!
If this will help; it's related to kernel linux-2.6.18 and ivtv-0.8.0. I've been getting trying to fix this error for like 2 weeks now; I gave up for a while and went back to linux-2.6.17-gentoo-r8 and ivtv-0.7.1, which compiles fine with this ebuild. I guess I should have gotten around to posting a bug sooner; since it's been a problem for a while now. Hope you get it fixed. BTW, here's my make.conf and emerge info if that will help; my system is different, but I get the exact same error. CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" FEATURES="distcc" MAKEOPTS="-j4" AUTOCLEAN="yes" USE="X acpi alsa qt kde glx opengl nvidia sse -gtk -gnome -ipv6 userlocales mysql mythtv xmltv lirc -gdbm video_cards_ivtvdev bzip2 video_cards_nv video_cards_nvidia vorbis apache2 mbox ivtv" INPUT_DEVICES="keyboard mouse" VIDEO_CARDS="nvidia nv vga ivtvdev" LIRC_DEVICES="hauppauge" Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 i686) ================================================================= System uname: 2.6.18-gentoo-r2 i686 Pentium III (Katmai) Gentoo Base System version 1.12.6 Last Sync: Tue, 14 Nov 2006 07:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 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.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.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j4" 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" USE="x86 X acpi alsa apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt cups dlloader dri elibc_glibc fortran glx gpm iconv input_devices_keyboard input_devices_mouse isdnlog ivtv kde kernel_linux libg++ lirc lirc_devices_hauppauge mbox mysql mythtv ncurses nls nptl nptlonly nvidia opengl pam pcre perl ppds pppd python qt readline reflection session spl sse ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_ivtvdev video_cards_nv video_cards_nvidia video_cards_vga vorbis xmltv xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I've got the same problem. Using the debian binary works for now. By the way, I included a #define ...HME 0 in /usr/include/linux/ivtv.h and that worked first, but then my X server had other problems, so it required a recompile. But after that I got ivtv_xv compilation errors....
Created attachment 103155 [details] ivtvdev ebuild, adds patch
Created attachment 103156 [details] patch to add define, adds include file
I just added the ebuild and patch file I used to compile it I am running kernel 2.6.18-r1, xorg-server-2.0.2-r7 Don't know if it will help anyone else
Hi Jeff, Thanks for incorporating the patch. I have it compile now, see Bug #140323, but the following happens: xorg is now only complaining: (EE) LoadModule: Module ivtvdev does not have a ivtvdevModuleData data object. (I'm using the latest xorg-server)
(In reply to comment #7) > xorg is now only complaining: > (EE) LoadModule: Module ivtvdev does not have a ivtvdevModuleData data object. > > (I'm using the latest xorg-server) I've seen this before when doing something really strange like having a 'Load "ivtvdev"' line in your xorg.conf instead of just setting it as a driver.
(In reply to comment #8) > (In reply to comment #7) > > xorg is now only complaining: > > (EE) LoadModule: Module ivtvdev does not have a ivtvdevModuleData data object. > > > > (I'm using the latest xorg-server) > > I've seen this before when doing something really strange like having a 'Load > "ivtvdev"' line in your xorg.conf instead of just setting it as a driver. No, that's not the problem here, here is a snippet from my xorg.conf: Section "Device" Identifier "Hauppauge PVR-350" Driver "ivtvdev" Option "fbdev" "/dev/fb1" BusID "PCI:00:08:0" EndSection /snipet Besides, the binary ivtvdev driver works. Could it be that for some reason the ivtvdevModuleData structure is not compiled because the XFree86LOADER variable is not set? (just a pretty wild guess)
Have you tried the following options? I've read that there's some issues with loading the driver if you use the fbdev option; using the ivtv option instead may fix your problem. Section "Device" Identifier "Hauppauge PVR 350 iTVC15 Framebuffer" Driver "ivtvdev" Option "ivtv" "/dev/fb1" Option "VideoOverlay" "on" Option "XVideo" "1" BusID "PCI:0:11:0" # lspci says 00:0b.0 EndSection BTW.... when is this patch going to get integrated into the portage tree? This patch works great for me; but every time I do an emerge sync I have to go back and manually add the patch back in.
I'll do it ASAP...
(In reply to comment #10) > BTW.... when is this patch going to get integrated into the portage tree? This > patch works great for me; but every time I do an emerge sync I have to go back > and manually add the patch back in. > That's what overlays are for :)
(In reply to comment #10) > Have you tried the following options? I've read that there's some issues with > loading the driver if you use the fbdev option; using the ivtv option instead > may fix your problem. Hi Kelly, I copied section (except the BusID) into my own xorg.conf: Section "Device" Identifier "Hauppauge PVR-350" Driver "ivtvdev" #Option "fbdev" "/dev/fb1" Option "ivtv" "/dev/fb1" Option "VideoOverlay" "on" Option "XVideo" "1" BusID "PCI:00:08:0" EndSection ...but unfortunately X keeps complaining: (II) Loading /usr/lib/xorg/modules/drivers/ivtvdev_drv.so (EE) LoadModule: Module ivtvdev does not have a ivtvdevModuleData data object. (II) UnloadModule: "ivtvdev" > BTW.... when is this patch going to get integrated into the portage tree? This > patch works great for me; but every time I do an emerge sync I have to go back > and manually add the patch back in. > I will wait until the patch is in Gentoo and then I'll try again with a newly-build ivtvdev module, until then I'll keep using the binary version I picked up.
Kernel and driver development is happening too fast for this driver to keep up...masking until things settle down.
Just so you know; this patch does still work fine on newer versions also. I just able to compile the following without any problems; just had to add the jeff2.patch file. Still don't believe that this should be in portage? 2.6.19-gentoo-r2 ivtv-0.9.1 xf86-video-ivtvdev-0.10.6 Regards, Kelly
Kelly, what version of xorg and xorg-xserver are you using?
OK, I was able to do updates yesterday 10/13 without any problems. I did emerge sync; added ~x86 to the ebuild file for ivtvdev, to remove the masking; added jeff2.patch, since it did fail compilation without this patch; and then I was up and running without a hitch. No errors on compile or boot; and xorg loads fine with output to my PVR-350. Below is some more info that might help; let me know if you need anything else. BTW, I have spent a lot of time tweaking my use flags, kernel, xorg config, etc. over the last few months; as I did run into a bunch of weird issues when I was using the old version from the ivtvdev website. I do realise that this driver is new to portage; so I can understand that we're having issues getting it integrated correctly. If you would like copies of any config files, etc. then just let me know. Peace, Kelly mythbox ~ # equery l org [ Searching for package 'org' in all categories among: ] * installed packages [I--] [ ] x11-base/xorg-server-1.0.2-r7 (0) [I--] [ ~] x11-misc/xorg-cf-files-1.0.2 (0) mythbox ~ # eselect kernel show Current kernel symlink: /usr/src/linux-2.6.19-gentoo-r2 mythbox ~ # eselect profile show Current make.profile symlink: /usr/portage/profiles/default-linux/x86/2006.1/desktop mythbox ~ # equery l org [ Searching for package 'org' in all categories among: ] * installed packages [I--] [ ] x11-base/xorg-server-1.0.2-r7 (0) [I--] [ ~] x11-misc/xorg-cf-files-1.0.2 (0) mythbox ~ # equery l ivtv [ Searching for package 'ivtv' in all categories among: ] * installed packages [I--] [ ~] media-tv/ivtv-0.9.1 (0) [I--] [ ~] x11-drivers/xf86-video-ivtvdev-0.10.6 (0) mythbox ~ # uname -a Linux mythbox 2.6.19-gentoo-r2 #1 PREEMPT Wed Dec 13 19:09:10 CST 2006 i686 Pentium III (Katmai) GenuineIntel GNU/Linux mythbox ~ # cat /etc/portage/package.keywords app-misc/lirc ~x86 media-tv/ivtv ~x86 x11-drivers/xf86-video-ivtvdev ~x86 www-apps/mythweb ~x86 media-plugins/mythweather ~x86 media-tv/mythtv ~x86 x11-themes/mythtv-themes ~x86 media-video/nvidia-settings ~x86 x11-drivers/nvidia-drivers ~x86 x11-drivers/nvidia-legacy-drivers ~x86 sys-kernel/gentoo-sources ~x86 mythbox ~ # cat /etc/portage/package.mask >=x11-base/xorg-server-1.0.99 >=x11-base/xorg-x11-7.1 >=x11-base/xorg-server-1.1.0 >=x11-drivers/xf86-input-evdev-1.1.2-r1 >=x11-drivers/xf86-input-keyboard-1.1.0 >=x11-drivers/xf86-input-mouse-1.1.1 >=x11-drivers/xf86-video-vesa-1.2.0 >=x11-drivers/xf86-video-nv-1.1.2 >=x11-drivers/xf86-video-fbdev-0.3.0 >=x11-drivers/xf86-video-v4l-0.1.1 >=x11-drivers/xf86-video-vga-4.1.0 mythbox ~ # cat /etc/portage/package.unmask media-video/nvidia-settings x11-drivers/nvidia-drivers mythbox ~ # cat /etc/portage/package.use sys-libs/glibc userlocales dev-util/subversion -nowebdav dev-lang/php dba gd session pcre posix media-video/vlc aac ffmpeg gnutls mp3 mpeg ogg rtsp stream theora httpd dvb a52 speex flac live libcaca mod truetype media-video/ffmpeg aac ogg theora xv a52 truetype encode
Well, I've tried with the jeff2 patch, and I get the following: gcc -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__amd64__ -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)" -D_XSERVER64 -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DUSE_AFB -DX_USE_REGION_NULL -c ivtv_xv.c ivtv_xv.c: In function ‘IvtvInitVideo’: ivtv_xv.c:109: warning: incompatible implicit declaration of built-in function ‘memcpy’ ivtv_xv.c: In function ‘IVTVSetupImageVideoOverlay’: ivtv_xv.c:321: warning: assignment from incompatible pointer type ivtv_xv.c: In function ‘IVTVStopVideo’: ivtv_xv.c:465: error: ‘errno’ undeclared (first use in this function) ivtv_xv.c:465: error: (Each undeclared identifier is reported only once ivtv_xv.c:465: error: for each function it appears in.) ivtv_xv.c: In function ‘de_macro_y’: ivtv_xv.c:514: warning: incompatible implicit declaration of built-in function ‘memcpy’ ivtv_xv.c: In function ‘IVTVPutImage’: ivtv_xv.c:706: error: ‘O_RDWR’ undeclared (first use in this function) ivtv_xv.c:707: error: ‘errno’ undeclared (first use in this function) ivtv_xv.c:707: error: ‘ENODEV’ undeclared (first use in this function) make: *** [ivtv_xv.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6-r2 failed. Any ideas?
Fixed in portage thanks to Wilhelm Eger and Ian Campbell.
Hey, I'm still having issues with the portage package. I just finished an emerge --sync about 5 minutes ago and now I'm getting the following. Looks like maybe the updated patch hasn't been distributed yet, maybe? I only have digest-xf86-video-ivtvdev-0.10.6 and ivtv_xdriver-unified.patch in the /usr/portage/x11-drivers/xf86-video-ivtvdev/files directory. Any suggestions; or should I just wait and try another sync tomorrow? >>> Emerging (1 of 7) 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 ] * xf86-video-ivtvdev-0.10.6.patch.tar.bz2 MD5 ;-) ... [ ok ] * xf86-video-ivtvdev-0.10.6.patch.tar.bz2 RMD160 ;-) ... [ ok ] * xf86-video-ivtvdev-0.10.6.patch.tar.bz2 SHA1 ;-) ... [ ok ] * xf86-video-ivtvdev-0.10.6.patch.tar.bz2 SHA256 ;-) ... [ ok ] * xf86-video-ivtvdev-0.10.6.patch.tar.bz2 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking ivtv_xdriver_src_0.10.6.tgz ;-) ... [ ok ] * checking xf86-video-ivtvdev-0.10.6.patch.tar.bz2 ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking ivtv_xdriver_src_0.10.6.tgz to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work >>> Unpacking xf86-video-ivtvdev-0.10.6.patch.tar.bz2 to /var/tmp/portage/xf86-video-ivtvdev-0.10.6/work * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-0.10.6.patch * ( xf86-video-ivtvdev-0.10.6.patch ) !!! ERROR: x11-drivers/xf86-video-ivtvdev-0.10.6 failed. Call stack: ebuild.sh, line 1546: Called dyn_unpack ebuild.sh, line 708: Called src_unpack xf86-video-ivtvdev-0.10.6.ebuild, line 30: Called epatch '/usr/portage/x11-drivers/xf86-video-ivtvdev/files/xf86-video-ivtvdev-0.10.6.patch' eutils.eclass, line 198: Called die !!! Cannot find $EPATCH_SOURCE! !!! If you need support, post the topmost build error, and the call stack if relevant.
Whoops...my mistake. Sync up in about half an hour, it should work then.