From patchwork Sat Jan 30 13:32:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1433651 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LSFr1g5A; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DSZsN24crz9t10 for ; Sun, 31 Jan 2021 00:33:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8F6F687247; Sat, 30 Jan 2021 13:33:10 +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 7GE9y9+-C3eB; Sat, 30 Jan 2021 13:33:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B53458728C; Sat, 30 Jan 2021 13:33:09 +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 3135E1BF28C for ; Sat, 30 Jan 2021 13:33:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 262238728C for ; Sat, 30 Jan 2021 13:33:08 +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 ZXMpW7WO77w9 for ; Sat, 30 Jan 2021 13:33:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3EE3E87247 for ; Sat, 30 Jan 2021 13:33:06 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id f16so8897034wmq.5 for ; Sat, 30 Jan 2021 05:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cbnh4duYMkU2rtt/AZmlcYGo7Uf3TP+HrfzxG3RJ+wU=; b=LSFr1g5A98UsiByKRB/6D6SJlH+WCPYmNntDFK1b8AdSI/4zrdCkFuKhjkACFwHcDH Aa6jRcxePB50WD0RD9P4i9lAX0mJvItVxZhhkOTYqdKmXKVQUs4mFMPzLMXHmT+q6VE6 jqR4ARI8dgzDysm9xvYqF/dGZmzar484slsPobe4B78CDXnNswN4iyrEVdPMTJt49WWm RG00iyL9xm39zOe2wKJD2VIUaaLntKTJo1Si2KoKjpSw9TtQUK6n1ARWZcOuM0mcNQqY /2DF0Q6kSqV8KQi+zbc0VS831NK4bEOEKSlmFwtnNQMdVNECYcO5a+uf/wgGnMETWOHs x0Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cbnh4duYMkU2rtt/AZmlcYGo7Uf3TP+HrfzxG3RJ+wU=; b=QmJAad3H+fzS7bgLdVpT3Dk8xAZMpFGE9RUdV6IWW1VWfHqaDjpbQdX4IwFdGEdtOy G9kBezdMCbK9BCbVvXlUjaHDzrA1u+SQeO0W7v1/6rhVaPJqT4ECnXQC/p8JqIduFUes PWoI2GP3T9dqh443UD0sR3v1xLrD5ayb3JZJ6+mFE38tV5HN8HcgVqoK5FcRBx4gF1iw 1yl2zVXvX/MjPyuIwjtj0sGGAA5EPSFMtfb1Q28NbCpHp4LNEyLBIh+ENCsy5XY2uvTG hs5hlUHvD4c979sBbSR1UlGkkiq6sYZtI12cCasfAK/uG4j4HrQbM4zZRtpQfZPHJRzJ gc0Q== X-Gm-Message-State: AOAM5335YcSH/B7B0d2zrgfy4VGJDAp5aQQMB9yM/yZIX569cd8Gcm+K YRRNsnKAQHGB5JOJhpuQJ2BRo4+NwV5xZg== X-Google-Smtp-Source: ABdhPJzZkN5RqwHncXhvxP8GyK0jpi0TdPQ71Ah1M31O4dkhu+kJ0z1sIucp+5ogUfJI1jTuukEjuw== X-Received: by 2002:a05:600c:204d:: with SMTP id p13mr7992736wmg.42.1612013584647; Sat, 30 Jan 2021 05:33:04 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id p18sm13430697wrx.84.2021.01.30.05.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 05:33:04 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 30 Jan 2021 14:32:01 +0100 Message-Id: <20210130133201.2334604-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/zeromq: disable libbsd on static build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , Asaf Kahlon , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Static linking with libbsd fails because of multiple definition of the strlcpy symbol. uClibc optionally provides these symbols. So disable libbsd on zeromq when linking statically to avoid the following build failure with bitcoin and zeromq: CXXLD bitcoind /tmp/instance-1/output-1/host/lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: /tmp/instance-1/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/lib//libc.a(strlcpy.os): in function `__GI_strlcpy': strlcpy.c:(.text+0x0): multiple definition of `strlcpy'; /tmp/instance-1/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libbsd.a(strlcpy.o):strlcpy.c:(.text+0x0): first defined here Fixes: - http://autobuild.buildroot.org/results/ba87544d42ad5e77a27a7a504bc6336a06f6e291 Signed-off-by: Fabrice Fontaine --- package/zeromq/zeromq.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk index 182699403c..495f1aa5a3 100644 --- a/package/zeromq/zeromq.mk +++ b/package/zeromq/zeromq.mk @@ -68,7 +68,7 @@ else ZEROMQ_CONF_OPTS += --without-tls endif -ifeq ($(BR2_PACKAGE_LIBBSD),y) +ifeq ($(BR2_PACKAGE_LIBBSD):$(BR2_STATIC_LIBS),y:) ZEROMQ_DEPENDENCIES += host-pkgconf libbsd ZEROMQ_CONF_OPTS += --enable-libbsd else