{"action":"created","issue":{"url":"https://api.github.com/repos/xemul/criu/issues/119","repository_url":"https://api.github.com/repos/xemul/criu","labels_url":"https://api.github.com/repos/xemul/criu/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/xemul/criu/issues/119/comments","events_url":"https://api.github.com/repos/xemul/criu/issues/119/events","html_url":"https://github.com/xemul/criu/issues/119","id":136507635,"number":119,"title":"Fails to build with glibc-2.23","user":{"login":"MiRacLe-RPZ","id":920542,"avatar_url":"https://avatars.githubusercontent.com/u/920542?v=3","gravatar_id":"","url":"https://api.github.com/users/MiRacLe-RPZ","html_url":"https://github.com/MiRacLe-RPZ","followers_url":"https://api.github.com/users/MiRacLe-RPZ/followers","following_url":"https://api.github.com/users/MiRacLe-RPZ/following{/other_user}","gists_url":"https://api.github.com/users/MiRacLe-RPZ/gists{/gist_id}","starred_url":"https://api.github.com/users/MiRacLe-RPZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiRacLe-RPZ/subscriptions","organizations_url":"https://api.github.com/users/MiRacLe-RPZ/orgs","repos_url":"https://api.github.com/users/MiRacLe-RPZ/repos","events_url":"https://api.github.com/users/MiRacLe-RPZ/events{/privacy}","received_events_url":"https://api.github.com/users/MiRacLe-RPZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T20:50:20Z","updated_at":"2016-02-25T22:14:29Z","closed_at":null,"body":"make V=1\r\n\r\nfrom git-master (same result with release 1.8)\r\n\r\n> gcc -c -O2 -g -Wall -Werror -DCONFIG_X86_64 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -fno-strict-aliasing -iquote /tmp/criu/criu/include -iquote /tmp/criu/images -iquote /tmp/criu/criu/pie -iquote /tmp/criu/criu/arch/x86 -iquote /tmp/criu/criu/arch/x86/include -iquote /tmp/criu/ -I/usr/include/libnl3 -iquote arch/x86 -iquote /tmp/criu -iquote arch/x86/include -iquote /tmp/criu/criu/include arch/x86/crtools.c -o arch/x86/crtools.o\r\n> In file included from arch/x86/crtools.c:14:0:\r\n> /tmp/criu/criu/include/ptrace.h:47:0: error: \"PTRACE_GETSIGMASK\" redefined [-Werror]\r\n>  #define PTRACE_GETSIGMASK 0x420a\r\n>  ^\r\n> In file included from /tmp/criu/criu/include/ptrace.h:5:0,\r\n>                  from arch/x86/crtools.c:14:\r\n> /usr/include/sys/ptrace.h:156:0: note: this is the location of the previous definition\r\n>  #define PTRACE_GETSIGMASK PTRACE_GETSIGMASK\r\n>  ^\r\n> In file included from arch/x86/crtools.c:14:0:\r\n> /tmp/criu/criu/include/ptrace.h:48:0: error: \"PTRACE_SETSIGMASK\" redefined [-Werror]\r\n>  #define PTRACE_SETSIGMASK 0x420b\r\n>  ^\r\n> In file included from /tmp/criu/criu/include/ptrace.h:5:0,\r\n>                  from arch/x86/crtools.c:14:\r\n> /usr/include/sys/ptrace.h:159:0: note: this is the location of the previous definition\r\n>  #define PTRACE_SETSIGMASK PTRACE_SETSIGMASK\r\n>  ^\r\n> cc1: all warnings being treated as errors\r\n> /tmp/criu/scripts/nmk/scripts/rules.mk:53: recipe for target 'arch/x86/crtools.o' failed\r\n> make[2]: *** [arch/x86/crtools.o] Error 1\r\n> Makefile:110: recipe for target 'arch_lib' failed\r\n> make[1]: *** [arch_lib] Error 2\r\n> Makefile:120: recipe for target 'criu' failed\r\n> make: *** [criu] Error 2\r\n> \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xemul/criu/issues/comments/189008684","html_url":"https://github.com/xemul/criu/issues/119#issuecomment-189008684","issue_url":"https://api.github.com/repos/xemul/criu/issues/119","id":189008684,"user":{"login":"avagin","id":1049830,"avatar_url":"https://avatars.githubusercontent.com/u/1049830?v=3","gravatar_id":"","url":"https://api.github.com/users/avagin","html_url":"https://github.com/avagin","followers_url":"https://api.github.com/users/avagin/followers","following_url":"https://api.github.com/users/avagin/following{/other_user}","gists_url":"https://api.github.com/users/avagin/gists{/gist_id}","starred_url":"https://api.github.com/users/avagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avagin/subscriptions","organizations_url":"https://api.github.com/users/avagin/orgs","repos_url":"https://api.github.com/users/avagin/repos","events_url":"https://api.github.com/users/avagin/events{/privacy}","received_events_url":"https://api.github.com/users/avagin/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T22:14:29Z","updated_at":"2016-02-25T22:14:29Z","body":"\r\n@MiRacLe-RPZ, could you try out this patch?\r\n```\r\ndiff --git a/criu/include/ptrace.h b/criu/include/ptrace.h\r\nindex dfc5ecd..efea594 100644\r\n--- a/criu/include/ptrace.h\r\n+++ b/criu/include/ptrace.h\r\n@@ -44,8 +44,10 @@ struct ptrace_peeksiginfo_args {\r\n # define PTRACE_SETREGSET      0x4205\r\n #endif\r\n \r\n+#ifndef PTRACE_GETSIGMASK\r\n #define PTRACE_GETSIGMASK      0x420a\r\n #define PTRACE_SETSIGMASK      0x420b\r\n+#endif\r\n \r\n #ifndef PTRACE_SECCOMP_GET_FILTER\r\n #define PTRACE_SECCOMP_GET_FILTER      0x420c\r\n```"}}