From patchwork Tue Nov 29 14:35:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 700548 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 3tSmMJ026tz9t1b for ; Wed, 30 Nov 2016 01:36:27 +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="fzPlIT0p"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AE1E689B1B; Tue, 29 Nov 2016 14:36:25 +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 gTttxls3Es76; Tue, 29 Nov 2016 14:36:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 40E7587FE2; Tue, 29 Nov 2016 14:36:23 +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 A946F1BFFB6 for ; Tue, 29 Nov 2016 14:36:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A11C0952AC for ; Tue, 29 Nov 2016 14:36: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 wsfoTVsOOxft for ; Tue, 29 Nov 2016 14:36:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id DD3A7952A8 for ; Tue, 29 Nov 2016 14:36:21 +0000 (UTC) Received: by mail-qk0-f195.google.com with SMTP id h201so17739759qke.3 for ; Tue, 29 Nov 2016 06:36:21 -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=CKuucfaePw58yrb9CHJBY4+BWXZWXuIzmj+Qzt9kwcs=; b=fzPlIT0pkjN2xcpTZkvu2ddBrNbrOg+Hzke/uWg0akhm85avZZ44pAYLYMpjLxsq6U hf2krxvX8/iesKXHiVRsU/RDT8w5KWkIATiTVV1PrLp95qmUjXH1YjAhwfGXWhgiwjxK lGJFt9qZ7krhSj/Sy3Kw4R1OJlYYFVfOk0ApZA66ssuIARn6m/ksW7OwjiQBpJZyBbDe QqfS913+baOlic+6uF2T8JvQ6AOKhr/TSSMV21j/t0fntxA0i7A6tW26AVg3/oinzbUf JHN/vu44ikuLm02SDNylCWrYRiAH/bEhcuL3B83qxcUBYpgqNSxCUqFf1jBR6mY9bifU k9rQ== 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=CKuucfaePw58yrb9CHJBY4+BWXZWXuIzmj+Qzt9kwcs=; b=FuGFXtOWd6sETm8HgMZq+vmSowkcqCFBtWm8V1h4vyzhFBukSqnToDHAg4MBKrZ3v7 BU87frIiFanGJY4Q7GeUDclE045bDhtbDbGz0Hqf2usnQbZyqLuE/z19Glo0sXvfdz1o Ob3q4cjFMT9rF7WoUiIe1iJ8ca+mmxckoDbGZmJ+ocaHGQ0FEtQIP0he4wnSe9OcnM5Y oXHsTcnzYtPjbRW4GHxhM+JfbvB8e0rVfv6H7pmuQ+Csd1E4oX8sS+sgeLvWVOwOVYt4 YJpvY4kO3NBB/k5gZpfPu6PU/gfCrqJDcTKG5SAYq9vQ6p+E7MxNfmdTwsI2UtlCGR+J XhFQ== X-Gm-Message-State: AKaTC031CRzCvVRcZJeh1CVjOEaxhYvWZFmP/1icsW/lZIvIsK8WhKKsG2dP/ZkKRE1o8A== X-Received: by 10.55.43.90 with SMTP id r87mr26587164qkh.234.1480430180785; Tue, 29 Nov 2016 06:36:20 -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 y52sm31028602qty.11.2016.11.29.06.36.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 06:36:20 -0800 (PST) From: Frank Hunleth To: buildroot@buildroot.org Date: Tue, 29 Nov 2016 09:35:55 -0500 Message-Id: <1480430155-25182-1-git-send-email-fhunleth@troodon-software.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 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 --- N.B. Admittedly, this is a weak fix since one could add fine grained configuration of scanner backends to the Config.in and have some logic to be smart about which backends are chosen to allow a static build. Since I've only used the dynamic case in production and it has been a while, this seemed like the safer fix until someone wants to put in the time to add static support. package/sane-backends/Config.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/sane-backends/Config.in b/package/sane-backends/Config.in index 8156e85..b1771e7 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,6 @@ 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_STATIC_LIBS