Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113419 - MythTV will not work with QT4
Summary: MythTV will not work with QT4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 113393 114052 115723 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-23 18:41 UTC by Rob K
Modified: 2006-10-18 03:30 UTC (History)
6 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 Rob K 2005-11-23 18:41:34 UTC
After doing my daily 'emerge sync' and then 'emerge --update --deep --update
--newuse world' I cannot start MythTV-backend.

I've tried the following to try to solve the issue:
unmerged qt4
re-emerged qt3
re-emerge mythtv & MySQL
re-started MySQL
tried to restart MythTVbackend

MySQL is running properly but MythTV/QT cannot connect to it due to incorrect
SQL drivers.

I get the same error everytime:

QSqlDatabase: QMYSQL3 driver not loaded
QSqlDatabase: available drivers: QPSQL7
2005-11-24 02:30:15.307 New DB connection, total: 1
2005-11-24 02:30:15.308 Unable to connect to database!
2005-11-24 02:30:15.309 No error type from QSqlError?  Strange...
2005-11-24 02:30:15.310 Failed to init MythContext, exiting.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
MythTVbackend should restart.

# emerge info
Portage 2.0.53_rc7 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.15-rc2-1 x86_64)
=================================================================
System uname: 2.6.15-rc2-1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
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.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE=""
ARCH="amd64"
AUTOCLEAN="yes"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/home/gentoo/temp/ccache"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -march=k8 -pipe -mmmx -m3dnow -msse -msse2 -mfpmath=sse,387 "
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORFGBG="10;default;0"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=k8 -pipe -mmmx -m3dnow -msse -msse2 -mfpmath=sse,387 "
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-IkRXIBWf4G,guid=ee248543898006961ec5c248d5dc3800"
DBUS_SESSION_BUS_PID="28087"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="custom"
DISPLAY=":1.0"
DISTDIR="/home/gentoo/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
FLTK_DOCDIR="/usr/share/doc/fltk-1.1.6/html"
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="custom"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="rmk"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info"
JAVAC="/opt/blackdown-jdk-1.4.2.02/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2.02"
JDK_HOME="/opt/blackdown-jdk-1.4.2.02"
KDEDIRS="/usr"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LC_TIME="en_GB"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LINGUAS="en en_GB"
LOGNAME="rob"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man::/opt/blackdown-jdk-1.4.2.02/man:/usr/qt/3/doc/man"
MOZILLA_FIVE_HOME="/usr/lib64/mozilla"
MULTILIB_ABIS="x86 amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|eclipse-3)"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/src/NETGEAR/buildroot/build_mipsel/staging_dir/bin:/usr/lib/ccache/bin:/sbin:/bin:/usr/sbin:/usr/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos s390
sh sparc x86 x86-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="28714"
PORTAGE_NICENESS="19"
PORTAGE_TMPDIR="/home/gentoo/temp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/local-portage"
PREEXEC_COMMAND="echo -en "\033]2;${CMD[*]}\a""
PRELINK_PATH=""
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8:/lib/modules:/usr/lib64/locale:/usr/lib64/wine:/usr/lib64/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js"
PWD="/home/rob"
PYTHONDOCS="/usr/share/doc/python-docs-2.4.2/html"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="360000"
SEARCH_DIRS_MASK="/home /var"
SGML_CATALOG_FILES="/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/xml-simple-docbook-4.1.2.4.cat:/etc/sgml/xml-simple-docbook-1.0.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-docbook-4.4.cat:/etc/sgml/sgml-lite.cat"
SHELL="/bin/bash"
SHLVL="3"
SSH_AGENT_PID="28092"
SSH_AUTH_SOCK="/tmp/ssh-uHcJz28061/agent.28061"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="rxvt"
TZ="Europe/London"
USE="X a52 aac acpi alsa amd64 apache2 atm audiofile avi berkdb bitmap-fonts
bluetooth bmp browserplugin bzip2 calendar cdparanoia cdr cgi cli crypt cups
curl dba dio divx4linux dlloader doc dri dts dv dvb dvd dvdr dvdread eds emboss
encode esd examples exif expat extensions fam fax fbcon ffmpeg fftw firefox flac
flash font-server foomatic foomaticdb fortran ftp gcj gd gdbm gif glut gnome gpm
grammar gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imagemagik
imap imlib innodb ipv6 jack java javascript jikes jpeg kde kdeenablefinal lcms
lesstif libwww lzo lzw lzw-tiff mad maildir mailwrapper math mhash mikmod mime
ming mjpeg mng motif mozcalendar mozilla mp3 mpeg mplayer mysql mythtv ncurses
network nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam
pcre pdf pdflib perl php pic png posix postgres ppds profiles python qt
quicktime readline real rtc ruby samba sdl sharedmem slang sockets sox speex
spell ssl static-modules svg symlink tcltk tcpd tetex theora thesaurus tidy tiff
transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8
v4l v4l2 vcd vhosts videos vim-with-x vorbis wmf xine xml xml2 xmms xosd xpm
xprint xv xvid xvmc zlib video_cards_nvidia linguas_en linguas_en_GB
userland_GNU kernel_linux elibc_glibc"
USER="root"
USERLAND="GNU"
USERNAME="rob"
USE_EXPAND="FRITZCAPI_CARDS FCDSL_CARDS VIDEO_CARDS INPUT_DEVICES LINGUAS
USERLAND KERNEL ELIBC"
VIDEO_CARDS="nvidia"
WINDOWID="18874372"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthKIHW7H"
XINITRC="/etc/X11/xinit/xinitrc"
XPSERVERLIST=""
_="/usr/bin/emerge"
firedeny="/var/lib/firewall/hosts.deny"
firedir="/var/lib/firewall"
firefile="hosts.deny"
Comment 1 Rob K 2005-11-23 18:44:24 UTC
My system is completely upto date (as of a few hours ago).  I've
revdep-rebuild'd too, just in case.
Comment 2 Rob K 2005-11-23 18:46:06 UTC
Building with QT4 doesn't seem to work.  See:

