When upgrading from 0.99 to 0.99-r1, the compile fails with the following error: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c -o headers.lo `test -f 'headers.c' || echo './'`headers.c source='enc_input.c' object='enc_input.lo' libtool=yes \ depfile='.deps/enc_input.Plo' tmpdepfile='.deps/enc_input.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c -o enc_input.lo `test -f 'enc_input.c' || echo './'`enc_input.c In file included from /usr/include/linux/videodev2.h:16, from /usr/include/linux/videodev.h:14, from enc_input.c:51: /usr/include/linux/time.h:9: redefinition of `struct timespec' /usr/include/linux/time.h:88: redefinition of `struct timeval' /usr/include/linux/time.h:119: redefinition of `struct itimerspec' In file included from enc_input.c:52: /usr/include/sys/time.h:58: redefinition of `struct timezone' /usr/include/sys/time.h:95: parse error before numeric constant /usr/include/sys/time.h:109: redefinition of `struct itimerval' make[3]: *** [enc_input.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/libdv-0.99-r1/work/libdv-0.99/libdv' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/libdv-0.99-r1/work/libdv-0.99/libdv' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libdv-0.99-r1/work/libdv-0.99' make: *** [all] Error 2 !!! ERROR: media-libs/libdv-0.99-r1 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! compile problem Reproducible: Always Steps to Reproduce: 1. emerge libdv -U 2. 3. Actual Results: see above error Expected Results: compile should have succeeded Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,2.2.5-r4, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) XP 1700+ distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs fixpackages emergemail" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu x/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://dark-lord.ihtruelsen.dyndns.org/gentoo-portage" USE="x86 cups foomaticdb gif kde gnome libg++ mad mikmod mmx nls png xml2 zlib gtkhtml alsa gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl mozilla gphoto2 gtk2 usb mysql directfb moznocompose moznoirc -mozxmlterm -mozp3p -mozaccess -mozcalendar moznomail xface 3dnow apm avi crypt dvd encode fbcon flash jpeg mpeg ncurses oss pdflib quicktime slp spell tdfx truetype voodoo3 xmms xv"
This definitely looks like something is borked with your kernel install. For some reason you have v4l2 installed in your kernel headers. I know I've asked you to do this on bug 29194, but can you please also paste the following here: portageq best_version / virtual/os-headers Thanks.
ian@minion ian $ portageq best_version / virtual/os-headers sys-kernel/linux-headers-2.4.19-r1
This is fixed. It was a linux-headers problem. Once I unmerged and re-emerged linux-headers, it worked fine.