[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. C# 之 HttpWebResponse类

    提供 WebResponse 类的 HTTP 特定的实现.       继承层次结构 ,"System.Object→System.MarshalByRefObject→System.Net ...

  2. c# checked unchecked 关键字

    checked 和 unchecked关键字用来限定检查或者不检查数学运算溢出的:如果使用了checked发生数学运算溢出时会抛出OverflowException:如果使用了unchecked则不会 ...

  3. 给label绘制下划线

    UIlabel本身没有下划线的属性,使用绘制的方法,添加下滑下,并且赋给该label一个action作为响应方法,实现DIY超链接的效果. //调用 #import "UnderLineLa ...

  4. 【Mood-5】14条建议,使你的IT职业生涯更上一层楼

    升值为企业IT部门的领导者,并非一件易事.从一般大众中脱颖而出,则更不容易. 2013是一个好年头,据专家报告显示,6月所有新工作中,10%来自技术领域.这对于那些希望高升.换岗.跳槽的IT技术人员来 ...

  5. No saved view state could be found for the view identifier

    解决方法: javax.faces.application.ViewExpiredException:No saved view state could be found for the view i ...

  6. 典型的字符串处理代码(page50)

    Page50: public class TypicalString{//典型的字符串处理代码 public static boolean isPlalindrom(String s){//判断字符串 ...

  7. Umbraco(1) - Document Types(翻译文档)

    Document Types Data first nothing in = nothing out! 任何网站的第一步是创建一个"Document Type"-几次安装后你会熟悉 ...

  8. 给定数组a[N]构造数组b[N]

    转自:http://blog.csdn.net/wumuzi520/article/details/7841280 给定一个数组a[N],我们希望构造数组b [N], 其中b[j]=a[0]*a[1] ...

  9. 51nod-1686 第K大区间(二分+尺取法)

    题目链接: 第K大区间 基准时间限制:1 秒 空间限制:131072 KB    定义一个区间的值为其众数出现的次数.现给出n个数,求将所有区间的值排序后,第K大的值为多少. Input 第一行两个数 ...

  10. JQuery事件与应用(一)

    来源:http://www.imooc.com/learn/11     jQuery基础课程 一.使用bind()方法绑定元素的事件 功能: 在ready()事件中绑定一个按钮的单击事件,使用bin ...