[FFmpeg-devel] [PATCH] lavu: add ff_pthread_setname() and use it in various places

Michael Niedermayer michael at niedermayer.cc
Mon Jan 25 00:01:11 CET 2016

On Sun, Jan 24, 2016 at 10:22:45PM +0100, Clément Bœsch wrote:
> On Sun, Jan 24, 2016 at 10:09:49PM +0100, Michael Niedermayer wrote:
> [...]
> > fails to build:
> > make distclean ; ../configure  --enable-pthreads  --arch=x86_32 --target-os=linux --extra-cflags=-m32 --extra-ldflags=-m32  --enable-cross-compile && make -j12
> > In file included from libavfilter/pthread.c:30:0:
> > ffmpeg/libavutil/thread.h: In function ‘ff_thread_setname’:
> > ffmpeg/libavutil/thread.h:134:5: error: implicit declaration of function ‘pthread_setname_np’ [-Werror=implicit-function-declaration]
> > 
> Any idea what could be the cause? Old glibc maybe?

32bit doesnt get -D_GNU_SOURCE from pkg-config while 64 does here

the prototypes are under #ifdef __USE_GNU


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160125/70dff944/attachment.sig>

More information about the ffmpeg-devel mailing list