I attempted to update to the most recent version of ivtv, ver. 1.2.0, and compiling fails. I've used gentoo-sources-2.6.25-r4 and r5. Reproducible: Always Steps to Reproduce: 1.emerge ivtv 2. 3. Actual Results: more build.log * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.25-gentoo-r5 * * Make sure that your I2C and V4L kernel drivers are load ed 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.25-gentoo-r5 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking ivtv-1.2.0.tar.gz to /var/tmp/portage/media-tv/ivtv-1. 2.0/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/media-tv/ivtv-1.2.0/work/iv tv-1.2.0 ... * Preparing saa717x module make -C /usr/src/linux M=/var/tmp/portage/media-tv/ivtv-1.2.0/work/i vtv-1.2.0/i2c-drivers modules make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r5' CC [M] /var/tmp/portage/media-tv/ivtv-1.2.0/work/ivtv-1.2.0/i2c-d rivers/saa717x.o Building modules, stage 2. MODPOST 1 modules CC /var/tmp/portage/media-tv/ivtv-1.2.0/work/ivtv-1.2.0/i2c-d rivers/saa717x.mod.o LD [M] /var/tmp/portage/media-tv/ivtv-1.2.0/work/ivtv-1.2.0/i2c-d rivers/saa717x.ko make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r5' g++ -D_GNU_SOURCE -O2 -Wall -g -c -o v4l2-ctl.o v4l2-ctl.cpp created ivtv-svnversion.h g++ -D_GNU_SOURCE -O2 -Wall -g -c -o v4l2-dbg.o v4l2-dbg.cpp v4l2-dbg.cpp:36:23: error: videodev2.h: No such file or directory v4l2-ctl.cpp: In function âvoid parse_crop(char*, unsigned int&, v4l 2_rect&)â: v4l2-ctl.cpp:1097: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1097: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1097: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1097: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp: In function âint main(int, char**)â: v4l2-ctl.cpp:1231: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1231: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1252: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1252: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1273: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1273: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1296: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1296: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1296: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1296: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1432: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1432: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1432: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1432: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp:1432: warning: deprecated conversion from string consta nt to âchar*â v4l2-ctl.cpp: At global scope: v4l2-ctl.cpp:802: warning: âchar* pts_to_string(char*, long unsigned int)â defined but not used g++ -D_GNU_SOURCE -O2 -Wall -g -c -o v4l2-driverids.o v4l2-driveri ds.cpp g++ -D_GNU_SOURCE -O2 -Wall -g -c -o v4l2-chipids.o v4l2-chipids.c pp cc -D_GNU_SOURCE -O2 -Wall -g -c -o ivtvctl.o ivtvctl.c v4l2-dbg.cpp: In function âunsigned int parse_type(const std::string &)â: v4l2-dbg.cpp:132: error: âV4L2_CHIP_MATCH_HOSTâ was not declared in this scope v4l2-dbg.cpp:133: error: âV4L2_CHIP_MATCH_I2C_ADDRâ was not declared in this scope v4l2-dbg.cpp:134: error: âV4L2_CHIP_MATCH_I2C_DRIVERâ was not declar ed in this scope v4l2-dbg.cpp: In function âunsigned int parse_chip(int, const std::s tring&)â: v4l2-dbg.cpp:139: error: âV4L2_CHIP_MATCH_HOSTâ was not declared in this scope v4l2-dbg.cpp:139: error: âV4L2_CHIP_MATCH_I2C_ADDRâ was not declared in this scope v4l2-dbg.cpp: In function âstd::string cap2s(unsigned int)â: v4l2-dbg.cpp:151: error: âV4L2_CAP_VIDEO_CAPTUREâ was not declared i n this scope v4l2-dbg.cpp:153: error: âV4L2_CAP_VIDEO_OUTPUTâ was not declared in this scope v4l2-dbg.cpp:155: error: âV4L2_CAP_VIDEO_OVERLAYâ was not declared i n this scope v4l2-dbg.cpp:157: error: âV4L2_CAP_VIDEO_OUTPUT_OVERLAYâ was not dec lared in this scope v4l2-dbg.cpp:159: error: âV4L2_CAP_VBI_CAPTUREâ was not declared in this scope v4l2-dbg.cpp:161: error: âV4L2_CAP_VBI_OUTPUTâ was not declared in t his scope v4l2-dbg.cpp:163: error: âV4L2_CAP_SLICED_VBI_CAPTUREâ was not decla red in this scope v4l2-dbg.cpp:165: error: âV4L2_CAP_SLICED_VBI_OUTPUTâ was not declar ed in this scope v4l2-dbg.cpp:167: error: âV4L2_CAP_RDS_CAPTUREâ was not declared in this scope v4l2-dbg.cpp:169: error: âV4L2_CAP_TUNERâ was not declared in this s cope v4l2-dbg.cpp:171: error: âV4L2_CAP_AUDIOâ was not declared in this s cope v4l2-dbg.cpp:173: error: âV4L2_CAP_RADIOâ was not declared in this s cope v4l2-dbg.cpp:175: error: âV4L2_CAP_READWRITEâ was not declared in th is scope v4l2-dbg.cpp:177: error: âV4L2_CAP_ASYNCIOâ was not declared in this scope v4l2-dbg.cpp:179: error: âV4L2_CAP_STREAMINGâ was not declared in th is scope v4l2-dbg.cpp: In function âvoid print_regs(int, v4l2_register*, long unsigned int, long unsigned int, int)â: v4l2-dbg.cpp:206: error: invalid use of incomplete type âstruct v4l2 _registerâ v4l2-dbg.cpp:184: error: forward declaration of âstruct v4l2_registe râ v4l2-dbg.cpp:207: error: âVIDIOC_DBG_G_REGISTERâ was not declared in this scope v4l2-dbg.cpp:209: error: invalid use of incomplete type âstruct v4l2 _registerâ v4l2-dbg.cpp:184: error: forward declaration of âstruct v4l2_registe râ v4l2-dbg.cpp:211: error: invalid use of incomplete type âstruct v4l2 _registerâ v4l2-dbg.cpp:184: error: forward declaration of âstruct v4l2_registe râ v4l2-dbg.cpp: In function âvoid print_chip(v4l2_chip_ident*)â: v4l2-dbg.cpp:223: error: invalid use of incomplete type âstruct v4l2 _chip_identâ v4l2-dbg.cpp:218: error: forward declaration of âstruct v4l2_chip_id entâ v4l2-dbg.cpp:229: error: invalid use of incomplete type âstruct v4l2 _chip_identâ v4l2-dbg.cpp:218: error: forward declaration of âstruct v4l2_chip_id entâ v4l2-dbg.cpp:231: error: invalid use of incomplete type âstruct v4l2 _chip_identâ v4l2-dbg.cpp:218: error: forward declaration of âstruct v4l2_chip_id entâ v4l2-dbg.cpp:231: error: invalid use of incomplete type âstruct v4l2 _chip_identâ v4l2-dbg.cpp:218: error: forward declaration of âstruct v4l2_chip_id entâ v4l2-dbg.cpp: In function âint main(int, char**)â: v4l2-dbg.cpp:277: error: aggregate âv4l2_capability vcapâ has incomp lete type and cannot be defined v4l2-dbg.cpp:278: error: aggregate âv4l2_register set_regâ has incom plete type and cannot be defined v4l2-dbg.cpp:279: error: aggregate âv4l2_register get_regâ has incom plete type and cannot be defined v4l2-dbg.cpp:280: error: aggregate âv4l2_chip_ident chip_idâ has inc omplete type and cannot be defined v4l2-dbg.cpp:324: error: âV4L2_CHIP_MATCH_I2C_DRIVERâ was not declar ed in this scope v4l2-dbg.cpp:332: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:332: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:332: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:332: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:360: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:360: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:360: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:360: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:386: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:386: warning: deprecated conversion from string constan t to âchar*â v4l2-dbg.cpp:426: error: âVIDIOC_QUERYCAPâ was not declared in this scope v4l2-dbg.cpp:444: error: âVIDIOC_DBG_S_REGISTERâ was not declared in this scope v4l2-dbg.cpp:450: error: âVIDIOC_G_CHIP_IDENTâ was not declared in t his scope v4l2-dbg.cpp:457: error: âV4L2_CHIP_MATCH_HOSTâ was not declared in this scope v4l2-dbg.cpp:460: error: âVIDIOC_G_CHIP_IDENTâ was not declared in t his scope v4l2-dbg.cpp:466: error: âV4L2_CHIP_MATCH_I2C_ADDRâ was not declared in this scope v4l2-dbg.cpp:469: error: âVIDIOC_G_CHIP_IDENTâ was not declared in t his scope v4l2-dbg.cpp:479: error: âV4L2_CHIP_MATCH_HOSTâ was not declared in this scope v4l2-dbg.cpp:514: error: âVIDIOC_LOG_STATUSâ was not declared in thi s scope make: *** [v4l2-dbg.o] Error 1 make: *** Waiting for unfinished jobs.... * ore--(92%) * ERROR: media-tv/ivtv-1.2.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3191: Called die * The specific snippet of code: * emake INCDIR="${KV_DIR}/include" || die "failed t o build utils " * The die message: * failed to build utils * * 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/me dia-tv/ivtv-1.2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/por tage/media-tv/ivtv-1.2.0/temp/environment'. Expected Results: build cleanly emerge --info WARNING: repository at /usr/local/portage is missing a repo_name entry Portage 2.2_rc1 (default-linux/x86/2007.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.25-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.25-gentoo-r4-i686-Intel-R-_Celeron-R-_CPU_2.93GHz-with-glibc2.0 Timestamp of tree: Mon, 30 Jun 2008 07:45:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O3 -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/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/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://prometheus.cs.wmich.edu/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.datapipe.net/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="" MAKEOPTS="-j2" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 audiofile avi bzip2 cairo ccache cdparanoia cdr cli cracklib crypt cups dbus divx4linux dlloader dri dts 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 kerberos ldap lirc live lm_sensors mad matroska midi mikmod mjpeg mmx mmx2 mmxext mp2 mp3 mpeg mplayer mpm-worker mudflap musepack mysql mythtv ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp oss pam pcre pda pdf pdflib perl png posix pppd python qt3 qt3support qt4 quicktime readline real reflection samba sdl session sockets spell spl srt sse sse2 sse3 ssl subtitles svg swat szip tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vorbis wifi win32codecs x264 x86 xanim xine xml xorg 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 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="serial" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have this problem too. This is probably related to comment #2 in Bug 223851, but I've been waiting for an official patch.
Fixed