From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-we0-f172.google.com ([74.125.82.172]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzIb-00089p-8t for ptxdist@pengutronix.de; Mon, 28 May 2012 14:44:12 +0200 Received: by mail-we0-f172.google.com with SMTP id b13so2404482wer.31 for ; Mon, 28 May 2012 05:43:49 -0700 (PDT) From: "Bart vdr. Meulen" Date: Mon, 28 May 2012 14:42:44 +0200 Message-Id: <1338208981-8681-18-git-send-email-bartvdrmeulen@gmail.com> Subject: [ptxdist] [PATCH] net-snmp: Fix compilation Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de From: "Bart vdr. Meulen" In configure net-snmp agents fails to pass on -system correctly. This causes a compilations error on the nlist.h header Signed-off-by: Bart vdr. Meulen --- .../0002-configure-pass-cflags-to-agents.patch | 26 ++++++++++++++++++++ patches/net-snmp-5.6.1/series | 1 + 2 files changed, 27 insertions(+) create mode 100644 patches/net-snmp-5.6.1/0002-configure-pass-cflags-to-agents.patch diff --git a/patches/net-snmp-5.6.1/0002-configure-pass-cflags-to-agents.patch b/patches/net-snmp-5.6.1/0002-configure-pass-cflags-to-agents.patch new file mode 100644 index 0000000..93af1ee --- /dev/null +++ b/patches/net-snmp-5.6.1/0002-configure-pass-cflags-to-agents.patch @@ -0,0 +1,26 @@ +pass cppflags to modules + +Pass the CPPFLAGS on to the modules during configure, +failure to do so results in a failure to find some header(s) +(nlist.h) + +Signed-off-by: Bart vdr. Meulen + +--- + +--- + configure | 1 + + 1 file changed, 1 insertion(+) + +Index: net-snmp-5.6.1/configure +=================================================================== +--- net-snmp-5.6.1.orig/configure ++++ net-snmp-5.6.1/configure +@@ -14988,6 +14988,7 @@ fi + rm -f conftest* + + CFLAGS="$CFLAGS $PARTIALTARGETFLAGS" ++PARTIALTARGETFLAGS="$OLD_CPPFLAGS $PARTIALTARGETFLAGS" + CPPFLAGS="$OLD_CPPFLAGS" + + diff --git a/patches/net-snmp-5.6.1/series b/patches/net-snmp-5.6.1/series index 89093b4..1560a80 100644 --- a/patches/net-snmp-5.6.1/series +++ b/patches/net-snmp-5.6.1/series @@ -1 +1,2 @@ 0001-net-snmp-config-add-SYSROOT-support.patch -p0 +0002-configure-pass-cflags-to-agents.patch -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de