<?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>14924</bug_id>
          
          <creation_ts>2003-02-01 12:58 0000</creation_ts>
          <short_desc>prelink-20021002-r1</short_desc>
          <delta_ts>2003-04-13 06:36:15 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>1.4_rc2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mckenna@cs.dal.ca</reporter>
          <assigned_to>cretin@gentoo.org</assigned_to>
          <cc>azarah@gentoo.org</cc>
    
    <cc>paulpach@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>mckenna@cs.dal.ca</who>
            <bug_when>2003-02-01 12:58:21 0000</bug_when>
            <thetext>I have tried to compile prelink-20021002-r1.

I got the error:
../src/prelink:
/var/tmp/portage/prelink-20021002-r1/work/prelink/testsuite/reloc1: Could not
find variable copy reloc is against

The exact same error occurs in all of the following tests: reloc{1,3,6,7} and
shuffle{1-5}.

I&apos;ve noticed this error mentioned once, on a Redhat forum, and it was in
reference to Gentoo users.

I&apos;m using binutils-2.13.90.0.16-r1, gcc-3.2.1-r6, glibc-2.3.1-r2, all compiled
last night.

Reproducible: Always
Steps to Reproduce:
1. &apos;emerge prelink&apos;
2. less /var/tmp/portage/prelink-*/work/prelink/test/reloc1.log
Actual Results:  
Lots of test failures

Expected Results:  
 

Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i586 AMD-K6(tm) 3D processor
GENTOO_MIRRORS=&quot;http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;/usr/portage.local&quot;
USE=&quot;x86 apm avi crypt cups encode gif jpeg libg++ libwww mikmod mpeg ncurses
nls pdflib png qtmt spell truetype xml2 xmms xv zlib gdbm berkdb readline svga
java X sdl gpm tcpd pam ssl perl python imlib oggvorbis gnome gtk opengl * -mmx
-alsa -slang -arts -tcltk -guile -ruby -postgres -esd -kde -gphoto2 -cdr
-scanner -quicktime -alpha -mips -sparc -ppc -qt -motif -static 3dfx voodoo3
3dnow oss&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i586-pc-linux-gnu&quot;
CFLAGS=&quot;-march=k6-2 -O3 -pipe -fomit-frame-pointer&quot;
CXXFLAGS=&quot;-march=k6-2 -O3 -pipe -fomit-frame-pointer&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache&quot;

(Also: tried without -O3 -fomit-frame-pointer)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-02-08 16:00:04 0000</bug_when>
            <thetext>Could be a gcc problem related to the bad loop bug on K6 and gcc-3.2.1.  

Upgrade to gcc-3.2.2, and remerge glibc, elfutils and prelink.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-02-16 17:14:06 0000</bug_when>
            <thetext>And?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>autismuk@autismuk.freeserve.co.uk</who>
            <bug_when>2003-03-02 04:55:26 0000</bug_when>
            <thetext>I have an almost identical bug. Rebuilding my Gentoo system using 1.4rc3 
from Stage 1 off the CD, using portage 2.0.47-r7, everything built fresh 
since that release. 
 
I&apos;m using gcc 3.2.2 on an Athlon XP ; have also tried reemerging gcc glibc 
and binutils with much lower optimisation ; the alternative prelink ebuilds in 
portage ; removing libelf and adding elfutils. 
 
Still same results on success/fail on prelink. Reloc 1,3,6 and all the 
shuffles fail, Reloc 2,8,9 and the layouts pass.  
 
Same setup worked on a 1.4rc2 Stage 1 build with the same optimisations. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>autismuk@autismuk.freeserve.co.uk</who>
            <bug_when>2003-03-07 15:19:20 0000</bug_when>
            <thetext>Further to my previous comment ; 
 
I rebuilt binutils, gcc and glibc with -O2 -arch=i686 (e.g. the default 
make.conf) &amp; it still gave the same errors. 
 
Using the same data (burnt to CDROM, no net access), built a new Gentoo 
system on the same level, prelink built. Changed to -O3 -arch=athlon-xp 
etc etc and rebuilt it, didn&apos;t work. Changed it back and it still didn&apos;t work.  
The hardware was almost identical KT266 VIA board + RIVATNT2. 
 
A bit stuck now as to what to try next :( 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulpach@gmail.com</who>
            <bug_when>2003-03-17 13:19:18 0000</bug_when>
            <thetext>Created an attachment (id=9533)
Patch to fix copy reloc problem.

This is a bit of a hack, but it works for me.

I was debugging the prelink utility because I was getting this problem. I
managed to produce a patch that fixed the problem for me. I will send this
patch to the prelink author, so he can produce something better.

This patch will break 64 bit machines, and for what I found, this problem only
seems to happen on 32 bit machines. At least it happens on my pentium3.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-04-13 06:36:15 0000</bug_when>
            <thetext>Added the patch, I recomend using a newer version of prelik though!
The current stable version is way old!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9533</attachid>
            <date>2003-03-17 13:19 0000</date>
            <desc>Patch to fix copy reloc problem.</desc>
            <filename>prelink.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC4uL3ByZWxpbmsvc3JjL2dldC5jCTIwMDItMTItMTIgMTg6MjA6MDQuMDAwMDAwMDAwIC0w
NjAwCisrKyBzcmMvZ2V0LmMJMjAwMy0wMy0xNiAyMzoxMDo1OS4wMDAwMDAwMDAgLTA2MDAKQEAg
LTI2OSw2ICsyNjksNyBAQAogCQkJICAgcHJlbGlua2VkLCBhZGp1c3QgdGhlIHZhbHVlIHNvIHRo
YXQgaXQgaXMgcmVsYXRpdmUKIAkJCSAgIHRvIGxpYnJhcnkgYmFzZS4gICovCiAJCQl2YWx1ZVsw
XSAtPSBkZXBzW2ldLnN0YXJ0IC0gZGVwc1tpXS5sX2FkZHI7CisJCQl2YWx1ZVswXSA9ICh1bnNp
Z25lZCBsb25nKXZhbHVlWzBdOwogCQkgICAgICB9CiAJCSAgICBicmVhazsKIAkJICB9Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>