Help me to Solve the problem of multiple definition

Axel Kittenberger Axel.Kittenberger@maxxio.at
Fri Dec 21 05:28:00 GMT 2001


> 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



More information about the Gcc-help mailing list