[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] undefined symbol _nettle_cast5_set_key

From: Peter Maydell
Subject: Re: [Qemu-devel] undefined symbol _nettle_cast5_set_key
Date: Tue, 31 May 2016 15:36:57 +0100

On 31 May 2016 at 15:00, Daniel P. Berrange <address@hidden> wrote:

>> >  LINK  qemu-nbd
>> > Undefined symbols for architecture x86_64:
>> >   "_nettle_cast5_set_key", referenced from:
>> >       _qcrypto_cipher_new in cipher.o

> 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.

I think that's just that the osx linker doesn't bother to unmangle
the names when it prints them, and it has the common convention of
prefixing C function names with an '_' for the symbol.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]