Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305674

Re: [PATCH] um: link with -lpthread

From Richard Weinberger <richard@nod.at>
Newsgroups linux.kernel
Subject Re: [PATCH] um: link with -lpthread
Date 2016-01-10 21:20 +0100
Message-ID <qPuCZ-vW-9@gated-at.bofh.it> (permalink)
References <qLNXA-6Dn-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am 31.12.2015 um 17:06 schrieb Vegard Nossum:
> Similarly to commit fb1770aa78a43530940d0c2dd161e77bc705bdac, with gcc 5
> on Ubuntu and CONFIG_STATIC_LINK=y I was seeing these linker errors:
> 
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librt.a(timer_create.o): In function `__timer_create_new':
> (.text+0xcd): undefined reference to `pthread_once'
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librt.a(timer_create.o): In function `__timer_create_new':
> (.text+0x126): undefined reference to `pthread_attr_init'
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librt.a(timer_create.o): In function `__timer_create_new':
> (.text+0x168): undefined reference to `pthread_attr_setdetachstate'
> [...]
> 
> Obviously we also need -lpthread for librt.a.
> 
> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>

Applied!

Thanks,
//richard

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] um: link with -lpthread Richard Weinberger <richard@nod.at> - 2016-01-10 21:20 +0100

csiph-web