Opened 4 weeks ago

Last modified 4 weeks ago

#60650 assigned defect

osquery @4.3.0: error: use of undeclared identifier '_SC_PHYS_PAGES'

Reported by: ryandesign (Ryan Schmidt) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: yosemite mavericks mountainlion lion snowleopard leopard tiger Cc:
Port: osquery

Description

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.

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.

Change History (3)

comment:1 Changed 4 weeks ago by kencu (Ken)

I added this fix generally to legacysupport.

comment:3 Changed 4 weeks ago by ryandesign (Ryan Schmidt)

That's great; thank you. Nevertheless please check the last paragraph of the ticket description before going with the legacysupport solution.

Note: See TracTickets for help on using tickets.