<?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>20948</bug_id>
          
          <creation_ts>2003-05-13 12:01 0000</creation_ts>
          <short_desc>libelf doesn&apos;t doesn&apos;t link properly with binutils 2.14.90.0.1-r1</short_desc>
          <delta_ts>2003-06-27 04:24:28 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>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@ekkes.com</reporter>
          <assigned_to>release@gentoo.org</assigned_to>
          <cc>craigsproule@optusnet.com.au</cc>
    
    <cc>cretin@gentoo.org</cc>
    
    <cc>dragnet@bokeoa.com</cc>
    
    <cc>plaes@plaes.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@ekkes.com</who>
            <bug_when>2003-05-13 12:01:13 0000</bug_when>
            <thetext>Prelink doesn&apos;t compile with binutils 2.14.90.0-r1.
Reverting back to binutils 2.13.90.0.20-r1 solves the problem and prelink
compiles fine.

Reproducible: Always
Steps to Reproduce:
1.emerge binutils 2.14.90.0.1-r1
2.emerge prelink
3.

Actual Results:  
Emerging prelink failed with the following error message:

gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx   -Wall
-march=pentium2 -O3 -pipe -fomit-frame-pointer -c `test -f &apos;arch-sh.c&apos; || echo
&apos;./&apos;`arch-sh.c
source=&apos;arch-ia64.c&apos; object=&apos;arch-ia64.o&apos; libtool=no \
depfile=&apos;.deps/arch-ia64.Po&apos; tmpdepfile=&apos;.deps/arch-ia64.TPo&apos; \
depmode=gcc3 /bin/sh ../depcomp \
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx   -Wall
-march=pentium2 -O3 -pipe -fomit-frame-pointer -c `test -f &apos;arch-ia64.c&apos; || echo
&apos;./&apos;`arch-ia64.c
/bin/sh ../libtool --mode=link gcc -Wall -march=pentium2 -O3 -pipe
-fomit-frame-pointer   -o prelink -all-static cache.o conflict.o cxx.o data.o
doit.o dso.o dwarf2.o exec.o execle_open.o fptr.o get.o gather.o hashtab.o
layout.o main.o mdebug.o prelink.o reloc.o space.o stabs.o undo.o undoall.o
verify.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-sparc.o arch-sparc64.o
arch-x86_64.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o  -lelf 
mkdir .libs
gcc -Wall -march=pentium2 -O3 -pipe -fomit-frame-pointer -o prelink -static
cache.o conflict.o cxx.o data.o doit.o dso.o dwarf2.o exec.o execle_open.o
fptr.o get.o gather.o hashtab.o layout.o main.o mdebug.o prelink.o reloc.o
space.o stabs.o undo.o undoall.o verify.o crc32.o arch-i386.o arch-alpha.o
arch-ppc.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-s390.o arch-s390x.o
arch-arm.o arch-sh.o arch-ia64.o  -lelf
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld:
prelink: hidden symbol `__libelf_version_initialized&apos; isn&apos;t defined
collect2: ld returned 1 exit status
make[2]: *** [prelink] Error 1
make[2]: Leaving directory `/var/tmp/portage/prelink-20030217/work/prelink/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/prelink-20030217/work/prelink&apos;
make: *** [all] Error 2

!!! ERROR: sys-devel/prelink-20030217 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! Make Failed


Expected Results:  
It should compile prelink.

Here is the output of emerge info

Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-ck6 i686 Pentium II (Deschutes)
GENTOO_MIRRORS=&quot;http://ftp.snt.utwente.nl/pub/linux/gentoo/
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/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;/mnt/mp3/rescue/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
USE=&quot;x86 oss 3dnow avi crypt encode gif jpeg gnome libg++ libwww mikmod mmx mpeg
ncurses nls pdflib png quicktime truetype xml2 xmms xv zlib gdbm berkdb slang
readline java guile X sdl tcpd pam ssl perl python esd imlib oggvorbis gtk qt
kde motif opengl -apm -arts -cups -gpm -svga -alsa -mozilla -spell gtk2 mbox
mysql pic usb xml&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium2 -O3 -pipe -fomit-frame-pointer&quot;
CXXFLAGS=&quot;-march=pentium2 -O3 -pipe -fomit-frame-pointer&quot;
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache buildpkg distcc&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-05-13 13:41:08 0000</bug_when>
            <thetext>*** Bug 20830 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-05-13 14:12:00 0000</bug_when>
            <thetext>This describes the problem, looks we need to mask binutils or get gcc patched
