{"action":"created","issue":{"url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/203","labels_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/203/comments","events_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/203/events","html_url":"https://github.com/akrennmair/newsbeuter/issues/203","id":105642599,"number":203,"title":"Build failure on Mac OS X","user":{"login":"blacktrash","id":168338,"avatar_url":"https://avatars.githubusercontent.com/u/168338?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktrash","html_url":"https://github.com/blacktrash","followers_url":"https://api.github.com/users/blacktrash/followers","following_url":"https://api.github.com/users/blacktrash/following{/other_user}","gists_url":"https://api.github.com/users/blacktrash/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktrash/subscriptions","organizations_url":"https://api.github.com/users/blacktrash/orgs","repos_url":"https://api.github.com/users/blacktrash/repos","events_url":"https://api.github.com/users/blacktrash/events{/privacy}","received_events_url":"https://api.github.com/users/blacktrash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akrennmair/newsbeuter/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-09T17:10:58Z","updated_at":"2015-12-15T19:02:57Z","closed_at":null,"body":"Both git HEAD and r2.9 fail to build with:\r\n```\r\nclang++ -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\\\"/usr/local/share/locale\\\" -I/sw/include  -I/sw/include  -I/sw/include/libxml2 -I/sw/include -I/usr/local/include  -I/usr/local/include/json-c  -I/usr/include/ncurses -o src/ttrss_api.o -c src/ttrss_api.cpp\r\nsrc/ttrss_api.cpp:89:36: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n        struct json_object * session_id = json_object_object_get(content, \"session_id\");\r\n                                          ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:116:6: error: use of undeclared identifier 'is_error'; did you mean 'mc_error'?\r\n        if (is_error(reply)) {\r\n            ^~~~~~~~\r\n            mc_error\r\n/usr/local/include/json-c/debug.h:28:13: note: 'mc_error' declared here\r\nextern void mc_error(const char *msg, ...);\r\n            ^\r\nsrc/ttrss_api.cpp:116:15: error: cannot initialize a parameter of type 'const char *' with an lvalue of type\r\n      'struct json_object *'\r\n        if (is_error(reply)) {\r\n                     ^~~~~\r\n/usr/local/include/json-c/debug.h:28:34: note: passing argument to parameter 'msg' here\r\nextern void mc_error(const char *msg, ...);\r\n                                 ^\r\nsrc/ttrss_api.cpp:121:32: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n        struct json_object * status = json_object_object_get(reply, \"status\");\r\n                                      ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:122:6: error: use of undeclared identifier 'is_error'; did you mean 'mc_error'?\r\n        if (is_error(status)) {\r\n            ^~~~~~~~\r\n            mc_error\r\n/usr/local/include/json-c/debug.h:28:13: note: 'mc_error' declared here\r\nextern void mc_error(const char *msg, ...);\r\n            ^\r\nsrc/ttrss_api.cpp:122:15: error: cannot initialize a parameter of type 'const char *' with an lvalue of type\r\n      'struct json_object *'\r\n        if (is_error(status)) {\r\n                     ^~~~~~\r\n/usr/local/include/json-c/debug.h:28:34: note: passing argument to parameter 'msg' here\r\nextern void mc_error(const char *msg, ...);\r\n                                 ^\r\nsrc/ttrss_api.cpp:127:33: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n        struct json_object * content = json_object_object_get(reply, \"content\");\r\n                                       ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:128:6: error: use of undeclared identifier 'is_error'; did you mean 'mc_error'?\r\n        if (is_error(content)) {\r\n            ^~~~~~~~\r\n            mc_error\r\n/usr/local/include/json-c/debug.h:28:13: note: 'mc_error' declared here\r\nextern void mc_error(const char *msg, ...);\r\n            ^\r\nsrc/ttrss_api.cpp:128:15: error: cannot initialize a parameter of type 'const char *' with an lvalue of type\r\n      'struct json_object *'\r\n        if (is_error(content)) {\r\n                     ^~~~~~~\r\n/usr/local/include/json-c/debug.h:28:34: note: passing argument to parameter 'msg' here\r\nextern void mc_error(const char *msg, ...);\r\n                                 ^\r\nsrc/ttrss_api.cpp:134:32: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                struct json_object * error = json_object_object_get(content, \"error\");\r\n                                             ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:258:32: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                int id = json_object_get_int(json_object_object_get(item_obj, \"id\"));\r\n                                             ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:259:47: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                const char * title = json_object_get_string(json_object_object_get(item_obj, \"title\"));\r\n                                                            ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:260:46: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                const char * link = json_object_get_string(json_object_object_get(item_obj, \"link\"));\r\n                                                           ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:261:49: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                const char * content = json_object_get_string(json_object_object_get(item_obj, \"content\"));\r\n                                                              ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:262:48: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                time_t updated = (time_t)json_object_get_int(json_object_object_get(item_obj, \"updated\"));\r\n                                                             ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:263:46: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                json_bool unread = json_object_get_boolean(json_object_object_get(item_obj, \"unread\"));\r\n                                                           ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:264:38: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                struct json_object * attachments = json_object_object_get(item_obj, \"attachments\");\r\n                                                   ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:282:55: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                                const char * content_url = json_object_get_string(json_object_object_get(attachm...\r\n                                                                                  ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:283:56: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                                const char * content_type = json_object_get_string(json_object_object_get(attach...\r\n                                                                                   ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:321:37: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                struct json_object * cat_id_obj = json_object_object_get(cat, \"id\");\r\n                                                  ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:328:19: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                cat_title_obj = json_object_object_get(cat, \"title\");\r\n                                ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:352:37: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                int feed_id = json_object_get_int(json_object_object_get(feed, \"id\"));\r\n                                                  ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:353:52: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                const char * feed_title = json_object_get_string(json_object_object_get(feed, \"title\"));\r\n                                                                 ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\nsrc/ttrss_api.cpp:354:50: warning: 'json_object_object_get' is deprecated [-Wdeprecated-declarations]\r\n                const char * feed_url = json_object_get_string(json_object_object_get(feed, \"feed_url\"));\r\n                                                               ^\r\n/usr/local/include/json-c/json_object.h:303:56: note: 'json_object_object_get' has been explicitly marked deprecated\r\n      here\r\nTHIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,\r\n                                                       ^\r\n/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro 'THIS_FUNCTION_IS_DEPRECATED'\r\n#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))\r\n                                          ^\r\n18 warnings and 6 errors generated.\r\nMakefile:101: recipe for target 'src/ttrss_api.o' failed\r\nmake: *** [src/ttrss_api.o] Error 1\r\n```\r\n```\r\n$ sw_vers\r\nProductName:\tMac OS X\r\nProductVersion:\t10.10.5\r\nBuildVersion:\t14F27\r\n$ uname -mprsv\r\nDarwin 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64 i386\r\n```\r\nthx"},"comment":{"url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/comments/164857525","html_url":"https://github.com/akrennmair/newsbeuter/issues/203#issuecomment-164857525","issue_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/203","id":164857525,"user":{"login":"Minoru","id":118875,"avatar_url":"https://avatars.githubusercontent.com/u/118875?v=3","gravatar_id":"","url":"https://api.github.com/users/Minoru","html_url":"https://github.com/Minoru","followers_url":"https://api.github.com/users/Minoru/followers","following_url":"https://api.github.com/users/Minoru/following{/other_user}","gists_url":"https://api.github.com/users/Minoru/gists{/gist_id}","starred_url":"https://api.github.com/users/Minoru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minoru/subscriptions","organizations_url":"https://api.github.com/users/Minoru/orgs","repos_url":"https://api.github.com/users/Minoru/repos","events_url":"https://api.github.com/users/Minoru/events{/privacy}","received_events_url":"https://api.github.com/users/Minoru/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T19:02:57Z","updated_at":"2015-12-15T19:02:57Z","body":"> Undefined symbols for architecture x86_64:\r\n>  \"_mvwaddnwstr\"\r\n>  \"_mvwaddwstr\"\r\n>  \"_wget_wch\"\r\n\r\nAre you sure your STFL built properly? Looks like you didn't link it to ncursesw or something.\r\n\r\nI didn't realise you were building against json-c's HEAD, I just assumed you were on json-c-0.12. Sorry about that. Current json-c deprecated `is_error()`, thus the errors you get. I fixed this in the latest commit."}}