All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl
@ 2021-03-06 14:35 Fabrice Fontaine
  2021-03-06 15:27 ` Peter Korsgaard
  2021-03-16 21:54 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2021-03-06 14:35 UTC (permalink / raw)
  To: buildroot

Build with libressl is broken since version 5.1.0 and
https://git.savannah.nongnu.org/cgit/exosip.git/commit/?id=d7488b7bbf59870192372384ef338a44be23e888

For an unknown reason, we only have one autobuilder failure with version
5.2.0

Fixes:
 - http://autobuild.buildroot.org/results/89d8d4ba99d6dcc1618cf6b5302c124a92d75be9

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...eXtls_dtls.c-fix-build-with-libressl.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/libeXosip2/0001-src-eXtls_dtls.c-fix-build-with-libressl.patch

diff --git a/package/libeXosip2/0001-src-eXtls_dtls.c-fix-build-with-libressl.patch b/package/libeXosip2/0001-src-eXtls_dtls.c-fix-build-with-libressl.patch
new file mode 100644
index 0000000000..b153eee65c
--- /dev/null
+++ b/package/libeXosip2/0001-src-eXtls_dtls.c-fix-build-with-libressl.patch
@@ -0,0 +1,34 @@
+From 178632fa5530a72f50376a60d59be2a07e65c28b Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 6 Mar 2021 15:20:51 +0100
+Subject: [PATCH] src/eXtls_dtls.c: fix build with libressl
+
+Build with libressl is broken since
+https://git.savannah.nongnu.org/cgit/exosip.git/commit/?id=d7488b7bbf59870192372384ef338a44be23e888
+because libressl does not define SSL_set0_rbio
+
+Fixes:
+ - http://autobuild.buildroot.org/results/89d8d4ba99d6dcc1618cf6b5302c124a92d75be9
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to amoizard at antisip.com]
+---
+ src/eXtl_dtls.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/eXtl_dtls.c b/src/eXtl_dtls.c
+index 40fa658..8ac3a13 100644
+--- a/src/eXtl_dtls.c
++++ b/src/eXtl_dtls.c
+@@ -70,7 +70,7 @@
+ #define RANDOM  "random.pem"
+ #define DHFILE "dh1024.pem"
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ 
+ static void
+ SSL_set0_rbio (SSL * s, BIO * rbio)
+-- 
+2.30.0
+
-- 
2.30.0

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

* [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl
  2021-03-06 14:35 [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl Fabrice Fontaine
@ 2021-03-06 15:27 ` Peter Korsgaard
  2021-03-16 21:54 ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2021-03-06 15:27 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Build with libressl is broken since version 5.1.0 and
 > https://git.savannah.nongnu.org/cgit/exosip.git/commit/?id=d7488b7bbf59870192372384ef338a44be23e888

 > For an unknown reason, we only have one autobuilder failure with version
 > 5.2.0

 > Fixes:
 >  - http://autobuild.buildroot.org/results/89d8d4ba99d6dcc1618cf6b5302c124a92d75be9

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl
  2021-03-06 14:35 [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl Fabrice Fontaine
  2021-03-06 15:27 ` Peter Korsgaard
@ 2021-03-16 21:54 ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2021-03-16 21:54 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Build with libressl is broken since version 5.1.0 and
 > https://git.savannah.nongnu.org/cgit/exosip.git/commit/?id=d7488b7bbf59870192372384ef338a44be23e888

 > For an unknown reason, we only have one autobuilder failure with version
 > 5.2.0

 > Fixes:
 >  - http://autobuild.buildroot.org/results/89d8d4ba99d6dcc1618cf6b5302c124a92d75be9

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2020.11.x, thanks.

-- 
Bye, Peter Korsgaard

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

* Re: [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl
  2022-04-24 19:19 Fabrice Fontaine
  2022-04-27 17:13 ` Arnout Vandecappelle
@ 2022-05-27  8:52 ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2022-05-27  8:52 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Gilles Talis, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure with libressl >= 3.4.1 raised since
 > commit 25ef2c26dabaf1553f1724214a4fa5e3ce48dfc8:

 > In file included from eXtl_dtls.c:82:
 > /home/autobuild/autobuild/instance-4/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/openssl/ssl.h:1272:6:
 > note: previous declaration of 'SSL_set0_rbio' was here
 >  1272 | void SSL_set0_rbio(SSL *s, BIO *rbio);
 >       |      ^~~~~~~~~~~~~
 > eXtl_dtls.c: In function 'SSL_set0_rbio':
 > eXtl_dtls.c:108:17: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}
 >   108 |   BIO_free_all(s->rbio);
 >       |                 ^~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/dfafdbf71b31fbda1b5ba491ac35239af4a20aa2

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 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] 6+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl
  2022-04-24 19:19 Fabrice Fontaine
