Anyone know how to resolve this error when buildin...
# general
z
Anyone know how to resolve this error when building osquery?
no template named 'unary_function' in namespace 'std'
Not sure if this is because of recent changes in osquery, dependencies, or macOS (I'm on a different machine from usual, this one is an M2 on macOS 14.1.1)
s
Seems to be an issue with the very latest XCode, I did notice this, completely forgot to open an issue about it.
ty 1
z
I'll open an issue
s
XCode 15 has the issue, XCode 14 doesn't
but to be fair it seems more an XCode issue than anything
or actually I should say, the error happens in boost code, right?
Left a comment on our issue
z
The error is in boost code, yes.
So far your proposed solution seems to be working.
oops, no it didn't
s
right, sorry, overlooked that that is osquery_[...]
so that flag is only used for osquery targets, but here is needed for all the targets
Give me a sec, I can open a PR with the fix.
ty 1
z
Appears to be working!
Thank you for the fix! Just noticed that xcode 14 is not compatible with sonoma so it would have required a full OS downgrade to build without this.
👀 1
s
Weird I do have XCode 14 installed
I'm going to update the PR, since it should be enough to give that
BOOST_NO_CXX98_FUNCTION_BASE
define to boost only
Interesting, you're right about the Sonoma part; I think I did the XCode 15 update before Sonoma, saw the issue, and re-downloaded XCode 14.3.1, but kept both (two app folders). Therefore when I updated to Sonoma I already had both, but also both command line tools installed, and those seem to work ok.