Bug 157554 - webkit fails to build on Snow Leopard due to CCRandomCopyBytes() usage (which is not public API)
Summary: webkit fails to build on Snow Leopard due to CCRandomCopyBytes() usage (which...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 126492
  Show dependency treegraph
 
Reported: 2016-05-10 19:10 PDT by Jeremy Huddleston Sequoia
Modified: 2016-05-22 22:14 PDT (History)
0 users

See Also:


Attachments
Patch from MacPorts, likely not what you want to use though (1.02 KB, application/octet-stream)
2016-05-11 21:02 PDT, Jeremy Huddleston Sequoia
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston Sequoia 2016-05-10 19:10:14 PDT
CCRandomCopyBytes is private AppleInternal API that was added on OS X 10.7 Lion.

WebKit fails to buil on Snow Leopard because it does not have this API, and since this API is AppleInternal, it should not be used in general.

Undefined symbols for architecture x86_64:
  "_CCRandomCopyBytes", referenced from:
      WTF::cryptographicallyRandomValuesFromOS(unsigned char*, unsigned long) in libWTFGTK.a(OSRandomSource.cpp.o)
  "_kCCRandomDefault", referenced from:
      WTF::cryptographicallyRandomValuesFromOS(unsigned char*, unsigned long) in libWTFGTK.a(OSRandomSource.cpp.o)

This is a regression introduced in r189633 for https://bugs.webkit.org/show_bug.cgi?id=148439
Comment 1 Jeremy Huddleston Sequoia 2016-05-10 19:37:22 PDT
Note that arc4random_buf was added in OS X 10.7 Lion as well, so if the deployment target is 10.6 or older, we should fall back on the older codepath as well.
Comment 2 Jeremy Huddleston Sequoia 2016-05-11 21:02:56 PDT
Created attachment 278693 [details]
Patch from MacPorts, likely not what you want to use though