<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>157554</bug_id>
          
          <creation_ts>2016-05-10 19:10:14 -0700</creation_ts>
          <short_desc>webkit fails to build on Snow Leopard due to CCRandomCopyBytes() usage (which is not public API)</short_desc>
          <delta_ts>2016-05-22 22:14:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Template Framework</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>126492</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Huddleston Sequoia">jeremyhu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1191794</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2016-05-10 19:10:14 -0700</bug_when>
    <thetext>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:
  &quot;_CCRandomCopyBytes&quot;, referenced from:
      WTF::cryptographicallyRandomValuesFromOS(unsigned char*, unsigned long) in libWTFGTK.a(OSRandomSource.cpp.o)
  &quot;_kCCRandomDefault&quot;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1191799</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2016-05-10 19:37:22 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1192203</commentid>
    <comment_count>2</comment_count>
      <attachid>278693</attachid>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2016-05-11 21:02:56 -0700</bug_when>
    <thetext>Created attachment 278693
Patch from MacPorts, likely not what you want to use though</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>278693</attachid>
            <date>2016-05-11 21:02:56 -0700</date>
            <delta_ts>2016-05-11 21:02:56 -0700</delta_ts>
            <desc>Patch from MacPorts, likely not what you want to use though</desc>
            <filename>PR-157554.patch</filename>
            <type>application/octet-stream</type>
            <size>1047</size>
            <attacher name="Jeremy Huddleston Sequoia">jeremyhu</attacher>
            
              <data encoding="base64">aHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE1NzU1NAoKLS0tIFNvdXJj
ZS9XVEYvd3RmL09TUmFuZG9tU291cmNlLmNwcAorKysgU291cmNlL1dURi93dGYvT1NSYW5kb21T
b3VyY2UuY3BwCkBAIC0yOSw3ICsyOSw3IEBACiAjaW5jbHVkZSA8c3RkaW50Lmg+CiAjaW5jbHVk
ZSA8c3RkbGliLmg+CiAKLSNpZiAhT1MoREFSV0lOKSAmJiBPUyhVTklYKQorI2lmIE9TKFVOSVgp
ICYmICEoT1MoREFSV0lOKSAmJiBfX01BQ19PU19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