From: "Daniel P. Berrange" <berrange@redhat.com>
To: Steven Luo <steven@steven676.net>
Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org, qemu-stable@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] Fix configure test for PBKDF2 in nettle
Date: Tue, 31 May 2016 10:23:33 +0100 [thread overview]
Message-ID: <20160531092333.GJ21628@redhat.com> (raw)
In-Reply-To: <1464324793-29101-1-git-send-email-steven@steven676.net>
On Thu, May 26, 2016 at 09:53:13PM -0700, Steven Luo wrote:
> From: Steven Luo <steven+qemu@steven676.net>
>
> On my Debian jessie system, including nettle/pbkdf2.h does not cause
> NULL to be defined, which causes the test to fail to compile. Include
> stddef.h to bring in a definition of NULL.
>
> Cc: qemu-trivial@nongnu.org
> Cc: qemu-stable@nongnu.org
> Signed-off-by: Steven Luo <steven+qemu@steven676.net>
> ---
> I suppose this could also be fixed by defining NULL ourselves, or by
> replacing NULLs with 0s -- if one of those other approaches is
> preferred, let me know.
What you've done here looks just fine to me.
>
> configure | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configure b/configure
> index c37fc5f..0aae017 100755
> --- a/configure
> +++ b/configure
> @@ -2342,6 +2342,7 @@ if test "$nettle" != "no"; then
> nettle="yes"
>
> cat > $TMPC << EOF
> +#include <stddef.h>
> #include <nettle/pbkdf2.h>
> int main(void) {
> pbkdf2_hmac_sha256(8, NULL, 1000, 8, NULL, 8, NULL);
> --
> 2.1.4
>
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
WARNING: multiple messages have this Message-ID (diff)
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Steven Luo <steven@steven676.net>
Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org, qemu-stable@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix configure test for PBKDF2 in nettle
Date: Tue, 31 May 2016 10:23:33 +0100 [thread overview]
Message-ID: <20160531092333.GJ21628@redhat.com> (raw)
In-Reply-To: <1464324793-29101-1-git-send-email-steven@steven676.net>
On Thu, May 26, 2016 at 09:53:13PM -0700, Steven Luo wrote:
> From: Steven Luo <steven+qemu@steven676.net>
>
> On my Debian jessie system, including nettle/pbkdf2.h does not cause
> NULL to be defined, which causes the test to fail to compile. Include
> stddef.h to bring in a definition of NULL.
>
> Cc: qemu-trivial@nongnu.org
> Cc: qemu-stable@nongnu.org
> Signed-off-by: Steven Luo <steven+qemu@steven676.net>
> ---
> I suppose this could also be fixed by defining NULL ourselves, or by
> replacing NULLs with 0s -- if one of those other approaches is
> preferred, let me know.
What you've done here looks just fine to me.
>
> configure | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configure b/configure
> index c37fc5f..0aae017 100755
> --- a/configure
> +++ b/configure
> @@ -2342,6 +2342,7 @@ if test "$nettle" != "no"; then
> nettle="yes"
>
> cat > $TMPC << EOF
> +#include <stddef.h>
> #include <nettle/pbkdf2.h>
> int main(void) {
> pbkdf2_hmac_sha256(8, NULL, 1000, 8, NULL, 8, NULL);
> --
> 2.1.4
>
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
next prev parent reply other threads:[~2016-05-31 9:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-27 4:53 [Qemu-trivial] [PATCH] Fix configure test for PBKDF2 in nettle Steven Luo
2016-05-27 4:53 ` [Qemu-devel] " Steven Luo
2016-05-29 8:40 ` [Qemu-trivial] " Michael Tokarev
2016-05-29 8:40 ` [Qemu-devel] " Michael Tokarev
2016-05-31 9:23 ` Daniel P. Berrange [this message]
2016-05-31 9:23 ` Daniel P. Berrange
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=20160531092333.GJ21628@redhat.com \
--to=berrange@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=steven@steven676.net \
/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.