[mythtv-users] compile mythepg fails with main.o(.text+0x11f): Infunction `main':: undefined reference to`MythContext::OpenDatabase(QSqlDatabase*, bool)'

Bene Martin martin.bene at icomedias.com
Tue Jan 25 09:19:58 EST 2005


> i have following problem on
> Linux gimli 2.6.10-gentoo-r6 #1 Thu Jan 20 21:57:01 CET 2005 
> i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz 
> GenuineIntel GNU/Linux
> 
> main.o(.text+0x11f): In function `main':
> : undefined reference to 
> `MythContext::OpenDatabase(QSqlDatabase*, bool)'
> collect2: ld returned 1 exit status
> make[2]: *** [mythepg] Error 1
> make[2]: Leaving directory `/source/mythtv/programs/mythepg'
> make[1]: *** [sub-mythepg] Error 2
> make[1]: Leaving directory `/source/mythtv/programs'
> make: *** [sub-programs] Error 2

I've just had the same thing happen yesterday when trying to compile
CVS. Turns out it's trying to link against the installed versions of
myth libraries instead of the new ones it just compiled.

quick hack:

temporarily remove the installed libraries:
cd /usr/lib
mkdir xx
mv libmyth* xx

and retry the compile.

(you might want to restore the original files afterwards :-)

Bye, Martin


More information about the mythtv-users mailing list