[mythtv-users] Shared library loading problems with 0.19 on debian/ppc

Magnus Ihse Bursie magnus at ihse.net
Thu Feb 16 13:49:23 UTC 2006


I'm trying to get 0.19 work on my Debian/powerpc machine. I have 
previously successfully installed 0.18.1 by getting the source package 
from Marillat, and patching it slightly to make it compile on PPC, 
without any other problems. I thought I could to the same with 0.19, 
and, indeed, it seemed to compile without problems.

However, when I try to run mythfrontend, I get:
mythfrontend: error while loading shared libraries: 
/usr/lib/libmythtv-0.19.so.0: R_PPC_REL24 relocation at 0x0fd9cf94 for 
symbol `strlen' out of range

I searched the net, and found some similar problems. The most common 
problem was that not all parts of the library was compiled with 
relocatable code. However, I've double and triple checked and 
recompiled, and as far as I can tell all files get compiled with -fPIC. 
Is there anything else that needs to be done to ensure that the library 
gets properly relocatable?

The second, more unusal, problem that was suggested on similar problems 
was that prelink could be a problem. However, I did not have prelink 
installed. I did actually install it, just to see if it seemed to change 
anything, and, well, it did... sort of. I get the same problem, only now 
the symbol in question is "fprintf" and the library is 
/usr/lib/libmythavcodec-0.19.so.0. *duh* I reverted the prelinking, and 
the old problem reapperad.

Do anyone here have a clue? Can it be some kind of gcc version problem? 
Is there something else besides compiling with -fPIC that's needed? And 
why didn't 0.18.1 break in this manner?

/Magnus


More information about the mythtv-users mailing list