Created
October 17, 2014 22:00
-
-
Save ynnadrules/27ece64e1639492b260b to your computer and use it in GitHub Desktop.
sigar 0.7.2 yosemite make fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
/opt/rubies/2.1.2/bin/ruby extconf.rb | |
Ruby platform=x86_64-darwin14.0 | |
rbsigar_generated.rx needs update | |
generating rbsigar_generated.rx | |
fatal: Not a git repository (or any of the parent directories): .git | |
../../src/sigar.c -> sigar.c | |
../../src/sigar_cache.c -> sigar_cache.c | |
../../src/sigar_fileinfo.c -> sigar_fileinfo.c | |
../../src/sigar_format.c -> sigar_format.c | |
../../src/sigar_getline.c -> sigar_getline.c | |
../../src/sigar_ptql.c -> sigar_ptql.c | |
../../src/sigar_signal.c -> sigar_signal.c | |
../../src/sigar_util.c -> sigar_util.c | |
../../src/os/darwin/darwin_sigar.c -> darwin_sigar.c | |
creating Makefile | |
make "DESTDIR=" clean | |
make "DESTDIR=" | |
compiling darwin_sigar.c | |
In file included from darwin_sigar.c:33: | |
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/mach/mach_init.h:61: | |
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/mach/mach_types.h:94: | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/mach/thread_info.h:162:26: error: expected ';' at end of declaration list | |
struct io_stat_entry disk_reads; | |
^ | |
../../include/sigar.h:482:24: note: expanded from macro 'disk_reads' | |
#define disk_reads disk.reads | |
^ | |
darwin_sigar.c:1392:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] | |
static const char const thread_states[] = { | |
^ | |
darwin_sigar.c:3302:42: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'rpc_cnt_t *' (aka 'int *') [-Wincompatible-pointer-types] | |
map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.rpccnt[0]); | |
^~~~~~~~~~~~~~~~ | |
darwin_sigar.c:3244:59: note: passing argument to parameter 'rpc' here | |
static void map_nfs_stats(sigar_nfs_v3_t *nfs, rpc_cnt_t *rpc) | |
^ | |
darwin_sigar.c:3328:42: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'rpc_cnt_t *' (aka 'int *') [-Wincompatible-pointer-types] | |
map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.srvrpccnt[0]); | |
^~~~~~~~~~~~~~~~~~~ | |
darwin_sigar.c:3244:59: note: passing argument to parameter 'rpc' here | |
static void map_nfs_stats(sigar_nfs_v3_t *nfs, rpc_cnt_t *rpc) | |
^ | |
darwin_sigar.c:3618:9: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |
if (Gestalt(gestaltSystemVersion, &version) == noErr) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' has been explicitly marked deprecated here | |
Gestalt( | |
^ | |
darwin_sigar.c:3618:17: warning: 'gestaltSystemVersion' is deprecated: first deprecated in OS X 10.8 - Use NSProcessInfo's operatingSystemVersion property instead. [-Wdeprecated-declarations] | |
if (Gestalt(gestaltSystemVersion, &version) == noErr) { | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:2075:3: note: 'gestaltSystemVersion' has been explicitly marked deprecated here | |
gestaltSystemVersion = 'sysv', /* system version*/ | |
^ | |
darwin_sigar.c:3620:13: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |
Gestalt('sys1' /*gestaltSystemVersionMajor*/, &version_major); | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' has been explicitly marked deprecated here | |
Gestalt( | |
^ | |
darwin_sigar.c:3621:13: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |
Gestalt('sys2' /*gestaltSystemVersionMinor*/, &version_minor); | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' has been explicitly marked deprecated here | |
Gestalt( | |
^ | |
darwin_sigar.c:3622:13: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |
Gestalt('sys3' /*gestaltSystemVersionBugFix*/, &version_fix); | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' has been explicitly marked deprecated here | |
Gestalt( | |
^ | |
8 warnings and 1 error generated. | |
make: *** [darwin_sigar.o] Error 1 | |
make failed, exit code 2 | |
Gem files will remain installed in /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/sigar-0.7.2 for inspection. | |
Results logged to /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/sigar-0.7.2/gem_make.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same problem with [email protected]
gem install kostya-sigar -v'2.0.4' --source 'https://rubygems.org/'
EDIT: Nvm, fix was already released: kostya/sigar#8