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

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Fri May 29 01:26:16 EDT 2009


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):
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.

More information about the SM-Grimoire-Bugs mailing list