{"action":"created","issue":{"url":"https://api.github.com/repos/kohler/click/issues/258","repository_url":"https://api.github.com/repos/kohler/click","labels_url":"https://api.github.com/repos/kohler/click/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/kohler/click/issues/258/comments","events_url":"https://api.github.com/repos/kohler/click/issues/258/events","html_url":"https://github.com/kohler/click/issues/258","id":150739702,"number":258,"title":"Error while installing with netmap","user":{"login":"azzamsu","id":9686953,"avatar_url":"https://avatars.githubusercontent.com/u/9686953?v=3","gravatar_id":"","url":"https://api.github.com/users/azzamsu","html_url":"https://github.com/azzamsu","followers_url":"https://api.github.com/users/azzamsu/followers","following_url":"https://api.github.com/users/azzamsu/following{/other_user}","gists_url":"https://api.github.com/users/azzamsu/gists{/gist_id}","starred_url":"https://api.github.com/users/azzamsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azzamsu/subscriptions","organizations_url":"https://api.github.com/users/azzamsu/orgs","repos_url":"https://api.github.com/users/azzamsu/repos","events_url":"https://api.github.com/users/azzamsu/events{/privacy}","received_events_url":"https://api.github.com/users/azzamsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-25T03:40:36Z","updated_at":"2016-04-25T08:04:38Z","closed_at":null,"body":"Hi,\r\n\r\nI get the following errors when I try to install click with netmap enabled:\r\n\r\n```\r\n../elements/userlevel/fromdevice.cc: In function ‘void FromDevice_get_packet(u_char*, const pcap_pkthdr*, const u_char*)’:\r\n../elements/userlevel/fromdevice.cc:486:65: error: invalid use of incomplete type ‘const struct pcap_pkthdr’\r\n     WritablePacket *p = Packet::make(fd->_headroom, data, pkthdr->caplen, 0);\r\n                                                                 ^\r\nIn file included from ../elements/userlevel/fromdevice.cc:35:0:\r\n../elements/userlevel/fromdevice.hh:29:50: error: forward declaration of ‘const struct pcap_pkthdr’\r\n void FromDevice_get_packet(u_char*, const struct pcap_pkthdr*, const u_char*);\r\n                                                  ^\r\n../elements/userlevel/fromdevice.cc:493:41: error: invalid use of incomplete type ‘const struct pcap_pkthdr’\r\n         ts = Timestamp::make_usec(pkthdr->ts.tv_sec, pkthdr->ts.tv_usec);\r\n                                         ^\r\nIn file included from ../elements/userlevel/fromdevice.cc:35:0:\r\n../elements/userlevel/fromdevice.hh:29:50: error: forward declaration of ‘const struct pcap_pkthdr’\r\n void FromDevice_get_packet(u_char*, const struct pcap_pkthdr*, const u_char*);\r\n                                                  ^\r\n../elements/userlevel/fromdevice.cc:493:60: error: invalid use of incomplete type ‘const struct pcap_pkthdr’\r\n         ts = Timestamp::make_usec(pkthdr->ts.tv_sec, pkthdr->ts.tv_usec);\r\n                                                            ^\r\nIn file included from ../elements/userlevel/fromdevice.cc:35:0:\r\n../elements/userlevel/fromdevice.hh:29:50: error: forward declaration of ‘const struct pcap_pkthdr’\r\n void FromDevice_get_packet(u_char*, const struct pcap_pkthdr*, const u_char*);\r\n                                                  ^\r\n../elements/userlevel/fromdevice.cc:494:30: error: invalid use of incomplete type ‘const struct pcap_pkthdr’\r\n     fd->emit_packet(p, pkthdr->len - pkthdr->caplen, ts);\r\n                              ^\r\nIn file included from ../elements/userlevel/fromdevice.cc:35:0:\r\n../elements/userlevel/fromdevice.hh:29:50: error: forward declaration of ‘const struct pcap_pkthdr’\r\n void FromDevice_get_packet(u_char*, const struct pcap_pkthdr*, const u_char*);\r\n                                                  ^\r\n../elements/userlevel/fromdevice.cc:494:44: error: invalid use of incomplete type ‘const struct pcap_pkthdr’\r\n     fd->emit_packet(p, pkthdr->len - pkthdr->caplen, ts);\r\n                                            ^\r\nIn file included from ../elements/userlevel/fromdevice.cc:35:0:\r\n../elements/userlevel/fromdevice.hh:29:50: error: forward declaration of ‘const struct pcap_pkthdr’\r\n void FromDevice_get_packet(u_char*, const struct pcap_pkthdr*, const u_char*);\r\n                                                  ^\r\n../elements/userlevel/fromdevice.cc: In member function ‘virtual void FromDevice::selected(int, int)’:\r\n../elements/userlevel/fromdevice.cc:515:24: error: ‘_pcap_complaints’ was not declared in this scope\r\n  } else if (r < 0 && ++_pcap_complaints < 5)\r\n                        ^\r\n../elements/userlevel/fromdevice.cc: In member function ‘virtual bool FromDevice::run_task(Task*)’:\r\n../elements/userlevel/fromdevice.cc:575:17: error: ‘_pcap_complaints’ was not declared in this scope\r\n  if (r < 0 && ++_pcap_complaints < 5)\r\n                 ^\r\nmake[1]: *** [fromdevice.o] Error 1\r\nmake[1]: Leaving directory `/home/murad/click/userlevel'\r\nmake: *** [install-userlevel] Error 2\r\n\r\n```\r\n\r\nHere's how I configured click:\r\nsudo ./configure --disable-linuxmodule --enable-all-elements --enable-local --with-netmap=/home/username/netmap/sys\r\n\r\nThe configuration process does not give me any errors, and I made sure that it found netmap. I can't seem to figure out what the problem is. I'd appreciate any help.\r\n\r\nAzzam"},"comment":{"url":"https://api.github.com/repos/kohler/click/issues/comments/214198119","html_url":"https://github.com/kohler/click/issues/258#issuecomment-214198119","issue_url":"https://api.github.com/repos/kohler/click/issues/258","id":214198119,"user":{"login":"tbarbette","id":248961,"avatar_url":"https://avatars.githubusercontent.com/u/248961?v=3","gravatar_id":"","url":"https://api.github.com/users/tbarbette","html_url":"https://github.com/tbarbette","followers_url":"https://api.github.com/users/tbarbette/followers","following_url":"https://api.github.com/users/tbarbette/following{/other_user}","gists_url":"https://api.github.com/users/tbarbette/gists{/gist_id}","starred_url":"https://api.github.com/users/tbarbette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbarbette/subscriptions","organizations_url":"https://api.github.com/users/tbarbette/orgs","repos_url":"https://api.github.com/users/tbarbette/repos","events_url":"https://api.github.com/users/tbarbette/events{/privacy}","received_events_url":"https://api.github.com/users/tbarbette/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T08:04:38Z","updated_at":"2016-04-25T08:04:38Z","body":"I'd say the pcap header is missing ? Did you install the packages libcap-dev (debian-based) or libcap-devel (redhat-based)?"}}