Skip to content

error compiling #45

Description

@peterpt

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

Activity

k79e commented on Sep 20, 2019

@k79e

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions