From: "Daniel P. Berrange" <berrange@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Programmingkid <programmingkidx@gmail.com>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] undefined symbol _nettle_cast5_set_key
Date: Tue, 31 May 2016 15:00:17 +0100 [thread overview]
Message-ID: <20160531140017.GX21628@redhat.com> (raw)
In-Reply-To: <573F9327.9000808@redhat.com>
On Fri, May 20, 2016 at 04:43:51PM -0600, Eric Blake wrote:
> On 05/20/2016 01:15 PM, Programmingkid wrote:
> > Noticed this bug after a 'git pull'. My repo is at commit 65603e2fc18b48e6e55a3dd693669413141694ec -
> > tci: do not include exec/exec-all.h
> >
> > I am building QEMU on Mac OS 10.6 with GCC 4.9.
> > Here is the full message:
> >
> > LINK qemu-nbd
> > Undefined symbols for architecture x86_64:
> > "_nettle_cast5_set_key", referenced from:
> > _qcrypto_cipher_new in cipher.o
>
> What version of nettle are you compiling against? Obviously it's an
> older version, but is it one that we need to work around at configure
> time, or one that you should just update locally?
So we already have compatibility code to allow us to build with older
versions of nettle that I've tested right back to nettle 2.4.
The "cast5_set_key" method is present in the nettle 3.2 version that
Programmingkid has installed. The nettle headers mangle the name
'cast5_set_key' into 'nettle_cast5_set_key', but I'm not sure where
the extra leading '_' is coming from in either _nettle_cast5_set_key
or _qcrypto_cipher_new. Presumably that is something specific to
Os-X linking.
So I don't think this is a question of incompatible older versions of
nettle. Rather than is some problem with linking going on here.
I'd like to see the output of 'configure' as well as the config.log
and config-host.mak files that it generates when showing this error.
Also I'd like the output of 'make V=1' so we see the full linker
command line, not just the summary.
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 14:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 19:15 [Qemu-devel] undefined symbol _nettle_cast5_set_key Programmingkid
2016-05-20 22:43 ` Eric Blake
2016-05-20 22:46 ` Programmingkid
2016-05-20 22:50 ` Eric Blake
2016-05-20 23:04 ` Programmingkid
2016-05-21 13:14 ` Peter Maydell
2016-05-21 14:18 ` Programmingkid
2016-05-31 9:18 ` Daniel P. Berrange
2016-05-31 14:00 ` Daniel P. Berrange [this message]
2016-05-31 14:25 ` Programmingkid
2016-05-31 14:51 ` Daniel P. Berrange
2016-05-31 15:48 ` Programmingkid
2016-05-31 16:00 ` Daniel P. Berrange
2016-06-02 17:01 ` Programmingkid
2016-06-02 17:06 ` Daniel P. Berrange
2016-06-03 14:02 ` Programmingkid
2016-05-31 14:36 ` Peter Maydell
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=20160531140017.GX21628@redhat.com \
--to=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=programmingkidx@gmail.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).