From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 8 18:01:48 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DAD055D3 for ; Tue, 8 Jul 2014 18:01:48 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C0B512F2A for ; Tue, 8 Jul 2014 18:01:48 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s68I1mt5021970 for ; Tue, 8 Jul 2014 19:01:48 +0100 (BST) (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Tue, 08 Jul 2014 18:01:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mikhail.rokhin@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2014 18:01:48 -0000 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.