[oe] [PATCH 04/14] net-snmp: fix cross compilation

Martin Jansa martin.jansa at gmail.com
Mon Dec 14 16:26:56 UTC 2015


On Mon, Dec 14, 2015 at 07:33:57AM -0800, Armin Kuster wrote:
> From: Rafaël Carré <funman at videolan.org>
> 
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>
> Signed-off-by: Armin Kuster <akuster808 at gmail.com>
> ---
>  .../0002-config_os_headers-Error-Fix.patch         | 31 ++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 meta-networking/recipes-protocols/net-snmp/net-snmp/0002-config_os_headers-Error-Fix.patch

There is another patch for net-snmp in master next, which actually adds
this .patch file to SRC_URI, this change alone doesn't do anything and
shouldn't be backported imho.

> 
> diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-config_os_headers-Error-Fix.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-config_os_headers-Error-Fix.patch
> new file mode 100644
> index 0000000..a90ce1f
> --- /dev/null
> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0002-config_os_headers-Error-Fix.patch
> @@ -0,0 +1,31 @@
> +From e24fcd140f3f6dd18fd836b197c6d4bb773e50e7 Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <funman at videolan.org>
> +Date: Wed, 4 Nov 2015 16:49:30 +0100
> +Subject: [PATCH] config_os_headers: Error Fix
> +
> +ERROR: This autoconf log indicates errors, it looked at host include
> +and/or library paths while determining system capabilities.
> +---
> + configure.d/config_os_libs2 | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/configure.d/config_os_libs2 b/configure.d/config_os_libs2
> +index 47491e2..e3647f9 100644
> +--- a/configure.d/config_os_libs2
> ++++ b/configure.d/config_os_libs2
> +@@ -226,10 +226,10 @@ if test "x$with_nl" != "xno"; then
> +     case $target_os in
> +     linux*) # Check for libnl (linux)
> +         netsnmp_save_CPPFLAGS="$CPPFLAGS"
> +-        CPPFLAGS="-I/usr/include/libnl3 $CPPFLAGS"
> ++        CPPFLAGS="$CPPFLAGS"
> +         NETSNMP_SEARCH_LIBS(nl_connect, nl-3,
> +             [AC_CHECK_HEADERS(netlink/netlink.h)
> +-            EXTERNAL_MIBGROUP_INCLUDES="$EXTERNAL_MIBGROUP_INCLUDES -I/usr/include/libnl3"],
> ++            EXTERNAL_MIBGROUP_INCLUDES="$EXTERNAL_MIBGROUP_INCLUDES"],
> +             [CPPFLAGS="$netsnmp_save_CPPFLAGS"], [], [], [LMIBLIBS])
> +         if test "x$ac_cv_header_netlink_netlink_h" != xyes; then
> +             NETSNMP_SEARCH_LIBS(nl_connect, nl, [
> +-- 
> +2.5.0
> +
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20151214/f5d749d5/attachment-0002.sig>


More information about the Openembedded-devel mailing list