public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* CryptoPkg build broken using XCODE5 (Availability.h not found)
@ 2022-03-29 17:33 Rebecca Cran
  2022-03-29 22:34 ` [edk2-devel] " Andrew Fish
  0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2022-03-29 17:33 UTC (permalink / raw)
  To: devel, Jiewen Yao, Jian J Wang, Xiaoyu Lu, Guomin Jiang

A build of CryptoPkg with XCODE5 on macOS is now trying to include 
Availability.h, which isn't found:

In file included from 
/Users/bcran/src/uefi/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/init.c:13:
/Users/bcran/src/uefi/edk2/CryptoPkg/Library/OpensslLib/openssl/include/crypto/rand.h:24:12: 
fatal error: 'Availability.h' file not found
#  include <Availability.h>
            ^~~~~~~~~~~~~~~~

This is because of the following in 
CryptoPkg/Library/OpensslLib/openssl/include/crypto/rand.h

# if defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM)
#  include <Availability.h>
#  if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && 
__MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || \
      (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && 
__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000)
#   define OPENSSL_APPLE_CRYPTO_RANDOM 1
#   include <CommonCrypto/CommonCryptoError.h>
#   include <CommonCrypto/CommonRandom.h>
#  endif
# endif

-- 
Rebecca Cran

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-29 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-29 17:33 CryptoPkg build broken using XCODE5 (Availability.h not found) Rebecca Cran
2022-03-29 22:34 ` [edk2-devel] " Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox