From patchwork Sun Aug 28 18:19:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 663410 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sMjkN1G1Nz9sxN for ; Mon, 29 Aug 2016 04:20:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Pp7+snL1; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 768FC8808A; Sun, 28 Aug 2016 18:20:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ugvJ-xJ83jUP; Sun, 28 Aug 2016 18:20:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id AF09888082; Sun, 28 Aug 2016 18:20:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 606B21C28F9 for ; Sun, 28 Aug 2016 18:20:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 41D4C88027 for ; Sun, 28 Aug 2016 18:20:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MZ04XARLpXJS for ; Sun, 28 Aug 2016 18:20:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 4627E87FF4 for ; Sun, 28 Aug 2016 18:20:05 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id q128so6693712wma.1 for ; Sun, 28 Aug 2016 11:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=KKk1XILkdPWeaRGmYV8EFvpDF42vbv3XtM3d7p0pnB4=; b=Pp7+snL1Wc6jtGx6tgCIbjzp8zPI1ly0rnklIv7uF8ztfG7g8dM4p54DIZ7YwJCHEB 8aHMVtTsPEro6nltI+f4eG4Xvkb7dOvXs6lvLsDKWlHBykYkhsHzw+Tpfl6rjq8uke4Z snFXMLfUPxIyAu2Bl03RloU80yPNFeAqSQinzrlUCsRhnW13K6LjNYdMZClwR0gCncPQ 3BlEi/QAvwP5Re4dWRvmVpJKXWJZiB/UC9FbO7ixdOOOnegtFckvBa67GvEJWgieID/V Xw8ZQbQStqQDT7Do8MC5dge72fuTiivIynplqQr7WWWWlGOFZLUmo2dHmNOUdDpo7ca/ I7wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=KKk1XILkdPWeaRGmYV8EFvpDF42vbv3XtM3d7p0pnB4=; b=ExSFGGVv54w8d8qWNu4YQCotH5dfiCdwqJCF/H9SRmdRUAAt+TLqgHx3ytXSTs2fGV AfSyBRqBetbdSP3op+jmvomO5XN0hv+fD6Mbmtet2fH0axlHr32kBgqitVK0pT/tL6a4 uUhFVhB3n1DgiUb6SqtPTjemU6hoq5DFheUUxOn2ibLpKo02LrIPdlhqQ0J+xFsKN+6b W9FZzXsSn69QYBrF4OgYdkekwZ/0cjZmsXOlMtmfwoi5VQA2Anh148Oi2/AcfYd2N9GQ yKU8gl3VLuQBbzXXE8MSrqsAewA6dcMaG8vCC+BNYKR/MH3RiMHNL0jmOHfIHtZnkARL e1qA== X-Gm-Message-State: AE9vXwMjpe5yXcfdUCD3Ooos1Tn6uuDB9T2qqbxXag96SwJrnlVn1ipiUV7xIWGmcV/BwA== X-Received: by 10.28.113.151 with SMTP id d23mr7449760wmi.89.1472408403554; Sun, 28 Aug 2016 11:20:03 -0700 (PDT) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id p23sm9676697wme.8.2016.08.28.11.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Aug 2016 11:20:02 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 28 Aug 2016 20:19:54 +0200 Message-Id: <1472408394-20573-2-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472408394-20573-1-git-send-email-yann.morin.1998@free.fr> References: <1472408394-20573-1-git-send-email-yann.morin.1998@free.fr> Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/2] package/sconeserver: needs shared libs or non uClibc toolchain 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" sconeserver wants to use dlopen(), unconditionally: it does not try to detect it, and it can't work without it (the code is not conditional). So, when the toolchain uses uClibc, and that uClibc has been configured with only static support, the dlopen() functions are not available at all, and the corresponding headers are not present: ModuleLoader.cpp:29:19: fatal error: dlfcn.h: No such file or directory #include ^ However, we can't know if uClibc has shared support or is static-only, especially for external toolchains. The only way is to forbid the combination {uClibc,static}. So we may indeed forbid working combinations, for example if the external toolchain is uClibc-based and has support for shared libs... Fixes: http://autobuild.buildroot.org/results/e92/e929799366e6f574c7b08d8635b18623afd3e3e1/ Reported-by: Matthew Weber Signed-off-by: "Yann E. MORIN" --- package/sconeserver/Config.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/sconeserver/Config.in b/package/sconeserver/Config.in index 4083aa7..5059570 100644 --- a/package/sconeserver/Config.in +++ b/package/sconeserver/Config.in @@ -2,6 +2,7 @@ menuconfig BR2_PACKAGE_SCONESERVER bool "sconeserver" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on !BR2_TOOLCHAIN_USES_UCLIBC || !BR2_STATIC_LIBS # dlopen() select BR2_PACKAGE_PCRE help Sconeserver is a modular, object-orientated and extremely versatile @@ -103,4 +104,9 @@ comment "ui module requires X.org" endif # BR2_PACKAGE_SCONESERVER comment "sconeserver needs a toolchain w/ C++, NPTL" - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS_NPTL) + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on !BR2_TOOLCHAIN_USES_UCLIBC || !BR2_STATIC_LIBS + +comment "sconeserver needs a toolchain with dynamic library, C++, NPTL" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_TOOLCHAIN_USES_UCLIBC && BR2_STATIC_LIBS