Project

General

Profile

Actions

Bug #13247

closed

ruby won't build on macOS 10.6 SDK — mach_task_basic_info_data_t not available

Added by PvpDJgHP (William Thomas NELSON) almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin10]
[ruby-core:79729]

Description

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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0