You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: