mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] net-snmp: Fix compilation
Date: Mon, 28 May 2012 14:42:44 +0200	[thread overview]
Message-ID: <1338208981-8681-18-git-send-email-bartvdrmeulen@gmail.com> (raw)

From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>

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 <bartvdrmeulen@gmail.com>
---
 .../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 <bartvdrmeulen@gmail.com>
+
+---
+
+---
+ 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

             reply	other threads:[~2012-05-28 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 12:42 Bart vdr. Meulen [this message]
2012-05-30 17:02 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1338208981-8681-18-git-send-email-bartvdrmeulen@gmail.com \
    --to=bartvdrmeulen@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox