id summary reporter owner description type status priority milestone component version resolution keywords cc port 60650 osquery @4.3.0: error: use of undeclared identifier '_SC_PHYS_PAGES' ryandesign herbygillot "[https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/16135/steps/install-port/logs/stdio osquery does not build] on OS X 10.10 and earlier: {{{ .../osquery-4.3.0/libraries/cmake/source/lzma/src/src/common/tuklib_physmem.c:146:29: error: use of undeclared identifier '_SC_PHYS_PAGES' const long pages = sysconf(_SC_PHYS_PAGES); ^ 1 error generated. }}} [https://github.com/macports/macports-ports/blob/3db241d4f40b0343a012d320b2933a7ade5353c3/databases/mysql8/files/patch-mysql8-workaround-no-SC_PHYS_PAGES.diff Here] is how this problem was fixed in another port. However it looks like the error is being encountered when building a bundled third-party lzma library. If that's true, see if you can convince osquery to use a MacPorts-provided copy of that and any other bundled libraries instead. Then we can fix this problem (if it still exists) in those ports and then everyone benefits, not just osquery." defect assigned Normal ports 2.6.2 yosemite mavericks mountainlion lion snowleopard leopard tiger osquery