Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42198 - mythdvd-0.14 fails compilation using /usr/lib/libmyth-0.14.so
Summary: mythdvd-0.14 fails compilation using /usr/lib/libmyth-0.14.so
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: 2004-02-19 16:45 UTC by Albert
Modified: 2004-09-10 14:02 UTC (History)
3 users (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 Albert 2004-02-19 16:45:27 UTC
I am trying to compile mythdvd-0.14 using the ebuild in portage.  During the compile, the following errors occur:

-------------------------------------------------------------
make[1]: Entering directory `/var/tmp/portage/mythdvd-0.14/work/mythdvd-0.14/mythdvd'
g++ -c -pipe -Wall -W -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/qt/3/include -o main.o main.cpp
g++ -c -pipe -Wall -W -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/qt/3/include -o dbcheck.o ../mythdvd/dbcheck.cpp
g++ -Wl,-rpath,/usr/qt/3/lib -o mtd main.o dbcheck.o   -L/usr/qt/3/lib -L/usr/X11R6/lib -L/usr/lib -lmyth-0.14 -lqt-mt -lXext -lX11 -lm -lpthread 
/usr/lib/libmyth-0.14.so: undefined reference to `XineramaIsActive'
/usr/lib/libmyth-0.14.so: undefined reference to `XineramaQueryScreens'
/usr/lib/libmyth-0.14.so: undefined reference to `XineramaQueryExtension'
collect2: ld returned 1 exit status
make[1]: *** [mtd] Error 1
make[1]: Leaving directory `/var/tmp/portage/mythdvd-0.14/work/mythdvd-0.14/mtd'
make: *** [sub-mtd] Error 2
make: *** Waiting for unfinished jobs....
g++ -c -pipe -Wall -W -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/qt/3/include -o settings.o settings.cpp
g++ -c -pipe -Wall -W -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/qt/3/include -o dbcheck.o dbcheck.cpp
rm -f libmythdvd.so
g++ -Wl,-rpath,/usr/qt/3/lib -shared -o libmythdvd.so main.o settings.o dbcheck.o   -L/usr/qt/3/lib -L/usr/lib -lqt-mt -lpthread 
make[1]: Leaving directory `/var/tmp/portage/mythdvd-0.14/work/mythdvd-0.14/mythdvd'

!!! ERROR: media-plugins/mythdvd-0.14 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! compile problem
-------------------------------------------------------------

This error is not dependent on the 'transcode' useflag.
This machine does not have Xinerama as a useflag, no support for it was built or needed.
The package compiles fine on my other machine which does have Xinerama enabled.

My emerge info:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.2-gentoo-r1)
=================================================================
System uname: 2.6.2-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fomit-f 
rame-pointer -fforce-addr -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s 
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fomit 
-frame-pointer -fforce-addr -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://mirror.cpsc.ucalgary.ca/mirror 
/gentoo.org http://gentoo.ccccom.com http://128.213.5.34/gentoo/ http://mirrors. 
tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib apm artswrappersuid avi berkdb crypt cups dga dvd encode esd  
flac foomaticdb gdbm ggi gif gnome gphoto2 gpm gstreamer imagemagick imlib joyst 
ick jpeg libg++ libwww lirc mad memlimit mikmod mmx motif mpeg mysql ncurses nls 
 nocd oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samb 
a sdl slang speex spell sse ssl svga tcpd tiff transcode truetype usb videos wmf 
 x86 xml2 xmms xosd xv zlib"
Comment 1 Max Kalika (RETIRED) gentoo-dev 2004-02-25 16:45:25 UTC
can you re-emerge mythtv (or mythfrontend -- whichever you had) and try again?
Comment 2 Albert 2004-02-25 18:07:25 UTC
I re-emerged mythtv several times, even with different CFLAGS.

I still get the same error as above.
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-02-26 12:51:42 UTC
Albert, do you happen to have FEATURES=keepwork or FEATURES=noclean?  That can explain something like this... the partly-built sources might not be picking up on the fact that libXinerama is now an archive rather than shared object.

You might try rm -rf /var/tmp/portage/*
then try emerging.
Comment 4 Albert 2004-02-26 18:51:24 UTC
The only features I have are FEATURES="autoaddcvs ccache sandbox".

I also tried rm -rf /var/tmp/portage/* earlier, and now again, but nothing.

Any other ideas?
Comment 5 Peter Andersen 2004-02-27 19:43:26 UTC
Build requires libXinerama.

Work around:
  Append "-lXinerama" to LIBS list in mtd/mtd.pro

libXinerama is generated by xfree ebuild. Current ebuild for xfree-4.3.0-r5 has xinerama disabled.
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2004-02-28 11:15:37 UTC
no it doesn't, it's just that if you ran 4.3.99 series libxinerama was a separate lib.  that's not the case in 4.3.0 where it's not separated out.
Comment 7 Milzi 2004-03-15 11:04:40 UTC
I recently had the exact same problem emerging media-plugins/mythdvd-0.14 ...

--------
snip
--------

/usr/lib/libmyth-0.14.so: undefined reference to `XineramaIsActive'
/usr/lib/libmyth-0.14.so: undefined reference to `XineramaQueryScreens'
/usr/lib/libmyth-0.14.so: undefined reference to `XineramaQueryExtension'
collect2: ld returned 1 exit status
make[1]: *** [mtd] Error 1
make[1]: Leaving directory `/var/tmp/portage/mythdvd-0.14/work/mythdvd-0.14/mtd'
make: *** [sub-mtd] Error 2
make: *** Waiting for unfinished jobs....
g++ -c -pipe -Wall -W -O3 -march=athlon-xp -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO$
/usr/qt/3/bin/moc dvdripbox.h -o moc_dvdripbox.cpp
/usr/qt/3/bin/moc titledialog.h -o moc_titledialog.cpp
g++ -c -pipe -Wall -W -O3 -march=athlon-xp -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO$
g++ -c -pipe -Wall -W -O3 -march=athlon-xp -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO$
rm -f libmythdvd.so
g++ -Wl,-rpath,/usr/qt/3/lib -shared -o libmythdvd.so dvdripbox.o dvdinfo.o titledialog.o main.o settings.o dbcheck.o moc_d$
make[1]: Leaving directory `/var/tmp/portage/mythdvd-0.14/work/mythdvd-0.14/mythdvd'

!!! ERROR: media-plugins/mythdvd-0.14 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! compile problem

--------
snap
--------

... and solved it.
Here is what I did:

In /usr/portage/x11-base/xfree/xfree-4.3.0-r5.ebuild

look for something like this:

--------
snip
--------

#       if use xinerama
#       then
#               echo "#define BuildXinerama YES" >> config/cf/host.def
#               echo "#define BuildXineramaLibrary YES" >> config/cf/host.def
#       fi

--------
snap
--------

Uncomment these lines.
Now add 'xinerama' to your USE-Variable in your /etc/make.conf

Recompile (re-emerge)
xfree86
qt
mythtv
mythdvd

Now mythdvd should compile successfully.
This worked for me.

Cheers,
Christof
Comment 8 Sébastien ESTIENNE 2004-03-20 07:56:21 UTC
i think you can fix it in the mythdvd ebuild by adding a line like this:

just before "qmake -o "Makefile" "${PN}.pro"

add this line:
echo "EXTRA_LIBS += -lXinerama" >> settings.pro

you need the same kind of fix for the mythbrowser ebuild.
Comment 9 Justin Huff 2004-04-21 12:15:08 UTC
The fix to the 0.14 ebuild also fixed the same problem on 0.13.
Comment 10 Daniel Ahlberg (RETIRED) gentoo-dev 2004-09-10 14:02:00 UTC
I think this is fixed in newver versions of mythtv.