Issue #13247 has been reported by °Ĺ PvpDJgHP.

----------------------------------------
Bug #13247: ruby won't build on macOS 10.6 SDK °Ĺ mach_task_basic_info_data_t not available
https://bugs.ruby-lang.org/issues/13247

* Author: °Ĺ PvpDJgHP
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin10]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
[mach_task_basic_info_data_t](https://developer.apple.com/reference/kernel/mach_task_basic_info_data_t) is available in macOS 10.8+ SDK only. As a result, ruby will not compile with macOS 10.7 SDK or older.

~~~
compiling memory_status.c
memory_status.c: In function °∆read_status°«:
memory_status.c:21: error: °∆mach_task_basic_info_data_t°« undeclared (first use in this function)
memory_status.c:21: error: (Each undeclared identifier is reported only once
memory_status.c:21: error: for each function it appears in.)
memory_status.c:21: error: expected °∆;°« before °∆taskinfo°«
memory_status.c:23: error: °∆taskinfo°« undeclared (first use in this function)
memory_status.c:24: error: °∆MACH_TASK_BASIC_INFO_COUNT°« undeclared (first use in this function)
memory_status.c:25: error: °∆MACH_TASK_BASIC_INFO°« undeclared (first use in this function)
make[3]: *** [memory_status.o] Error 1
make[2]: *** [ext/-test-/memory_status/all] Error 2
make[1]: *** [build-ext] Error 2
make: *** [ruby] Error 2
~~~



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>