[mythtv] Undefined reference in libmyth
Nigel Pearson
nigel at ind.tansu.com.au
Tue Nov 27 21:46:52 UTC 2007
> This problem in circle dependency in myth libraries.
>
>
> libmythupnp reverse depends to libmyth, and libmyth depends on
> libmythupnp:
> $ ldd -r libs/libmythupnp/libmythupnp-0.20.so|grep libmyth
> libmyth-0.20.so.0 => /usr/lib/libmyth-0.20.so.0 (0xb7bda000)
> libmythui-0.20.so.0 => /usr/lib/libmythui-0.20.so.0
> (0xb716b000)
>
> This is impossible - link libmyth with libmythupnp, and libmythupnp
> with
> libmyth at one time without unresolved symbols. How to fix it ?
You are right about the dependencies - that isn't ideal,
but it isn't the only myth library with that problem.
libmythui also has cross-dependencies with libmyth.
I did test builds on Mac OS X (GCC 4.0.1) and Linux
(GCC 4.1.2, GNU ld 2.17) without problems.
I will try to remove the libmyth dependencies
from libmythupnp as soon as possible,
but as a hacky workaround for you,
try having alternating libraries on the link line.
e.g. -lmythupnp-0.20 -lmyth-0.20 -lmythupnp-0.20
(simple edit to programs/programs-libs.pro)
--
Nigel Pearson, nigel at ind.tansu.com.au|"People say I'm strange,
Telstra Net. Eng., Sydney, Australia | does it make me a stranger?
Office: 9202 3900 Fax: 9261 3912 | My best friend was born...
Mobile: 0408 664435 Home: 9792 6998 | in a manger" -DC Talk
More information about the mythtv-dev
mailing list