Received: from mx1.tetrasec.net (mx1.tetrasec.net [66.245.176.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 29409782BFE for <~alpine/users@lists.alpinelinux.org>; Mon, 7 Dec 2020 10:23:14 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id ED70E1594FF; Mon, 7 Dec 2020 10:23:12 +0000 (UTC) Received: from ncopa-desktop.lan (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 29DFB1594FE; Mon, 7 Dec 2020 10:23:11 +0000 (UTC) Date: Mon, 7 Dec 2020 11:23:06 +0100 From: Natanael Copa To: Gino Lisignoli Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: Trying to create a x86 build of mplayer Message-ID: <20201207112306.54ea6a72@ncopa-desktop.lan> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 7 Dec 2020 20:25:54 +1300 Gino Lisignoli wrote: > First let me preface this by saying this is beyond my capabilities. > But I am trying to create a x86 build of mplayer (purely for the > mencoder binary). My issue is abuild returns a bunch of errors about > pthread: >=20 > libavcodec/frame_thread_encoder.c: At top level: > libavcodec/frame_thread_encoder.c:46:5: error: unknown type name > 'pthread_mutex_t' > 46 | pthread_mutex_t buffer_mutex; > | ^~~~~~~~~~~~~~~ > libavcodec/frame_thread_encoder.c:49:5: error: unknown type name > 'pthread_mutex_t' > 49 | pthread_mutex_t task_fifo_mutex; > | ^~~~~~~~~~~~~~~ > libavcodec/frame_thread_encoder.c:50:5: error: unknown type name > 'pthread_cond_t' > 50 | pthread_cond_t task_fifo_cond; > | ^~~~~~~~~~~~~~ > libavcodec/frame_thread_encoder.c:53:5: error: unknown type name > 'pthread_mutex_t' > 53 | pthread_mutex_t finished_task_mutex; > | ^~~~~~~~~~~~~~~ > libavcodec/frame_thread_encoder.c:54:5: error: unknown type name > 'pthread_cond_t' > 54 | pthread_cond_t finished_task_cond; > | ^~~~~~~~~~~~~~ > libavcodec/frame_thread_encoder.c:59:5: error: unknown type name > 'pthread_t' 59 | pthread_t worker[MAX_THREADS]; > | ^~~~~~~~~ >=20 > Any advice on how to solve this would be appreciated. =46rom the error messages it looks like you need to add=20 #include to libavcodec/frame_thread_encoder.c We dropped support for x86 in commit 1ee95a3ff6a9 (main/mplayer: fails to build on x86) so you are pretty much on your own. -nc