Re: [oe] [meta-networking][PATCH] Strongswan: Add stdint.h to resolve build failure
On Sun, Aug 13, 2017 at 4:15 AM, Martin Jansa wrote: > 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. > > On Sun, Aug 13, 2017 at 7:41 AM, akuster808 wrote: > >> >> >> On 08/12/2017 03:03 PM, Jeremy Puhlman wrote: >> >>> From: "Jeremy A. Puhlman" >>> >>> 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 >>> --- >>> .../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.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 000..388261b >>> --- /dev/null >>> +++ b/meta-networking/recipes-support/strongswan/files/strongswa >>> n-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.0 -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 >>> ++ >>> + /** >>> + * 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" >>> >> >> -- >> ___ >> Openembedded-devel mailing list >> Openembedded-devel@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel >> > -- > ___ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-networking][PATCH] Strongswan: Add stdint.h to resolve build failure
There is already fix for that in master-next: https://patchwork.openembedded.org/patch/141328/ waiting for Joe to merge it. On Sun, Aug 13, 2017 at 7:41 AM, akuster808 wrote: > > > On 08/12/2017 03:03 PM, Jeremy Puhlman wrote: > >> From: "Jeremy A. Puhlman" >> >> 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 >> --- >> .../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.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 000..388261b >> --- /dev/null >> +++ b/meta-networking/recipes-support/strongswan/files/strongswa >> n-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.0 -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 >> ++ >> + /** >> + * 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" >> > > -- > ___ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-networking][PATCH] Strongswan: Add stdint.h to resolve build failure
On 08/12/2017 03:03 PM, Jeremy Puhlman wrote: From: "Jeremy A. Puhlman" 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 --- .../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 000..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.0 -0700 strongswan-5.5.3/src/libstrongswan/utils/utils/memory.h2017-08-12 14:41:04.757398239 -0700 +@@ -22,6 +22,8 @@ + #ifndef MEMORY_H_ + #define MEMORY_H_ + ++#include ++ + /** + * 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" -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel