From patchwork Tue Jul 11 17:26:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 786775 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x6TXM3VfYz9s0Z for ; Wed, 12 Jul 2017 03:26:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5EBF485CCF; Tue, 11 Jul 2017 17:26:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7C0igoFgPpFj; Tue, 11 Jul 2017 17:26:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 732AE87D42; Tue, 11 Jul 2017 17:26:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AD1FC1C143E for ; Tue, 11 Jul 2017 17:26:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7FF7887D42 for ; Tue, 11 Jul 2017 17:26:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rK0YHrnVrN60 for ; Tue, 11 Jul 2017 17:26:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by whitealder.osuosl.org (Postfix) with ESMTPS id 560FB85CCF for ; Tue, 11 Jul 2017 17:26:35 +0000 (UTC) Received: from linux.local ([94.216.47.81]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MTjMy-1d4gcN1QjQ-00QVaf; Tue, 11 Jul 2017 19:26:27 +0200 From: Peter Seiderer To: buildroot@busybox.net Date: Tue, 11 Jul 2017 19:26:24 +0200 Message-Id: <20170711172624.7516-1-ps.report@gmx.net> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K0:NfCCxzsz7qfpdBrVd81lcyP9GeBzJannjF49uAgd9QWkpZDe/jD ENIpNrO2+GOgtGIZ2uTULTaPWAPTvUyRPat245rsV0QtvjTh48Qqe6qAc7UUFEGqpuesUtM ar83tK6OSbO4l0uJ9noHWZ9ZT5Ys+uLyjh2MyHAwB6DpypPRv/GBTXGqQutUjoe1UYMxYHK +C75eGvBIbpqwayUeHxPA== X-UI-Out-Filterresults: notjunk:1; V01:K0:nOXHXLR4/gc=:KWhgokxQVYeBqkA7VVVj7m WY6PI+TrpMbtWOekjArSBMCkDTk9MM51bFxTBAgDPQW1hFyRmtoi2No2gs8nbYyrM6yiWdtDk MwrACPNChUD+At7R2HavGK298Jhgwfy9DL3uzWbfemG2353qpx3n8M6iDRmROi8/co/GI/xur MmnHTvHA2xfrj000SwSC660UqCVZXYPim6Y7Qi62uGLZU8yZKvU5MpxfJfnaApL2BzyKesa1R lV1Fv9aFNf52L6JyRM7dPkca396hOZoqUBoqarAgAZLjHjOZwqZp42E7hwxA23tWRcUhJet0Y yHVYx+lWPrijduMgMIutkEtBhM4p8J79TU3AE8aMI+EerGsJhiuDU+K1y47hMOo56WscosKmI TlsQWTT7KL2+GnQCGtcTk/zbnZd0Myk2LGmtR3D5Xv91px0dcjcjQNw03rYSjYDorEOJx4AFt tWqI3GrZn1tsQa6ApEAtBc1NCEdb+cW/rqlF80U0z1V+P7CDWFP6ofPm4zQRWuZyaj4cra19d mF7vSduxIJ++lIl1EVhEBS3AfFoMnIaQZaVcfilzqSBcvPJCuG7+UVNn/ayzWUIfHvBn3PXg2 tlqzY6FLD/FfBfUvu8L3C2TSM4zankaBpQygz7jRmtUWjr6xMD+KEdfphb7kC0UVMiJ5s1wgn AizFmPqEUtqcPQ8pF+OYS+ufm6/uSX9DohneOQ4z74DkczmEds+38PFLhYv5rToNvOoCGSIGH hrl9QuX5lHVh9XR9maNCRAkD/++2/vCaId/72gUfIsXs5r9almabZMNIz0g= Cc: Hugues Fruchet Subject: [Buildroot] [RFC v1] libv4l: build utils only on MMU (with fork support) platforms 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" Fixes [1]: CXXLD v4l2-compliance .../output/build/libv4l-1.12.5/lib/libv4lconvert/.libs/libv4lconvert.so: undefined reference to `fork' collect2: error: ld returned 1 exit status [1] http://autobuild.buildroot.net/results/7e8/7e8fbd99a8c091d7bbeedd16066297682bbe29fe Signed-off-by: Peter Seiderer --- The libv4l build for noMMU platforms was enabled with commit 'package/libv4l: allow build of v4l2 utilities on noMMU platforms' (see [2]). But libv4lconvert uses fork internally, so all utils linking against fail to build. Fix this by disabling the utils on noMMU platforms (so keep building all libraries). Alternatives would be: - disable libv4l on all noMMU platforms (not only the utils), revert a part of commit [2] - create a patch to disable only libv4lconvert (and all dependend utils) on noMMU platforms [2] https://git.buildroot.net/buildroot/commit/?id=f837251785e9389f53d695ddb8a094707865171b --- package/libv4l/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libv4l/Config.in b/package/libv4l/Config.in index e7f78dc70f..61c290f251 100644 --- a/package/libv4l/Config.in +++ b/package/libv4l/Config.in @@ -19,6 +19,7 @@ comment "libv4l JPEG support not enabled" config BR2_PACKAGE_LIBV4L_UTILS bool "v4l-utils tools" + depends on BR2_USE_MMU # fork(), used in libv4lconvert linked by various utils eg. v4l2-compliance help v4l-utils is a collection of various video4linux and DVB utilities. Enable this if you want to build the following tools: