[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 01:42:11 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 |
-------------------------+-------------------------
Comment (by grumpybozo):
Replying to [comment:14 Ionic]:
> 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.
Nope :)
\\
\\
> I don't get what's wrong there, though. The code looks fine...
[...]
>
> 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 */
> }}}
Look before that...
\\
\\
> I'm a bit stumped. What is causing this? Everything looks alright.
From the Portfile:
{{{
openssh root# grep -nC5 __APPLE_API_STRICT_CONFORMANCE Portfile
80- # the order of arguments to strnvis and considers everyone else to
be broken.
81- configure.cppflags-append -DBROKEN_STRNVIS=1
82-
83- # Use Apple's sandboxing feature
84- configure.cppflags-append -D__APPLE_SANDBOX_NAMED_EXTERNAL__ \
85: -D__APPLE_API_STRICT_CONFORMANCE
}}}
If I remove that second -D, the build gets further but still ultimately
dies:
{{{
ccache /opt/local/bin/clang-mp-9.0 -pipe -Os -arch i386 -pipe -Wunknown-
warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-
sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv
-fno-builtin-memset -fstack-protector-strong -fPIE -I. -I.
-I/opt/local/include -I/opt/local/include -I/opt/local/include
-DBROKEN_STRNVIS=1 -D__APPLE_SANDBOX_NAMED_EXTERNAL__ -I/include
-I/opt/local/include/editline -I/opt/local/include -I/opt/local/include
-D__APPLE_KEYCHAIN__ -D__APPLE_MEMBERSHIP__ -D__APPLE_TMPDIR__
-D__APPLE_LAUNCHD__ -DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSH_PKCS11_HELPER=\"/opt/local/libexec/ssh-pkcs11-helper\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c
auth2-kbdint.c -o auth2-kbdint.o
In file included from keychain.m:35:
./SecItemPriv-shim.h:57:10: fatal error: 'xpc/xpc.h' file not found
#include <xpc/xpc.h>
^~~~~~~~~~~
1 error generated.
make: *** [keychain.o] Error 1
}}}
**There's no file or directory anywhere on 10.6 with 'xpc' in its name.
**
\\
\\
I'm not much of a C coder or MacPorts wizard, but is it possible to just
make all the changes since the 7.9p1_2 version of the port conditional
on the OS version being 10.7 or greater? Because this stuff just isn't
working on 10.6 and likely never will.
--
Ticket URL: <https://trac.macports.org/ticket/59397#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list