[botan-devel] Linker error on OS X 10.11.2

Sviatoslav Feshchenko sviatoslav at outlook.com
Tue Dec 29 00:01:08 EST 2015


Hello,


I have the following environment:


Mac OS X 10.11.2

Botan 1.11.25 (configured --with=lzma)

Clang LLVM v 7.0.2 tageting x86_64-apple-darwin15.2.0


When I declare the following variable in the private section of a class:


        Botan::AutoSeeded_RNG rng_m;


I get the following linker error:


Undefined symbols for architecture x86_64:

  "_SecRandomCopyBytes", referenced from:

      Botan::Darwin_SecRandom::poll(Botan::Entropy_Accumulator&) in libbotan-1.11.a(entropy_darwin_secrandom.o)

  "_kSecRandomDefault", referenced from:

      Botan::Darwin_SecRandom::poll(Botan::Entropy_Accumulator&) in libbotan-1.11.a(entropy_darwin_secrandom.o)

ld: symbol(s) not found for architecture x86_64


I don't know if this is a bug in the library. Please help!


Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20151229/1ea647e4/attachment.html>


More information about the botan-devel mailing list