http://bugs.gentoo.org/show_bug.cgi?id=113393
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 01:01:36 UTC
Run revdep-rebuild...
Comment 4 Rob K 2005-11-24 04:04:51 UTC
(In reply to comment #3)
> Run revdep-rebuild...

I've run revdel-rebuild several times but the situation is still the same.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2005-11-24 12:48:35 UTC
This is a QT issue. The QMYSQL3 driver is not being compiled or built. The only
QT SQL driver that is being created is the PostGres SQL 7 driver based on the
output that you pasted.

Reassigning to the QT herd because this is a bug with their builds. MythTV will
start just fine once QT is fixed.
Comment 6 Rob K 2005-11-24 14:34:55 UTC
It appears that the problem is caused by something introduced in mysql-5.0.16-r2.

By downgrading to 'mysql-5.0.15' and 'qt-3.3.4-r8' I am able to run MythTV
correctly.
Comment 7 Dan A. Dickey 2005-12-01 09:09:18 UTC
You might want to see bug 114052.  
  
When a system has both qt-3 and qt-4 installed, revdep-rebuild does not  
catch the dependency of qt-3 on mysql and so does not rebuild qt-3.  
The sql plugin had unresolved libraries (libmysqlclient.so from mysql-4)  
and so will not load.  You get the "QSqlDatabase: QMYSQL3 driver not loaded" 
problem then.  I manually rebuilt qt-3 (emerge --oneshot =qt-3.3.4-r8) 
and now I can connect to the mysql database again with mythbackend. 
This is with qt-3.3.4-r8, qt-4.0.1, and mysql 5.0.16-r3 installed. 
I hope this information helps others. 
 
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2005-12-02 21:54:38 UTC
*** Bug 113393 has been marked as a duplicate of this bug. ***
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2005-12-02 21:55:08 UTC
*** Bug 114052 has been marked as a duplicate of this bug. ***
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2005-12-02 22:00:09 UTC
Someone with QT3 & QT4 can you please give me the result of the following output?

env | grep ^PATH

Along with

which moc
Comment 11 Brian O'Reilly 2005-12-02 22:28:30 UTC
Sat Dec 03 <8:23:30>]\>env | grep ^PATH
PATH=/usr/local/bin:/etc:/bin:/usr/bin:/usr/kde/3.3/bin:/usr/local/bin/gimp:/usr/games:/usr/games/
bin:/usr/local/games:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/opt/bin:/opt/sbin:/opt/nwn:~/bin

