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 (— PvpDJgHP) over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
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

Updated by PvpDJgHP (— PvpDJgHP) over 5 years ago

This issue was fixed in r57180. Please close.

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

  • Status changed from Open to Closed
Actions #3

Updated by usa (Usaku NAKAMURA) over 5 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) about 5 years ago

  • Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE

ruby_2_4 r58626 merged revision(s) 57180.

Actions

Also available in: Atom PDF