[Bug libc/23179] libpthread.so.0: undefined reference to `_IO_enable_locks@GLIBC_PRIVATE'

raajeshdasari at gmail dot com sourceware-bugzilla@sourceware.org
Mon May 14 17:27:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23179

--- Comment #4 from raajeshdasari at gmail dot com <raajeshdasari at gmail dot com> ---
(In reply to joseph@codesourcery.com from comment #2)
> On Mon, 14 May 2018, raajeshdasari at gmail dot com wrote:
> 
> > x86_64-linux-gnu-gcc --sysroot=/home/work/x86_64/rootfs/x86_64-linux-gnu -Wall
> > -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes
> > -Wstrict-prototypes -Wwrite-strings -g -O2 -L/usr/lib64 -ludev -o testdevinfo
> 
> If /usr/lib64 contains any libraries from an older glibc, you may not be 
> able to safely use -L/usr/lib64 when building with a newer sysroot.

Thanks a lot for the quick response , you are right there are old glibc
libraries are present under the /usr/lib64 path which is causing this failure.

Now the issue is fixed. I will close this ticket.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list