@ 2022-04-27 17:13 ` Arnout Vandecappelle
  2022-05-27  8:52 ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Arnout Vandecappelle @ 2022-04-27 17:13 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Gilles Talis



On 24/04/2022 21:19, Fabrice Fontaine wrote:
> Fix the following build failure with libressl >= 3.4.1 raised since
> commit 25ef2c26dabaf1553f1724214a4fa5e3ce48dfc8:
> 
> In file included from eXtl_dtls.c:82:
> /home/autobuild/autobuild/instance-4/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/openssl/ssl.h:1272:6: note: previous declaration of 'SSL_set0_rbio' was here
>   1272 | void SSL_set0_rbio(SSL *s, BIO *rbio);
>        |      ^~~~~~~~~~~~~
> eXtl_dtls.c: In function 'SSL_set0_rbio':
> eXtl_dtls.c:108:17: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}
>    108 |   BIO_free_all(s->rbio);
>        |                 ^~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/dfafdbf71b31fbda1b5ba491ac35239af4a20aa2
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...dtls.c-fix-build-with-libressl-3.4.1.patch | 43 +++++++++++++++++++
>   1 file changed, 43 insertions(+)
>   create mode 100644 package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch
> 
> diff --git a/package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch b/package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch
> new file mode 100644
> index 0000000000..0b4be43b6c
> --- /dev/null
> +++ b/package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch
> @@ -0,0 +1,43 @@
> +From 4201c0ff3fd75e09025d515c427f85f9fec89621 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Tue, 5 Apr 2022 22:27:35 +0200
> +Subject: [PATCH] src/eXtl_dtls.c: fix build with libressl >= 3.4.1
> +
> +Fix the following build failure with libressl >= 3.4.1 which provides
> +SSL_set0_rbio() since
> +https://github.com/libressl-portable/openbsd/commit/c99939f9665a9c3c648682b4987df46600b70efc:
> +
> +In file included from eXtl_dtls.c:82:
> +/home/autobuild/autobuild/instance-4/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/openssl/ssl.h:1272:6: note: previous declaration of 'SSL_set0_rbio' was here
> + 1272 | void SSL_set0_rbio(SSL *s, BIO *rbio);
> +      |      ^~~~~~~~~~~~~
> +eXtl_dtls.c: In function 'SSL_set0_rbio':
> +eXtl_dtls.c:108:17: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}
> +  108 |   BIO_free_all(s->rbio);
> +      |                 ^~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/dfafdbf71b31fbda1b5ba491ac35239af4a20aa2
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: sent to amoizard@antisip.com]
> +---
> + src/eXtl_dtls.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/eXtl_dtls.c b/src/eXtl_dtls.c
> +index 07c0dc2..d0bd7dc 100644
> +--- a/src/eXtl_dtls.c
> ++++ b/src/eXtl_dtls.c
> +@@ -102,7 +102,7 @@
> + #define RANDOM "random.pem"
> + #define DHFILE "dh1024.pem"
> +
> +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
> ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3040100L)
> +
> + static void SSL_set0_rbio(SSL *s, BIO *rbio) {
> +   BIO_free_all(s->rbio);
> +--
> +2.35.1
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl
@ 2022-04-24 19:19 Fabrice Fontaine
  2022-04-27 17:13 ` Arnout Vandecappelle
  2022-05-27  8:52 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2022-04-24 19:19 UTC (permalink / raw)
  To: buildroot; +Cc: Gilles Talis, Fabrice Fontaine

Fix the following build failure with libressl >= 3.4.1 raised since
commit 25ef2c26dabaf1553f1724214a4fa5e3ce48dfc8:

In file included from eXtl_dtls.c:82:
/home/autobuild/autobuild/instance-4/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/openssl/ssl.h:1272:6: note: previous declaration of 'SSL_set0_rbio' was here
 1272 | void SSL_set0_rbio(SSL *s, BIO *rbio);
      |      ^~~~~~~~~~~~~
eXtl_dtls.c: In function 'SSL_set0_rbio':
eXtl_dtls.c:108:17: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}
  108 |   BIO_free_all(s->rbio);
      |                 ^~

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...dtls.c-fix-build-with-libressl-3.4.1.patch | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch

diff --git a/package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch b/package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch
new file mode 100644
index 0000000000..0b4be43b6c
--- /dev/null
+++ b/package/libeXosip2/0001-src-eXtl_dtls.c-fix-build-with-libressl-3.4.1.patch
@@ -0,0 +1,43 @@
+From 4201c0ff3fd75e09025d515c427f85f9fec89621 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 5 Apr 2022 22:27:35 +0200
+Subject: [PATCH] src/eXtl_dtls.c: fix build with libressl >= 3.4.1
+
+Fix the following build failure with libressl >= 3.4.1 which provides
+SSL_set0_rbio() since
+https://github.com/libressl-portable/openbsd/commit/c99939f9665a9c3c648682b4987df46600b70efc:
+
+In file included from eXtl_dtls.c:82:
+/home/autobuild/autobuild/instance-4/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/openssl/ssl.h:1272:6: note: previous declaration of 'SSL_set0_rbio' was here
+ 1272 | void SSL_set0_rbio(SSL *s, BIO *rbio);
+      |      ^~~~~~~~~~~~~
+eXtl_dtls.c: In function 'SSL_set0_rbio':
+eXtl_dtls.c:108:17: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}
+  108 |   BIO_free_all(s->rbio);
+      |                 ^~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/dfafdbf71b31fbda1b5ba491ac35239af4a20aa2
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to amoizard@antisip.com]
+---
+ src/eXtl_dtls.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/eXtl_dtls.c b/src/eXtl_dtls.c
+index 07c0dc2..d0bd7dc 100644
+--- a/src/eXtl_dtls.c
++++ b/src/eXtl_dtls.c
+@@ -102,7 +102,7 @@
+ #define RANDOM "random.pem"
+ #define DHFILE "dh1024.pem"
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3040100L)
+ 
+ static void SSL_set0_rbio(SSL *s, BIO *rbio) {
+   BIO_free_all(s->rbio);
+-- 
+2.35.1
+
-- 
2.35.1

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

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

end of thread, other threads:[~2022-05-27  8:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06 14:35 [Buildroot] [PATCH 1/1] package/libeXosip2: fix build with libressl Fabrice Fontaine
2021-03-06 15:27 ` Peter Korsgaard
2021-03-16 21:54 ` Peter Korsgaard
2022-04-24 19:19 Fabrice Fontaine
2022-04-27 17:13 ` Arnout Vandecappelle
2022-05-27  8:52 ` 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.