{"action":"created","issue":{"url":"https://api.github.com/repos/acassen/keepalived/issues/350","repository_url":"https://api.github.com/repos/acassen/keepalived","labels_url":"https://api.github.com/repos/acassen/keepalived/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/acassen/keepalived/issues/350/comments","events_url":"https://api.github.com/repos/acassen/keepalived/issues/350/events","html_url":"https://github.com/acassen/keepalived/issues/350","id":158595814,"number":350,"title":"keepalived will not compile under linux headers >4.4","user":{"login":"gregnetau","id":6579927,"avatar_url":"https://avatars.githubusercontent.com/u/6579927?v=3","gravatar_id":"","url":"https://api.github.com/users/gregnetau","html_url":"https://github.com/gregnetau","followers_url":"https://api.github.com/users/gregnetau/followers","following_url":"https://api.github.com/users/gregnetau/following{/other_user}","gists_url":"https://api.github.com/users/gregnetau/gists{/gist_id}","starred_url":"https://api.github.com/users/gregnetau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregnetau/subscriptions","organizations_url":"https://api.github.com/users/gregnetau/orgs","repos_url":"https://api.github.com/users/gregnetau/repos","events_url":"https://api.github.com/users/gregnetau/events{/privacy}","received_events_url":"https://api.github.com/users/gregnetau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-06T03:43:42Z","updated_at":"2016-06-06T10:17:09Z","closed_at":null,"body":"Hi,\r\n\r\nI cannot get keepalived to compile under Linux 4.4 kernel/headers:\r\n\r\ncheck_snmp.c: In function 'check_snmp_virtualserver':\r\ncheck_snmp.c:213:2: error: unknown type name 'U64'\r\n  static U64 counter64_ret;\r\n  ^\r\ncheck_snmp.c:390:16: error: request for member 'low' in something not a structure or union\r\n   counter64_ret.low = v->stats.inbytes & 0xffffffff;\r\n                ^\r\ncheck_snmp.c:391:16: error: request for member 'high' in something not a structure or union\r\n   counter64_ret.high = v->stats.inbytes >> 32;\r\n                ^\r\ncheck_snmp.c:392:21: error: 'U64' undeclared (first use in this function)\r\n   *var_len = sizeof(U64);\r\n                     ^\r\ncheck_snmp.c:392:21: note: each undeclared identifier is reported only once for each function it appears in\r\ncheck_snmp.c:396:16: error: request for member 'low' in something not a structure or union\r\n   counter64_ret.low = v->stats.outbytes & 0xffffffff;\r\n                ^\r\ncheck_snmp.c:397:16: error: request for member 'high' in something not a structure or union\r\n   counter64_ret.high = v->stats.outbytes >> 32;\r\n                ^\r\ncheck_snmp.c: In function 'check_snmp_realserver':\r\ncheck_snmp.c:491:2: error: unknown type name 'U64'\r\n  static U64 counter64_ret;\r\n  ^\r\ncheck_snmp.c:680:16: error: request for member 'low' in something not a structure or union\r\n   counter64_ret.low = be->stats.inbytes & 0xffffffff;\r\n                ^\r\ncheck_snmp.c:681:16: error: request for member 'high' in something not a structure or union\r\n   counter64_ret.high = be->stats.inbytes >> 32;\r\n                ^\r\ncheck_snmp.c:682:21: error: 'U64' undeclared (first use in this function)\r\n   *var_len = sizeof(U64);\r\n                     ^\r\ncheck_snmp.c:686:16: error: request for member 'low' in something not a structure or union\r\n   counter64_ret.low = be->stats.outbytes & 0xffffffff;\r\n                ^\r\ncheck_snmp.c:687:16: error: request for member 'high' in something not a structure or union\r\n   counter64_ret.high = be->stats.outbytes >> 32;\r\n                ^\r\nmake[2]: *** [Makefile:26: check_snmp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nmake[2]: Leaving directory '/var/tmp/portage/sys-cluster/keepalived-1.2.19/work/keepalived-1.2.19/keepalived/check'\r\nmake[1]: *** [Makefile:45: all] Error 1\r\nmake[1]: Leaving directory '/var/tmp/portage/sys-cluster/keepalived-1.2.19/work/keepalived-1.2.19/keepalived'\r\nmake: *** [Makefile:15: all] Error 2\r\n * ERROR: sys-cluster/keepalived-1.2.19::gentoo failed (compile phase):\r\n *   emake failed\r\n\r\nThanks,\r\n\r\nGreg"},"comment":{"url":"https://api.github.com/repos/acassen/keepalived/issues/comments/223920324","html_url":"https://github.com/acassen/keepalived/issues/350#issuecomment-223920324","issue_url":"https://api.github.com/repos/acassen/keepalived/issues/350","id":223920324,"user":{"login":"gregnetau","id":6579927,"avatar_url":"https://avatars.githubusercontent.com/u/6579927?v=3","gravatar_id":"","url":"https://api.github.com/users/gregnetau","html_url":"https://github.com/gregnetau","followers_url":"https://api.github.com/users/gregnetau/followers","following_url":"https://api.github.com/users/gregnetau/following{/other_user}","gists_url":"https://api.github.com/users/gregnetau/gists{/gist_id}","starred_url":"https://api.github.com/users/gregnetau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregnetau/subscriptions","organizations_url":"https://api.github.com/users/gregnetau/orgs","repos_url":"https://api.github.com/users/gregnetau/repos","events_url":"https://api.github.com/users/gregnetau/events{/privacy}","received_events_url":"https://api.github.com/users/gregnetau/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T10:17:09Z","updated_at":"2016-06-06T10:17:09Z","body":"Hi,\n\n \n\nI’ve done further debugging and even if I downgrade my system linux-headers to 3.18 it still fails to compile with the same error:\n\n \n\ncheck_snmp.c: In function 'check_snmp_virtualserver':\n\ncheck_snmp.c:313:2: error: unknown type name 'U64'\n\n  static U64 counter64_ret;\n\n  ^\n\ncheck_snmp.c:481:16: error: request for member 'low' in something not a structure or union\n\n   counter64_ret.low = v->stats.inbytes & 0xffffffff;\n\n                ^\n\ncheck_snmp.c:482:16: error: request for member 'high' in something not a structure or union\n\n   counter64_ret.high = v->stats.inbytes >> 32;\n\n                ^\n\ncheck_snmp.c:483:21: error: 'U64' undeclared (first use in this function)\n\n   *var_len = sizeof(U64);\n\n                     ^\n\ncheck_snmp.c:483:21: note: each undeclared identifier is reported only once for each function it appears in\n\ncheck_snmp.c:487:16: error: request for member 'low' in something not a structure or union\n\n   counter64_ret.low = v->stats.outbytes & 0xffffffff;\n\n                ^\n\ncheck_snmp.c:488:16: error: request for member 'high' in something not a structure or union\n\n   counter64_ret.high = v->stats.outbytes >> 32;\n\n                ^\n\ncheck_snmp.c: In function 'check_snmp_realserver':\n\ncheck_snmp.c:582:2: error: unknown type name 'U64'\n\n  static U64 counter64_ret;\n\n  ^\n\ncheck_snmp.c:771:16: error: request for member 'low' in something not a structure or union\n\n   counter64_ret.low = be->stats.inbytes & 0xffffffff;\n\n                ^\n\ncheck_snmp.c:772:16: error: request for member 'high' in something not a structure or union\n\n   counter64_ret.high = be->stats.inbytes >> 32;\n\n                ^\n\ncheck_snmp.c:773:21: error: 'U64' undeclared (first use in this function)\n\n   *var_len = sizeof(U64);\n\n                     ^\n\ncheck_snmp.c:777:16: error: request for member 'low' in something not a structure or union\n\n   counter64_ret.low = be->stats.outbytes & 0xffffffff;\n\n                ^\n\ncheck_snmp.c:778:16: error: request for member 'high' in something not a structure or union\n\n   counter64_ret.high = be->stats.outbytes >> 32;\n\n                ^\n\nmake[2]: *** [Makefile:25: check_snmp.o] Error 1\n\n \n\n \n\nMy current installed versions are:\n\n \n\n[ebuild   R    ] sys-kernel/linux-headers-4.4\n\n[ebuild   R    ] net-analyzer/net-snmp-5.7.3-r5\n\n \n\nOS: Gentoo\n\n \n\nIf I don’t use the –snmp compile flag, it will compile fine.\n\n \n\nThanks,\n\n \n\nGreg\n\n \n\n \n\n \n\nFrom: pqarmitage [mailto:notifications@github.com] \nSent: Monday, 6 June 2016 2:53 PM\nTo: acassen/keepalived <keepalived@noreply.github.com>\nCc: Greg M <gregm@servu.net.au>; Author <author@noreply.github.com>\nSubject: Re: [acassen/keepalived] keepalived will not compile under linux headers >4.4 (#350)\n\n \n\nOn my 4.4 system (with keepalived ver 1.2.21):\ncheck_snmp.c includes snmp.h (in keepalived/include)\nsnmp.h includes \nincludes \nincludes \nhas typedef struct counter64 U64;\n\nand struct counter64 is defined in which is included from \n\nIt appears that in keepalived ver 1.2.19 snmp.h is included via check_snmp.h\n\nThe version I have of net-snmp is 5.7.3.\n\nCan you check what is happening on your system.\n\nBy the way, you might find it beneficial to upgrade to keepalived ver 1.2.21.\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub <https://github.com/acassen/keepalived/issues/350#issuecomment-223881231> , or mute the thread <https://github.com/notifications/unsubscribe/AGRm18LcLnwVU36AMd4O7V1oO2zkq3Dgks5qI8PDgaJpZM4IuinW> .  <https://github.com/notifications/beacon/AGRm1-w3SiFPIniAWtheln3WEj3avXG7ks5qI8PDgaJpZM4IuinW.gif> \n\n"}}
{"actor":{"display_login":"gregnetau"}}