All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/glib-networking: fix build with libressl
@ 2022-04-03 14:00 Fabrice Fontaine
  2022-04-04 19:44 ` Arnout Vandecappelle
  2022-04-09 14:11 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-04-03 14:00 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

glib-networking raises the following build failure with libressl:

../tls/openssl/gtlsconnection-openssl.c: In function 'g_tls_connection_openssl_handshake_thread_request_rehandshake':
../tls/openssl/gtlsconnection-openssl.c:419:27: error: 'TLS1_3_VERSION' undeclared (first use in this function); did you mean 'TLS1_2_VERSION'?
  419 |   if (SSL_version(ssl) >= TLS1_3_VERSION)
      |                           ^~~~~~~~~~~~~~
      |                           TLS1_2_VERSION
../tls/openssl/gtlsconnection-openssl.c:419:27: note: each undeclared identifier is reported only once for each function it appears in
../tls/openssl/gtlsconnection-openssl.c:420:11: error: implicit declaration of function 'SSL_key_update' [-Werror=implicit-function-declaration]
  420 |     ret = SSL_key_update (ssl, SSL_KEY_UPDATE_REQUESTED);
      |           ^~~~~~~~~~~~~~

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/glib-networking/Config.in          | 1 +
 package/glib-networking/glib-networking.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/glib-networking/Config.in b/package/glib-networking/Config.in
index 38cded5e6b..9c5d36af16 100644
--- a/package/glib-networking/Config.in
+++ b/package/glib-networking/Config.in
@@ -6,6 +6,7 @@ config BR2_PACKAGE_GLIB_NETWORKING
 	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL if !BR2_PACKAGE_GNUTLS
 	select BR2_PACKAGE_P11_KIT if BR2_PACKAGE_GNUTLS
 	help
 	  Network-related GIO modules for glib.
diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
index f74e520d31..e8905dfff4 100644
--- a/package/glib-networking/glib-networking.mk
+++ b/package/glib-networking/glib-networking.mk
@@ -31,7 +31,7 @@ else
 GLIB_NETWORKING_CONF_OPTS += -Dgnutls=disabled
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
 GLIB_NETWORKING_DEPENDENCIES += openssl
 GLIB_NETWORKING_CONF_OPTS += -Dopenssl=enabled
 else
-- 
2.35.1

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

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

* Re: [Buildroot] [PATCH 1/1] package/glib-networking: fix build with libressl
  2022-04-03 14:00 [Buildroot] [PATCH 1/1] package/glib-networking: fix build with libressl Fabrice Fontaine
@ 2022-04-04 19:44 ` Arnout Vandecappelle
  2022-04-09 14:11 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-04-04 19:44 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 03/04/2022 16:00, Fabrice Fontaine wrote:
> glib-networking raises the following build failure with libressl:
> 
> ../tls/openssl/gtlsconnection-openssl.c: In function 'g_tls_connection_openssl_handshake_thread_request_rehandshake':
> ../tls/openssl/gtlsconnection-openssl.c:419:27: error: 'TLS1_3_VERSION' undeclared (first use in this function); did you mean 'TLS1_2_VERSION'?
>    419 |   if (SSL_version(ssl) >= TLS1_3_VERSION)
>        |                           ^~~~~~~~~~~~~~
>        |                           TLS1_2_VERSION
> ../tls/openssl/gtlsconnection-openssl.c:419:27: note: each undeclared identifier is reported only once for each function it appears in
> ../tls/openssl/gtlsconnection-openssl.c:420:11: error: implicit declaration of function 'SSL_key_update' [-Werror=implicit-function-declaration]
>    420 |     ret = SSL_key_update (ssl, SSL_KEY_UPDATE_REQUESTED);
>        |           ^~~~~~~~~~~~~~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/b8dea5704903c84858c7a339a73ecb713ac2791c
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/glib-networking/Config.in          | 1 +
>   package/glib-networking/glib-networking.mk | 2 +-
>   2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/glib-networking/Config.in b/package/glib-networking/Config.in
> index 38cded5e6b..9c5d36af16 100644
> --- a/package/glib-networking/Config.in
> +++ b/package/glib-networking/Config.in
> @@ -6,6 +6,7 @@ config BR2_PACKAGE_GLIB_NETWORKING
>   	depends on !BR2_STATIC_LIBS
>   	select BR2_PACKAGE_LIBGLIB2
>   	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
> +	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL if !BR2_PACKAGE_GNUTLS
>   	select BR2_PACKAGE_P11_KIT if BR2_PACKAGE_GNUTLS
>   	help
>   	  Network-related GIO modules for glib.
> diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
> index f74e520d31..e8905dfff4 100644
> --- a/package/glib-networking/glib-networking.mk
> +++ b/package/glib-networking/glib-networking.mk
> @@ -31,7 +31,7 @@ else
>   GLIB_NETWORKING_CONF_OPTS += -Dgnutls=disabled
>   endif
>   
> -ifeq ($(BR2_PACKAGE_OPENSSL),y)
> +ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
>   GLIB_NETWORKING_DEPENDENCIES += openssl
>   GLIB_NETWORKING_CONF_OPTS += -Dopenssl=enabled
>   else
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/glib-networking: fix build with libressl
  2022-04-03 14:00 [Buildroot] [PATCH 1/1] package/glib-networking: fix build with libressl Fabrice Fontaine
  2022-04-04 19:44 ` Arnout Vandecappelle
@ 2022-04-09 14:11 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-04-09 14:11 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

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

 > glib-networking raises the following build failure with libressl:
 > ../tls/openssl/gtlsconnection-openssl.c: In function 'g_tls_connection_openssl_handshake_thread_request_rehandshake':
 > ../tls/openssl/gtlsconnection-openssl.c:419:27: error:
 > 'TLS1_3_VERSION' undeclared (first use in this function); did you mean
 > 'TLS1_2_VERSION'?
 >   419 |   if (SSL_version(ssl) >= TLS1_3_VERSION)
 >       |                           ^~~~~~~~~~~~~~
 >       |                           TLS1_2_VERSION
 > ../tls/openssl/gtlsconnection-openssl.c:419:27: note: each undeclared
 > identifier is reported only once for each function it appears in
 > ../tls/openssl/gtlsconnection-openssl.c:420:11: error: implicit
 > declaration of function 'SSL_key_update'
 > [-Werror=implicit-function-declaration]
 >   420 |     ret = SSL_key_update (ssl, SSL_KEY_UPDATE_REQUESTED);
 >       |           ^~~~~~~~~~~~~~

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

 > 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] 3+ messages in thread

end of thread, other threads:[~2022-04-09 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 14:00 [Buildroot] [PATCH 1/1] package/glib-networking: fix build with libressl Fabrice Fontaine
2022-04-04 19:44 ` Arnout Vandecappelle
2022-04-09 14:11 ` 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.