{"action":"created","issue":{"url":"https://api.github.com/repos/nelhage/reptyr/issues/69","labels_url":"https://api.github.com/repos/nelhage/reptyr/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/nelhage/reptyr/issues/69/comments","events_url":"https://api.github.com/repos/nelhage/reptyr/issues/69/events","html_url":"https://github.com/nelhage/reptyr/issues/69","id":128751152,"number":69,"title":"Test build fails with kernel < 3.4?","user":{"login":"scop","id":109152,"avatar_url":"https://avatars.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-26T07:56:19Z","updated_at":"2016-01-26T16:45:18Z","closed_at":null,"body":"On CentOS 6 (kernel-headers-2.6.32):\r\n\r\n```\r\n$ make test\r\ncc -Wall -Werror -D_GNU_SOURCE -g   -c -o test/victim.o test/victim.c\r\ntest/victim.c: In function ‘main’:\r\ntest/victim.c:8: error: ‘PR_SET_PTRACER’ undeclared (first use in this function)\r\ntest/victim.c:8: error: (Each undeclared identifier is reported only once\r\ntest/victim.c:8: error: for each function it appears in.)\r\ntest/victim.c:8: error: ‘PR_SET_PTRACER_ANY’ undeclared (first use in this function)\r\nmake: *** [test/victim.o] Error 1\r\n```\r\n\r\nI suppose PR_SET_PTRACER was added in kernel 3.4. Not sure what can be done about this, but if nothing else, document it?\r\n"},"comment":{"url":"https://api.github.com/repos/nelhage/reptyr/issues/comments/175108274","html_url":"https://github.com/nelhage/reptyr/issues/69#issuecomment-175108274","issue_url":"https://api.github.com/repos/nelhage/reptyr/issues/69","id":175108274,"user":{"login":"scop","id":109152,"avatar_url":"https://avatars.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T16:45:18Z","updated_at":"2016-01-26T16:45:18Z","body":"Yes, that fixes the compilation. The actual tests still end up failing:\r\n\r\n```\r\n$ make test\r\npython test/basic.py\r\npython test/tty-steal.py\r\nTraceback (most recent call last):\r\n  File \"test/tty-steal.py\", line 12, in <module>\r\n    prctl.set_ptracer(PR_SET_PTRACER_ANY)\r\nAttributeError: 'module' object has no attribute 'set_ptracer'\r\nmake: *** [test] Error 1\r\n```\r\nBut I suppose that prctl stuff isn't needed either? If so, would be nice if the prctl python module would be required only wherever its set_ptracer would do any good."}}