Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195582 - media-tv/mythtv-0.20.2_p14498 builds mythreplex against current installed mythtv copy
Summary: media-tv/mythtv-0.20.2_p14498 builds mythreplex against current installed myt...
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: 2007-10-12 04:15 UTC by Chris Smith
Modified: 2008-01-21 02:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2007-10-12 04:15:40 UTC
apparently libdca has replaced libdts (libdts blocks libdca) and mythtv-0.20.2_p14498 fails to build against libdca

Reproducible: Always

Steps to Reproduce:
1.USE="dts"
2.
3.

Actual Results:  
g++  -o mythfrontend version.o main.o manualbox.o playbackbox.o viewscheduled.o globalsettings.o manualschedule.o programrecpriority.o channelrecpriority.o statusbox.o networkcontrol.o moc_manualbox.o moc_playbackbox.o moc_viewscheduled.o moc_manualschedule.o moc_programrecpriority.o moc_channelrecpriority.o moc_statusbox.o moc_networkcontrol.o   -L/usr/qt/3/lib64 -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.20.2 -lmythavformat-0.20.2 -lmythavutil-0.20.2 -lmythavcodec-0.20.2 -lmythfreemheg-0.20.2 -lmythupnp-0.20.2 -lmythlivemedia-0.20.2 -lmyth-0.20.2 -lmythui-0.20.2 -lfreetype -lmp3lame -lasound -ljack -lraw1394 -liec61883 -lavc1394 -L/usr/X11R6/lib64 -lXinerama -lXv -lXxf86vm -lXrandr -lXvMCW -lXvMC -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread
make[2]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14498/work/mythtv-0.20.2/programs/mythfrontend'
make[1]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14498/work/mythtv-0.20.2/programs'
make: *** [sub-programs] Error 2
 *
 * ERROR: media-tv/mythtv-0.20.2_p14498 failed.



removing libdca and installing libdts allows mythtv to build but world update wants to replace libdts with libdca, after that happens revdep-rebuild wants to rebuild mythtv but it fails
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 07:36:08 UTC
There's no error visible above, post something more useful please. Also emerge --info output is required.
Comment 2 Chris Smith 2007-10-12 14:52:16 UTC
Maybe using makeopts j1 instead of j3 shows the problem:

