Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Alexey Lukyanchuk <skif@skif-web.ru>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/zabbix: fix build with libressl >= 3.5.0
Date: Sat, 25 Feb 2023 10:40:01 +0100	[thread overview]
Message-ID: <20230225104001.7df24464@windsurf> (raw)
In-Reply-To: <20230224114320.2152346-1-fontaine.fabrice@gmail.com>

On Fri, 24 Feb 2023 12:43:20 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure with libressl >= 3.5.0 raised since bump
> to version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2:
> 
> tls.c:113:17: error: static declaration of 'OPENSSL_cleanup' follows non-static declaration
>   113 | static void     OPENSSL_cleanup(void)
>       |                 ^~~~~~~~~~~~~~~
> In file included from /home/thomas/autobuild/instance-3/output-1/host/mips-buildroot-linux-gnu/sysroot/usr/include/openssl/bio.h:69,
>                  from /home/thomas/autobuild/instance-3/output-1/host/mips-buildroot-linux-gnu/sysroot/usr/include/openssl/evp.h:67,
>                  from /home/thomas/autobuild/instance-3/output-1/host/mips-buildroot-linux-gnu/sysroot/usr/include/openssl/hmac.h:67,
>                  from /home/thomas/autobuild/instance-3/output-1/host/mips-buildroot-linux-gnu/sysroot/usr/include/openssl/ssl.h:150,
>                  from ../../../include/zbxcomms.h:65,
>                  from tls.c:20:
> /home/thomas/autobuild/instance-3/output-1/host/mips-buildroot-linux-gnu/sysroot/usr/include/openssl/crypto.h:565:6: note: previous declaration of 'OPENSSL_cleanup' with type 'void(void)'
>   565 | void OPENSSL_cleanup(void);
>       |      ^~~~~~~~~~~~~~~
> In file included from tls.c:20:
> tls.c: In function 'zbx_log_ciphersuites':
> ../../../include/zbxcomms.h:222:75: error: invalid use of incomplete typedef 'SSL_CTX' {aka 'struct ssl_ctx_st'}
>   222 | #       define SSL_CTX_get_ciphers(ciphers)                     ((ciphers)->cipher_list)
>       |                                                                           ^~
> tls.c:1415:31: note: in expansion of macro 'SSL_CTX_get_ciphers'
>  1415 |                 cipher_list = SSL_CTX_get_ciphers(ciphers);
>       |                               ^~~~~~~~~~~~~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/acdfcb17b39d438ccf5e4621707a10f60577d233
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  .../0002-fix-build-with-libressl-3.5.0.patch  | 71 +++++++++++++++++++
>  1 file changed, 71 insertions(+)
>  create mode 100644 package/zabbix/0002-fix-build-with-libressl-3.5.0.patch

Applied to master, thanks.

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

      reply	other threads:[~2023-02-25  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-24 11:43 [Buildroot] [PATCH 1/1] package/zabbix: fix build with libressl >= 3.5.0 Fabrice Fontaine
2023-02-25  9:40 ` Thomas Petazzoni via buildroot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230225104001.7df24464@windsurf \
    --to=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=skif@skif-web.ru \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox