Date: Tue, 08 Jul 2014 18:01:48 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191743] New: multimedia/mplayer libavcodec/frame_thread_encoder.c:50:5: error: unknown type name 'pthread_mutex_t' amd64 Message-ID: <bug-191743-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191743 Bug ID: 191743 Summary: multimedia/mplayer libavcodec/frame_thread_encoder.c:50:5: error: unknown type name 'pthread_mutex_t' amd64 Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: mikhail.rokhin@gmail.com FreeBSD win95 11.0-CURRENT FreeBSD 11.0-CURRENT #9 r267913: Thu Jun 26 20:56:49 MSK 2014 root@win95:/usr/obj/usr/src/sys/GENERIC amd64 make -C /usr/ports/multimedia/mplayer ===> Building for mplayer-1.1.r20140418_3 gmake[2]: Entering directory `/usr/ports/multimedia/mplayer/work/mplayer-export-2014-04-18' gmake -C ffmpeg libavcodec/libavcodec.a gmake[3]: Entering directory `/usr/ports/multimedia/mplayer/work/mplayer-export-2014-04-18/ffmpeg' CC libavcodec/frame_thread_encoder.o CC libavcodec/g2meet.o CC libavcodec/g722.o clangclang: warning: argument unused during compilation: '-mcpu=generic' : warning: argument unused during compilation: '-mcpu=generic' clang: warning: argument unused during compilation: '-mcpu=generic' libavcodec/frame_thread_encoder.c:50:5: error: unknown type name 'pthread_mutex_t' pthread_mutex_t buffer_mutex; ^ libavcodec/frame_thread_encoder.c:53:5: error: unknown type name 'pthread_mutex_t' pthread_mutex_t task_fifo_mutex; ^ libavcodec/frame_thread_encoder.c:54:5: error: unknown type name 'pthread_cond_t' pthread_cond_t task_fifo_cond; ^ libavcodec/frame_thread_encoder.c:57:5: error: unknown type name 'pthread_mutex_t' pthread_mutex_t finished_task_mutex; ^ libavcodec/frame_thread_encoder.c:58:5: error: unknown type name 'pthread_cond_t' pthread_cond_t finished_task_cond; ^ libavcodec/frame_thread_encoder.c:63:5: error: unknown type name 'pthread_t' pthread_t worker[MAX_THREADS]; ^ libavcodec/frame_thread_encoder.c:81:9: warning: implicit declaration of function 'pthread_mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] pthread_mutex_lock(&c->task_fifo_mutex); ^ libavcodec/frame_thread_encoder.c:84:17: warning: implicit declaration of function 'pthread_mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] pthread_mutex_unlock(&c->task_fifo_mutex); ^ libavcodec/frame_thread_encoder.c:87:13: warning: implicit declaration of function 'pthread_cond_wait' is invalid in C99 [-Wimplicit-function-declaration] pthread_cond_wait(&c->task_fifo_cond, &c->task_fifo_mutex); ^ libavcodec/frame_thread_encoder.c:107:9: warning: implicit declaration of function 'pthread_cond_signal' is invalid in C99 [-Wimplicit-function-declaration] pthread_cond_signal(&c->finished_task_cond); ^ libavcodec/frame_thread_encoder.c:175:5: warning: implicit declaration of function 'pthread_mutex_init' is invalid in C99 [-Wimplicit-function-declaration] pthread_mutex_init(&c->task_fifo_mutex, NULL); ^ libavcodec/frame_thread_encoder.c:178:5: warning: implicit declaration of function 'pthread_cond_init' is invalid in C99 [-Wimplicit-function-declaration] pthread_cond_init(&c->task_fifo_cond, NULL); ^ libavcodec/frame_thread_encoder.c:204:12: warning: implicit declaration of function 'pthread_create' is invalid in C99 [-Wimplicit-function-declaration] if(pthread_create(&c->worker[i], NULL, worker, thread_avctx)) { ^ libavcodec/frame_thread_encoder.c:225:5: warning: implicit declaration of function 'pthread_cond_broadcast' is invalid in C99 [-Wimplicit-function-declaration] pthread_cond_broadcast(&c->task_fifo_cond); ^ libavcodec/frame_thread_encoder.c:229:10: warning: implicit declaration of function 'pthread_join' is invalid in C99 [-Wimplicit-function-declaration] pthread_join(c->worker[i], NULL); ^ libavcodec/frame_thread_encoder.c:232:5: warning: implicit declaration of function 'pthread_mutex_destroy' is invalid in C99 [-Wimplicit-function-declaration] pthread_mutex_destroy(&c->task_fifo_mutex); ^ libavcodec/frame_thread_encoder.c:235:5: warning: implicit declaration of function 'pthread_cond_destroy' is invalid in C99 [-Wimplicit-function-declaration] pthread_cond_destroy(&c->task_fifo_cond); ^ In file included from libavcodec/g2meet.c:32: libavcodec/bytestream.h:181:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (size2 != size) ~~~~~ ^ ~~~~ libavcodec/frame_thread_encoder.c:275:121: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare] ...&& (c->task_index - c->finished_task_index) % BUFFER_SIZE <= avctx->thread_count) libavcodec/bytestream.h:288:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (size2 != size) ~~~~~ ^ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~CC libavcodec/g722dec.o libavcodec/bytestream.h:312:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (size2 != size) ~~~~~ ^ ~~~~ 12 warnings and 6 errors generated. libavcodec/bytestream.h:351:15: warning: comparison of integers of different gmake[3]: *** [libavcodec/frame_thread_encoder.o] Error 1 gmake[3]: *** Waiting for unfinished jobs.... signs: 'int' and 'unsigned int' [-Wsign-compare] if (size2 != size) ~~~~~ ^ ~~~~ clang: warning: argument unused during compilation: '-mcpu=generic' libavcodec/g2meet.c:228:56: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] out[0] = av_clip_uint8(Y + ( 91881 * V + 32768 >> 16)); ~~~~~~~~~~^~~~~~~ ~~ libavcodec/g2meet.c:228:56: note: place parentheses around the '+' expression to silence this warning out[0] = av_clip_uint8(Y + ( 91881 * V + 32768 >> 16)); ^ ( ) libavcodec/g2meet.c:229:56: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] out[1] = av_clip_uint8(Y + (-22554 * U - 46802 * V + 32768 >> 16)); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ~~ libavcodec/g2meet.c:229:56: note: place parentheses around the '+' expression to silence this warning out[1] = av_clip_uint8(Y + (-22554 * U - 46802 * V + 32768 >> 16)); ^ ( ) libavcodec/g2meet.c:230:56: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] out[2] = av_clip_uint8(Y + (116130 * U + 32768 >> 16)); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ~~ libavcodec/g2meet.c:230:56: note: place parentheses around the '+' expression to silence this warning out[2] = av_clip_uint8(Y + (116130 * U + 32768 >> 16)); ^ ( ) libavcodec/g2meet.c:519:39: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare] c->cursor_w * c->cursor_h / 4 > cur_size) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ libavcodec/g722dec.c:47:121: warning: missing field 'unit' initializer [-Wmissing-field-initializers] ...G722 codeword", OFFSET(bits_per_codeword), AV_OPT_TYPE_INT, { .i64 = 8 }, 6, 8, AD }, ^ libavcodec/g722dec.c:48:12: warning: missing field 'help' initializer [-Wmissing-field-initializers] { NULL } ^ 2 warnings generated. 8 warnings generated. gmake[3]: Leaving directory `/usr/ports/multimedia/mplayer/work/mplayer-export-2014-04-18/ffmpeg' gmake[2]: *** [ffmpeg/libavcodec/libavcodec.a] Error 2 gmake[2]: Leaving directory `/usr/ports/multimedia/mplayer/work/mplayer-export-2014-04-18' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/multimedia/mplayer *** Error code 1 -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191743-13>