or upgraded to 3.3!

http://gcc.gnu.org/ml/gcc/2003-04/msg01410.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-05-14 06:30:38 0000</bug_when>
            <thetext>Created an attachment (id=11962)
elfutils-0.76-hidden.diff

This fixes the problem for me, recompile elfutils with the patch and it works!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-05-14 06:41:48 0000</bug_when>
            <thetext>Added elfutils-0.76-r2 to portage, please test and report, it should all work now</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-05-14 15:50:38 0000</bug_when>
            <thetext>*** Bug 21003 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@ekkes.com</who>
            <bug_when>2003-05-14 18:56:24 0000</bug_when>
            <thetext>On my machine prelink compiles fine with the new efutils (0.76-r2).
It looks like this bug is resolved and can be closed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-05-15 07:01:48 0000</bug_when>
            <thetext>Works here also with no problems, closing bug.
Will move to x86 (stable) when the new binutils makes the move also.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-05-18 08:49:33 0000</bug_when>
            <thetext>*** Bug 21182 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2003-06-24 18:46:42 0000</bug_when>
            <thetext>the ebuild for this has mysteriously disappeared along with a few other random things... apparently like the fixed version of the nvidia ebuild. been syncing since much earlier today and after an entire day and 4 syncs things are still missing. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2003-06-24 19:17:12 0000</bug_when>
            <thetext>i should read changelogs more often. however i wasnt expecting something like removing an ebuild because a fix &apos;isnt needed anymore&apos;. Since the newer binutils ebuild is marked with - for all archs (as in this is so unstable i wouldnt even wish this on the craziest of tinkerers) could this fix be made available or at least mention of the required binutils version made in the changelog?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@ekkes.com</who>
            <bug_when>2003-06-27 04:03:46 0000</bug_when>
            <thetext>This bug is back ;-), because elfutils-0.76-r2 is removed from the portage tree.
In the ChangeLog they mention that the fix is no longer needed with the new combination of gcc/binutils 2.14.90.0.2.
That is not true. I get exactly the same error as before. I tried to compile prelink-20030505 and prelink-20030217 and both fail with the same error messages as they did before.
I&apos;m using binutils 2.14.90.0.2, gcc 3.2.3-r1, elfutils 0.76-r1.
Please recommit elfutils 0.76-r2 to the tree again to solve this bug once and for all.

This is the output of emerge info (as the system is updated and emerge info as well):
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Pentium II (Deschutes)
GENTOO_MIRRORS=&quot;http://ftp.snt.utwente.nl/pub/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/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;/mnt/mp3/rescue/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
USE=&quot;x86 oss 3dnow avi crypt encode gif jpeg gnome libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime truetype xml2 xmms xv zlib gdbm berkdb slang readline java guile X sdl tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl -apm -arts -cups -gpm -svga -alsa -mozilla -spell gtk2 mbox mysql pic usb xml&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium2 -O3 -pipe -fomit-frame-pointer&quot;
CXXFLAGS=&quot;-march=pentium2 -O3 -pipe -fomit-frame-pointer&quot;
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache buildpkg strict distcc&quot;

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-06-27 04:24:28 0000</bug_when>
            <thetext>Oh dear, silly me, I really am too iresponsible to be a dev... where is the wet fish

I have added the files back in, thanks,

Cretin</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11962</attachid>
            <date>2003-05-14 06:30 0000</date>
            <desc>elfutils-0.76-hidden.diff</desc>
            <filename>elfutils-0.76-hidden.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXIgZWxmdXRpbHMtMC43Ni5vcmlnL2xpYmVsZi9lbGZfZmlsbC5jIGVsZnV0aWxzLTAu
NzYvbGliZWxmL2VsZl9maWxsLmMKLS0tIGVsZnV0aWxzLTAuNzYub3JpZy9saWJlbGYvZWxmX2Zp
bGwuYwkyMDAyLTExLTI5IDAxOjEzOjU1LjAwMDAwMDAwMCArMDAwMAorKysgZWxmdXRpbHMtMC43
Ni9saWJlbGYvZWxmX2ZpbGwuYwkyMDAzLTA1LTE0IDExO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