multiple definition error from dl-addr.c with addition of printf, in glibc compilation
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
On Thu, Dec 8, 2011 at 10:59 AM, solmac john <johnsolmac@gmail.com> wrote:
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
Are there any variable declarations after printf? thanks, Daniel.
i am using only printf("test\n"); Thanks, Akhilesh On Thu, Dec 8, 2011 at 2:35 PM, Daniel Baluta <daniel.baluta@gmail.com>wrote:
On Thu, Dec 8, 2011 at 10:59 AM, solmac john <johnsolmac@gmail.com> wrote:
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
Are there any variable declarations after printf?
thanks, Daniel.
Hi... On Thu, Dec 8, 2011 at 15:59, solmac john <johnsolmac@gmail.com> wrote:
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:
i sense symbol clash. Quite likely implicitly printf() means substituted into something which unfortunately means redefinition, perhaps something like double macro definition with same name etc. How about using fprintf etc? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
same fprintf even sleep is not working reason is clear to me with bellow link http://stackoverflow.com/questions/8427450/multiple-definition-error-from-dl... Thanks, Akhilesh On Thu, Dec 8, 2011 at 11:02 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com>wrote:
Hi...
On Thu, Dec 8, 2011 at 15:59, solmac john <johnsolmac@gmail.com> wrote:
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:
i sense symbol clash. Quite likely implicitly printf() means substituted into something which unfortunately means redefinition, perhaps something like double macro definition with same name etc.
How about using fprintf etc?
-- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On 09/12/2011, solmac john <johnsolmac@gmail.com> wrote:
same fprintf even sleep is not working
reason is clear to me with bellow link http://stackoverflow.com/questions/8427450/multiple-definition-error-from-dl...
Hi Akhilesh Thanks for sharing the information :) And glad you made it -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (3)
-
Daniel Baluta -
Mulyadi Santosa -
solmac john