avi.c: In function ‘new_idx_frame’:
avi.c:96: warning: comparison between signed and unsigned
avi.c: In function ‘get_avi_from_index’:
avi.c:426: warning: comparison between signed and unsigned
avi.c:457: warning: comparison between signed and unsigned
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o element.o element.c
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o mpg_common.o mpg_common.c
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o multiplex.o multiplex.c
multiplex.c: In function ‘write_out_packs’:
multiplex.c:35: warning: ‘tmppts’ may be used uninitialized in this function
multiplex.c:35: note: ‘tmppts’ was declared here
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o ringbuffer.o ringbuffer.c
ringbuffer.c: In function ‘dummy_print’:
ringbuffer.c:437: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o ts.o ts.c
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o replex.o replex.c
In file included from replex.c:43:
../../../libs/libavformat/avformat.h:228: warning: ‘AVFrac’ is deprecated
../../../libs/libavformat/avformat.h:391: warning: ‘AVImageInfo’ is deprecated
../../../libs/libavformat/avformat.h:394: warning: ‘AVImageInfo’ is deprecated
../../../libs/libavformat/avformat.h:399: warning: ‘AVImageFormat’ is deprecated
../../../libs/libavformat/avformat.h:404: warning: ‘AVImageFormat’ is deprecated
../../../libs/libavformat/avformat.h:405: warning: ‘AVImageInfo’ is deprecated
../../../libs/libavformat/avformat.h:406: warning: ‘AVImageFormat’ is deprecated
../../../libs/libavformat/avformat.h:406: warning: ‘AVImageInfo’ is deprecated
gcc -c -pipe -march=nocona -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib64\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -Ireplex -I../../../libs/libavcodec -I../../../libs/libavformat -I../../../libs/libavutil -I../../../libs/libmythmpeg2 -I/usr/qt/3/include -o pes.o pes.c
g++  -o mythreplex avi.o element.o mpg_common.o multiplex.o ringbuffer.o ts.o replex.o pes.o    -L/usr/qt/3/lib64 -lmythavcodec-0.20.2 -lmythavformat-0.20.2 -lmythavutil-0.20.2 -lfreetype -lmp3lame -lasound -ljack -lraw1394 -liec61883 -lavc1394 -L/usr/X11R6/lib64 -lXinerama -lXv -lXxf86vm -lXrandr -lXvMCW -lXvMC -lGL -lGLU -L../../../libs/libavutil -L../../../libs/libavcodec -L../../../libs/libavformat -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libdts.so.0, needed by /usr/X11R6/lib64/libmythavcodec-0.20.2.so, not found (try using -rpath or -rpath-link)
/usr/X11R6/lib64/libmythavcodec-0.20.2.so: undefined reference to `dts_init'
/usr/X11R6/lib64/libmythavcodec-0.20.2.so: undefined reference to `dts_block'
/usr/X11R6/lib64/libmythavcodec-0.20.2.so: undefined reference to `dts_samples'
/usr/X11R6/lib64/libmythavcodec-0.20.2.so: undefined reference to `dts_syncinfo'
/usr/X11R6/lib64/libmythavcodec-0.20.2.so: undefined reference to `dts_frame'
/usr/X11R6/lib64/libmythavcodec-0.20.2.so: undefined reference to `dts_blocks_num'
collect2: ld returned 1 exit status
make[2]: *** [mythreplex] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14498/work/mythtv-0.20.2/programs/mythtranscode/replex'
make[1]: *** [sub-mythtranscode-replex] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14498/work/mythtv-0.20.2/programs'
make: *** [sub-programs] Error 2
 *
 * ERROR: media-tv/mythtv-0.20.2_p14498 failed.
Comment 3 Chris Smith 2007-10-12 14:52:40 UTC
emerge --info
Portage 2.1.3.12 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo x86_64)
=================================================================
System uname: 2.6.23-gentoo x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Thu, 11 Oct 2007 23:50:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://gentoo.chem.wisc.edu/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/xeffects/trunk"
SYNC="rsync://davinci.mw.realcomputerguy.com/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus dri dts dv dvb dvd dvdr dvdread encode exif fam ffmpeg flac fortran gdbm gif glitz gphoto2 gpm gstreamer gtk2 hal iconv imagemagick imap imlib ipv6 isdnlog jack java jpeg jpeg2k kde kdeenablefinal lame lcd lcms ldap mad midi mmap mmx mozcalendar mozilla mp3 mudflap musicbrainz ncurses nls nodrm nptl nptlonly nsplugin nvidia ofx ogg oggvorbis openexr opengl openmp pam pcre pda pdf perl png pppd python qt3 qt4 quicktime readline reflection samba sasl scanner sdl session slp sndfile spell spl sse sse2 ssl subversion svg tcltk tcpd theora threads tiff tk transparency truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vorbis wmf xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp" 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vmware v4l"
Unset:  CTARGET, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 15:44:30 UTC
Firstly,

warning: libdts.so.0, needed by /usr/X11R6/lib64/libmythavcodec-0.20.2.so, not
found (try using -rpath or -rpath-link)

What the heck path is that? 

Secondly, it's not attempting to build against libdca, it's using libdts.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 15:45:00 UTC
If you unmerged libdts or had it on your system, I would run revdep-rebuild
Comment 6 Chris Smith 2007-10-12 15:51:16 UTC
I thought I explained this - emerge update world wants to install libdca, libdca is blocked by libdts so libdts needs to be removed. If I reinstall libdts, then the next update attempt will spring the blockage problem again.
If libdts is truly a depend or rdepend (with use=dts) then why doesn't the mythtv emerge attempt to install libdts after it is removed (and libdca installed)? Of course if it did this wouldn't work becuase:
==========================================
emerge -pv libdts

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

