multiple definition error from dl-addr.c with addition of printf, in glibc compilation

solmac john johnsolmac at gmail.com
Thu Dec 8 03:59:53 EST 2011


Hi All,

in glibc-2.13/nptl/sigaction.c, i just put a simple printf("test\n"); and
my glibc compilation fails. Just adding a printf gives me multiple
definitions of _itoa from dl-addr.c and i have no idea why. Can any body
please tell me why is this happening and possible solution. For better
clarity here is the error:

Error msg :-

test/glibc-build/libc_pic.a(_itoa.os): In function `_itoa':
test/glibc-2.13/stdio-common/_itoa.c:215: multiple definition of `_itoa'
test/glibc-build/elf/dl-allobjs.os:test/glibc-2.13/elf/dl-minimal.c:300:
first defined here test/glibc-build/libc_pic.a(dl-addr.os): In function
`_dl_addr_inside_object': test/SOURCE/glibc-2.13/elf/dl-addr.c:156:
multiple definition of `_dl_addr_inside_object'
test/glibc-build/elf/dl-allobjs.os:glibc-2.13/elf/dl-open.c:658: first
defined here



Thanks,
Akhilesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111208/b2d85db5/attachment-0001.html 


More information about the Kernelnewbies mailing list