I’m trying to compile osquery on my new mac and it...
# macos
g
I’m trying to compile osquery on my new mac and it just breaks all the time
Copy code
[ 81%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/devtools/tests/printer_tests.cpp.o
Undefined symbols for architecture x86_64:
  "osquery::hashFromFile(osquery::HashType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      osquery::Carver::start() in lto.o
  "_au_read_rec", referenced from:
      osquery::OpenBSMEventPublisher::run() in lto.o
  "_au_fetch_tok", referenced from:
      osquery::OpenBSMEventPublisher::run() in lto.o
  "osquery::hashFromBuffer(osquery::HashType, void const*, unsigned long)", referenced from:
      osquery::hashSqliteValue(sqlite3_context*, int, sqlite3_value**, osquery::HashType) in lto.o
  "_iconv", referenced from:
      _iconv_strncat_in_locale in libarchive.a(archive_string.o)
  "_CGEventTapCreate", referenced from:
      osquery::EventTappingEventPublisher::run() in lto.o
  "_CGEventTapEnable", referenced from:
      osquery::EventTappingEventPublisher::stop() in lto.o
      osquery::EventTappingEventPublisher::run() in lto.o
  "_iconv_close", referenced from:
      _free_sconv_object in libarchive.a(archive_string.o)
  "_iconv_open", referenced from:
      _get_sconv_object in libarchive.a(archive_string.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [osquery/osquery_tables_tests] Error 1
make[2]: *** [osquery/CMakeFiles/osquery_tables_tests.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....