[MacPorts] #57986: ruby26 @2.6.0: error: use of undeclared identifier 'kSecRandomDefault'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #57986: ruby26 @2.6.0: error: use of undeclared identifier 'kSecRandomDefault'

MacPorts
#57986: ruby26 @2.6.0: error: use of undeclared identifier 'kSecRandomDefault'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  kimuraw
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:  lion        |       Port:  ruby26
------------------------+----------------------
 [https://build.macports.org/builders/ports-10.7_x86_64_legacy-
 builder/builds/93081 ruby26 fails to build on Lion]:

 {{{
 compiling random.c
 random.c:482:18: warning: implicit declaration of function
 'SecRandomCopyBytes' is invalid in C99 [-Wimplicit-function-declaration]
     int status = SecRandomCopyBytes(kSecRandomDefault, size, seed);
                  ^
 random.c:482:37: error: use of undeclared identifier 'kSecRandomDefault'
     int status = SecRandomCopyBytes(kSecRandomDefault, size, seed);
                                     ^
 1 warning and 1 error generated.
 make: *** [random.o] Error 1
 }}}

 Apple documentation says `SecRandomCopyBytes` and `kSecRandomDefault` are
 in Lion, but I've previously encountered situations where I had to use the
 10.8 SDK in order get their definitions.

--
Ticket URL: <https://trac.macports.org/ticket/57986>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57986: ruby26 @2.6.0: error: use of undeclared identifier 'kSecRandomDefault'

MacPorts
#57986: ruby26 @2.6.0: error: use of undeclared identifier 'kSecRandomDefault'
-------------------------+---------------------
  Reporter:  ryandesign  |      Owner:  kimuraw
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  fixed       |   Keywords:  lion
      Port:  ruby26      |
-------------------------+---------------------
Changes (by ken-cunningham-webuse):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"df640a7f7c0d45021a5f700efa0f4275ff132545/macports-ports"
 df640a7f7c0d45021a5f700efa0f4275ff132545/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="df640a7f7c0d45021a5f700efa0f4275ff132545"
 ruby26: fix build on lion

 pulls in 10.8 SDK security features so build against
 10.8 SDK (available on 10.7 by default)

 closes: https://trac.macports.org/ticket/57986
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/57986#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS