make 编译错误如下:
libipvs.c: In function ?.pvs_get_dests?.
libipvs.c:809: error: ?.LM_F_DUMP?.undeclared (first use in this function)
libipvs.c:813: warning: assignment makes pointer from integer without a cast
libipvs.c:829: error: too many arguments to function ?.pvs_nl_send_message?
libipvs.c: In function ?.pvs_get_service?.
libipvs.c:939: error: too many arguments to function ?.pvs_nl_send_message?
libipvs.c: In function ?.pvs_timeout_parse_cb?.
libipvs.c:972: warning: initialization makes pointer from integer without a cast
libipvs.c:986: error: ?.L_OK?.undeclared (first use in this function)
libipvs.c: In function ?.pvs_get_timeout?.
libipvs.c:1005: error: too many arguments to function ?.pvs_nl_send_message?
libipvs.c: In function ?.pvs_daemon_parse_cb?.
libipvs.c:1023: warning: initialization makes pointer from integer without a cast
libipvs.c:1048: warning: passing argument 2 of ?.trncpy?.makes pointer from integer without a cast
/usr/include/string.h:131: note: expected ?.onst char * __restrict__?.but argument is of type ?.nt?
libipvs.c:1051: error: ?.L_OK?.undeclared (first use in this function)
libipvs.c: In function ?.pvs_get_daemon?.
libipvs.c:1071: error: ?.LM_F_DUMP?.undeclared (first use in this function)
libipvs.c:1072: error: too many arguments to function ?.pvs_nl_send_message?
make[1]: *** [libipvs.o] Error 1
make[1]: Leaving directory `/usr/local/src/ipvsadm-1.26/libipvs'
make: *** [libs] Error 2
[root@centos1 ipvsadm-1.26]# yum install libn|* libpopt*
-bash: config_stream.c: command not found
Error: Nothing to do
解决方法1:yum install libnl* libpopt*
2.yum install popt-static
问题解决