From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SZmI3-0007go-44 for ptxdist@pengutronix.de; Wed, 30 May 2012 19:02:31 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1SZmI3-0008OP-2y for ptxdist@pengutronix.de; Wed, 30 May 2012 19:02:31 +0200 Date: Wed, 30 May 2012 19:02:31 +0200 From: Michael Olbrich Message-ID: <20120530170231.GJ31687@pengutronix.de> References: <1338208981-8681-18-git-send-email-bartvdrmeulen@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1338208981-8681-18-git-send-email-bartvdrmeulen@gmail.com> Subject: Re: [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: , 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 On Mon, May 28, 2012 at 02:42:44PM +0200, Bart vdr. Meulen wrote: > 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 You should never patch configure. What exactly goes wrong here? Michael > 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 > -- 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