From patchwork Fri Nov 27 17:37:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 549557 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0AEF914031D for ; Sat, 28 Nov 2015 04:38:28 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b=aEMPOQuG; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 31951938C3; Fri, 27 Nov 2015 17:38:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VP0nVKViIlcU; Fri, 27 Nov 2015 17:38:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3361D938E7; Fri, 27 Nov 2015 17:38:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4DBB51C04C2 for ; Fri, 27 Nov 2015 17:38:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4C2E5938DB for ; Fri, 27 Nov 2015 17:38:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tsRe7mn2-f-z for ; Fri, 27 Nov 2015 17:38:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yk0-f171.google.com (mail-yk0-f171.google.com [209.85.160.171]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2E867936B2 for ; Fri, 27 Nov 2015 17:38:21 +0000 (UTC) Received: by ykfs79 with SMTP id s79so125369443ykf.1 for ; Fri, 27 Nov 2015 09:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=b7wUE4QRLZCIbHgUfWshU/eTflRIA9J6lUELXyQfeH8=; b=aEMPOQuGZhm1agMthBpoT/aybX5nUsBVyDPbomlD5W0o3ABpJN2ryfwhqYRLw00u1f Nu0iLmkDAW0AAZRz5oZI08fhcKunnr2+XtHq66n7HZifj9DqT4leVnrp+4y0gUB6OclV MxU93VFsUpRrKEvL83f3dr44Oe7dTwc/1YVLcV4Vjukh0wxVAw0IsxuM+q/wecQYIfKJ Hl5C6ofUaEN1Rv36L70g9hWs/rIfpXqxyldJCz5x2KPofLhGxusZxkhIFS5WakrfNBYP oRbOcPNtwGf7d8VpsCjLeKg3NCyF7AZON/c0TZzcHXTRUcdjZCtPl2d8kfWVcuuNjK5H onzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=b7wUE4QRLZCIbHgUfWshU/eTflRIA9J6lUELXyQfeH8=; b=SpBRsfoj3nViyEoNFS/o1SzrWHpxOdEA85Uewkrccjvqiir59r7WwI3ApTuE/yWcPU TcsPcx9P19g7bbK3HBgD1OAU1xDRkgkQwNxFQKeZ1Y+jRnNc1CD5aUHaFu8Dze4v5fCP /11UtYtU6pSskyTKUmHWseDiqFRbFC6qcJ9oxnZXdCkexD57OQn7uQwiy8rBMN2qvBON pEdomPGVEfdzGX+t/XQOrtYxmIA0h6L1fXH2p+bufYsmEQ+0wlCSxga8grHEYUaS5rCG u/j96vXrYmYDziKB4CPZ3T0FtoctaCWPYlXSNH0woGRAqhjS3rVYRZufl+YZtJocaHOM O8Ow== X-Gm-Message-State: ALoCoQmhLCsg4uM1Sz8U2xw56eAIPSUrlv3jvkblheW4dPkNLnjqDX7NB7HfVe5sz10+m/RiqIK9 X-Received: by 10.129.104.215 with SMTP id d206mr642278ywc.329.1448645900352; Fri, 27 Nov 2015 09:38:20 -0800 (PST) Received: from n1.classroom.net ([177.139.153.53]) by smtp.gmail.com with ESMTPSA id c67sm28418364ywe.31.2015.11.27.09.38.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 09:38:19 -0800 (PST) From: Sergio Prado To: buildroot@buildroot.org Date: Fri, 27 Nov 2015 15:37:37 -0200 Message-Id: <1448645857-14999-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] rpi-userland: fix musl compile 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When building with musl, the build fails with a conflicting type qualifier error. This is because musl defines stdout and stderr as const pointers and RaspiVidYUV.c adds an extern declaration as normal pointers. Since this declaration already comes in on the header (stdio.h), there is no need to add an extern declaration, so removes it. Fixes: http://autobuild.buildroot.net/results/27bd6f32cecdb4e7c95247c1feaf2732c1d8e3fa Signed-off-by: Sergio Prado --- ...ting-type-qualifiers-errors-when-building.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/rpi-userland/0006-Fix-conflicting-type-qualifiers-errors-when-building.patch diff --git a/package/rpi-userland/0006-Fix-conflicting-type-qualifiers-errors-when-building.patch b/package/rpi-userland/0006-Fix-conflicting-type-qualifiers-errors-when-building.patch new file mode 100644 index 000000000000..4db60142c6ad --- /dev/null +++ b/package/rpi-userland/0006-Fix-conflicting-type-qualifiers-errors-when-building.patch @@ -0,0 +1,23 @@ +Fix conflicting type qualifiers errors when building with musl. + +Signed-off-by: Sergio Prado +--- + host_applications/linux/apps/raspicam/RaspiVidYUV.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/host_applications/linux/apps/raspicam/RaspiVidYUV.c b/host_applications/linux/apps/raspicam/RaspiVidYUV.c +index b340d63c913f..13e6a6ccf5bf 100644 +--- a/host_applications/linux/apps/raspicam/RaspiVidYUV.c ++++ b/host_applications/linux/apps/raspicam/RaspiVidYUV.c +@@ -106,8 +106,6 @@ const int ABORT_INTERVAL = 100; // ms + /// Run/record forever + #define WAIT_METHOD_FOREVER 4 + +-extern FILE *stderr, *stdout; +- + int mmal_status_to_int(MMAL_STATUS_T status); + static void signal_handler(int signal_number); + +-- +1.9.1 +