Re: cryptlib 3.4.3 beta build failure on OS X: fatal error: 'SecRandom.h' file not found
Ryan Schmidt <[email protected]> Sun, 14 Dec 2014 18:41:01 -0600
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
On Dec 14, 2014, at 3:01 AM, Peter Gutmann wrote:
> Ryan Schmidt writes:
>
>> Lines 105-107 of random/unix.c read:
>>
>> #ifdef __iOS__
>> #include <SecRandom.h>
>> #endif /* __iOS__ */
>
> For newer versions of the SDK that should be:
>
> #ifdef __iOS__
> #include <Security/SecRandom.h>
> #endif /* __iOS__ */
If I make that change, the build then fails with:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
_slowPoll in unix.o
"_kSecRandomDefault", referenced from:
_slowPoll in unix.o
ld: symbol(s) not found for architecture i386
But again, I don't understand why anything iOS-related is being built since I did not request that. Why would __iOS__ be defined when I'm trying to build for OS X?
_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.