Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271365 - media-tv/ivtv-utils-1.3.0-r1 doesn't build with sys-kernel/linux-headers-2.6.29
Summary: media-tv/ivtv-utils-1.3.0-r1 doesn't build with sys-kernel/linux-headers-2.6.29
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 03:07 UTC by James
Modified: 2010-08-23 20:02 UTC (History)
3 users (show)

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


Attachments
ebuild for ivtv-utils-1.4.0 (ivtv-utils-1.4.0.ebuild,3.40 KB, text/plain)
2009-06-13 14:53 UTC, James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James 2009-05-27 03:07:14 UTC
Initially I was using the fix from bug 267295 to compile ivtv-utils for kernel 2.6.29, however, following the update do linux-headers-2.6.29, neither that fix, or the unpatched ivtv-utils-1.3.0-r1 builds.

Reproducible: Always

Steps to Reproduce:
1.emerge linux-headers-2.6.29
2.emerge ivtv-utils-1.3.0-r1
3.fail

Actual Results:  
emerge -1av ivtv-utils                                                                                                                                                      

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-tv/ivtv-utils-1.3.0-r1  USE="perl" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-tv/ivtv-utils-1.3.0-r1
openpty failed: 'out of pty devices'              
 * ivtv-utils-1.3.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code                          
 * Found kernel source directory:                                              
 *     /usr/src/linux                                                          
 * Found sources for kernel version:                                           
 *     2.6.28-gentoo-r1                                                        
 *                                                                             
 * Make sure that your I2C and V4L kernel drivers are loaded as                
 * modules, and not compiled into the kernel, or IVTV will not                 
 * work.                                                                       
 *                                                                             
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.28-gentoo-r1
 * Checking for suitable kernel configuration options...                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking ivtv-utils-1.3.0.tar.gz to /var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/work
 * Applying ivtv-utils-1.3.0-2.6.27.patch ...                                                                                                                                                               [ ok ]
