From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12111 invoked by alias); 19 Jun 2013 10:15:15 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 12061 invoked by uid 48); 19 Jun 2013 10:15:10 -0000 From: "knrstaj at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/15648] New: multiple definition of `__lll_lock_wait_private' Date: Wed, 19 Jun 2013 10:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: knrstaj at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg00149.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15648 Bug ID: 15648 Summary: multiple definition of `__lll_lock_wait_private' Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: knrstaj at gmail dot com CC: drepper.fsp at gmail dot com Hello, I build a program with gcc 4.6 and enable link time optimization. when static linking, ld show error mesage /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libpthread.a(lowlevellock.o): In function `__lll_lock_wait_private': /build/buildd/eglibc-2.15/nptl/../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:76: multiple definition of `__lll_lock_wait_private' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libc.a(libc-lowlevellock.o):(.text+0x0): first defined here /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libpthread.a(lowlevellock.o): In function `__lll_unlock_wake_private': /build/buildd/eglibc-2.15/nptl/../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:332: multiple definition of `__lll_unlock_wake_private' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libc.a(libc-lowlevellock.o):(.text+0x30): first defined here I also search relative issue like http://dev.drobilla.net/ticket/914 I see the glibc source files libc/nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: #include I am confused. Why nptl and libc share the same context? Is it a potential bug? I make the patch, and the problem is resolved. Is this correct for arm? --- a/libc/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c +++ b/libc/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c @@ -22,6 +22,8 @@ #include void +__lll_lock_wait_private (int *futex) __attribute__ ((__weak__)); +void __lll_lock_wait_private (int *futex) { do Thanks in advance Neil -- You are receiving this mail because: You are on the CC list for the bug.