[MacPorts] #60650: osquery @4.3.0: error: use of undeclared identifier '_SC_PHYS_PAGES'

MacPorts noreply at macports.org
Sun Jun 14 14:44:53 UTC 2020


#60650: osquery @4.3.0: error: use of undeclared identifier '_SC_PHYS_PAGES'
-------------------------------------------------+-------------------------
 Reporter:  ryandesign                           |      Owner:  herbygillot
     Type:  defect                               |     Status:  assigned
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.6.2
 Keywords:  yosemite mavericks mountainlion      |       Port:  osquery
  lion snowleopard leopard tiger                 |
-------------------------------------------------+-------------------------
 [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.

-- 
Ticket URL: <https://trac.macports.org/ticket/60650>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list