Description
In the OS X 10.11 El Capitan Public Beta 1 and Public Beta 2, libgcrypt 1.6.3 is
failing the "random" test in "make check". It appears to be trying to load the
library from the installation target location instead of where the program is
being built.
This was discovered while testing Mac Homebrew formulas for 10.11.
Here's the output around the test failure.
PASS: pkcs1v2
dyld: Library not loaded: /tmp/test-libgcrypt/lib/libgcrypt.20.dylib
Referenced from:
/Users/janke/local/opp/gnupg/libgcrypt/srcdist/libgcrypt-1.6.3/tests/.libs/random
Reason: image not found
random: running
'/Users/janke/local/opp/gnupg/libgcrypt/srcdist/libgcrypt-1.6.3/tests/.libs/random
--in-recursion --early-rng-check' failed
FAIL: random
Environment
Mac OS X Public Beta 2
taran-elcap:~ janke$ uname -a
Darwin taran-elcap.local 15.0.0 Darwin Kernel Version 15.0.0: Sun Jul 12
07:47:20 PDT 2015; root:xnu-3247.1.56~16/RELEASE_X86_64 x86_64
taran-elcap:~ janke$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11
BuildVersion: 15A225f
To Reproduce
Install OS X 10.11 public beta and Xcode 7. (Xcode 7 must be manually installed,
not via the app store.)
In the libgcrypt 1.6.3 distribution:
./configure --prefix=/tmp/test-libgcrypt
make
make check