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

James Almer jamrial at gmail.com
Sun Jan 24 23:00:30 CET 2016

On 1/24/2016 6:22 PM, 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?

In any case, i guess the only solution would be to do a configure check
like the one for pthread_cancel, or a more complete one that checks the
actual signature of the function.

More information about the ffmpeg-devel mailing list