mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] net-snmp: Fix compilation
Date: Wed, 30 May 2012 19:02:31 +0200	[thread overview]
Message-ID: <20120530170231.GJ31687@pengutronix.de> (raw)
In-Reply-To: <1338208981-8681-18-git-send-email-bartvdrmeulen@gmail.com>

On Mon, May 28, 2012 at 02:42:44PM +0200, Bart vdr. Meulen wrote:
> 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

You should never patch configure. What exactly goes wrong here?

Michael

> 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
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2012-05-30 17:02 UTC|newest]

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

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=20120530170231.GJ31687@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --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