package/asterisk: fix build with libressl
PATCH 1/1 package/asterisk: fix build with libressl
Fix the following build failure with libressl by using SSL_is_server which is available since version 2.7.0 and
https://github.com/libressl-portable/openbsd/commit/d7ec516916c5eaac29b02d7a8ac6570f63b458f7:
iostream.c: In function 'ast_iostream_close':
iostream.c:559:41: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}
559 | if (!stream->ssl->server) {
| ^~
Fixes:
- http://autobuild.buildroot.org/results/ce4d62d00bb77ba5b303cacf6be7e350581a62f9
--- ...n-iostream.c-fix-build-with-libressl.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patch
package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 9569fa20fec49f530170a3042afb99556cf66a2e Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Sun, 17 Apr 2022 10:52:42 +0200 +Subject: [PATCH] main/iostream.c: fix build with libressl + +Fix the following build failure with libressl by using SSL_is_server +which is available since version 2.7.0 and +https://github.com/libressl-portable/openbsd/commit/d7ec516916c5eaac29b02d7a8ac6570f63b458f7: + +iostream.c: In function 'ast_iostream_close': +iostream.c:559:41: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'} + 559 | if (!stream->ssl->server) { + | ^~ + +Fixes: + - http://autobuild.buildroot.org/results/ce4d62d00bb77ba5b303cacf6be7e350581a62f9 + +Signed-off-by: Fabrice Fontaine <[email protected]> +--- + main/iostream.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/main/iostream.c b/main/iostream.c +index d060b6d6d4..b8ab80ec91 100644 +--- a/main/iostream.c ++++ b/main/iostream.c +@@ -553,7 +553,7 @@ int ast_iostream_close(struct ast_iostream *stream) + ERR_error_string(sslerr, err), ssl_error_to_string(sslerr, res)); + } + +-#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L) ++#if !(defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x2070000L)) && (OPENSSL_VERSION_NUMBER >= 0x10100000L) + if (!SSL_is_server(stream->ssl)) { + #else + if (!stream->ssl->server) { +-- +2.35.1 +
Signature · 6 lines
2.39.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · On Fri, 24 Feb 2023 10:50:45 +0100 Fabrice Fontaine…
Fix the following build failure with libressl by using
SSL_is_serverwhich is available since version 2.7.0 and
https://github.com/libressl-portable/openbsd/commit/d7ec516916c5eaac29b02d7a8ac6570f63b458f7:
iostream.c: In function 'ast_iostream_close':
iostream.c:559:41: error: invalid use of incomplete typedef 'SSL' {aka 'structssl_st'}
559 | if (!stream->ssl->server) {
| ^~
Quoted 8 lines
Fixes:
- http://autobuild.buildroot.org/results/ce4d62d00bb77ba5b303cacf6be7e350581a62f9Signed-off-by Fabrice Fontaine <[email protected]>--- ...n-iostream.c-fix-build-with-libressl.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patch
Applied to master, thanks. What is the upstream status of this patch?
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 19 lines · Thomas Petazzoni
Quoted 3 lines · On Fri, 24 Feb 2023 10:50:45 +0100 Fabrice Fontaine…
Fix the following build failure with libressl by using
SSL_is_serverwhich is available since version 2.7.0 andhttps://github.com/libressl-portable/openbsd/commit/d7ec516916c5eaac29b02d7a8ac6570f63b458f7
:Quoted 3 lines
iostream.c: In function 'ast_iostream_close':
iostream.c:559:41: error: invalid use of incomplete typedef 'SSL' {aka'struct
ssl_st'}Quoted 5 lines
559 | if (!stream->ssl->server) { | ^~Fixes:
-http://autobuild.buildroot.org/results/ce4d62d00bb77ba5b303cacf6be7e350581a62f9
Quoted 1 line
Quoted 9 lines
Quoted 5 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- ...n-iostream.c-fix-build-with-libressl.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644
package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patchApplied to master, thanks. What is the upstream status of this patch?
I finally sent it today (
https://issues.asterisk.org/jira/browse/ASTERISK-30107), I really hate gerrit ...
Quoted 7 lines
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Fix the following build failure with libressl by using
SSL_is_serverwhich is available since version 2.7.0 and
https://github.com/libressl-portable/openbsd/commit/d7ec516916c5eaac29b02d7a8ac6570f63b458f7:
iostream.c: In function 'ast_iostream_close':
iostream.c:559:41: error: invalid use of incomplete typedef 'SSL' {aka 'structssl_st'}
559 | if (!stream->ssl->server) {
| ^~
Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/ce4d62d00bb77ba5b303cacf6be7e350581a62f9Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2022.11.x and 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot