NEW 157554
webkit fails to build on Snow Leopard due to CCRandomCopyBytes() usage (which is not public API)
https://bugs.webkit.org/show_bug.cgi?id=157554
Summary webkit fails to build on Snow Leopard due to CCRandomCopyBytes() usage (which...
Jeremy Huddleston Sequoia
Reported 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
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
Jeremy Huddleston Sequoia
Comment 1 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.
Jeremy Huddleston Sequoia
Comment 2 2016-05-11 21:02:56 PDT
Created attachment 278693 [details] Patch from MacPorts, likely not what you want to use though
Note You need to log in before you can comment on or make changes to this bug.