From patchwork Wed Nov 30 13:50:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 701023 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 3tTMJN6Tykz9vDp for ; Thu, 1 Dec 2016 00:51:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=troodon-software-com.20150623.gappssmtp.com header.i=@troodon-software-com.20150623.gappssmtp.com header.b="OLd/qAON"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E07118517B; Wed, 30 Nov 2016 13:50:58 +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 PngC3H2OOZ6c; Wed, 30 Nov 2016 13:50:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2373385148; Wed, 30 Nov 2016 13:50:57 +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 3DA461BFEBB for ; Wed, 30 Nov 2016 13:50:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3734E89689 for ; Wed, 30 Nov 2016 13:50:56 +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 NPHRUg2ayI-Z for ; Wed, 30 Nov 2016 13:50:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 999298967F for ; Wed, 30 Nov 2016 13:50:54 +0000 (UTC) Received: by mail-qk0-f196.google.com with SMTP id n204so21870944qke.2 for ; Wed, 30 Nov 2016 05:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troodon-software-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=NQuq8DAbmQAzDbT3V0Ou0WhnkEd6dnjUI0cSBPTBR34=; b=OLd/qAON2/90KcDdGjtSigCU9T4xvnrjsZ8Jel0mmqO+eKb8ExrGnQ9cis4APrWixZ 1x2s9kFrNERDQBKfbIe6ZH3t5zJT2/3dKT6ncTPuTEJ0NJqpol+yopFRRqnDsEPeo0u3 yRoYsIpGRKQEixnM/99XAZj13YEtZat8AbV6UE0hJW5mc3QTEJ1UlV7yFVU4HTWhxwxl Vw2IVk8VQbA6lLhzIFb1vwdn/6d6IfHOUE8cR0oqPDuAV53/ntoG3gzsHWah1tiiVX78 w40vOow/RSKxF2S8pzNM+uFHy8AMbT0v7WVQ106Zh2Otu303Q8gCF9eMlBZ7LJqjNtkJ 9+WQ== 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=NQuq8DAbmQAzDbT3V0Ou0WhnkEd6dnjUI0cSBPTBR34=; b=lnGdW0OHyogNZfvNBt+Op1RZOsot2Oe6tIl4DNKBBXiIJcOJAvcJKKijX113wOjM7U cYXxeDu75Y5BiA4Tof8lui+vM7hEBrJWlv/SfemWnbamyP07Im8LQ9X6vGN/BuJWSy/9 2gXhVGvVU1NTKrBjCi30n6neTvupsh0ynHT0hTcgR+H9bg/AB3c/yLMpr2xqFIqoUXBH zR/qzgiRo6QYibXCbI6wR+v8Mg2AhP+9OcCGMwewQ24fXWmNJPIM4wheXbfImKu7MXK9 eWkPuynKAIqSj60OFLxneNX9DXid2QQ2bTv3y1BYiFIogbBRykGS6QiFzOV2ecxa6aBJ tgGQ== X-Gm-Message-State: AKaTC03Fqo+bnG+VsmsWN5bP6TRj4sGykEX3fVo+MjPJbrQCRgnfczFY9Cr/1zsmWD/roQ== X-Received: by 10.55.101.133 with SMTP id z127mr27952680qkb.285.1480513853659; Wed, 30 Nov 2016 05:50:53 -0800 (PST) Received: from halfmarathon.home.hunleth.com (pool-96-255-73-68.washdc.fios.verizon.net. [96.255.73.68]) by smtp.gmail.com with ESMTPSA id f66sm33461453qkj.23.2016.11.30.05.50.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 05:50:53 -0800 (PST) From: Frank Hunleth To: buildroot@buildroot.org Date: Wed, 30 Nov 2016 08:50:19 -0500 Message-Id: <1480513819-10094-1-git-send-email-fhunleth@troodon-software.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH v2 1/1] sane-backends: disable static configuration 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" While sane-backends can be compiled statically, it requires selection of a subset of scanner backends. Without this, all backends are compiled and link errors such as the following are generated: ../backend/.libs/libsane.a(libepsonds_la-epsonds.o):(.bss+0xc): multiple definition of `source_list' ../backend/.libs/libsane.a(libepson2_la-epson2.o):(.data+0x40): first defined here ../backend/.libs/libsane.a(libepsonds_la-epsonds.o):(.data+0x10): multiple definition of `mode_params' ../backend/.libs/libsane.a(libepson2_la-epson2.o):(.data+0x0): first defined here collect2: error: ld returned 1 exit status Buildroot currently doesn't allow fine grained selection of backends, so this disables static builds. Fixes: http://autobuild.buildroot.net/results/89c/89c6e4ec1596def74e72eb071ef4bf0f1a7cc9f8/ http://autobuild.buildroot.net/results/92a/92a54c99a9ba918ece4c56d7beb985729bee700b/ http://autobuild.buildroot.net/results/1b9/1b9eac5303dfed638063f3b18dfff5571a2c4231/ http://autobuild.buildroot.net/results/366/366979d0bd21dc2bf7f0336b9653ef3fd4e11123/ Signed-off-by: Frank Hunleth --- Changes v1 -> v2: - Fixed missing "depends BR2_USE_MMU" for comment. Thanks to Baruch Siach for catching it. package/sane-backends/Config.in | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/package/sane-backends/Config.in b/package/sane-backends/Config.in index 8156e85..3e5a27f 100644 --- a/package/sane-backends/Config.in +++ b/package/sane-backends/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_SANE_BACKENDS bool "sane-backends" depends on BR2_USE_MMU # fork() + depends on !BR2_STATIC_LIBS help SANE - Scanner Access Now Easy @@ -9,3 +10,7 @@ config BR2_PACKAGE_SANE_BACKENDS Backends are included automatically based on the libraries that have been selected: libusb, jpeg, tiff, avahi (with dbus and libglib2), and netsnmp. + +comment "sane-backends needs a toolchain w/ dynamic library" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS