When I execute ./configure tac_plus, the following prompt appears. This looks normal.
[root@tac_plus event-driven-servers]# ./configure tac_plus
======================================================================================================================================================================================================================
Development files were found for: LIB-ARES, LIB-CRYPT, LIB-CRYPTO, LIB-CURL, LIB-FREERADIUS_CLIENT, LIB-LBER, LIB-LDAP, LIB-PAM, LIB-PCRE2, LIB-PTHREAD, LIB-SCTP, LIB-SSL, LIB-ZLIB
The file
build/Makefile.inc.linux-3.10.0-862.el7.x86_64-x86_64
was just created. You may run "make" now. After that, you may wish to do a "make install". Alternatively, you'll find the compiled binaries (plus some ancillary scripts) in the
build/linux-3.10.0-862.el7.x86_64-x86_64/fakeroot/
directory structure. It's probably advisable to have a look there in any case, as you may or may not like the particular file system layout, and this will give you a chance to see it before installing.
Please direct support requests to the "Event-Driven Servers" Google Group at
event-driv...@googlegroups.com https://groups.google.com/group/event-driven-serversor file an issue at
https://github.com/MarcJHuber/event-driven-serversSupport requests sent to the author's private email address may be silently ignored.
======================================================================================================================================================================================================================
But when I execute make, the following error appears. What is going on? How to solve it?
/root/event-driven-servers/misc/io_dns_revmap.c:161:1: 错误:未知的类型名‘ares_ssize_t’
static ares_ssize_t arecvfrom(ares_socket_t fd, void *buf, size_t len, int flags, struct sockaddr *src_addr, ares_socklen_t * addrlen, void *opaque
^
/root/event-driven-servers/misc/io_dns_revmap.c:167:1: 错误:未知的类型名‘ares_ssize_t’
static ares_ssize_t asendv(ares_socket_t fd, const struct iovec *iov, int iovcnt, void *opaque __attribute__((unused)))
^
/root/event-driven-servers/misc/io_dns_revmap.c: 在函数‘io_dns_init’中:
/root/event-driven-servers/misc/io_dns_revmap.c:186:38: 错误:‘a_socket_functions’的存储大小未知
static struct ares_socket_functions a_socket_functions;
^
/root/event-driven-servers/misc/io_dns_revmap.c:192:2: 警告:隐式声明函数‘ares_set_socket_functions’ [-Wimplicit-function-declaration]
ares_set_socket_functions(idc->channel, &a_socket_functions, idc);
^
/root/event-driven-servers/misc/io_dns_revmap.c:186:38: 警告:未使用的变量‘a_socket_functions’ [-Wunused-variable]
static struct ares_socket_functions a_socket_functions;
^
/root/event-driven-servers/misc/io_dns_revmap.c: 在函数‘io_dns_set_servers’中:
/root/event-driven-servers/misc/io_dns_revmap.c:337:5: 警告:隐式声明函数‘ares_set_servers_ports_csv’ [-Wimplicit-function-declaration]
return ares_set_servers_ports_csv(idc->channel, servers);
^
/root/event-driven-servers/misc/io_dns_revmap.c: 在文件作用域:
cc1: 警告:无法识别的命令行选项“-Wno-implicit-fallthrough” [默认启用]
make[2]: *** [io_dns_revmap.o] 错误 1
make[2]: 离开目录“/root/event-driven-servers/build/linux-3.10.0-862.el7.x86_64-x86_64/mavis”
make[1]: *** [build] 错误 2
make[1]: 离开目录“/root/event-driven-servers/mavis”
make: *** [dirs] 错误 1