mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] net-snmp: Fix compilation
@ 2012-05-28 12:42 Bart vdr. Meulen
  2012-05-30 17:02 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bart vdr. Meulen @ 2012-05-28 12:42 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] net-snmp: Fix compilation
  2012-05-28 12:42 [ptxdist] [PATCH] net-snmp: Fix compilation Bart vdr. Meulen
@ 2012-05-30 17:02 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2012-05-30 17:02 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-30 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-28 12:42 [ptxdist] [PATCH] net-snmp: Fix compilation Bart vdr. Meulen
2012-05-30 17:02 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox