[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror
From: |
Christian Schoenebeck |
Subject: |
Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror |
Date: |
Sun, 26 Jul 2020 19:19:03 +0200 |
On Sonntag, 26. Juli 2020 18:14:11 CEST Ed Maste wrote:
> On Fri, 24 Jul 2020 at 10:32, Thomas Huth <thuth@redhat.com> wrote:
> > Compiler warnings currently go unnoticed in our FreeBSD and macOS builds,
> > since -Werror is only enabled for Linux and MinGW builds by default. So
> > let's enable them here now, too.
>
> Reviewed-by: Ed Maste <emaste@freebsd.org>
>
> for the FreeBSD change; I'm indifferent on which method is used to
> address the macos deprecation warnings.
Like I pointed out on my response to Peter, it is a bit risky to just blindly
link against Apple's version of sasl on macOS. Say you compile qemu on a
certain macOS version, then you run qemu again after an update of macOS
without recompiling qemu, chances are that you get misbehaviours.
One solution would be bundling the qemu app along with sasl, so qemu would be
forced to use that bundled sasl version instead of whatever Apple's version of
sasl is installed on the system.
Another appraoch would be checking the system's sasl version on qemu startup
by calling either sasl_version() or sasl_version_info() and comparing that
with the version qemu was compiled with, and erroring out on doubt.
Or obvious last option: simply taking the risk by ignoring this potential
issue. The SASL headers are still made available by Apple, which suggests that
they don't break SASL 'too often'.
Your choice. ;-)
Best regards,
Christian Schoenebeck
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, (continued)
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Philippe Mathieu-Daudé, 2020/07/24
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Daniel P . Berrangé, 2020/07/24
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Thomas Huth, 2020/07/27
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Peter Maydell, 2020/07/27
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Thomas Huth, 2020/07/27
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Peter Maydell, 2020/07/24
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Christian Schoenebeck, 2020/07/24
- Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Daniel P . Berrangé, 2020/07/27
Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Peter Maydell, 2020/07/24
Re: [PATCH 2/3] cirrus.yml: Compile macOS and FreeBSD with -Werror, Ed Maste, 2020/07/26
[PATCH 1/3] configure: Fix atomic64 test for --enable-werror on macOS, Thomas Huth, 2020/07/24
[PATCH 3/3] cirrus.yml: Update the macOS jobs to Catalina, Thomas Huth, 2020/07/24