[MacPorts] #59424: openssh @8.1p1_1: error: use of undeclared identifier 'kSecAttrAccessGroup'

MacPorts noreply at macports.org
Thu Oct 24 22:57:20 UTC 2019


#59424: openssh @8.1p1_1: error: use of undeclared identifier 'kSecAttrAccessGroup'
----------------------+--------------------
  Reporter:  iEFdev   |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.2
Resolution:           |   Keywords:  lion
      Port:  openssh  |
----------------------+--------------------

Comment (by iEFdev):

 [https://developer.apple.com/documentation/security/ksecattraccessgroup
 kSecAttrAccessGroup] is 10.9+

 Tried to wrap it with:

 {{{
 #if ((defined (MAC_OS_X_VERSION_10_9)) && (MAC_OS_X_VERSION_MIN_REQUIRED
 >= MAC_OS_X_VERSION_10_9))
                                (id)kSecAttrAccessGroup:
 @"com.apple.ssh.passphrases",
 #endif /* ((defined (MAC_OS_X_VERSION_10_9)) &&
 (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)) */

 // ... //

 #if ((defined (MAC_OS_X_VERSION_10_9)) && (MAC_OS_X_VERSION_MIN_REQUIRED
 >= MAC_OS_X_VERSION_10_9))
                                 (id)kSecAttrAccessGroup:
 @"com.apple.ssh.passphrases"};
 #endif /* ((defined (MAC_OS_X_VERSION_10_9)) &&
 (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)) */

 // ... //

 #if ((defined (MAC_OS_X_VERSION_10_9)) && (MAC_OS_X_VERSION_MIN_REQUIRED
 >= MAC_OS_X_VERSION_10_9))
                                (id)kSecAttrAccessGroup:
 @"com.apple.ssh.passphrases"};
 #endif /* ((defined (MAC_OS_X_VERSION_10_9)) &&
 (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)) */

 // ... //

 #if ((defined (MAC_OS_X_VERSION_10_9)) && (MAC_OS_X_VERSION_MIN_REQUIRED
 >= MAC_OS_X_VERSION_10_9))
                                 (id)kSecAttrAccessGroup:
 @"com.apple.ssh.passphrases",
 #endif /* ((defined (MAC_OS_X_VERSION_10_9)) &&
 (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)) */
 }}}


 But, the it complains about
 [https://developer.apple.com/documentation/security/ksecreturnattributes
 kSecReturnAttributes] (10.6+) being a bool:

 {{{
 :info:build keychain.m:94:32: error: unexpected type name 'BOOL': expected
 expression
 :info:build                                (id)kSecReturnData: @YES};
 }}}


 // Adding the patch I used with those changes

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


More information about the macports-tickets mailing list