emerge of media-plugins/mythvideo-0.21_p17105 fails while linking main.o <snip> main.o main.cpp main.cpp:482:55: error: macro "REG_MEDIA_HANDLER" passed 6 arguments, but takes just 5 main.cpp:486:55: error: macro "REG_MEDIA_HANDLER" passed 6 arguments, but takes just 5 <snip> main.o: In function `main': /var/tmp/portage/media-plugins/mythvideo-0.21_p17105/work/mythplugins-0.21/mythvideo/mtd/ main.cpp:118: undefined reference to `MythContext::Init(bool)' collect2: ld returned 1 exit status make[2]: *** [mtd] Error 1 Reproducible: Always Steps to Reproduce: 1. emerge MythVideo 2. 3. Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-gentoo-r3 i686) ================================================================= System uname: 2.6.18-gentoo-r3 i686 AMD Athlon(TM) XP 2100+ Timestamp of tree: Sat, 14 Jun 2008 20:30:03 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.4.3-r4, 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/java-config/vms/ /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="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.ccccom.com" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aac aalib acl acpi alsa apache2 apm arts beagle berkdb cairo cdr cli cracklib crypt cups curl dbus dri dvb dvd dvdr dvdread eds emboss encode esd evo faac fam firefox fortran gdbm gif gnome gphoto2 gpm gstreamer gtk hal httpd iconv imagemagick imlib isdnlog ivtv jpeg kde kerberos ldap mad midi mikmod mjpeg mmx mono mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png posix pppd python qt qt3 qt3support qt4 quicktime radeon readline reflection samba sdl session shout spell spl ssl stream svg svga tcpd tiff truetype unicode usb v4l vcd vlm vorbis webdav win32codecs x86 xml xml2 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, POR
Created attachment 159844 [details] build log for MythVideo
> Timestamp of tree: Sat, 14 Jun 2008 20:30:03 +0000 Please run this sanity check first: emerge --sync emerge -vuaDN world revdep-rebuild If the mythvideo build still fails after that, please reopen this bug.
Created attachment 160775 [details] Build Log This is the new build log after doing: emerge --sync emerge -vuDN world revdep-rebuild
I get the same error after performing the following actions: emerge --sync emerge -vuDN world revdep-rebuild I also did: emerge --depclean revdep-rebuild revdep-rebuild (second time reported no actions needed)
Created attachment 160777 [details] build environment file environment file to go with build
There was an old set of includes in /usr/local/include/mythtv which were being picked up first by the compiler. The correct include files are in /usr/include/mythtv. Once the old ones were deleted every thing built. I'm not sure why the make process used the old include files. It might be a good idea to patch the build to make sure the compiler will get the correct files.