Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20948 - libelf doesn't doesn't link properly with binutils 2.14.90.0.1-r1
Summary: libelf doesn't doesn't link properly with binutils 2.14.90.0.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 20830 21003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-13 12:01 UTC by Arno Ekkes
Modified: 2003-06-27 04:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
elfutils-0.76-hidden.diff (elfutils-0.76-hidden.diff,789 bytes, patch)
2003-05-14 06:30 UTC, Stefan Jones (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arno Ekkes 2003-05-13 12:01:13 UTC
Prelink doesn'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 'arch-sh.c' || echo
'./'`arch-sh.c
source='arch-ia64.c' object='arch-ia64.o' libtool=no \
depfile='.deps/arch-ia64.Po' tmpdepfile='.deps/arch-ia64.TPo' \
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 'arch-ia64.c' || echo
'./'`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' isn'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'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/prelink-20030217/work/prelink'
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="http://ftp.snt.utwente.nl/pub/linux/gentoo/
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/mnt/mp3/rescue/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="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"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg distcc"
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-05-13 13:41:08 UTC
*** Bug 20830 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-05-13 14:12:00 UTC
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
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2003-05-14 06:30:38 UTC
Created attachment 11962 [details, diff]
elfutils-0.76-hidden.diff

This fixes the problem for me, recompile elfutils with the patch and it works!
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2003-05-14 06:41:48 UTC
Added elfutils-0.76-r2 to portage, please test and report, it should all work now
Comment 5 Stefan Jones (RETIRED) gentoo-dev 2003-05-14 15:50:38 UTC
*** Bug 21003 has been marked as a duplicate of this bug. ***
Comment 6 Arno Ekkes 2003-05-14 18:56:24 UTC
On my machine prelink compiles fine with the new efutils (0.76-r2).
It looks like this bug is resolved and can be closed.
Comment 7 Stefan Jones (RETIRED) gentoo-dev 2003-05-15 07:01:48 UTC
Works here also with no problems, closing bug.
Will move to x86 (stable) when the new binutils makes the move also.

Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-05-18 08:49:33 UTC
*** Bug 21182 has been marked as a duplicate of this bug. ***
Comment 9 Travis Tilley (RETIRED) gentoo-dev 2003-06-24 18:46:42 UTC
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. 
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2003-06-24 19:17:12 UTC
i should read changelogs more often. however i wasnt expecting something like removing an ebuild because a fix 'isnt needed anymore'. 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?
Comment 11 Arno Ekkes 2003-06-27 04:03:46 UTC
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'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="http://ftp.snt.utwente.nl/pub/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/mnt/mp3/rescue/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="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"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg strict distcc"

Comment 12 Stefan Jones (RETIRED) gentoo-dev 2003-06-27 04:24:28 UTC
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