When building a clean system with modular xorg, libquicktime failed to compile. media-libs/libquicktime-0.9.7-r1 requires libXv to compile correctly. When installing x11-base/xorg-server-1.0.2-r4, libXv is not pulled in, and is also is not requested by the libquicktime ebuild. Thus, libquicktime fails to build. All appropriate packages have been added to package.keywords. Steps to Reproduce: 1) emerge x11-base/xorg-server 2) emerge media-libs/libquicktime 3) libquicktime fails to build. Steps to Resolve 1) Manually install libXv 2) libquicktime compiles normally 3) The ebuild needs to be updated to depend on libXv Error Message: lqtplay.c:42:34: X11/extensions/Xvlib.h: No such file or directory lqtplay.c: In function `xv_init': lqtplay.c:240: error: `XvAdaptorInfo' undeclared (first use in this function) lqtplay.c:240: error: (Each undeclared identifier is reported only once lqtplay.c:240: error: for each function it appears in.) lqtplay.c:240: error: `ai' undeclared (first use in this function) lqtplay.c:241: error: `XvImageFormatValues' undeclared (first use in this function) lqtplay.c:241: error: `fo' undeclared (first use in this function) lqtplay.c:243: warning: implicit declaration of function `XvQueryExtension' lqtplay.c:247: warning: implicit declaration of function `XvQueryAdaptors' lqtplay.c:251: warning: implicit declaration of function `XvGrabPort' lqtplay.c:264: warning: implicit declaration of function `XvListImageFormats' lqtplay.c: At top level: lqtplay.c:371: error: syntax error before '*' token lqtplay.c:373: warning: return type defaults to `int' lqtplay.c: In function `xv_create_ximage': lqtplay.c:374: error: `XvImage' undeclared (first use in this function) lqtplay.c:374: error: `xvimage' undeclared (first use in this function) lqtplay.c:385: warning: implicit declaration of function `XvShmCreateImage' lqtplay.c:427: warning: implicit declaration of function `XvCreateImage' lqtplay.c: At top level: lqtplay.c:440: error: syntax error before "XvImage" lqtplay.c: In function `xv_blit': lqtplay.c:444: warning: implicit declaration of function `XvPutImage' lqtplay.c:444: error: `win' undeclared (first use in this function) lqtplay.c:444: error: `gc' undeclared (first use in this function) lqtplay.c:444: error: `xi' undeclared (first use in this function) lqtplay.c:444: error: `iw' undeclared (first use in this function) lqtplay.c:444: error: `ih' undeclared (first use in this function) lqtplay.c:444: error: `ww' undeclared (first use in this function) lqtplay.c:444: error: `wh' undeclared (first use in this function) lqtplay.c:446: warning: implicit declaration of function `XvShmPutImage' lqtplay.c: At top level: lqtplay.c:791: error: syntax error before '*' token lqtplay.c:791: warning: type defaults to `int' in declaration of `qt_xvimage' lqtplay.c:791: warning: data definition has no type or storage class lqtvrplay.c:35:34: X11/extensions/Xvlib.h: No such file or directory lqtplay.c: In function `qt_init_video': lqtplay.c:957: error: request for member `data' in something not a structure or union lqtplay.c:959: error: request for member `pitches' in something not a structure or union lqtplay.c:969: error: request for member `data' in something not a structure or union lqtplay.c:969: error: request for member `offsets' in something not a structure or union lqtplay.c:970: error: request for member `data' in something not a structure or union lqtplay.c:970: error: request for member `offsets' in something not a structure or union lqtplay.c:971: error: request for member `data' in something not a structure or union lqtplay.c:971: error: request for member `offsets' in something not a structure or union lqtplay.c:979: error: request for member `data' in something not a structure or union lqtplay.c:979: error: request for member `offsets' in something not a structure or union lqtplay.c:980: error: request for member `data' in something not a structure or union lqtplay.c:980: error: request for member `offsets' in something not a structure or union lqtplay.c:981: error: request for member `data' in something not a structure or union lqtplay.c:981: error: request for member `offsets' in something not a structure or union lqtplay.c:983: error: request for member `pitches' in something not a structure or union lqtplay.c:984: error: request for member `pitches' in something not a structure or union make[3]: *** [lqtplay.o] Error 1 make[3]: *** Waiting for unfinished jobs.... lqtvrplay.c: In function `xv_init': lqtvrplay.c:208: error: `XvAdaptorInfo' undeclared (first use in this function) lqtvrplay.c:208: error: (Each undeclared identifier is reported only once lqtvrplay.c:208: error: for each function it appears in.) lqtvrplay.c:208: error: `ai' undeclared (first use in this function) lqtvrplay.c:209: error: `XvImageFormatValues' undeclared (first use in this function) lqtvrplay.c:209: error: `fo' undeclared (first use in this function) lqtvrplay.c:211: warning: implicit declaration of function `XvQueryExtension' lqtvrplay.c:215: warning: implicit declaration of function `XvQueryAdaptors' lqtvrplay.c:219: warning: implicit declaration of function `XvGrabPort' lqtvrplay.c:232: warning: implicit declaration of function `XvListImageFormats' lqtvrplay.c: At top level: lqtvrplay.c:331: error: syntax error before '*' token lqtvrplay.c:333: warning: return type defaults to `int' lqtvrplay.c: In function `xv_create_ximage': lqtvrplay.c:334: error: `XvImage' undeclared (first use in this function) lqtvrplay.c:334: error: `xvimage' undeclared (first use in this function) lqtvrplay.c:345: warning: implicit declaration of function `XvShmCreateImage' lqtvrplay.c:387: warning: implicit declaration of function `XvCreateImage' lqtvrplay.c: At top level: lqtvrplay.c:400: error: syntax error before "XvImage" lqtvrplay.c: In function `xv_blit': lqtvrplay.c:404: warning: implicit declaration of function `XvPutImage' lqtvrplay.c:404: error: `win' undeclared (first use in this function) lqtvrplay.c:404: error: `gc' undeclared (first use in this function) lqtvrplay.c:404: error: `xi' undeclared (first use in this function) lqtvrplay.c:404: error: `iw' undeclared (first use in this function) lqtvrplay.c:404: error: `ih' undeclared (first use in this function) lqtvrplay.c:404: error: `ww' undeclared (first use in this function) lqtvrplay.c:404: error: `wh' undeclared (first use in this function) lqtvrplay.c:406: warning: implicit declaration of function `XvShmPutImage' lqtvrplay.c: At top level: lqtvrplay.c:518: error: syntax error before '*' token lqtvrplay.c:518: warning: type defaults to `int' in declaration of `qt_xvimage' lqtvrplay.c:518: warning: data definition has no type or storage class lqtvrplay.c: In function `qt_frame_blit': lqtvrplay.c:671: error: request for member `data' in something not a structure or union lqtvrplay.c:680: error: request for member `data' in something not a structure or union lqtvrplay.c:680: error: request for member `offsets' in something not a structure or union lqtvrplay.c:681: error: request for member `data' in something not a structure or union lqtvrplay.c:681: error: request for member `offsets' in something not a structure or union lqtvrplay.c:682: error: request for member `data' in something not a structure or union lqtvrplay.c:682: error: request for member `offsets' in something not a structure or union lqtvrplay.c:690: error: request for member `data' in something not a structure or union lqtvrplay.c:690: error: request for member `offsets' in something not a structure or union lqtvrplay.c:691: error: request for member `data' in something not a structure or union lqtvrplay.c:691: error: request for member `offsets' in something not a structure or union lqtvrplay.c:692: error: request for member `data' in something not a structure or union lqtvrplay.c:692: error: request for member `offsets' in something not a structure or union make[3]: *** [lqtvrplay.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/libquicktime-0.9.7-r1/work/libquicktime-0.9.7/utils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libquicktime-0.9.7-r1/work/libquicktime-0.9.7/utils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libquicktime-0.9.7-r1/work/libquicktime-0.9.7' make: *** [all] Error 2 !!! ERROR: media-libs/libquicktime-0.9.7-r1 failed. Call stack: ebuild.sh, line 1525: Called dyn_compile ebuild.sh, line 928: Called src_compile libquicktime-0.9.7-r1.ebuild, line 63: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge --info Portage 2.1_pre10-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r2, 2.6.16-reiser4-r3-nosmp i686) ================================================================= System uname: 2.6.16-reiser4-r3-nosmp i686 Intel(R) Pentium(R) M processor 2.00GHz Gentoo Base System version 1.6.14 dev-lang/python: 2.4.3-r1 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe -ftracer -fforce-addr -fweb -msse -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe -ftracer -fforce-addr -fweb -msse -msse2 -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" LANG="en_US" LC_ALL="en_US" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s,--as-needed" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dri dvd eds emboss encode esd fam flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde kdeenablefinal kdenewldflags libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly nvidia ogg opengl oss pcre pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts udev vorbis win32codecs xml xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_kbd input_devices_synaptics input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_fbdev" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
It depends on libXv with USE="X". Reopen with 'emerge -pv virtual/x11' and 'grep -Rni "virtual/x11" /etc/portage' output.