编译heartbeat出现的问题
2015-08-27 08:48
357 查看
如报
cc1: warnings being treated as errors
pils.c:245: error: initialization fromincompatible pointer type
pils.c:246: error: initialization fromincompatible pointer type
gmake[2]: *** [pils.lo] 错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/lib/pils'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/lib/pils里的makefile中的所有-Werror删除
如报
cc1: warnings being treated as errors
client_lib.c:1850: error: 'display_orderQ'defined but not used
gmake[2]: *** [client_lib.lo]错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/lib/hbclient'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/lib/hbclient里的makefile中的所有-Werror删除
如报
cc1: warnings being treated as errors
stonith_signal.h:34: error:'stonith_signal_set_simple_handler' defined but not used
gmake[4]: *** [apcmaster.lo]错误 1
gmake[4]: Leaving directory`/root/heartbeat-2.0.7/lib/plugins/stonith'
gmake[3]: *** [all-recursive]错误 1
gmake[3]: Leaving directory`/root/heartbeat-2.0.7/lib/plugins/stonith'
gmake[2]: *** [all-recursive]错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/lib/plugins'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/lib/plugins/stonith里的makefile中的所有-Werror删除
如报
cc1: warnings being treated as errors
conf_lex.c:1195: 错误:‘input’定义后未使用
gmake[2]: *** [recoverymgrd-conf_lex.o]错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/telecom/recoverymgrd'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory `/root/heartbeat-2.0.7/telecom'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/telecom/recoverymgrd里的makefile中的所有-Werror删除
如报
chown hacluster/var/lib/heartbeat/cores/hacluster
chown: 无效的用户:"hacluster"
gmake[2]: [install-exec-local]错误 1 (忽略)
chmod 700/var/lib/heartbeat/cores/hacluster
gmake[2]: Nothing to be done for`install-data-am'.
gmake[2]: Leaving directory`/root/heartbeat-2.0.7'
gmake[1]: Leaving directory`/root/heartbeat-2.0.7'
则证明没添加用户及组,按照上面的添加用户及组后再编译安装。
结束后出现
chown hacluster /var/lib/heartbeat/cores/hacluster
chmod 700/var/lib/heartbeat/cores/hacluster
gmake[2]: Nothing to be done for`install-data-am'.
gmake[2]: Leaving directory`/root/heartbeat-2.0.7'
gmake[1]: Leaving directory`/root/heartbeat-2.0.7'
则证明安装成功
编译resource-agents报错
ln -s ../../lib/heartbeat/ocf-binaries /usr/lib/ocf/resource.d/heartbeat/.ocf-binaries
ln: creating symbolic link `/usr/lib/ocf/resource.d/heartbeat/.ocf-binaries': File exists
gmake[3]: *** [install-exec-local] Error 1
gmake[3]: Leaving directory `/usr/local/src/resource-agents-3.9.6'
gmake[2]: *** [install-am] Error 2
gmake[2]: Leaving directory `/usr/local/src/resource-agents-3.9.6'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/resource-agents-3.9.6'
make: *** [install] Error 2
解决删除编译的安装包
rm -rf resource-agents-3.9.6/ resource-agents-3.9.6/ Heartbeat-3-0-958e11be8686
删除和安装有关的目录
[root@master src]# find / -name heartbeat 找出来并删除
删除 lib64目录下损坏的链接
重新安装所有,编译时 make clean 一般都可以
cc1: warnings being treated as errors
pils.c:245: error: initialization fromincompatible pointer type
pils.c:246: error: initialization fromincompatible pointer type
gmake[2]: *** [pils.lo] 错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/lib/pils'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/lib/pils里的makefile中的所有-Werror删除
如报
cc1: warnings being treated as errors
client_lib.c:1850: error: 'display_orderQ'defined but not used
gmake[2]: *** [client_lib.lo]错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/lib/hbclient'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/lib/hbclient里的makefile中的所有-Werror删除
如报
cc1: warnings being treated as errors
stonith_signal.h:34: error:'stonith_signal_set_simple_handler' defined but not used
gmake[4]: *** [apcmaster.lo]错误 1
gmake[4]: Leaving directory`/root/heartbeat-2.0.7/lib/plugins/stonith'
gmake[3]: *** [all-recursive]错误 1
gmake[3]: Leaving directory`/root/heartbeat-2.0.7/lib/plugins/stonith'
gmake[2]: *** [all-recursive]错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/lib/plugins'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory`/root/heartbeat-2.0.7/lib'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/lib/plugins/stonith里的makefile中的所有-Werror删除
如报
cc1: warnings being treated as errors
conf_lex.c:1195: 错误:‘input’定义后未使用
gmake[2]: *** [recoverymgrd-conf_lex.o]错误 1
gmake[2]: Leaving directory`/root/heartbeat-2.0.7/telecom/recoverymgrd'
gmake[1]: *** [all-recursive]错误 1
gmake[1]: Leaving directory `/root/heartbeat-2.0.7/telecom'
make: *** [all-recursive] 错误 1
则将/root/heartbeat-2.0.7/telecom/recoverymgrd里的makefile中的所有-Werror删除
如报
chown hacluster/var/lib/heartbeat/cores/hacluster
chown: 无效的用户:"hacluster"
gmake[2]: [install-exec-local]错误 1 (忽略)
chmod 700/var/lib/heartbeat/cores/hacluster
gmake[2]: Nothing to be done for`install-data-am'.
gmake[2]: Leaving directory`/root/heartbeat-2.0.7'
gmake[1]: Leaving directory`/root/heartbeat-2.0.7'
则证明没添加用户及组,按照上面的添加用户及组后再编译安装。
结束后出现
chown hacluster /var/lib/heartbeat/cores/hacluster
chmod 700/var/lib/heartbeat/cores/hacluster
gmake[2]: Nothing to be done for`install-data-am'.
gmake[2]: Leaving directory`/root/heartbeat-2.0.7'
gmake[1]: Leaving directory`/root/heartbeat-2.0.7'
则证明安装成功
编译resource-agents报错
ln -s ../../lib/heartbeat/ocf-binaries /usr/lib/ocf/resource.d/heartbeat/.ocf-binaries
ln: creating symbolic link `/usr/lib/ocf/resource.d/heartbeat/.ocf-binaries': File exists
gmake[3]: *** [install-exec-local] Error 1
gmake[3]: Leaving directory `/usr/local/src/resource-agents-3.9.6'
gmake[2]: *** [install-am] Error 2
gmake[2]: Leaving directory `/usr/local/src/resource-agents-3.9.6'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/resource-agents-3.9.6'
make: *** [install] Error 2
解决删除编译的安装包
rm -rf resource-agents-3.9.6/ resource-agents-3.9.6/ Heartbeat-3-0-958e11be8686
删除和安装有关的目录
[root@master src]# find / -name heartbeat 找出来并删除
删除 lib64目录下损坏的链接
重新安装所有,编译时 make clean 一般都可以
相关文章推荐
- CentOS6.5_x64上简单编译配置Heartbeat3.0.4
- hdu 5072 Coprime 容斥原理
- IOS学习中的TableView的用法
- WXHL 学习总结(七)
- oc 点语法 / KVC /readwrite/readonly/
- 解决趋势OfficeScan11自动显示隐藏文件等问题
- 黑马程序员--类的声明和实现
- 1068. Find More Coins (30)搜索题
- Access restriction: The type BASE64Encoder is not accessible due to restrict on required library
- HDOJ 1162 Eddy's Picture (最小生成树)
- Java中方法重载时注意点
- HDU 5093 Battle ships(二分图匹配)
- 数组元素是 字符串 类型,并且包含 -等 特殊字符
- Win10正式上市整整一个月时间:最新全球安装量已超7500万
- ATS插件channel_stats源码分析解读
- 【Cactus仙人掌图】仙人掌基础知识学习笔记
- java中i++和++i与c里的区别
- myeclipse8.5破解文档
- 关于C++、PHP和Swoole
- Eclipse常用快捷键