* [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl
@ 2023-02-24 9:50 Fabrice Fontaine
2023-02-25 9:42 ` Thomas Petazzoni via buildroot
2023-03-12 19:08 ` Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2023-02-24 9:50 UTC (permalink / raw)
To: buildroot; +Cc: Yann E . MORIN, Fabrice Fontaine
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 <fontaine.fabrice@gmail.com>
---
...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
diff --git a/package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patch b/package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patch
new file mode 100644
index 0000000000..cdd3aa8cfb
--- /dev/null
+++ b/package/asterisk/0006-main-iostream.c-fix-build-with-libressl.patch
@@ -0,0 +1,38 @@
+From 9569fa20fec49f530170a3042afb99556cf66a2e Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+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 <fontaine.fabrice@gmail.com>
+---
+ 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
+
--
2.39.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl
2023-02-24 9:50 [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl Fabrice Fontaine
@ 2023-02-25 9:42 ` Thomas Petazzoni via buildroot
2023-02-25 10:35 ` Fabrice Fontaine
2023-03-12 19:08 ` Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-25 9:42 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Yann E . MORIN, buildroot
On Fri, 24 Feb 2023 10:50:45 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> 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 <fontaine.fabrice@gmail.com>
> ---
> ...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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl
2023-02-25 9:42 ` Thomas Petazzoni via buildroot
@ 2023-02-25 10:35 ` Fabrice Fontaine
0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2023-02-25 10:35 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: Yann E . MORIN, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 1439 bytes --]
Le sam. 25 févr. 2023 à 10:42, Thomas Petazzoni <
thomas.petazzoni@bootlin.com> a écrit :
> On Fri, 24 Feb 2023 10:50:45 +0100
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > 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 <fontaine.fabrice@gmail.com>
> > ---
> > ...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?
>
I finally sent it today (
https://issues.asterisk.org/jira/browse/ASTERISK-30107), I really hate
gerrit ...
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
Best Regards,
Fabrice
[-- Attachment #1.2: Type: text/html, Size: 2679 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl
2023-02-24 9:50 [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl Fabrice Fontaine
2023-02-25 9:42 ` Thomas Petazzoni via buildroot
@ 2023-03-12 19:08 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2023-03-12 19:08 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Yann E . MORIN, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> 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 <fontaine.fabrice@gmail.com>
Committed to 2022.11.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-12 19:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 9:50 [Buildroot] [PATCH 1/1] package/asterisk: fix build with libressl Fabrice Fontaine
2023-02-25 9:42 ` Thomas Petazzoni via buildroot
2023-02-25 10:35 ` Fabrice Fontaine
2023-03-12 19:08 ` Peter Korsgaard
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.