Calculating dependencies... done!
[ebuild  N    ] media-libs/libdts-0.0.2-r5  USE="-debug -oss" 0 kB
[blocks B     ] media-libs/libdts (is blocking media-libs/libdca-0.0.5)
==========================================
Comment 7 Chris Smith 2007-10-12 15:56:04 UTC
# equery d libdca
[ Searching for packages depending on libdca... ]
media-libs/xine-lib-1.1.8 (dts? media-libs/libdca)
media-tv/mythtv-0.20.2_p14498 (dts? media-libs/libdca)
media-video/mplayer-1.0_rc2 (dts? media-libs/libdca)

Notice that mythtv is depending on libdca for dts support. Although it wont compile against it.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 15:59:02 UTC
wrong.

MythTV will use either libdca or libdts. If you look at the depends it's a simple or statement. libdca or libdts. Since libdca comes first, it will attempt to pull that in if you don't have either installed. If you have libdts installed, then it will happily use that.
Comment 9 Chris Smith 2007-10-12 16:03:26 UTC
But every emerge update world wants to install libdca and triggers the blocking problem.

The mythtv ebuild has:
dts? ( || ( media-libs/libdca media-libs/libdts ) )
so it should build against either.

The other programs apparently want libdca, and they can't both (libdca and libdts) be installed at the same time.

Comment 10 Chris Smith 2007-10-12 16:08:26 UTC
The other ebuilds also state either or libdca or libdts, but for some reason emerge update world wants to replace libdts with libdca.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 16:09:00 UTC
Did you run revdep-rebuild already?
Comment 12 Chris Smith 2007-10-12 16:12:35 UTC
Yes. It wants to recompile mythtv against libdca. Which fails. The reason this bug was opened.
Comment 13 Chris Smith 2007-10-12 16:20:13 UTC
 * Checking dynamic linking consistency
[ 69% ]  *   broken /usr/lib64/libmythavcodec-0.20.2.so.0.20.2 (requires libdts.so.0)
[ 100% ]
 * Generated new /root/.revdep-rebuild.3_rebuild

 * Assigning files to packages
 *   /usr/lib64/libmythavcodec-0.20.2.so.0.20.2 -> media-tv/mythtv
 * Generated new /root/.revdep-rebuild.4_packages_raw and /root/.revdep-rebuild.4_package_owners

 * Cleaning list of packages to rebuild
 * Generated new /root/.revdep-rebuild.4_packages

 * Assigning packages to ebuilds
 * Generated new /root/.revdep-rebuild.4_ebuilds

 * Evaluating package order
 * Generated new /root/.revdep-rebuild.5_order

 * All prepared. Starting rebuild
emerge --oneshot --pretend =media-tv/mythtv-0.20.2_p14498

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

Calculating dependencies... done!
[ebuild   R   ] media-tv/mythtv-0.20.2_p14498
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 16:23:59 UTC
Why do you have /usr/X11R6/? It sounds to me like you hand compiled a version of MythTV not using ebuilds or not using the in Portage ebuilds at some point and didn't remove that after not using that anymore.

Gentoo hasn't used or had a /usr/X11R6 directory in 2+ years. There's no way a 0.20.2 version of MythTV would use that directory. Since revdep-rebuild didn't turn up any results, it's 100% the fact that you compiled either direct SVN or used someone else's ebuilds.

Remove that previous installation and it will be fine. Basically the compile is attempting to link against that still installed version, which was compiled against libdts and hence your problem.
Comment 15 Chris Smith 2007-10-12 16:29:51 UTC
(In reply to comment #14)
> Why do you have /usr/X11R6/? It sounds to me like you hand compiled a version
> of MythTV not using ebuilds or not using the in Portage ebuilds at some point
> and didn't remove that after not using that anymore.
> 
> Gentoo hasn't used or had a /usr/X11R6 directory in 2+ years. There's no way a
> 0.20.2 version of MythTV would use that directory. Since revdep-rebuild didn't
> turn up any results, it's 100% the fact that you compiled either direct SVN or
> used someone else's ebuilds.
> 
> Remove that previous installation and it will be fine. Basically the compile is
> attempting to link against that still installed version, which was compiled
> against libdts and hence your problem.
> 

Sorry that is not the case.
 * Checking dynamic linking consistency
[ 69% ]  *   broken /usr/lib64/libmythavcodec-0.20.2.so.0.20.2 (requires libdts.so.0)
[ 100% ]
 * Generated new /root/.revdep-rebuild.3_rebuild

 * Assigning files to packages
 *   /usr/lib64/libmythavcodec-0.20.2.so.0.20.2 -> media-tv/mythtv
 * Generated new /root/.revdep-rebuild.4_packages_raw and /root/.revdep-rebuild.4_package_owners

 * Cleaning list of packages to rebuild
 * Generated new /root/.revdep-rebuild.4_packages

 * Assigning packages to ebuilds
 * Generated new /root/.revdep-rebuild.4_ebuilds

 * Evaluating package order
 * Generated new /root/.revdep-rebuild.5_order

 * All prepared. Starting rebuild
emerge --oneshot --pretend =media-tv/mythtv-0.20.2_p14498

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

Calculating dependencies... done!
[ebuild   R   ] media-tv/mythtv-0.20.2_p14498

(In reply to comment #14)
> Why do you have /usr/X11R6/? It sounds to me like you hand compiled a version
> of MythTV not using ebuilds or not using the in Portage ebuilds at some point
> and didn't remove that after not using that anymore.
> 
> Gentoo hasn't used or had a /usr/X11R6 directory in 2+ years. There's no way a
> 0.20.2 version of MythTV would use that directory. Since revdep-rebuild didn't
> turn up any results, it's 100% the fact that you compiled either direct SVN or
> used someone else's ebuilds.
> 
> Remove that previous installation and it will be fine. Basically the compile is
> attempting to link against that still installed version, which was compiled
> against libdts and hence your problem.
> 

Sorry that is not the case. I never installed mythtv outside of a gentoo ebuild.

$ equery b /usr/X11R6
[ Searching for file(s) /usr/X11R6 in *... ]
x11-misc/xcb-2.4 (/usr/X11R6)
x11-base/xorg-x11-7.3 (/usr/X11R6 -> ../usr)

Comment 16 Chris Smith 2007-10-12 16:32:33 UTC
(In reply to comment #14)
> Why do you have /usr/X11R6/? It sounds to me like you hand compiled a version
> of MythTV not using ebuilds or not using the in Portage ebuilds at some point
> and didn't remove that after not using that anymore.
> 
> Gentoo hasn't used or had a /usr/X11R6 directory in 2+ years. There's no way a
> 0.20.2 version of MythTV would use that directory. Since revdep-rebuild didn't
> turn up any results, it's 100% the fact that you compiled either direct SVN or
> used someone else's ebuilds.
> 
> Remove that previous installation and it will be fine. Basically the compile is
> attempting to link against that still installed version, which was compiled
> against libdts and hence your problem.
> 

Oops, got some extra info in the last post.

Sorry that is not the case. I never installed mythtv outside of a gentoo
ebuild.

$ equery b /usr/X11R6
[ Searching for file(s) /usr/X11R6 in *... ]
x11-misc/xcb-2.4 (/usr/X11R6)
x11-base/xorg-x11-7.3 (/usr/X11R6 -> ../usr)
Comment 17 Chris Smith 2007-10-12 16:36:55 UTC
/usr/X11R6 is made as an initial setup step with the emerge of x11-base/xorg-x11-7.3

I deleted /usr/X11R6 then emerged x11-base/xorg-x11 and the link was immediately created.
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 16:41:51 UTC
g++  -o mythreplex avi.o element.o mpg_common.o multiplex.o ringbuffer.o ts.o
replex.o pes.o    -L/usr/qt/3/lib64 -lmythavcodec-0.20.2 -lmythavformat-0.20.2
-lmythavutil-0.20.2 -lfreetype -lmp3lame -lasound -ljack -lraw1394 -liec61883
-lavc1394 -L/usr/X11R6/lib64 -lXinerama -lXv -lXxf86vm -lXrandr -lXvMCW -lXvMC
-lGL -lGLU -L../../../libs/libavutil -L../../../libs/libavcodec
-L../../../libs/libavformat -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: libdts.so.0, needed by /usr/X11R6/lib64/libmythavcodec-0.20.2.so, not
found (try using -rpath or -rpath-link)

The issue is that -L/usr/X11R6/lib64 is set in there way too early.
Comment 19 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 17:01:22 UTC
It's a bug in the placement of EXTRA_LIBS in mythtranscode/replex/replex.pro, I've notified the MythTV devs. They will be committing a fix shortly and once that's done a new ebuild will be added to the tree.
Comment 20 Doug Goldstein (RETIRED) gentoo-dev 2007-10-12 18:54:19 UTC
Fixed in mythtv-0.20.2_p14668. You can always unmerge your current version and re-emerge it as well. Thanks for finding this.
Comment 21 Jason 2008-01-21 02:26:59 UTC
I am having a similar issue .... any suggestions???

make[1]: Entering directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14814/work/mythtv-0.20.2/programs'
cd mythtv && /usr/qt/3/bin/qmake mythtv.pro "QMAKE=/usr/qt/3/bin/qmake" -o Makefile
cd mythtv && make -f Makefile
make[2]: Entering directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14814/work/mythtv-0.20.2/programs/mythtv'
g++ -c -pipe -mtune=i686 -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -I../.. -I../../libs -I../../libs/libmyth -I../../libs/libmythtv -I../../libs/libavutil -I../../libs/libavformat -I../../libs/libavcodec -I../../libs/libmythupnp -I../../libs/libmythui -I../../libs/libmythlivemedia -I/usr/qt/3/include -I/usr/include -I/usr/include -o main.o main.cpp
/usr/qt/3/include/qsqldatabase.h:63: warning: 'class QSqlDriverCreatorBase' has virtual functions but non-virtual destructor
g++  -o mythtv main.o    -L/usr/qt/3/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.20.2 -lmythavformat-0.20.2 -lmythavutil-0.20.2 -lmythavcodec-0.20.2 -lmythfreemheg-0.20.2 -lmythupnp-0.20.2 -lmythlivemedia-0.20.2 -lmyth-0.20.2 -lmythui-0.20.2 -lfreetype -lmp3lame -lasound -lraw1394 -liec61883 -lavc1394 -L/usr/X11R6/lib -lXinerama -lXv -lXxf86vm -lXrandr -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread
../../libs/libmythtv/libmythtv-0.20.2.so: undefined reference to `glXGetProcAddress'
collect2: ld returned 1 exit status
make[2]: *** [mythtv] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14814/work/mythtv-0.20.2/programs/mythtv'
make[1]: *** [sub-mythtv] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.20.2_p14814/work/mythtv-0.20.2/programs'
make: *** [sub-programs] Error 2
 *
 * ERROR: media-tv/mythtv-0.20.2_p14814 failed.
 * Call stack:
 *                     ebuild.sh, line 1701:  Called dyn_compile
 *                     ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                     ebuild.sh, line   44:  Called src_compile
 *   mythtv-0.20.2_p14814.ebuild, line  211:  Called die
 * The specific snippet of code:
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * 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/mythtv-0.20.2_p14814/temp/build.log'.