{"action":"created","issue":{"url":"https://api.github.com/repos/hishamhm/htop/issues/292","labels_url":"https://api.github.com/repos/hishamhm/htop/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/hishamhm/htop/issues/292/comments","events_url":"https://api.github.com/repos/hishamhm/htop/issues/292/events","html_url":"https://github.com/hishamhm/htop/issues/292","id":111962486,"number":292,"title":"build error under Mac OS X 10.11","user":{"login":"StarDuster","id":7328584,"avatar_url":"https://avatars.githubusercontent.com/u/7328584?v=3","gravatar_id":"","url":"https://api.github.com/users/StarDuster","html_url":"https://github.com/StarDuster","followers_url":"https://api.github.com/users/StarDuster/followers","following_url":"https://api.github.com/users/StarDuster/following{/other_user}","gists_url":"https://api.github.com/users/StarDuster/gists{/gist_id}","starred_url":"https://api.github.com/users/StarDuster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarDuster/subscriptions","organizations_url":"https://api.github.com/users/StarDuster/orgs","repos_url":"https://api.github.com/users/StarDuster/repos","events_url":"https://api.github.com/users/StarDuster/events{/privacy}","received_events_url":"https://api.github.com/users/StarDuster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-17T13:04:27Z","updated_at":"2015-10-20T21:30:28Z","closed_at":null,"body":"```\r\ngcc -v                                       \r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1\r\nApple LLVM version 7.0.0 (clang-700.0.72)\r\nTarget: x86_64-apple-darwin15.0.0\r\nThread model: posix\r\n```\r\n\r\nthe source code is from git clone (git clone https://github.com/hishamhm/htop.git)\r\n\r\n`./configure --disable-unicode` success(because it's hard to find libncursesw under osx),\r\nbut  error occurred during make:\r\n``` \r\n$ make                                     \r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am\r\ngcc -DHAVE_CONFIG_H -I.  -DNDEBUG  -pedantic -Wall -Wextra -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\\\"/usr/local/etc\\\" -I\"./darwin\"  -g -O2 -MT htop-SignalsPanel.o -MD -MP -MF .deps/htop-SignalsPanel.Tpo -c -o htop-SignalsPanel.o `test -f 'SignalsPanel.c' || echo './'`SignalsPanel.c\r\nSignalsPanel.c:34:32: error: use of undeclared identifier 'Platform_numberOfSignals'; did you mean\r\n      'Platform_numberOfFields'?\r\n   for(unsigned int i = 0; i < Platform_numberOfSignals; i++) {\r\n                               ^~~~~~~~~~~~~~~~~~~~~~~~\r\n                               Platform_numberOfFields\r\n./darwin/Platform.h:25:12: note: 'Platform_numberOfFields' declared here\r\nextern int Platform_numberOfFields;\r\n           ^\r\nSignalsPanel.c:35:49: error: use of undeclared identifier 'Platform_signals'\r\n      Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i...\r\n                                                ^\r\nSignalsPanel.c:35:75: error: use of undeclared identifier 'Platform_signals'\r\n      Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i...\r\n                                                                          ^\r\nSignalsPanel.c:37:11: error: use of undeclared identifier 'Platform_signals'\r\n      if (Platform_signals[i].number == defaultSignal) {\r\n          ^\r\nSignalsPanel.c:34:30: warning: comparison of integers of different signs: 'unsigned int' and 'int'\r\n      [-Wsign-compare]\r\n   for(unsigned int i = 0; i < Platform_numberOfSignals; i++) {\r\n                           ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~\r\n1 warning and 4 errors generated.\r\nmake[1]: *** [htop-SignalsPanel.o] Error 1\r\nmake: *** [all] Error 2\r\n```\r\n\r\nI try `./configure --disable-unicode`then `make` on a Debian 7 server and there's nothing wrong, I'm not sure whether it's my mac's fault."},"comment":{"url":"https://api.github.com/repos/hishamhm/htop/issues/comments/149709144","html_url":"https://github.com/hishamhm/htop/issues/292#issuecomment-149709144","issue_url":"https://api.github.com/repos/hishamhm/htop/issues/292","id":149709144,"user":{"login":"skabashnyuk","id":1614429,"avatar_url":"https://avatars.githubusercontent.com/u/1614429?v=3","gravatar_id":"","url":"https://api.github.com/users/skabashnyuk","html_url":"https://github.com/skabashnyuk","followers_url":"https://api.github.com/users/skabashnyuk/followers","following_url":"https://api.github.com/users/skabashnyuk/following{/other_user}","gists_url":"https://api.github.com/users/skabashnyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/skabashnyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skabashnyuk/subscriptions","organizations_url":"https://api.github.com/users/skabashnyuk/orgs","repos_url":"https://api.github.com/users/skabashnyuk/repos","events_url":"https://api.github.com/users/skabashnyuk/events{/privacy}","received_events_url":"https://api.github.com/users/skabashnyuk/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T21:30:27Z","updated_at":"2015-10-20T21:30:27Z","body":"git diff\r\ndiff --git a/darwin/Platform.h b/darwin/Platform.h\r\nindex af3a132..1aa9f2b 100644\r\n--- a/darwin/Platform.h\r\n+++ b/darwin/Platform.h\r\n@@ -11,6 +11,7 @@ in the source distribution for its full text.\r\n */\r\n\r\n #include \"Action.h\"\r\n+#include \"SignalsPanel.h\"\r\n #include \"BatteryMeter.h\"\r\n #include \"DarwinProcess.h\"\r\n\r\nHTH\r\nBTW  libncursesw can be installed from here https://github.com/Homebrew/homebrew-dupes/blob/master/ncurses.rb\r\n\r\nbrew tap homebrew/dupes\r\nbrew install ncurses\r\n./configure CFLAGS=\"-I/usr/local/opt/ncurses/include\" LDFLAGS=\"-L/usr/local/opt/ncurses/lib\" CPPFLAGS=\"-I/usr/local/opt/ncurses/include\"\r\nmake"}}