From patchwork Wed May 13 07:35:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1289091 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; dmarc=fail (p=none dis=none) header.from=gmail.com 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=dpHZTSn8; 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 49MRL465d9z9sRK for ; Wed, 13 May 2020 17:35:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 654A988611; Wed, 13 May 2020 07:35:49 +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 vR--6+p7wCKE; Wed, 13 May 2020 07:35:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8D77888604; Wed, 13 May 2020 07:35:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BB0EA1BF296 for ; Wed, 13 May 2020 07:35:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id ACD0420488 for ; Wed, 13 May 2020 07:35:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DLqrjlru6GWu for ; Wed, 13 May 2020 07:35:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) by silver.osuosl.org (Postfix) with ESMTPS id E4AB42000A for ; Wed, 13 May 2020 07:35:44 +0000 (UTC) Received: by mail-il1-f178.google.com with SMTP id t12so14967758ile.9 for ; Wed, 13 May 2020 00:35:44 -0700 (PDT) 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=9GgIpkI8k0lXBbJUWcnRufJ5WrvaGaf21QhvMmgfV+c=; b=dpHZTSn8phbvIFEDqJRTVyktRRPMLYE9kZJm2UPLLhMU5uiwUHjHDXoflLO1qxFI8I nN18RuKfZoF5I2c3hOviAAZuTgyY1lnwu9NbckOiLdZcTs6oQBGdawUTHPp2npQbxqSQ KtQaONcjyP75x+1eDnJVs4XKawgafol5RGG59NxnvYR12Snmo550cD+Nq431KCrQVwCi 62jzIanomE+IMrBHt7K8v8x3WJ8jg5/HwFplxb7gU4R3w8ob/TgL+rGMabDhH8iuQ4DG CtSnXaRXpR4OKYjqqdHtbQsM6uC7IRaUWkmZabTw8ncDflEsR1Dre6FS8dOth6m/jCT0 zfSQ== 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=9GgIpkI8k0lXBbJUWcnRufJ5WrvaGaf21QhvMmgfV+c=; b=EiMyGNDrRKLdtzUAfYheD66MbHbizBYSD2IraHKG80GYJRpmf27HV1g1+W9rSF+mAt nhSa/p/kx4ZKd5fHPDGwvn5cuM4JuR/3e9OjTs2F44wsRWQDqhHAcB2ij+MlW49qhsZ+ sUZe9Pyrlj6hTp2lA4FGzUNwQYicFm1528TBfNA8Jgg9hm6DKhDtVkMeyoeV5ocovYaA OBApivGZLE50LUMd+zW5MlZv/fAelEv81H77U4hvE/6fxKZ+svxbZ84jdeLbgu3S0uqE cBOVOIqXrUpWu7aZ5nux3e5usn4x121LIoBZxiwLW9JAXnBx12yB2HmXOUDt47EVh1dB 1tZQ== X-Gm-Message-State: AGi0Puacay/7t3TK/k4i3MlgItSszdaz7DLKsPKcqtn6cca0QWjKhEDa qr5p5ri2L1ndqu+1nWlDE4oZ2k1tz9g= X-Google-Smtp-Source: APiQypLMYU6TLBhMzsEU+DBMk7Imp0sqJL0AwQHjLTCUIsCRGtg7tMbnrL5DuKlLedftsMJs6c8JOQ== X-Received: by 2002:a05:6e02:788:: with SMTP id q8mr15114467ils.56.1589355343701; Wed, 13 May 2020 00:35:43 -0700 (PDT) Received: from james-x399.localdomain (71-218-100-23.hlrn.qwest.net. [71.218.100.23]) by smtp.gmail.com with ESMTPSA id o17sm152926ilo.75.2020.05.13.00.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 00:35:42 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Wed, 13 May 2020 01:35:37 -0600 Message-Id: <20200513073537.17950-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/apcupsd: fix missing __exchange_and_add symbol 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: James Hilliard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" It seems libsupc++.a is missing __exchange_and_add for uclibc on some platforms so link with libstdc++ as well on sparc and arcle. Fixes: http://autobuild.buildroot.net/results/bb9/bb96f327d5343a3561ea978f480585b418ce52e1/build-end.log http://autobuild.buildroot.net/results/5a5/5a513669b0e56f38418e42d9ae733554fe6c73f1/build-end.log Signed-off-by: James Hilliard --- package/apcupsd/apcupsd.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/apcupsd/apcupsd.mk b/package/apcupsd/apcupsd.mk index 410bce9aec..6088a41cc3 100644 --- a/package/apcupsd/apcupsd.mk +++ b/package/apcupsd/apcupsd.mk @@ -14,10 +14,18 @@ ifneq ($(BR2_PACKAGE_APCUPSD_MODBUS_USB)$(BR2_PACKAGE_APCUPSD_USB),) APCUPSD_CONF_ENV += ac_cv_path_usbcfg=$(STAGING_DIR)/usr/bin/libusb-config ifeq ($(BR2_STATIC_LIBS),y) APCUPSD_DEPENDENCIES += host-pkgconf -APCUPSD_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libusb`" +APCUPSD_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libusb` endif endif +ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) +# __exchange_and_add symbol is missing from libsupc++ on these platforms +ifeq ($(BR2_sparc)$(BR2_arcle),y) +APCUPSD_LIBS += -lstdc++ +endif +endif +APCUPSD_CONF_ENV += LIBS+="$(APCUPSD_LIBS)" + ifeq ($(BR2_PACKAGE_APCUPSD_APCSMART),y) APCUPSD_CONF_OPTS += --enable-apcsmart else