Strongswan: Add stdint.h to resolve build failure
PATCH 1/1 Strongswan: Add stdint.h to resolve build failure
From: "Jeremy A. Puhlman" <[email protected]>
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
--- .../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
meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch new file +25 -0
@@ -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 + +--- 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 + */
meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb +1 -0
@@ -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"
Signature · 1 line
2.6.2
Quoted 36 lines · Jeremy Puhlman
From: "Jeremy A. Puhlman" <[email protected]>
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 inSigned-off-by Jeremy Puhlman <[email protected]>--- .../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.patchmeta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch new file +3
-0@@ -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,
meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch line 13
Quoted 10 lines
meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch new file +10
-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
Quoted 24 lines
meta-networking/recipes-support/strongswan/files/strongswan-gcc-7.patch new file +12
-0+ +--- 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 + */meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb +1
-0@@ -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"
There is already fix for that in master-next:
https://patchwork.openembedded.org/patch/141328/
waiting for Joe to merge it.
Quoted 101 lines · On Sun, Aug 13, 2017 at 7:41 AM, akuster808 <[email protected]> wrote:
Quoted 57 lines · Jeremy Puhlman
From: "Jeremy A. Puhlman" <[email protected]>
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 inSigned-off-by Jeremy Puhlman <[email protected]>--- .../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-suppor
t/strongswan/files/strongswan-gcc-7.patchmeta-networking/recipes-support/strongswan/files/strongswa new file +0
-0n-gcc-7.patch
meta-networking/recipes-support/strongswan/files/strongswa new file +3
-0@@ -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'?meta-networking/recipes-support/strongswan/files/strongswa new file +4
-0+ 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
meta-networking/recipes-support/strongswan/files/strongswa
Quoted 2 lines
meta-networking/recipes-support/strongswan/files/strongswa new file +2
-0+ +Upstream-Status: pendingMissing "Signed-off-by:" in the patch itself.
- armin
Quoted 20 lines
+
+---strongswan-5.5.3-orig/src/libstrongswan/utils/utils/memory.h2016-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 @@
+ #ifndefMEMORY_H_
+ #defineMEMORY_H_meta-networking/recipes-support/strongswan/files/strongswa new file +6
-0+ ++#include <stdint.h> ++ + /** + * Helper function that compares two binary blobs for equality + */(quoted diff) +0
-03.bb b/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb index 9215233..680d338 100644
meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb DEPENDS = "gmp openssl flex-native flex bison-native" · line 14
Quoted 6 lines
meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb +1
-0@@ -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"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 4 lines · Martin Jansa
There is already fix for that in master-next:
https://patchwork.openembedded.org/patch/141328/waiting for Joe to merge it.
where is Joe ? its been almost 2 months for this patch sitting there. there might be older than
this which are still pending.
Quoted 109 lines · On Sun, Aug 13, 2017 at 7:41 AM, akuster808 <[email protected]> wrote:
Quoted 93 lines · Jeremy Puhlman
Quoted 58 lines
From: "Jeremy A. Puhlman" <[email protected]>
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 inSigned-off-by Jeremy Puhlman <[email protected]>--- .../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-suppor
t/strongswan/files/strongswan-gcc-7.patchmeta-networking/recipes-support/strongswan/files/strongswa new file +0
-0n-gcc-7.patch
meta-networking/recipes-support/strongswan/files/strongswa new file +3
-0@@ -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'?meta-networking/recipes-support/strongswan/files/strongswa new file +4
-0+ 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
meta-networking/recipes-support/strongswan/files/strongswa
Quoted 2 lines
meta-networking/recipes-support/strongswan/files/strongswa new file +2
-0+ +Upstream-Status: pendingMissing "Signed-off-by:" in the patch itself.
- armin
Quoted 24 lines
+
+---strongswan-5.5.3-orig/src/libstrongswan/utils/utils/memory.h2016-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 @@
+ #ifndefMEMORY_H_
+ #defineMEMORY_H_meta-networking/recipes-support/strongswan/files/strongswa new file +6
-0+ ++#include <stdint.h> ++ + /** + * Helper function that compares two binary blobs for equality + */(quoted diff) +0
-03.bb b/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb index 9215233..680d338 100644
meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb +1
-0@@ -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 \ "Quoted 9 lines
meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb DEPENDS = "gmp openssl flex-native flex bison-native" · line 14
Quoted 2 lines
meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb +0
-0SRC_URI[md5sum] = "4afffe3c219bb2e04f09510905af836b"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel