[oe] [meta-networking][PATCH] Strongswan: Add stdint.h to resolve build failure
akuster808
akuster808 at gmail.com
Sun Aug 13 05:41:26 UTC 2017
On 08/12/2017 03:03 PM, Jeremy Puhlman wrote:
> From: "Jeremy A. Puhlman" <jpuhlman at mvista.com>
>
> In file included from
> ../../../strongswan-5.5.3/src/libstrongswan/utils/utils.h:55:0,
> from
> ../../../strongswan-5.5.3/src/libstrongswan/library.h:101,
> from
> ../../../strongswan-5.5.3/src/libstrongswan/library.c:17:
> ../../../strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h: In
> function 'memwipe_inline':
> ../../../strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h:99:15:
> error: 'uintptr_t' undeclared (first use in this function); did you mean
> '__intptr_t'?
> for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
> ^~~~~~~~~
> __intptr_t
> ../../../strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h:99:15:
> note: each undeclared identifier is reported only once for each function
> it appears in
>
> Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
> ---
> .../strongswan/files/strongswan-gcc-7.patch | 25 ++++++++++++++++++++++
> .../recipes-support/strongswan/strongswan_5.5.3.bb | 1 +
> 2 files changed, 26 insertions(+)
> create mode 100644 meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch
>
> diff --git a/meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch b/meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch
> new file mode 100644
> index 0000000..388261b
> --- /dev/null
> +++ b/meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch
> @@ -0,0 +1,25 @@
> +Fix missing definition of uintptr_t after the switch to gcc 7
> +
> +In file included from ../../../strongswan-5.5.3/src/libstrongswan/utils/utils.h:55:0,
> + from ../../../strongswan-5.5.3/src/libstrongswan/library.h:101,
> + from ../../../strongswan-5.5.3/src/libstrongswan/library.c:17:
> +../../../strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h: In function 'memwipe_inline':
> +../../../strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
> + for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
> + ^~~~~~~~~
> + __intptr_t
> +../../../strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
> +
> +Upstream-Status: pending
Missing "Signed-off-by:" in the patch itself.
- armin
> +
> +--- strongswan-5.5.3-orig/src/libstrongswan/utils/utils/memory.h 2016-04-22 13:01:35.000000000 -0700
> ++++ strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h 2017-08-12 14:41:04.757398239 -0700
> +@@ -22,6 +22,8 @@
> + #ifndef MEMORY_H_
> + #define MEMORY_H_
> +
> ++#include <stdint.h>
> ++
> + /**
> + * Helper function that compares two binary blobs for equality
> + */
> diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb b/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb
> index 9215233..680d338 100644
> --- a/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb
> +++ b/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb
> @@ -9,6 +9,7 @@ DEPENDS = "gmp openssl flex-native flex bison-native"
>
> SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2 \
> file://fix-funtion-parameter.patch \
> + file://strongswan-gcc-7.patch \
> "
>
> SRC_URI[md5sum] = "4afffe3c219bb2e04f09510905af836b"
More information about the Openembedded-devel
mailing list