dpvs icon indicating copy to clipboard operation
dpvs copied to clipboard

Rocky9.5部署问题

Open CZILYYZ opened this issue 11 months ago • 3 comments

有人rocky9.5 部署成功的吗,我在部署20.11.1版本的时候,有如下报错: [root@xx-dpvs-18-4-2 dpdk-stable-20.11.10]# ninja -C dpdkbuild ninja: Entering directory `dpdkbuild' [2617/2654] Generating kernel/linux/kni/rte_kni with a custom command make: Entering directory '/usr/src/kernels/5.14.0-503.23.1.el9_5.x86_64' CC [M] /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/kni_misc.o CC [M] /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/kni_net.o LD [M] /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/rte_kni.o MODPOST /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/Module.symvers CC [M] /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/rte_kni.mod.o LD [M] /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/rte_kni.ko BTF [M] /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/rte_kni.ko Skipping BTF generation for /root/dpvs/dpdk-stable-20.11.10/dpdkbuild/kernel/linux/kni/rte_kni.ko due to unavailability of vmlinux make: Leaving directory '/usr/src/kernels/5.14.0-503.23.1.el9_5.x86_64' [2654/2654] Linking target app/dpdk-pdump [root@xx-dpvs-18-4-2 dpdk-stable-20.11.10]# uname -r 5.14.0-503.23.1.el9_5.x86_64 [root@xx-dpvs-18-4-2 dpdk-stable-20.11.10]#

CZILYYZ avatar Feb 10 '25 09:02 CZILYYZ

提供的dpdk编译日志没看到有报错信息。

ywc689 avatar Feb 11 '25 08:02 ywc689

您好!构建 DPVS的时候有报错如下,但是构建和install是正常的,这些报错会影响实际业务运行吗,解决修改起来实在太麻烦了 /root/dpvs/src/ipvs/ip_vs_synproxy.c: In function ‘cookie_hash’: /root/dpvs/src/ipvs/ip_vs_synproxy.c:216:5: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 216 | MD5((unsigned char *)data, sizeof(data), hash); | ^~~ In file included from /root/dpvs/src/ipvs/ip_vs_synproxy.c:24: /usr/include/openssl/md5.h:52:38: note: declared here 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char d, size_t n, | ^~~ /root/dpvs/src/ipvs/ip_vs_synproxy.c: In function ‘cookie_hash_v6’: /root/dpvs/src/ipvs/ip_vs_synproxy.c:293:5: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 293 | MD5((unsigned char)data, sizeof(data), hash); | ^~~ In file included from /root/dpvs/src/ipvs/ip_vs_synproxy.c:24: /usr/include/openssl/md5.h:52:38: note: declared here 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, | ^~~

