tac_plus make error

39 views
Skip to first unread message

LEI CHU

unread,
Mar 14, 2024, 7:57:48 AMMar 14
to Event-Driven Servers
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-servers

or file an issue at

    https://github.com/MarcJHuber/event-driven-servers

Support 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



Marc Huber

unread,
Mar 14, 2024, 1:12:02 PMMar 14
to event-driv...@googlegroups.com
Hi,

I'd guess that your c-ares installation is too old and you'd have to
update tha first.

Cheers,

Marc

LEI CHU

unread,
Mar 15, 2024, 4:11:35 AMMar 15
to Event-Driven Servers
May I ask what version you are using? I think keeping the version consistent should solve the problem

Marc Huber

unread,
Mar 15, 2024, 10:38:41 AMMar 15
to event-driv...@googlegroups.com
Hi,

my system comes with 1.18.1.

libc-ares-dev/jammy-updates,jammy-security,now 1.18.1-1ubuntu0.22.04.3

Cheers,

Marc
> --
> You received this message because you are subscribed to the Google
> Groups "Event-Driven Servers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to event-driven-ser...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/event-driven-servers/1ef69624-8f9e-491a-b020-40cac8d80fban%40googlegroups.com
> <https://groups.google.com/d/msgid/event-driven-servers/1ef69624-8f9e-491a-b020-40cac8d80fban%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages