[MacPorts] #59397: openssh @8.1_1: fails to build on 10.6: audit-bsm.c:66:10: fatal error: 'bsm/audit_session.h' file not found

MacPorts noreply at macports.org
Thu Oct 24 00:12:26 UTC 2019


#59397: openssh @8.1_1: fails to build on 10.6: audit-bsm.c:66:10: fatal error:
'bsm/audit_session.h' file not found
-------------------------+-------------------------
  Reporter:  grumpybozo  |      Owner:  Ionic
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.1
Resolution:              |   Keywords:  snowleopard
      Port:  openssh     |
-------------------------+-------------------------
Changes (by Ionic):

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


Comment:

 I hoped that these errors would only be follow-up errors due to the
 compiler stopping to include other files after the first error.

 It looks like the CarbonCore framework headers are broken on 10.6.

 I don't get what's wrong there, though. The code looks fine...

 `/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h`
 includes
 [https://opensource.apple.com/source/Libc/Libc-594.9.5/include/sys/acl.h.auto.html
 sys/acl.h], which:
 {{{
 #ifndef _SYS_ACL_H
 #define _SYS_ACL_H

 #include <sys/kauth.h>
 }}}

 and in
 [https://opensource.apple.com/source/xnu/xnu-1504.15.3/bsd/sys/kauth.h.auto.html
 sys/kauth.h], there's this hunk:
 {{{
 /* Actions, also rights bits in an ACE */

 #if defined(KERNEL) || defined (_SYS_ACL_H)
 #define KAUTH_VNODE_READ_DATA                   (1<<1)
 #define KAUTH_VNODE_LIST_DIRECTORY              KAUTH_VNODE_READ_DATA
 #define KAUTH_VNODE_WRITE_DATA                  (1<<2)
 #define KAUTH_VNODE_ADD_FILE                    KAUTH_VNODE_WRITE_DATA
 #define KAUTH_VNODE_EXECUTE                     (1<<3)
 #define KAUTH_VNODE_SEARCH                      KAUTH_VNODE_EXECUTE
 #define KAUTH_VNODE_DELETE                      (1<<4)
 #define KAUTH_VNODE_APPEND_DATA                 (1<<5)
 #define KAUTH_VNODE_ADD_SUBDIRECTORY            KAUTH_VNODE_APPEND_DATA
 #define KAUTH_VNODE_DELETE_CHILD                (1<<6)
 #define KAUTH_VNODE_READ_ATTRIBUTES             (1<<7)
 #define KAUTH_VNODE_WRITE_ATTRIBUTES            (1<<8)
 #define KAUTH_VNODE_READ_EXTATTRIBUTES          (1<<9)
 #define KAUTH_VNODE_WRITE_EXTATTRIBUTES         (1<<10)
 #define KAUTH_VNODE_READ_SECURITY               (1<<11)
 #define KAUTH_VNODE_WRITE_SECURITY              (1<<12)
 #define KAUTH_VNODE_TAKE_OWNERSHIP              (1<<13)
 }}}

 So, theoretically, everything looks fine. The only catch is that the whole
 `sys/kauth.h` file is essentially wrapped into an `#ifdef
 __APPLE_API_EVOLVING` clause.

 This should also not a problem, though, since `sys/kauth.h` uses:
 {{{
 #include <sys/appleapiopts.h>
 }}}

 [https://opensource.apple.com/source/xnu/xnu-1504.15.3/bsd/sys/appleapiopts.h.auto.html
 which] then:

 {{{
 #ifndef __APPLE_API_EVOLVING
 #define __APPLE_API_EVOLVING
 #endif /* __APPLE_API_EVOLVING */
 }}}

 I'm a bit stumped. What is causing this? Everything looks alright.

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


More information about the macports-tickets mailing list