libuinet icon indicating copy to clipboard operation
libuinet copied to clipboard

error compiling

Open peterpt opened this issue 7 years ago • 1 comments

I get some errors on compiling the library :

error 1 -----------------------------------------------------------------------------> uinet_if_pcap_host.c:377:1: error: static declaration of ‘pcap_dump_open_append’ follows non-static declaration pcap_dump_open_append(pcap_t *p, const char *fname) ^~~~~~~~~~~~~~~~~~~~~ In file included from uinet_if_pcap_host.c:39:0: /usr/include/pcap/pcap.h:423:25: note: previous declaration of ‘pcap_dump_open_append’ was here PCAP_API pcap_dumper_t *pcap_dump_open_append(pcap_t *, const char *); ^~~~~~~~~~~~~~~~~~~~~ Makefile:432: recipe for target 'uinet_if_pcap_host.o' failed

<---------------------------------------------------------------------------------------------------------------------

error 2 --------------------------> http_parser.c: In function ‘http_parser_parse_url’: http_parser.c:2168:18: error: this statement may fall through [-Werror=implicit-fallthrough=] found_at = 1; ~~~~~~~~~^~~ http_parser.c:2171:7: note: here case s_req_server: ^~~~ cc1: all warnings being treated as errors Makefile:79: recipe for target 'libhttp_parser.o' failed make[2]: *** [libhttp_parser.o] Error 1 <--------------------------------------- error 3 --------------------------> /opt/scanner/libuinet/bin/echo++/../../lib/libev/ev++.h:381:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] default_loop (unsigned int flags = AUTO) throw (bad_loop) ^~~~~ echo++.cc: In function ‘int main(int, char**)’: echo++.cc:453:27: error: invalid conversion from ‘int’ to ‘uinet_global_cfg*’ [-fpermissive] uinet_init(1, 1281024, 0); ^ echo++.cc:453:19: error: invalid conversion from ‘int’ to ‘uinet_instance_cfg’ [-fpermissive] uinet_init(1, 1281024, 0); ~~~^~~~~ echo++.cc:453:27: error: too many arguments to function ‘int uinet_init(uinet_global_cfg, uinet_instance_cfg*)’ uinet_init(1, 128*1024, 0); ^ In file included from echo++.cc:36:0: /opt/scanner/libuinet/bin/echo++/../../lib/libuinet/api_include/uinet_api.h:51:7: note: declared here int uinet_init(struct uinet_global_cfg cfg, struct uinet_instance_cfg inst_cfg); ^~~~~~~~~~ echo++.cc:457:124: error: cannot convert ‘uinet_iftype_t’ to ‘uinet_if_cfg’ for argument ‘2’ to ‘int uinet_ifcreate(uinet_instance_t, uinet_if_cfg, uinet_if**)’ t(), UINET_IFTYPE_NETMAP, interfaces[i].ifname, interfaces[i].ifname, 0, NULL); ^ : recipe for target 'echo++.o' failed

peterpt avatar Sep 13 '17 22:09 peterpt

Http parser problem is fixed but another problem comes!!! nope I'm wrong. That updated version is not libhttp_parser it's http_parser

k79e avatar Sep 20 '19 06:09 k79e