Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't build osquery on OS X #4283

Closed
ErikGoldman opened this issue Apr 14, 2018 · 7 comments
Closed

can't build osquery on OS X #4283

ErikGoldman opened this issue Apr 14, 2018 · 7 comments

Comments

@ErikGoldman
Copy link

What version of osquery are you using? What operating system. Be specific.

+-----------------+------------+----------+-------------+
| osquery_version | os_version | os_build | os_platform |
+-----------------+------------+----------+-------------+
| 2.6.1           | 10.13.3    | 17D47    | darwin      |
+-----------------+------------+----------+-------------+'

building on 67dd49a (and other versions) produces this error on my machine:

[58%] Building CXX object osquery/events/CMakeFiles/osquery_events_darwin.dir/darwin/kernel_util.cpp.o
[...]/osquery/osquery/events/darwin/kernel_util.cpp:52:12: error: qualified reference to 'SQL' is a constructor name rather than a type in this context
      SQL::SQL(
           ^
1 error generated.

my commands to build were:

git clone https://github.com/facebook/osquery
cd osquery
make deps && make

any idea what's going on? I can post a longer log file for the build but nothing else seemed particularly relevant.

thanks!

@obelisk
Copy link
Contributor

obelisk commented Apr 16, 2018

Have you pulled recently? 2.6.1 is quite old and many things have changed since then so it's quite possible that just pulling the new code will fix the issue.

@ilovezfs
Copy link
Contributor

@obelisk we're seeing this in Homebrew CI now too with 3.2.2 https://jenkins.brew.sh/job/Homebrew%20Testing/625/version=high_sierra/testReport/junit/brew-test-bot/high_sierra/install_osquery/

Maybe caused by Xcode 9.3?

@ilovezfs
Copy link
Contributor

also CC @theopolis this doesn't occur with Xcode 9.2 on 10.12.6 but does occur with Xcode 9.3 on 10.13.4

@obelisk
Copy link
Contributor

obelisk commented Apr 16, 2018

Investigating.

@obelisk obelisk self-assigned this Apr 16, 2018
@obelisk obelisk added triage Issue needs to be verified, reproduced and prioritized cause identified and removed question labels Apr 16, 2018
@obelisk
Copy link
Contributor

obelisk commented Apr 16, 2018

Fix is here: #4291

@obelisk obelisk added bug and removed triage Issue needs to be verified, reproduced and prioritized labels Apr 16, 2018
@obelisk
Copy link
Contributor

obelisk commented Apr 16, 2018

Fix is landed and build should work now!

@muffins
Copy link
Contributor

muffins commented Apr 17, 2018

Closing this out, feel free to reopen if you have more issues :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants