{"action":"created","issue":{"url":"https://api.github.com/repos/znc/znc/issues/1023","labels_url":"https://api.github.com/repos/znc/znc/issues/1023/labels{/name}","comments_url":"https://api.github.com/repos/znc/znc/issues/1023/comments","events_url":"https://api.github.com/repos/znc/znc/issues/1023/events","html_url":"https://github.com/znc/znc/issues/1023","id":100183330,"number":1023,"title":"znc-buildmod doesn't compile modules as c++0x","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/znc/znc/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-10T22:31:51Z","updated_at":"2015-08-10T22:56:06Z","closed_at":null,"body":"Since the modules are not compiled with the `-std=c++0x` build flags or equivalent, on OS X where the default compiler won't allow c++0x unless it's explicitly enabled causes the compiler fail to parse the ZNC headers (String.h) which uses C++0x features.\r\n\r\nI would make a PR but not sure where to being with automake/conf.\r\n\r\nBasically, to solve this locally I popped in `-std=c++0x` into CXXFLAGS in znc-buildmod.\r\n\r\n### The errors\r\n\r\n```\r\n[I] $ make\r\nBuilding \"palaver.so\" for ZNC 1.6.0... In file included from palaver.cpp:11:\r\nIn file included from /usr/local/Cellar/znc/1.6.0/include/znc/Modules.h:21:\r\nIn file included from /usr/local/Cellar/znc/1.6.0/include/znc/WebModules.h:21:\r\nIn file included from /usr/local/Cellar/znc/1.6.0/include/znc/Template.h:21:\r\n/usr/local/Cellar/znc/1.6.0/include/znc/ZNCString.h:60:6: warning: scoped enumerations are a C++11 extension\r\n      [-Wc++11-extensions]\r\nenum class CaseSensitivity {\r\n     ^\r\n/usr/local/Cellar/znc/1.6.0/include/znc/ZNCString.h:85:47: error: 'CaseSensitivity' is not a class, namespace, or\r\n      scoped enumeration\r\n        static const CaseSensitivity CaseSensitive = CaseSensitivity::CaseSensitive;\r\n                                                     ^\r\n/usr/local/Cellar/znc/1.6.0/include/znc/ZNCString.h:86:49: error: 'CaseSensitivity' is not a class, namespace, or\r\n      scoped enumeration\r\n        static const CaseSensitivity CaseInsensitive = CaseSensitivity::CaseInsensitive;\r\n\r\n```\r\n\r\nFrom https://github.com/cocodelabs/znc-palaver/issues/20"},"comment":{"url":"https://api.github.com/repos/znc/znc/issues/comments/129639696","html_url":"https://github.com/znc/znc/issues/1023#issuecomment-129639696","issue_url":"https://api.github.com/repos/znc/znc/issues/1023","id":129639696,"user":{"login":"DarthGandalf","id":325092,"avatar_url":"https://avatars.githubusercontent.com/u/325092?v=3","gravatar_id":"","url":"https://api.github.com/users/DarthGandalf","html_url":"https://github.com/DarthGandalf","followers_url":"https://api.github.com/users/DarthGandalf/followers","following_url":"https://api.github.com/users/DarthGandalf/following{/other_user}","gists_url":"https://api.github.com/users/DarthGandalf/gists{/gist_id}","starred_url":"https://api.github.com/users/DarthGandalf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarthGandalf/subscriptions","organizations_url":"https://api.github.com/users/DarthGandalf/orgs","repos_url":"https://api.github.com/users/DarthGandalf/repos","events_url":"https://api.github.com/users/DarthGandalf/events{/privacy}","received_events_url":"https://api.github.com/users/DarthGandalf/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T22:56:06Z","updated_at":"2015-08-10T22:56:06Z","body":"I think https://github.com/Homebrew/homebrew/blob/33aa9a09051c1260169f2de4e23834d68478ede3/Library/Formula/znc.rb#L31 adds `-std=c++11` to CXXFLAGS before calling ./configure"}}