<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>42732</bug_id>
          
          <creation_ts>2004-02-24 03:40 0000</creation_ts>
          <short_desc>FLAC&apos;s xmms plugin fails, maybe relocation/fPIC problem?</short_desc>
          <delta_ts>2004-04-18 11:58:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>PPC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>toojays@toojays.net</reporter>
          <assigned_to>eradicator@gentoo.org</assigned_to>
          <cc>ppc@gentoo.org</cc>
    
    <cc>sound@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>toojays@toojays.net</who>
            <bug_when>2004-02-24 03:40:28 0000</bug_when>
            <thetext>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&apos; 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 &quot;-fPIC&quot; 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=&quot;ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -pipe -mcpu=750&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -pipe -mcpu=750&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distcc&quot;
GENTOO_MIRRORS=&quot;ftp://mirror.internode.on.net/pub/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j7&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>toojays@toojays.net</who>
            <bug_when>2004-02-24 04:02:07 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-05 14:45:58 0000</bug_when>
            <thetext>it should have -fPIC regardless of the arch... I&apos;ll take this...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-07 19:24:43 0000</bug_when>
            <thetext>please verify that the -r1 ebuild works for you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-11 23:59:40 0000</bug_when>
            <thetext>no response, but the new ebuild works on my sparc, so I&apos;m marking fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>toojays@toojays.net</who>
            <bug_when>2004-04-18 06:22:00 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-18 11:58:37 0000</bug_when>
            <thetext>ok... it&apos;s in there for all archs.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>