[root@localhost ipvsadm-1.26]# make
make -C libipvs
make[1]: Entering directory `/usr/local/soft/ipvsadm-1.26/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c
在包含自 libipvs.h:13 的文件中,
从 libipvs.c:23:
ip_vs.h:15:29: 错误:netlink/netlink.h:没有那个文件或目录
ip_vs.h:16:31: 错误:netlink/genl/genl.h:没有那个文件或目录
ip_vs.h:17:31: 错误:netlink/genl/ctrl.h:没有那个文件或目录
In file included from libipvs.h:13,
from libipvs.c:23:
ip_vs.h:520: 错误:数组元素的类型不完全
ip_vs.h:521: 错误:数组元素的类型不完全
ip_vs.h:522: 错误:数组元素的类型不完全
ip_vs.h:523: 错误:数组元素的类型不完全
ip_vs.h:524: 错误:数组元素的类型不完全
ip_vs.h:525: 错误:数组元素的类型不完全
libipvs.c: 在函数‘ipvs_nl_message’中:
libipvs.c:57: 警告:隐式声明函数‘nlmsg_alloc’
libipvs.c:57: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:61: 警告:隐式声明函数‘genlmsg_put’
libipvs.c:61: 错误:‘NL_AUTO_PID’未声明(在此函数内第一次使用)
libipvs.c:61: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
libipvs.c:61: 错误:所在的函数内也只报告一次。)
libipvs.c:61: 错误:‘NL_AUTO_SEQ’未声明(在此函数内第一次使用)
libipvs.c: 在函数‘ipvs_nl_noop_cb’中:
libipvs.c:69: 错误:‘NL_OK’未声明(在此函数内第一次使用)
libipvs.c: 在文件层:
libipvs.c:72: 错误:expected declaration specifiers or ‘...’ before ‘nl_recvmsg_msg_cb_t’
libipvs.c: 在函数‘ipvs_nl_send_message’中:
libipvs.c:76: 警告:隐式声明函数‘nl_handle_alloc’
libipvs.c:76: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:78: 警告:隐式声明函数‘nlmsg_free’
libipvs.c:82: 警告:隐式声明函数‘genl_connect’
libipvs.c:85: 警告:隐式声明函数‘genl_ctrl_resolve’
libipvs.c:91: 警告:隐式声明函数‘nl_handle_destroy’
libipvs.c:96: 警告:隐式声明函数‘nl_socket_modify_cb’
libipvs.c:96: 错误:‘NL_CB_VALID’未声明(在此函数内第一次使用)
libipvs.c:96: 错误:‘NL_CB_CUSTOM’未声明(在此函数内第一次使用)
libipvs.c:96: 错误:‘func’未声明(在此函数内第一次使用)
libipvs.c:99: 警告:隐式声明函数‘nl_send_auto_complete’
libipvs.c:102: 警告:隐式声明函数‘nl_recvmsgs_default’
libipvs.c: 在函数‘ipvs_init’中:
libipvs.c:127: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_getinfo_parse_cb’中:
libipvs.c:149: 警告:隐式声明函数‘nlmsg_hdr’
libipvs.c:149: 警告:初始化时将整数赋给指针,未作类型转换
libipvs.c:152: 警告:隐式声明函数‘genlmsg_parse’
libipvs.c:159: 警告:隐式声明函数‘nla_get_u32’
libipvs.c:162: 错误:‘NL_OK’未声明(在此函数内第一次使用)
libipvs.c: 在函数‘ipvs_getinfo’中:
libipvs.c:176: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_flush’中:
libipvs.c:199: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_nl_fill_service_attr’中:
libipvs.c:215: 警告:隐式声明函数‘nla_nest_start’
libipvs.c:215: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:219: 警告:隐式声明函数‘NLA_PUT_U16’
libipvs.c:222: 警告:隐式声明函数‘NLA_PUT_U32’
libipvs.c:225: 警告:隐式声明函数‘NLA_PUT’
libipvs.c:229: 警告:隐式声明函数‘NLA_PUT_STRING’
libipvs.c:236: 警告:隐式声明函数‘nla_nest_end’
libipvs.c:239: 警告:标号‘nla_put_failure’定义后未使用
libipvs.c: 在函数‘ipvs_add_service’中:
libipvs.c:255: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_update_service’中:
libipvs.c:276: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_del_service’中:
libipvs.c:296: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_zero_service’中:
libipvs.c:321: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_nl_fill_dest_attr’中:
libipvs.c:334: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:348: 警告:标号‘nla_put_failure’定义后未使用
libipvs.c: 在函数‘ipvs_add_dest’中:
libipvs.c:366: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_update_dest’中:
libipvs.c:396: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_del_dest’中:
libipvs.c:425: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_set_timeout’中:
libipvs.c:452: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c:454: 警告:标号‘nla_put_failure’定义后未使用
libipvs.c: 在函数‘ipvs_start_daemon’中:
libipvs.c:473: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:483: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_stop_daemon’中:
libipvs.c:504: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:514: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在文件层:
libipvs.c:526: 警告:‘struct nlattr’在形参表内部声明
libipvs.c: 在函数‘ipvs_parse_stats’中:
libipvs.c:530: 警告:隐式声明函数‘nla_parse_nested’
libipvs.c:548: 警告:隐式声明函数‘nla_get_u64’
libipvs.c: 在函数‘ipvs_services_parse_cb’中:
libipvs.c:562: 警告:初始化时将整数赋给指针,未作类型转换
libipvs.c:592: 警告:隐式声明函数‘nla_get_u16’
libipvs.c:598: 警告:隐式声明函数‘nla_data’
libipvs.c:599: 警告:传递‘memcpy’的第 2 个参数时将整数赋给指针,未作类型转换
/usr/include/string.h:44: 附注:需要类型‘const void * __restrict__’,但实参的类型为‘int’
libipvs.c:604: 警告:隐式声明函数‘nla_get_string’
libipvs.c:605: 警告:传递‘strncpy’的第 2 个参数时将整数赋给指针,未作类型转换
/usr/include/string.h:131: 附注:需要类型‘const char * __restrict__’,但实参的类型为‘int’
libipvs.c:610: 警告:传递‘strncpy’的第 2 个参数时将整数赋给指针,未作类型转换
/usr/include/string.h:131: 附注:需要类型‘const char * __restrict__’,但实参的类型为‘int’
libipvs.c:614: 警告:隐式声明函数‘nla_memcpy’
libipvs.c:618: 警告:传递‘ipvs_parse_stats’的第 2 个参数时在不兼容的指针类型间转换
libipvs.c:526: 附注:需要类型‘struct nlattr *’,但实参的类型为‘struct nlattr *’
libipvs.c: 在函数‘ipvs_get_services’中:
libipvs.c:649: 错误:‘NLM_F_DUMP’未声明(在此函数内第一次使用)
libipvs.c:650: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_dests_parse_cb’中:
libipvs.c:728: 警告:初始化时将整数赋给指针,未作类型转换
libipvs.c:759: 警告:传递‘memcpy’的第 2 个参数时将整数赋给指针,未作类型转换
/usr/include/string.h:44: 附注:需要类型‘const void * __restrict__’,但实参的类型为‘int’
libipvs.c:771: 警告:传递‘ipvs_parse_stats’的第 2 个参数时在不兼容的指针类型间转换
libipvs.c:526: 附注:需要类型‘struct nlattr *’,但实参的类型为‘struct nlattr *’
libipvs.c: 在函数‘ipvs_get_dests’中:
libipvs.c:809: 错误:‘NLM_F_DUMP’未声明(在此函数内第一次使用)
libipvs.c:813: 警告:赋值时将整数赋给指针,未作类型转换
libipvs.c:829: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_get_service’中:
libipvs.c:939: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_timeout_parse_cb’中:
libipvs.c:972: 警告:初始化时将整数赋给指针,未作类型转换
libipvs.c:986: 错误:‘NL_OK’未声明(在此函数内第一次使用)
libipvs.c: 在函数‘ipvs_get_timeout’中:
libipvs.c:1005: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
libipvs.c: 在函数‘ipvs_daemon_parse_cb’中:
libipvs.c:1023: 警告:初始化时将整数赋给指针,未作类型转换
libipvs.c:1048: 警告:传递‘strncpy’的第 2 个参数时将整数赋给指针,未作类型转换
/usr/include/string.h:131: 附注:需要类型‘const char * __restrict__’,但实参的类型为‘int’
libipvs.c:1051: 错误:‘NL_OK’未声明(在此函数内第一次使用)
libipvs.c: 在函数‘ipvs_get_daemon’中:
libipvs.c:1071: 错误:‘NLM_F_DUMP’未声明(在此函数内第一次使用)
libipvs.c:1072: 错误:提供给函数‘ipvs_nl_send_message’的实参太多
make[1]: *** [libipvs.o] 错误 1
make[1]: Leaving directory `/usr/local/soft/ipvsadm-1.26/libipvs'
make: *** [libs] 错误 2