>>> Source unpacked in /var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/work
>>> Compiling source in /var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/work/ivtv-utils-1.3.0 ...
make -j3
make -C utils all
make[1]: Entering directory `/var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/work/ivtv-utils-1.3.0/utils'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
g++ -D_GNU_SOURCE -O2 -Wall -g -I.   -c -o v4l2-ctl.o v4l2-ctl.cpp
v4l2-ctl.cpp:816: warning: 'char* pts_to_string(char*, long unsigned int)' defined but not used
g++ -lm -o v4l2-ctl v4l2-ctl.o
g++ -D_GNU_SOURCE -O2 -Wall -g -I.   -c -o v4l2-dbg.o v4l2-dbg.cpp
v4l2-dbg.cpp: In function 'void print_regs(int, v4l2_register*, long unsigned int, long unsigned int, int)':
v4l2-dbg.cpp:223: error: invalid use of incomplete type 'struct v4l2_register'
v4l2-dbg.cpp:201: error: forward declaration of 'struct v4l2_register'
v4l2-dbg.cpp:226: error: invalid use of incomplete type 'struct v4l2_register'
v4l2-dbg.cpp:201: error: forward declaration of 'struct v4l2_register'
v4l2-dbg.cpp:228: error: invalid use of incomplete type 'struct v4l2_register'
v4l2-dbg.cpp:201: error: forward declaration of 'struct v4l2_register'
v4l2-dbg.cpp: In function 'void print_chip(v4l2_chip_ident*)':
v4l2-dbg.cpp:240: error: invalid use of incomplete type 'struct v4l2_chip_ident'
v4l2-dbg.cpp:235: error: forward declaration of 'struct v4l2_chip_ident'
v4l2-dbg.cpp:246: error: invalid use of incomplete type 'struct v4l2_chip_ident'
v4l2-dbg.cpp:235: error: forward declaration of 'struct v4l2_chip_ident'
v4l2-dbg.cpp:248: error: invalid use of incomplete type 'struct v4l2_chip_ident'
v4l2-dbg.cpp:235: error: forward declaration of 'struct v4l2_chip_ident'
v4l2-dbg.cpp:248: error: invalid use of incomplete type 'struct v4l2_chip_ident'
v4l2-dbg.cpp:235: error: forward declaration of 'struct v4l2_chip_ident'
v4l2-dbg.cpp: In function 'int main(int, char**)':
v4l2-dbg.cpp:295: error: aggregate 'v4l2_register set_reg' has incomplete type and cannot be defined
v4l2-dbg.cpp:296: error: aggregate 'v4l2_register get_reg' has incomplete type and cannot be defined
v4l2-dbg.cpp:297: error: aggregate 'v4l2_chip_ident chip_id' has incomplete type and cannot be defined
v4l2-dbg.cpp:472: error: 'VIDIOC_G_CHIP_IDENT' was not declared in this scope
v4l2-dbg.cpp:482: error: 'VIDIOC_G_CHIP_IDENT' was not declared in this scope
v4l2-dbg.cpp:491: error: 'VIDIOC_G_CHIP_IDENT' was not declared in this scope
v4l2-dbg.cpp:548: error: 'VIDIOC_G_CHIP_IDENT' was not declared in this scope
make[1]: *** [v4l2-dbg.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/work/ivtv-utils-1.3.0/utils'
make: *** [all] Error 2
 *
 * ERROR: media-tv/ivtv-utils-1.3.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3348:  Called die
 * The specific snippet of code:
 *       emake || die "failed to build"
 *  The die message:
 *   failed to build
 *
 * 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/ivtv-utils-1.3.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/temp/environment'.
 *

>>> Failed to emerge media-tv/ivtv-utils-1.3.0-r1, Log file:

>>>  '/var/tmp/portage/media-tv/ivtv-utils-1.3.0-r1/temp/build.log'

Expected Results:  
correct build

I was looking for a bug with the problems of linux-headers-2.6.29, but didn't find it, I'm sorry if I missed it, please mark this as a dup of it, if there is one.

emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 26 May 2009 08:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.datapipe.net/gentoo http://lug.mtu.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 audiofile avahi avi bluetooth branding bzip2 cairo ccache cdparanoia cdr cli consolekit cracklib crypt cups dbus divx4linux dlloader dri dts dvb dvd dvdnav dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox fortran gdbm gif glut gpm gstreamer gtk hal iconv imagemagick isdnlog ivtv java jpeg kde kdeprefix ldap libnotify lirc live lm_sensors mad matroska midi mikmod mjpeg mmx mmx2 mmxext mng mp2 mp3 mpeg mplayer mpm-worker mudflap musepack mysql mythtv ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp pam pcre pda pdf pdflib perl png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sockets spell spl srt sse sse2 ssl startup-notification subtitles svg swat sysfs szip tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vorbis webkit win32codecs x264 x86 xanim xine xinerama xinetd xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 James 2009-06-13 14:53:29 UTC
Created attachment 194556 [details]
ebuild for ivtv-utils-1.4.0

ivtv-utils-1.4.0 has been released by upstream, it builds fine, however, there are a couple of collisions blocking the merge, one is a very slight change, the other is nothing here's the diff for the change: diff /var/tmp/portage/media-tv/ivtv-utils-1.4.0/image/usr/include/linux/ivtvfb.h /usr/include/linux/ivtvfb.h
23a24
>
35c36
< #define FBIO_WAITFORVSYNC     _IOW('F', 0x20, u_int32_t)
---
> #define FBIO_WAITFORVSYNC     _IOW('F', 0x20, __u32)

I just got rid of both changes in the ebuild.  Thanks
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-29 14:14:51 UTC
Somebody wishing to fix this before I kick it?
Comment 3 SpanKY gentoo-dev 2010-02-13 08:02:18 UTC
nothing should really be installing headers into /usr/include/linux/ except for sys-kernel/linux-headers.  if media-tv/ivtv-utils is doing this, it needs to be fixed.
Comment 4 SpanKY gentoo-dev 2010-08-23 20:02:32 UTC
ivtv-utils-1.4.0 is in the tree