All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] tests: Replace deprecated ASN1 code
Date: Fri, 29 Jan 2021 11:47:45 +0000	[thread overview]
Message-ID: <20210129114745.GI4001740@redhat.com> (raw)
In-Reply-To: <f8e03cad-4eb8-92c0-eed5-a3ab033e2ab4@weilnetz.de>

On Fri, Jan 29, 2021 at 12:35:59PM +0100, Stefan Weil wrote:
> Am 29.01.21 um 11:06 schrieb Daniel P. Berrangé:
> 
> > On Thu, Jan 28, 2021 at 06:15:23PM +0100, Stefan Weil wrote:
> > > This fixes several compiler warnings on MacOS with Homebrew.
> > Could you give an example of the warnings seen as I'm wondering
> > why we won't have seen them already on other platforms ?
> 
> 
> Here they are (at least the first few, as the list is lengthy). I used
> 
> ../configure --enable-sanitizers --enable-debug
> --extra-cflags=-I/opt/homebrew/include --enable-cocoa
> 
> Maybe the warnings were enabled by --enable-debug.
> 
> Regards, Stefan
> 
> 
> % ninja
> [4696/4942] Compiling C object
> tests/test-crypto-tlscredsx509.p/test-crypto-tlscredsx509.c.o
> In file included from ../../../tests/test-crypto-tlscredsx509.c:23:
> ../../../tests/crypto-tls-x509-helpers.h:128:14: warning: 'ASN1_ARRAY_TYPE'
> macro is deprecated, use 'asn1_static_node' instead. [-W#pragma-messages]
> extern const ASN1_ARRAY_TYPE pkix_asn1_tab[];
>              ^
> /opt/homebrew/Cellar/libtasn1/4.16.0/include/libtasn1.h:582:25: note:
> expanded from macro 'ASN1_ARRAY_TYPE'
> #define ASN1_ARRAY_TYPE _Pragma ("GCC warning \"'ASN1_ARRAY_TYPE' macro is
> deprecated, use 'asn1_static_node' instead.\"") asn1_static_node
>                         ^
> <scratch space>:18:6: note: expanded from here

This is really odd.

I've got the 4.16.0 tar.gz for libtasn1 and it does not contain any
such _Pragma / deprecation warnings.

The libtasn1  git repo *does* contain these pragmas, but only in the
dev tree for the unreleased 4.17.0 version.

The homebrew-core.git repo recipe for libtasn1 claims to be using
4.16.0 release

  https://github.com/Homebrew/homebrew-core/blob/master/Formula/libtasn1.rb

and those tarballs match what i have.

None the less it looks like your 4.16.0 installed version is in fact
a  git snapshot. Damned if I understand what homebrew is doing.

None the less, given that these deprecations are in libtasn1 git upstream,
we're going to have to deal with them.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  reply	other threads:[~2021-01-29 12:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-28 17:15 [PATCH] tests: Replace deprecated ASN1 code Stefan Weil
2021-01-29 10:06 ` Daniel P. Berrangé
2021-01-29 11:35   ` Stefan Weil
2021-01-29 11:47     ` Daniel P. Berrangé [this message]
2021-01-29 12:18       ` Stefan Weil
2021-01-29 12:22         ` Daniel P. Berrangé

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=20210129114745.GI4001740@redhat.com \
    --to=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.de \
    /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 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.