[fade]artoo:~
[Sat Dec 03 <8:23:33>]\>which moc
/usr/bin/moc
Comment 12 Caleb Tennis (RETIRED) gentoo-dev 2005-12-03 06:00:09 UTC
Does mythtv use .pro files to make makefiles?

if so, then the correct qmake needs to be used to generate them:

/usr/qt/3/bin/qmake
vs
/usr/bin/qmake
Comment 13 Artjom 2005-12-12 03:52:46 UTC
(In reply to comment #12)
> Does mythtv use .pro files to make makefiles?
> 
> if so, then the correct qmake needs to be used to generate them:
> 
> /usr/qt/3/bin/qmake
> vs
> /usr/bin/qmake

Also mythtv generate makefiles for subfolders with qmake (first string in all
Makefiles is QMAKE = qmake). You must change your PATH to compile this
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-12-16 01:33:21 UTC
*** Bug 115723 has been marked as a duplicate of this bug. ***
Comment 15 Chris Smith 2006-01-04 12:12:44 UTC
I have the same problem, cannot build mythtv.

Assuning you meant as root:
-------------------------------
~ # env | grep ^PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/stuffit/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/workstation/bin
-------------------------------
~ # which moc
/usr/bin/moc
-------------------------------

As for qmake:
-------------------------------
~ # which qmake
/usr/bin/qmake
-------------------------------
~ # whereis qmake
qmake: /usr/bin/qmake /usr/X11R6/bin/qmake /usr/bin/X11/qmake
-------------------------------
Odd that the whereis doesn't pick up /usr/qt/3/bin/qmake which does exist.
Comment 16 Caleb Tennis (RETIRED) gentoo-dev 2006-01-06 06:15:20 UTC
Try changing the qmake line in the ebuild to this:

${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed"
Comment 17 Herbie Hopkins (RETIRED) gentoo-dev 2006-01-09 03:40:39 UTC
(In reply to comment #16)
> Try changing the qmake line in the ebuild to this:
> 
> ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die
> "qmake failed"
> 

Yeah, that works for me thanks caleb.
Comment 18 Caleb Tennis (RETIRED) gentoo-dev 2006-01-09 05:19:20 UTC
Okay, I updated the ebuilds in portage.
Comment 19 Olliver Schinagl 2006-10-17 19:37:53 UTC
Ok something is still going wrong here?

I have mythtv 0.20_p11444 or wanted to try it (next to my freevo install). Besides some 'must install mysql' crap i was doing ok until the actual mythtv build.

I don't have any qt dependancies, nor qt installed (prior to mythtv) so the mythtv ebuild should have grabbed qt as a depanancy. It did, it nicely installed qt4. After some murking with the mysql useflag for qt, myth still wouldn't emerge.

In the ebuild I noticed an odd thing. It checks for minimal qt version 3.3 Obviously qt4 is higher then 3.3. It then checks wether the mysql and opengl USE flags are set on qt-3 ... so does myth work with qt4 only? Does it not but dependancies are set wrong? (I changed the req. to qt-4 in the ebuild and it's mergin, which will take a while)
Comment 20 Doug Goldstein (RETIRED) gentoo-dev 2006-10-17 20:46:13 UTC
node: You're wrong. It pulls in qt-3.3 It's a special flag that pulls in 3.3 and higher 3.x series. It does not pull in qt-4. To re-emerge qt-3.3 you need emerge =x11-libs/qt-3* after setting the mysql USE flag in /etc/portage/package.use to "x11-libs/qt mysql".

Please don't comment on fixed bugs. Just open new bugs.
Comment 21 Olliver Schinagl 2006-10-18 03:08:02 UTC
I might be wrong, but changing:
    if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then
to:
    if ! built_with_use -a =x11-libs/qt-4* mysql opengl ; then

in the latest ebuild caused it to cleanly install. first line doesn't work, second line does. I don't know the magic behind myth and qt, but this works :)
I do have 3.3.6-r2 and 4.1.4 installed btw, so something is going a little wrong here... somewhere.
Comment 22 Olliver Schinagl 2006-10-18 03:30:00 UTC
Turns out, qt3 isn't installed with mysql, only postgres. whereas qt4 IS installed with mysql. And myth specifically wants qt3 mysql driver.

If the friggin' app needs qt to have SQL support, why the $R%#$% isn't it abstracted so I can use any db backend I want. MythTV isn't all about choice now is it. Guess I won't give myth a nother shot if it's such a pain to install.