Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compiling #45

Open
peterpt opened this issue Sep 13, 2017 · 1 comment
Open

error compiling #45

peterpt opened this issue Sep 13, 2017 · 1 comment

Comments

@peterpt
Copy link

peterpt commented Sep 13, 2017

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

@k79e
Copy link

k79e commented Sep 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants