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

MacPorts noreply at macports.org
Wed Jan 30 23:45:30 UTC 2019


#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


More information about the macports-tickets mailing list