Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22797 - mplayer-plugin won't load (relocation error)
Summary: mplayer-plugin won't load (relocation error)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-13 22:07 UTC by John Steele Scott
Modified: 2003-09-22 16:39 UTC (History)
3 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 John Steele Scott 2003-06-13 22:07:06 UTC
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
 }
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-14 15:08:01 UTC
Graham, look familiar?
Comment 2 Luca Barbato gentoo-dev 2003-06-15 08:47:00 UTC
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
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2003-06-28 18:15:25 UTC
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)?
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-14 09:45:41 UTC
Not sure .. does it (as it is in portage) ?  Else, can we just tweak 
mplayer-plugin for ppc to compile with pic ?
Comment 5 Luca Barbato gentoo-dev 2003-09-14 09:55:42 UTC
I'd suggest to add PIC flags they won't do any arm I think.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-22 15:06:39 UTC
Could one of you guys test and add it please ?
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2003-09-22 16:39:38 UTC
Sorry, my iBook is currently in repair.  So I have no chance to test...