Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 14689] ltrace depends on LIBELF ... elfutils broken

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 14689] ltrace depends on LIBELF ... elfutils broken
  • Date: 29 May 2009 05:26:16 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=14689


Eric Sandall <sandalle AT sourcemage.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |sandalle AT sourcemage.org




--- Comment #6 from Eric Sandall <sandalle AT sourcemage.org> 2009-05-29
00:26:14 ---
It appears to be an issue when compiling elfutils on x86_64. I have three x86
and two x86_64 machines testing this, the x86 all compile elfutils fine while
both x86_64 fail to compile elfutils with the same error as GCC 4.2 gave.

# cast elfutils
...
ranlib libld_elf_i386_pic.a
gcc -Wall -Wshadow -std=gnu99 -Wunused -Wextra -Wformat=2 -O -march=core2
-fPIC -DPIC -pipe -DPIC -fPIC -O2 -rdynamic -z combreloc -s -Wl,-O1
-Wl,--hash-style=gnu -o ld ld.o ldgeneric.o ldlex.o ldscript.o symbolhash.o
sectionhash.o versionhash.o ../libebl/libebl.a ../libelf/libelf.so
../lib/libeu.a -ldl
ldgeneric.o: In function `ld_generic_open_outfile':
ldgeneric.c:(.text+0x87eb): warning: the use of `mktemp' is dangerous, better
use `mkstemp'
ldgeneric.o: In function `compute_hash_sum':
ldgeneric.c:(.text+0x1796): undefined reference to `__elf_getdata_internal'
collect2: ld returned 1 exit status
make[2]: *** [ld] Error 1
make[2]: Leaving directory `/usr/src/elfutils-0.141/src'
make[1]: Leaving directory `/usr/src/elfutils-0.141'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Works X
Doesn't work -

x86 x86_64
GCC 4.3.3 X -
GCC 4.4.0 X -
glibc 2.10.1 X -
glibc 2.9 X -

All five of these machines are using the same optimizations (except one x86,
which is missing the --hash-style=gnu and --as-needed LDFLAGS):
CFLAGS="-O2"
CXXFLAGS="-O2"
LDFLAGS="-z combreloc -s -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




Archive powered by MHonArc 2.6.24.

Top of Page