Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42732

Summary: FLAC's xmms plugin fails, maybe relocation/fPIC problem?
Product: Gentoo Linux Reporter: John Steele Scott <toojays>
Component: Current packagesAssignee: Jeremy Huddleston (RETIRED) <eradicator>
Status: RESOLVED FIXED    
Severity: normal CC: ppc, sound
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Steele Scott 2004-02-24 03:40:28 UTC
After emerging flac-1.1.0, launching XMMS gives the following message in the console:

/usr/lib/xmms/Input/libxmms-flac.so: R_PPC_REL24 relocation at 0x0f4ef238 for symbol `malloc' out of range

I have come across similar errors with packages in the past, and they are caused by a program not being built with the "-fPIC" compiler flag. I note that the flac ebuild adds this flag when building on hppa, I will do the same thing and see how it goes.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.50-r1 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24-benh0-r1)
=================================================================
System uname: 2.4.24-benh0-r1 ppc 740/750
Gentoo Base System version 1.4.3.13
distcc 2.9 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=750"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc"
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa berkdb crypt cups doc dvd esd flac foomaticdb gdbm gif gnome gpm gtk
gtk2 imap imlib java jpeg kde libwww mitshm motif mozilla mpeg nls oggvorbis
opengl oss pam perl png ppc python qt readline sdl slang ssl tcpd tetex truetype
xmms xv"
Comment 1 John Steele Scott 2004-02-24 04:02:07 UTC
Okay, that worked.

On line 42 of the flac-1.1.0.ebuild, where it adds -fPIC if we have xmms and X on hppa, it needs to do that for ppc as well.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-05 14:45:58 UTC
it should have -fPIC regardless of the arch... I'll take this...
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-07 19:24:43 UTC
please verify that the -r1 ebuild works for you.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-11 23:59:40 UTC
no response, but the new ebuild works on my sparc, so I'm marking fixed.
Comment 5 John Steele Scott 2004-04-18 06:22:00 UTC
Sorry for the late reply. -r1 does not fix the problem on my ppc. I still need to add -fPIC to CFLAGS the same way the hppa people do.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-18 11:58:37 UTC
ok... it's in there for all archs.