From patchwork Sun Oct 23 14:41:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 685540 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t22DD1gDnz9t74 for ; Mon, 24 Oct 2016 01:41:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CE37CC109A; Sun, 23 Oct 2016 14:41:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xfw-u1p4l1x7; Sun, 23 Oct 2016 14:41:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D307CC105D; Sun, 23 Oct 2016 14:41:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 186E61C1677 for ; Sun, 23 Oct 2016 14:41:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1388B2A110 for ; Sun, 23 Oct 2016 14:41:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j1j6+CWNxkhd for ; Sun, 23 Oct 2016 14:41:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout04.t-online.de (mailout04.t-online.de [194.25.134.18]) by silver.osuosl.org (Postfix) with ESMTPS id 90DF426979 for ; Sun, 23 Oct 2016 14:41:23 +0000 (UTC) Received: from fwd08.aul.t-online.de (fwd08.aul.t-online.de [172.20.26.151]) by mailout04.t-online.de (Postfix) with SMTP id 8A11441A16DB; Sun, 23 Oct 2016 16:41:20 +0200 (CEST) Received: from fli4l.lan.fli4l (Va8y00Zvrh7R+4WyIZfohDLpC82QdRrV0GQXzCXquJXHAT2e76iahtl3Mf3js-qwOV@[84.178.246.252]) by fwd08.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1byJxf-3KqcwS0; Sun, 23 Oct 2016 16:41:19 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:42950 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.87) (envelope-from ) id 1byJxd-0001LP-LE; Sun, 23 Oct 2016 16:41:19 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 23 Oct 2016 16:41:15 +0200 Message-Id: <20161023144115.19982-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-ID: Va8y00Zvrh7R+4WyIZfohDLpC82QdRrV0GQXzCXquJXHAT2e76iahtl3Mf3js-qwOV X-TOI-MSGID: d2682ddd-93e5-467f-aad5-a6a063bb3472 Cc: Thomas Petazzoni , Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/libbluray: include signal.h to fix build errors X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes build errors with uClibc-ng on the following platforms: bfin: http://autobuild.buildroot.net/results/fbf/fbf63bbe0974b490b875a95fb930ba601364b85a/ m68k: http://autobuild.buildroot.net/results/cc9/cc9b87c4c695f97a056cc53f19e7662750dffeff/ microblazeel: http://autobuild.buildroot.net/results/941/941c06e29f6542e258f20799dc6f3f94b2f8af88/ Signed-off-by: Bernd Kuhls --- I am unsure whether this is the right fix or not, therefore I did not send the patch upstream yet. A different solution is to include signal.h in sysroot/usr/include/pthread.h in line 686, right before the header file bits/sigthread.h is included. This may point to a problem either in the prebuilt toolchain or uClibc itself, CC'ing Thomas & Waldemar. ...tex.c-include-signal.h-to-fix-build-error.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/libbluray/0001-src-util-mutex.c-include-signal.h-to-fix-build-error.patch diff --git a/package/libbluray/0001-src-util-mutex.c-include-signal.h-to-fix-build-error.patch b/package/libbluray/0001-src-util-mutex.c-include-signal.h-to-fix-build-error.patch new file mode 100644 index 0000000..3170cff --- /dev/null +++ b/package/libbluray/0001-src-util-mutex.c-include-signal.h-to-fix-build-error.patch @@ -0,0 +1,39 @@ +From e84951a340565012d78f0d7c607bb01cc4571ebe Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Sat, 22 Oct 2016 18:45:20 +0200 +Subject: [PATCH 1/1] src/util/mutex.c: include signal.h to fix build errors + +Fixes build errors with uClibc-ng on the following platforms: + +bfin: http://autobuild.buildroot.net/results/fbf/fbf63bbe0974b490b875a95fb930ba601364b85a/ +m68k: http://autobuild.buildroot.net/results/cc9/cc9b87c4c695f97a056cc53f19e7662750dffeff/ +microblazeel: http://autobuild.buildroot.net/results/941/941c06e29f6542e258f20799dc6f3f94b2f8af88/ + +Quoting the compile error: + +In file included from /home/buildroot/br4/output/host/usr/microblazeel-buildroot-linux-uclibc/sysroot/usr/include/pthread.h:686:0, + from src/util/mutex.c:32: +/home/buildroot/br4/output/host/usr/microblazeel-buildroot-linux-uclibc/sysroot/usr/include/bits/sigthread.h:31:14: error: unknown type name ‘__sigset_t’ + const __sigset_t *__restrict __newmask, + +Signed-off-by: Bernd Kuhls +--- + + src/util/mutex.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/util/mutex.c b/src/util/mutex.c +index c32bb5f..e854435 100644 +--- a/src/util/mutex.c ++++ b/src/util/mutex.c +@@ -29,6 +29,7 @@ + #if defined(_WIN32) + # include + #elif defined(HAVE_PTHREAD_H) ++# include + # include + #else + # error no mutex support found +-- +2.9.3 +