From patchwork Thu Feb 9 10:29:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 726025 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vJvTk5sPHz9s7J for ; Thu, 9 Feb 2017 21:30:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VXvmPueb"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3990A8B37C; Thu, 9 Feb 2017 10:30:01 +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 6NG+ssphGVFs; Thu, 9 Feb 2017 10:30:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 81FE78B36A; Thu, 9 Feb 2017 10:30:00 +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 606391C21F2 for ; Thu, 9 Feb 2017 10:29:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5B2173084F for ; Thu, 9 Feb 2017 10:29:59 +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 zx-wNOhkz1vE for ; Thu, 9 Feb 2017 10:29:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by silver.osuosl.org (Postfix) with ESMTPS id 6C96F3083B for ; Thu, 9 Feb 2017 10:29:58 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id i10so11456206wrb.0 for ; Thu, 09 Feb 2017 02:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=mA54VNfRGi7jVf/QddAuuOGTnL3TMh/5nTDuTpM56po=; b=VXvmPuebsfWxNDwzBaCQOPUNALWCIFD8OfC/7NhNRAH0+ar5PtHiRgB1t82MC6BsN+ FHAOa1g8evuhTWaw3TUO9dJI35avXRUCnF2MDZG4/zxrcUJuaApT4tlW3UhL4N1tZ872 z6o31KTll38fPM/HIve4grayIZHhlijBq/7hZzSQ49XHIMT70Ipq1L50Iv9BQKL3wpKK 7z0Y3cqdtprAk/tuLtluwuLeraxSANLttXvPd5p27ZCUThCIVv5eqffTVTWalIYf98rd oqHfn6atLyOT54ILzStMms+ZPUcrI80WPs0WMiSOuoMM20fZbClcC+fUVQyEMU6FmKnd ud7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=mA54VNfRGi7jVf/QddAuuOGTnL3TMh/5nTDuTpM56po=; b=KRG0SaFmoOE9SSmkTjd0u3m0DsUIyenMp9j/GLjbQFZ81aE+4KwL1qGnoWs35sPT4r f3LYu8AQhRdyFaED23IsBreZFzJagyDEGpW4dzXVxm+kvSoBB/oavz6dibEWiEFPVDHK 0fp6ob47pgmvpdKS5OiIVeDOYjvnPkxyNdXNvCLPeuUDLBbkfPfGdFF4oxMkuuYIWEMl NtppT2xGVgXahOIrTkJfrw19p5UgvVKw/du42hxz8GbDS5TUxn86GlMjxX1Xk+ihBp+i jDkzNOIxLTAwlKvfXD1MaoKuIztJKkb9bIcHb6xvT7fLQCRlvhMRAUdbxXqNzcv4UqGN qFsA== X-Gm-Message-State: AMke39lI0T/ryNS4TAZYxTukKh4UqGbULpyuAnTngAz8XVOF29UccRL+rwrtncaVnku4IA== X-Received: by 10.223.128.202 with SMTP id 68mr2382620wrl.92.1486636196652; Thu, 09 Feb 2017 02:29:56 -0800 (PST) Received: from dell.be.48ers.dk ([91.183.172.93]) by smtp.gmail.com with ESMTPSA id u42sm17766593wrc.1.2017.02.09.02.29.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Feb 2017 02:29:55 -0800 (PST) Received: from peko by dell.be.48ers.dk with local (Exim 4.88) (envelope-from ) id 1cblz8-0001f9-Na; Thu, 09 Feb 2017 11:29:54 +0100 From: Peter Korsgaard To: buildroot@buildroot.org Date: Thu, 9 Feb 2017 11:29:51 +0100 Message-Id: <20170209102952.6351-1-peter@korsgaard.com> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH 1/2] libevent: disable sample programs to workaround static linking issue 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" Fixes: http://autobuild.buildroot.net/results/1e7/1e7027b1b87d88b4517b1b19d3a2ae54c24f2c10/ http://autobuild.buildroot.net/results/ff7/ff7e010b41e7448d15d20396e9e9bd7319dd493b/ http://autobuild.buildroot.net/results/269/269a3a76f61c65423ba703a85e94cc003fb75e4c/ Libevent/libtool gets confused by the library order when statically linking the sample programs and passes -lz before -lcrypto even though libcrypto uses zlib. /bin/bash ./libtool --tag=CC --mode=link .. -o sample/https-client \ sample/https-client.o sample/hostcheck.o \ sample/openssl_hostname_validation.o libevent.la \ libevent_openssl.la -lssl -lcrypto -lz -lz -lcrypto libtool: link: .. -o sample/https-client sample/https-client.o \ sample/hostcheck.o sample/openssl_hostname_validation.o \ ./.libs/libevent.a ./.libs/libevent_openssl.a \ -lssl -lz -lcrypto ../libcrypto.a(c_zlib.o): In function `zlib_stateful_expand_block': c_zlib.c:(.text+0x30): undefined reference to `inflate' This is most likely fixable, but as the sample programs aren't installed / used, simply skip building them to save time and work around this issue. Signed-off-by: Peter Korsgaard --- package/libevent/libevent.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk index 0a5417f98..128bb2ac7 100644 --- a/package/libevent/libevent.mk +++ b/package/libevent/libevent.mk @@ -11,6 +11,7 @@ LIBEVENT_LICENSE = BSD-3c, OpenBSD LIBEVENT_LICENSE_FILES = LICENSE # For 0001-Disable-building-test-programs.patch LIBEVENT_AUTORECONF = YES +LIBEVENT_CONF_OPTS = --disable-samples define LIBEVENT_REMOVE_PYSCRIPT rm $(TARGET_DIR)/usr/bin/event_rpcgen.py