经网上多方查询安装libnl-devel和popt后就不报错了,
yum install -y libnl* popt*

安装ipvsadm时出现下面所示错误,MARK的更多相关文章

  1. 联想lenovo 家用电脑安装win7 无法引导问题(新电脑安装系统时提示File:\Boot\BCD错误解决方案)

    安装方式 : 1.进入 PE 2.用 EasyimageX 恢复 GHO镜像 3.重启后出现  原因: 主要 是安装win7 时,格式 化选择为GUID模式. 处理: win7 以后,格式华时选择MB ...

  2. 安装sqlserver2012时出现的丧心病狂的错误

    Service Pack 安装程序 ------------------------------ 出现以下错误: 安装程序集“Microsoft.VC80.ATL,version="8.0. ...

  3. Ubuntu安装软件时提示依赖项配置错误

    在终端中使用dpkg安装软件时有时会出现依赖项配置错误的情况, 解决方法是使用指令 sudo apt-get install -f 安装Ubuntu 16.04新系统不再配有的缺失依赖项,之后再次输入 ...

  4. iOS:在使用Cocoapods安装shareSDK时出现的link路径错误

    CocoaPods 错误 target overrides the `OTHER_LDFLAGS`... Xcode 升级到 6.0 后,更新 CocoaPods,出现了如下的警告 [!] The ` ...

  5. Linux pip 安装模块时,一直黄字错误:Could not find a version that satisfies the requirement

    参考原文:https://blog.csdn.net/u012592062/article/details/51966649 这时我们用国内的镜像源来加速 pip install 包名-i http: ...

  6. Windows下安装Eric5时出现的“Sorry, please install QtHelp.”问题解决办法

    解决Windows下安装Eric5时出现的“Sorry, please install QtHelp.”问题   PyQt4在Windows中使用了DirectX作为加速,不过,PyQt4没有使用最新 ...

  7. 运行Virtualbox去安装系统时出错:Failed to open a session for the virtual machine,Unable to load R3 module xxxx/VBoxDD.DLL(VBoxDD)

    貌似看到不少人(1,2,3),在使用Virtualbox去安装系统时,都遇到这个错误: 比如这里遇到的: 截图: 和另外这里的截图: 加文字描述: Failed to open a session f ...

  8. 安装 Xshell 5/6 时出现.dll以及0xc000007错误的解决

    安装 Xshell 5/6 时出现.dll以及0xc000007错误的解决 问题:缺少 mfc110.dll或者是其他.dll文件以及应用程序运行错误,如下所示. 方法: 一种是网上直接下载.(缺少. ...

  9. 安装LoadRunner11时,缺少vc2005_sp1_with_atl_fix_redist错误的解决方案

    安装LoadRunner11时,会报缺少vc2005_sp1_with_atl_fix_redist错误,类似下图所示: 由提示信息可知,这里是由于本机缺少该组件所致,解决方案就是安装此组件,可以去网 ...

随机推荐

  1. Big String 块状数组(或者说平方分割)

    Big String 给一个字符串,长度不超过 106,有两种操作: 1. 在第 i 个字符的前面添加一个字符 ch 2. 查询第 k 个位置是什么字符 操作的总数不超过 2000 如果直接模拟的话, ...

  2. PHP面向对象(二)--构造函数与析构函数

    一.构造方法: 构造方法又称为构造函数,是对象被创建时自动调用的方法,用来完成类初始化的工作. 1.构造方法和其他函数一样,可以传递参数,可以设定参数默认值. 2.构造方法可以调用属性,也可以调用方法 ...

  3. 【开源项目11】组件间通信利器EventBus

    概述及基本概念 **EventBus**是一个Android端优化的publish/subscribe消息总线,简化了应用程序内各组件间.组件与后台线程间 的通信.比如请求网络,等网络返回时通过Han ...

  4. centos下查看rpm包安装位置

    1.如何安装rpm软件包 rpm -ivh your-package.rpm其中your-package.rpm是你要安装的rpm包的文件名,一般置于当前目录下. 2.如何卸载rpm软件包使用命令 r ...

  5. centos(linux) 下如何查看端口占用情况及杀死进程

    使用这个命令:netstat -nap [root@Jaosn sphinx]# netstat -nap Active Internet connections (servers and estab ...

  6. amoeba实现MySQL读写分离

    amoeba实现MySQL读写分离 准备环境:主机A和主机B作主从配置,IP地址为192.168.131.129和192.168.131.130,主机C作为中间件,也就是作为代理服务器,IP地址为19 ...

  7. React Native技术知识总结(不定期补充)

    1.JSON https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/JSON JSON.pa ...

  8. 24 MUST HAVE ESSENTIAL LINUX APPLICATIONS IN 2016

    Brief: Whare the must have applications for Linux? The answer is subjective and it depends on for wh ...

  9. EL表达式运算符

    语法:${运算表达式},EL表达式支持如下运算符 1.empty运算符:检查对象是否为null或“空”. 2.二元表达式:${user!=null?user.name : “”} . 3.[ ] 和 ...

  10. HTML的FORM的元素

    form是是HTML的一个重要元素. form的常用控件有 单行文本框<input type="text" value="text" name=" ...