net-www/mplayer-plugin, versions 0.71 and 0.80, both give this error when my web browser (mozilla-firebird) loaded: LoadPlugin: failed to initialize shared library /opt/netscape/plugins/mplayerplug-in.so [/opt/netscape/plugins/mplayerplug-in.so: R_PPC_REL24 relocation at 0x0d19c0c4 for symbol ` ' out of range] I solved this problem by compiling with -fPIC. The easiest way to achieve this is by changing the ebuild as follows (although I suspect this should go upstream?): --- mplayerplug-in-0.80.ebuild 2003-06-10 09:28:53.000000000 +0930 +++ mplayerplug-in-0.80-r1.ebuild 2003-06-14 14:19:00.000000000 +0930 @@ -20,7 +20,7 @@ src_compile() { [ -z "${CC}" ] && CC="gcc" - emake CC="${CC}" OPTIMIZER="${CFLAGS}" || die + emake CC="${CC}" OPTIMIZER="-fPIC ${CFLAGS}" || die }
Graham, look familiar?
PPC is plagued by that PIC vs relocation limit issue actually I'm testing a system with -fPIC and -DPIC directly planted in the CFLAGS till now the only package that make mess is mod_php to fix that issue probably the best is force PIC on ppc build
Azarah, do you think a newer version of this plugin (for mplayer-0.90) would solve this problem? Could you create this plugin (as you're responsible for mplayer)?
Not sure .. does it (as it is in portage) ? Else, can we just tweak mplayer-plugin for ppc to compile with pic ?
I'd suggest to add PIC flags they won't do any arm I think.
Could one of you guys test and add it please ?
Sorry, my iBook is currently in repair. So I have no chance to test...