CC rttables.o utils.c: In function ‘inet_sockaddrtotrio_r’: utils.c:704:56: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 704 | snprintf(buf, SOCKADDRTRIO_STR_LEN, "[%s]:%s:%d", addr_str, proto_str, | ^ In file included from /usr/include/stdio.h:900, from utils.h:34, from utils.c:60: /usr/include/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 7 and 60 bytes into a destination of size 59 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ AR liblib.a make[4]: Leaving directory '/root/dpvs/tools/keepalived/lib' make[3]: Leaving directory '/root/dpvs/tools/keepalived/lib' Making all in keepalived make[3]: Entering directory '/root/dpvs/tools/keepalived/keepalived' Making all in core make[4]: Entering directory '/root/dpvs/tools/keepalived/keepalived/core' CC main.o CC daemon.o CC pidfile.o CC layer4.o CC smtp.o CC global_data.o CC global_parser.o CC keepalived_netlink.o CC namespaces.o CC track_process.o In file included from /usr/include/string.h:519, from keepalived_netlink.c:29: In function ‘memcpy’, inlined from ‘addattr_l’ at keepalived_netlink.c:702:2, inlined from ‘addattr32’ at ./../include/keepalived_netlink.h:133:9, inlined from ‘netlink_request.constprop’ at keepalived_netlink.c:1474:2: /usr/include/bits/string_fortified.h:29:10: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ keepalived_netlink.c: In function ‘netlink_request.constprop’: keepalived_netlink.c:1450:33: note: at offset [36, 100] into destination object ‘nlh’ of size 16 1450 | struct nlmsghdr nlh; | ^~~ AR libcore.a make[4]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/core' Making all in vrrp make[4]: Entering directory '/root/dpvs/tools/keepalived/keepalived/vrrp' CC vrrp_daemon.o CC vrrp_print.o CC vrrp_data.o CC vrrp_parser.o CC vrrp.o CC vrrp_notify.o CC vrrp_scheduler.o CC vrrp_sync.o CC vrrp_arp.o CC vrrp_if.o CC vrrp_track.o CC vrrp_ipaddress.o CC vrrp_ndisc.o CC vrrp_if_config.o CC vrrp_static_track.o CC vrrp_vmac.o CC vrrp_ipsecah.o CC vrrp_iproute.o CC vrrp_iprule.o CC vrrp_ip_rule_route_parser.o vrrp_ipsecah.c: In function ‘hmac_md5’: vrrp_ipsecah.c:55:17: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 55 | MD5_Init(&tctx); | ^~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^~~~~~~~ vrrp_ipsecah.c:56:17: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 56 | MD5_Update(&tctx, key, key_len); | ^~~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^~~~~~~~~~ vrrp_ipsecah.c:57:17: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 57 | MD5_Final(tk, &tctx); | ^~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX c); | ^~~~~~~~~ vrrp_ipsecah.c:82:9: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 82 | MD5_Init(&context); / Init context for 1st pass */ | ^~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX c); | ^~~~~~~~ vrrp_ipsecah.c:83:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 83 | MD5_Update(&context, k_ipad, BLOCK_SIZE); / start with inner pad */ | ^~~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void data, size_t len); | ^~~~~~~~~~ vrrp_ipsecah.c:84:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | MD5_Update(&context, buffer1, buffer1_len); / next with buffer datagram */ | ^~~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void data, size_t len); | ^~~~~~~~~~ vrrp_ipsecah.c:86:17: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 86 | MD5_Update(&context, buffer2, buffer2_len); / next with buffer datagram */ | ^~~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void data, size_t len); | ^~~~~~~~~~ vrrp_ipsecah.c:87:9: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 87 | MD5_Final(digest, &context); / Finish 1st pass */ | ^~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX c); | ^~~~~~~~~ vrrp_ipsecah.c:90:9: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 90 | MD5_Init(&context); / Init context for 2nd pass */ | ^~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX c); | ^~~~~~~~ vrrp_ipsecah.c:91:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 91 | MD5_Update(&context, k_opad, BLOCK_SIZE); / start with inner pad */ | ^~~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void data, size_t len); | ^~~~~~~~~~ vrrp_ipsecah.c:92:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 92 | MD5_Update(&context, digest, MD5_DIGEST_LENGTH); / next result of 1st pass */ | ^~~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void data, size_t len); | ^~~~~~~~~~ vrrp_ipsecah.c:93:9: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 93 | MD5_Final(digest, &context); / Finish 2nd pass */ | ^~~~~~~~~ In file included from vrrp_ipsecah.c:27: /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^~~~~~~~~ CC vrrp_firewall.o CC vrrp_iptables.o CC vrrp_iptables_cmd.o AR libvrrp.a make[4]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/vrrp' Making all in check make[4]: Entering directory '/root/dpvs/tools/keepalived/keepalived/check' CC check_daemon.o CC check_data.o CC check_parser.o CC check_api.o CC check_tcp.o CC check_udp.o CC check_http.o CC check_ssl.o CC check_smtp.o CC check_misc.o CC check_dns.o CC check_print.o CC ipwrapper.o CC ipvswrapper.o CC libipvs.o CC sockopt.o check_ssl.c: In function ‘ssl_read_thread’: check_ssl.c:319:25: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 319 | MD5_Final(digest, &req->context); | ^~~~~~~~~ In file included from ./../include/check_http.h:30, from check_ssl.c:33: /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^~~~~~~~~ check_http.c: In function ‘http_process_response’: check_http.c:1349:41: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1349 | MD5_Update(&req->context, req->extracted, | ^~~~~~~~~~ In file included from ./../include/check_http.h:30, from check_http.c:39: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^~~~~~~~~~ check_http.c:1362:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1362 | MD5_Update(&req->context, req->buffer + old_req_len, | ^~~~~~~~~~ In file included from ./../include/check_http.h:30, from check_http.c:39: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^~~~~~~~~~ check_http.c: In function ‘http_read_thread’: check_http.c:1407:25: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1407 | MD5_Final(digest, &req->context); | ^~~~~~~~~ In file included from ./../include/check_http.h:30, from check_http.c:39: /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^~~~~~~~~ check_http.c: In function ‘http_response_thread’: check_http.c:1461:17: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1461 | MD5_Init(&req->context); | ^~~~~~~~ In file included from ./../include/check_http.h:30, from check_http.c:39: /usr/include/openssl/md5.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^~~~~~~~ AR libcheck.a make[4]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/check' Making all in etc make[4]: Entering directory '/root/dpvs/tools/keepalived/keepalived/etc' Making all in init make[5]: Entering directory '/root/dpvs/tools/keepalived/keepalived/etc/init' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/etc/init' Making all in init.d make[5]: Entering directory '/root/dpvs/tools/keepalived/keepalived/etc/init.d' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/etc/init.d' make[5]: Entering directory '/root/dpvs/tools/keepalived/keepalived/etc' make[5]: Nothing to be done for 'all-am'. make[5]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/etc' make[4]: Leaving directory '/root/dpvs/tools/keepalived/keepalived/etc' make[4]: Entering directory '/root/dpvs/tools/keepalived/keepalived' CC main.o EDIT keepalived.service CCLD keepalived make[4]: Leaving directory '/root/dpvs/tools/keepalived/keepalived' make[3]: Leaving directory '/root/dpvs/tools/keepalived/keepalived' Making all in doc make[3]: Entering directory '/root/dpvs/tools/keepalived/doc' Making all in man/man8 make[4]: Entering directory '/root/dpvs/tools/keepalived/doc/man/man8' EDIT keepalived.8 make[4]: Leaving directory '/root/dpvs/tools/keepalived/doc/man/man8' make[4]: Entering directory '/root/dpvs/tools/keepalived/doc' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '/root/dpvs/tools/keepalived/doc' make[3]: Leaving directory '/root/dpvs/tools/keepalived/doc' Making all in genhash make[3]: Entering directory '/root/dpvs/tools/keepalived/genhash' CC main.o CC sock.o CC layer4.o CC http.o CC ssl.o http.c:81:17: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 81 | (hash_init_f) MD5_Init, | ^ In file included from include/hash.h:28, from include/sock.h:30, from include/http.h:32, from http.c:33: /usr/include/openssl/md5.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^~~~~~~~ http.c:82:17: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 82 | (hash_update_f) MD5_Update, | ^ In file included from include/hash.h:28, from include/sock.h:30, from include/http.h:32, from http.c:33: /usr/include/openssl/md5.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); | ^~~~~~~~~~ http.c:83:17: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 83 | (hash_final_f) MD5_Final, | ^ In file included from include/hash.h:28, from include/sock.h:30, from include/http.h:32, from http.c:33: /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^~~~~~~~~ CCLD genhash make[3]: Leaving directory '/root/dpvs/tools/keepalived/genhash' Making all in bin_install make[3]: Entering directory '/root/dpvs/tools/keepalived/bin_install' make[3]: Leaving directory '/root/dpvs/tools/keepalived/bin_install' make[3]: Entering directory '/root/dpvs/tools/keepalived' EDIT README make[3]: Leaving directory '/root/dpvs/tools/keepalived' make[2]: Leaving directory '/root/dpvs/tools/keepalived' make[2]: Entering directory '/root/dpvs/tools/ipvsadm' gcc -Wall -Wunused -Wstrict-prototypes -g -I ../../include -DVERSION="1.27" -DSCHEDULERS=""rr|wrr|wlc|conhash|mh|fo"" -DPE_LIST=""sip"" -DHAVE_POPT -DHAVE_NET_IP_VS_H -c -o ipvsadm.o ipvsadm.c gcc -Wall -Wunused -Wstrict-prototypes -g -I ../../include -DVERSION="1.27" -DSCHEDULERS=""rr|wrr|wlc|conhash|mh|fo"" -DPE_LIST=""sip"" -DHAVE_POPT -DHAVE_NET_IP_VS_H -c -o config_stream.o config_stream.c gcc -Wall -Wunused -Wstrict-prototypes -g -I ../../include -DVERSION="1.27" -DSCHEDULERS=""rr|wrr|wlc|conhash|mh|fo"" -DPE_LIST=""sip"" -DHAVE_POPT -DHAVE_NET_IP_VS_H -c -o dynamic_array.o dynamic_array.c ipvsadm.c: In function ‘list_conn’: ipvsadm.c:1871:30: warning: taking address of packed member of ‘struct ip_vs_conn_array’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1871 | print_conn_entry(&conn_array->array[i], format); | ^~~~~~~~~~~~~~~~~~~~~ ipvsadm.c: In function ‘list_conn_sockpair’: ipvsadm.c:1901:22: warning: taking address of packed member of ‘struct ip_vs_conn_array’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1901 | print_conn_entry(&conn_array->array[0], format); | ^~~~~~~~~~~~~~~~~~~~~ ipvsadm.c: In function ‘__list_blklst’: ipvsadm.c:2499:39: warning: taking address of packed member of ‘struct dp_vs_blklst_conf_array’ may result in an unaligned pointer value [-Waddress-of-packed-member] 2499 | if (inet_addr_equal(af, addr, (const union inet_addr *) &cfarr->blklsts[i].vaddr) && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipvsadm.c:2501:39: warning: taking address of packed member of ‘struct dp_vs_blklst_conf_array’ may result in an unaligned pointer value [-Waddress-of-packed-member] 2501 | print_service_and_blklsts(&cfarr->blklsts[i]); | ^~~~~~~~~~~~~~~~~~ ipvsadm.c: In function ‘__list_whtlst’: ipvsadm.c:2611:38: warning: taking address of packed member of ‘struct dp_vs_whtlst_conf_array’ may result in an unaligned pointer value [-Waddress-of-packed-member] 2611 | if (inet_addr_equal(af, addr,(const union inet_addr *) &cfarr->whtlsts[i].vaddr) && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipvsadm.c:2613:39: warning: taking address of packed member of ‘struct dp_vs_whtlst_conf_array’ may result in an unaligned pointer value [-Waddress-of-packed-member] 2613 | print_service_and_whtlsts(&cfarr->whtlsts[i]); | ^~~~~~~~~~~~~~~~~~ ipvsadm.c: In function ‘print_service_and_blklsts’: ipvsadm.c:2472:50: warning: ‘%s’ directive output may be truncated writing up to 7 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 2472 | snprintf(vip_port, sizeof(vip_port), "%s:%s", vip, vport); | ^~ ~~~~~ ipvsadm.c:2472:9: note: ‘snprintf’ output between 2 and 72 bytes into a destination of size 64 2472 | snprintf(vip_port, sizeof(vip_port), "%s:%s", vip, vport); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipvsadm.c:2470:50: warning: ‘]:’ directive output may be truncated writing 2 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 2470 | snprintf(vip_port, sizeof(vip_port), "[%s]:%s", vip, vport); | ^~ ipvsadm.c:2470:9: note: ‘snprintf’ output between 4 and 74 bytes into a destination of size 64 2470 | snprintf(vip_port, sizeof(vip_port), "[%s]:%s", vip, vport); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipvsadm.c: In function ‘print_service_and_whtlsts’: ipvsadm.c:2596:50: warning: ‘%s’ directive output may be truncated writing up to 7 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 2596 | snprintf(vip_port, sizeof(vip_port), "%s:%s", vip, vport); | ^~ ~~~~~ ipvsadm.c:2596:9: note: ‘snprintf’ output between 2 and 72 bytes into a destination of size 64 2596 | snprintf(vip_port, sizeof(vip_port), "%s:%s", vip, vport); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipvsadm.c:2594:50: warning: ‘]:’ directive output may be truncated writing 2 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 2594 | snprintf(vip_port, sizeof(vip_port), "[%s]:%s", vip, vport); | ^~ ipvsadm.c:2594:9: note: ‘snprintf’ output between 4 and 74 bytes into a destination of size 64 2594 | snprintf(vip_port, sizeof(vip_port), "[%s]:%s", vip, vport); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Wall -Wunused -Wstrict-prototypes -g -I ../../include -o ipvsadm ipvsadm.o config_stream.o dynamic_array.o ../keepalived/keepalived/check/libcheck.a ../../src/common.o -lpopt -lnuma make[2]: Leaving directory '/root/dpvs/tools/ipvsadm' make[2]: Entering directory '/root/dpvs/tools/dpip' cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o ipset.o ipset.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o dpip.o dpip.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o utils.o utils.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o route.o route.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o addr.o addr.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o neigh.o neigh.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o link.o link.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o vlan.o vlan.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o maddr.o maddr.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o qsch.o qsch.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o cls.o cls.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o tunnel.o tunnel.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o ipv6.o ipv6.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o iftraf.o iftraf.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o eal_mem.o eal_mem.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o flow.o flow.c cc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -c -o lldp.o lldp.c mkdir -p ./build/ gcc -g -O0 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-address-of-packed-member -I ../../include -I ../keepalived/keepalived/include -D DPVS_MAX_LCORE=64 -D DPIP_VERSION="1.9-8" -o build/dpip ipset.o dpip.o utils.o route.o addr.o neigh.o link.o vlan.o maddr.o qsch.o cls.o tunnel.o ipv6.o iftraf.o eal_mem.o flow.o lldp.o ../../src/common.o ../keepalived/keepalived/check/sockopt.o -lnuma make[2]: Leaving directory '/root/dpvs/tools/dpip' make[1]: Leaving directory '/root/dpvs/tools' [root@xx-dpvs-18-4-3 dpvs]#

CZILYYZ avatar Feb 11 '25 16:02 CZILYYZ

https://github.com/iqiyi/dpvs/pull/1048

pubyun avatar Jun 16 '25 14:06 pubyun