public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re:   Help me to Solve the problem of multiple definition
@ 2001-12-21  5:28 Axel Kittenberger
  0 siblings, 0 replies; 3+ messages in thread
From: Axel Kittenberger @ 2001-12-21  5:28 UTC (permalink / raw)
  To: myw259; +Cc: gcc-help

> when I compiling glibc-2.1.2,
> display below:
> powerpc-linux-gcc -nostdlib -nostartfiles -r -o 
> /root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os '-Wl,-(' 
> /root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os 
> /root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a -lgcc '-Wl,-)'
> /root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a(init-first.os): In 
> function `_dl_start':
> init-first.os(.text+0x128): multiple definition of `_dl_start'
> /root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os(.text+0x680): 
> first defined here
> /root/LinuxPPC/CDK/powerpc-linux/bin/ld: Warning: size of symbol 
> `_dl_start' changed from 568 to 48 in init-first.os
> collect2: ld returned 1 exit status
> gmake[4]: *** 
> [/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os] Error 1
> 
> Both dl_allobjs.os and libc_pic.a has the symbol _dl_start.
> Why?
> Why?
> What can I do?
> Help me.

Your mail was quite some time ago, did you manage solve it?
I'm now figthing with the very similar problem for days, I've tried 
everything no help 

(binutils-11.2
 gcc-2.95.2
 glibc-2.1.3)

Any Ideas?

The problem seems not be soly in nthe glibc, if I use a precombiled x86->ppc 
crosscompiler I got from someone else the glibc compiles just fine. However 
if I use wy own compiled one I get this very error when compiling glibc as 
first target.

- Axel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help me to Solve the problem of multiple definition
  2001-08-08 20:49 myw259
@ 2001-08-10 13:45 ` Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2001-08-10 13:45 UTC (permalink / raw)
  To: myw259; +Cc: gcc-help

On Jul 10, 2001, "myw259@21cn.com" <myw259@21cn.com> wrote:

> init-first.os(.text+0x128): multiple definition of `_dl_start'

> Both dl_allobjs.os and libc_pic.a has the symbol _dl_start.

Yup. That's what the linker is complaning about.  This problem is not
about GCC, so this is not the best forum to ask about it.  It looks
like the problem is not in the linker either, but in glibc, so you'd
be better off asking in a glibc-specific mailing lits.  But perhaps it
would be best to try the latest release of glibc before reporting a
bug that may have already been fixed.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Help me to Solve the problem of multiple definition
@ 2001-08-08 20:49 myw259
  2001-08-10 13:45 ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: myw259 @ 2001-08-08 20:49 UTC (permalink / raw)
  To: gcc-help

when I compiling glibc-2.1.2,
display below:
powerpc-linux-gcc -nostdlib -nostartfiles -r -o 
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os '-Wl,-(' 
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os 
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a -lgcc '-Wl,-)'
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a(init-first.os): In 
function `_dl_start':
init-first.os(.text+0x128): multiple definition of `_dl_start'
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os(.text+0x680): 
first defined here
/root/LinuxPPC/CDK/powerpc-linux/bin/ld: Warning: size of symbol 
`_dl_start' changed from 568 to 48 in init-first.os
collect2: ld returned 1 exit status
gmake[4]: *** 
[/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os] Error 1

Both dl_allobjs.os and libc_pic.a has the symbol _dl_start.
Why?
Why?
What can I do?
Help me.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-21 13:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-21  5:28 Help me to Solve the problem of multiple definition Axel Kittenberger
  -- strict thread matches above, loose matches on Subject: below --
2001-08-08 20:49 myw259
2001-08-10 13:45 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).