Public bug reported:

Binary package hint: libc6-prof

Ubuntu 7.10 SPARC
libc6, libc6-prof report source as glibc 2.6.1-1ubuntu10
Command line: 'gcc -static -lc_p -o test -pg test.c', where test.c is a simple 
"Hello World"

Linking statically against libc_p.a results in the following errors:

/usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc.a(dl-runtime.o): In 
function `_dl_call_pltexit':
(.text+0x0): multiple definition of `_dl_call_pltexit'
/usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc_p.a(dl-runtime.op):(.text+0x0):
 first defined here
/usr/bin/ld: Disabling relaxation: it will not work with multiple definitions
/usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc.a(dl-runtime.o): In 
function `_dl_fixup':
(.text+0x220): multiple definition of `_dl_fixup'
/usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc_p.a(dl-runtime.op):(.text+0x20):
 first defined here

Linkage works well on an x86 box.
I tried removing libc.a from the linking stage, but that just results in a 
missing _dl_profile_fixup symbol.

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: libc6-prof
  
- Ubuntu 7.10
+ Ubuntu 7.10 SPARC
  libc6, libc6-prof report source as glibc 2.6.1-1ubuntu10
  Command line: 'gcc -static -lc_p -o test -pg test.c', where test.c is a 
simple "Hello World"
  
  Linking statically against libc_p.a results in the following errors:
  
  /usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc.a(dl-runtime.o): In 
function `_dl_call_pltexit':
  (.text+0x0): multiple definition of `_dl_call_pltexit'
  
/usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc_p.a(dl-runtime.op):(.text+0x0):
 first defined here
  /usr/bin/ld: Disabling relaxation: it will not work with multiple definitions
  /usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc.a(dl-runtime.o): In 
function `_dl_fixup':
  (.text+0x220): multiple definition of `_dl_fixup'
  
/usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/libc_p.a(dl-runtime.op):(.text+0x20):
 first defined here
  
  Linkage works well on an x86 box.
  I tried removing libc.a from the linking stage, but that just results in a 
missing _dl_profile_fixup symbol.

-- 
Cannot link against libc_p.a
https://bugs.launchpad.net/bugs/274847
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to