From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7kDa-0004SL-C9 for qemu-devel@nongnu.org; Tue, 31 May 2016 10:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7kDW-0007VX-6L for qemu-devel@nongnu.org; Tue, 31 May 2016 10:00:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7kDV-0007VQ-WB for qemu-devel@nongnu.org; Tue, 31 May 2016 10:00:22 -0400 Date: Tue, 31 May 2016 15:00:17 +0100 From: "Daniel P. Berrange" Message-ID: <20160531140017.GX21628@redhat.com> Reply-To: "Daniel P. Berrange" References: <0322B7E6-88DD-436E-884A-F0F78B8209BE@gmail.com> <573F9327.9000808@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <573F9327.9000808@redhat.com> Subject: Re: [Qemu-devel] undefined symbol _nettle_cast5_set_key List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Programmingkid , qemu-devel qemu-devel 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 :|