All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/sngrep: fix build with libressl >= 3.5.0
@ 2022-05-05 21:06 Fabrice Fontaine
  2022-05-13 22:10 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-05-05 21:06 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure with libressl raised since bump to
version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2:

capture_openssl.c: In function 'P_hash':
capture_openssl.c:101:18: error: storage size of 'hm' isn't known
  101 |         HMAC_CTX hm;
      |                  ^~

Fixes:
 - http://autobuild.buildroot.org/results/f1e8cdb3ac35a30055ab79d41e6cc038e5339c37

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...nssl.h-fix-build-with-libressl-3.5.0.patch | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch

diff --git a/package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch b/package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch
new file mode 100644
index 0000000000..7dbb29ab00
--- /dev/null
+++ b/package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch
@@ -0,0 +1,40 @@
+From 4e1406ad0df370ff8bf1d3a81aaadbb1cad2d761 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 29 Apr 2022 18:53:45 +0200
+Subject: [PATCH] src/capture_openssl.h: fix build with libressl >= 3.5.0
+
+Fix the following build failure with libressl >= 3.5.0:
+
+capture_openssl.c: In function 'P_hash':
+capture_openssl.c:101:18: error: storage size of 'hm' isn't known
+  101 |         HMAC_CTX hm;
+      |                  ^~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/f1e8cdb3ac35a30055ab79d41e6cc038e5339c37
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/irontec/sngrep/commit/4e1406ad0df370ff8bf1d3a81aaadbb1cad2d761]
+---
+ src/capture_openssl.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/capture_openssl.h b/src/capture_openssl.h
+index 780de494..1f87a5cd 100644
+--- a/src/capture_openssl.h
++++ b/src/capture_openssl.h
+@@ -67,10 +67,11 @@
+ #endif
+ 
+ /* LibreSSL declares OPENSSL_VERSION_NUMBER == 2.0 but does not include most
+- * changes from OpenSSL >= 1.1 (new functions, macros, deprecations, ...)
++ * changes from OpenSSL >= 1.1 (new functions, macros, deprecations, ...) until
++ * version 3.5.0
+  */
+ #if defined(LIBRESSL_VERSION_NUMBER)
+-#define MODSSL_USE_OPENSSL_PRE_1_1_API (1)
++#define MODSSL_USE_OPENSSL_PRE_1_1_API (LIBRESSL_VERSION_NUMBER < 0x30500000L)
+ #else
+ #define MODSSL_USE_OPENSSL_PRE_1_1_API (OPENSSL_VERSION_NUMBER < 0x10100000L)
+ #endif
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/sngrep: fix build with libressl >= 3.5.0
  2022-05-05 21:06 [Buildroot] [PATCH 1/1] package/sngrep: fix build with libressl >= 3.5.0 Fabrice Fontaine
@ 2022-05-13 22:10 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-05-13 22:10 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 05/05/2022 23:06, Fabrice Fontaine wrote:
> Fix the following build failure with libressl raised since bump to
> version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2:
> 
> capture_openssl.c: In function 'P_hash':
> capture_openssl.c:101:18: error: storage size of 'hm' isn't known
>    101 |         HMAC_CTX hm;
>        |                  ^~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/f1e8cdb3ac35a30055ab79d41e6cc038e5339c37
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...nssl.h-fix-build-with-libressl-3.5.0.patch | 40 +++++++++++++++++++
>   1 file changed, 40 insertions(+)
>   create mode 100644 package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch
> 
> diff --git a/package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch b/package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch
> new file mode 100644
> index 0000000000..7dbb29ab00
> --- /dev/null
> +++ b/package/sngrep/0001-src-capture_openssl.h-fix-build-with-libressl-3.5.0.patch
> @@ -0,0 +1,40 @@
> +From 4e1406ad0df370ff8bf1d3a81aaadbb1cad2d761 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Fri, 29 Apr 2022 18:53:45 +0200
> +Subject: [PATCH] src/capture_openssl.h: fix build with libressl >= 3.5.0
> +
> +Fix the following build failure with libressl >= 3.5.0:
> +
> +capture_openssl.c: In function 'P_hash':
> +capture_openssl.c:101:18: error: storage size of 'hm' isn't known
> +  101 |         HMAC_CTX hm;
> +      |                  ^~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/f1e8cdb3ac35a30055ab79d41e6cc038e5339c37
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Retrieved from:
> +https://github.com/irontec/sngrep/commit/4e1406ad0df370ff8bf1d3a81aaadbb1cad2d761]
> +---
> + src/capture_openssl.h | 5 +++--
> + 1 file changed, 3 insertions(+), 2 deletions(-)
> +
> +diff --git a/src/capture_openssl.h b/src/capture_openssl.h
> +index 780de494..1f87a5cd 100644
> +--- a/src/capture_openssl.h
> ++++ b/src/capture_openssl.h
> +@@ -67,10 +67,11 @@
> + #endif
> +
> + /* LibreSSL declares OPENSSL_VERSION_NUMBER == 2.0 but does not include most
> +- * changes from OpenSSL >= 1.1 (new functions, macros, deprecations, ...)
> ++ * changes from OpenSSL >= 1.1 (new functions, macros, deprecations, ...) until
> ++ * version 3.5.0
> +  */
> + #if defined(LIBRESSL_VERSION_NUMBER)
> +-#define MODSSL_USE_OPENSSL_PRE_1_1_API (1)
> ++#define MODSSL_USE_OPENSSL_PRE_1_1_API (LIBRESSL_VERSION_NUMBER < 0x30500000L)
> + #else
> + #define MODSSL_USE_OPENSSL_PRE_1_1_API (OPENSSL_VERSION_NUMBER < 0x10100000L)
> + #endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-13 22:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 21:06 [Buildroot] [PATCH 1/1] package/sngrep: fix build with libressl >= 3.5.0 Fabrice Fontaine
2022-05-13 22:10 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.