IPv6addr.c:106:31: error: clplumbing/cl_log.h: No such file or directory
cc1: warnings being treated as errors
IPv6addr.c: In function ‘main’:
IPv6addr.c:207: error: implicit declaration of function ‘cl_log_set_entity’
IPv6addr.c:207: error: nested extern declaration of ‘cl_log_set_entity’
IPv6addr.c:208: error: implicit declaration of function ‘cl_log_set_facility’
IPv6addr.c:208: error: nested extern declaration of ‘cl_log_set_facility’
IPv6addr.c:219: error: implicit declaration of function ‘cl_log’
IPv6addr.c:219: error: nested extern declaration of ‘cl_log’
IPv6addr.c: In function ‘scan_if’:
IPv6addr.c:543: error: ‘gboolean’ undeclared (first use in this function)
IPv6addr.c:543: error: (Each undeclared identifier is reported only once
IPv6addr.c:543: error: for each function it appears in.)
IPv6addr.c:543: error: expected ‘;’ before ‘same’
IPv6addr.c:601: error: ‘same’ undeclared (first use in this function)
IPv6addr.c:601: error: ‘TRUE’ undeclared (first use in this function)
IPv6addr.c:605: error: ‘FALSE’ undeclared (first use in this function)
IPv6addr.c: In function ‘write_pid_file’:
IPv6addr.c:884: error: ‘ULONG_MAX’ undeclared (first use in this function)
gmake[2]: *** [IPv6addr.o] Error 1
gmake[2]: Leaving directory `/root/ha/ClusterLabs-resource-agents-b735277/heartbeat'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/ha/ClusterLabs-resource-agents-b735277'
make: *** [all] Error 2
解决办法:
还有一种情况就是上面这种解决办法也没法解决,其实可以回过头来仔细看错误信息
“IPv6addr.c:106:31: error: clplumbing/cl_log.h: No such file or directory”
你通过“find / -name "cl_log.h"”
可以得知此文件在你的Reusable-Cluster-Components-glue--glue-1.0.9文件夹里面,从这里也就可以得知是你没有指定或者没有mkdir一个Heartbeat安装文件夹(/usr/local/ha)。
../heartbeat/IPv6addr: error while loading shared libraries: libplumb.so.2: cannot open shared object file: No such file or directory
gmake[1]: *** [metadata-IPv6addr.xml] Error 127
rm metadata-LVM.xml metadata-mysql-proxy.xml metadata-nfsserver.xml metadata-Pure-FTPd.xml metadata-fio.xml metadata-sfex.xml metadata-SAPDatabase.xml metadata-exportfs.xml metadata-ManageRAID.xml metadata-ids.xml metadata-oracle.xml metadata-rsyncd.xml metadata-CTDB.xml metadata-iSCSILogicalUnit.xml metadata-nginx.xml metadata-Xen.xml metadata-SAPInstance.xml metadata-tomcat.xml metadata-IPv6addr.xml metadata-pgsql.xml metadata-Xinetd.xml metadata-Route.xml metadata-ICP.xml metadata-pingd.xml metadata-MailTo.xml metadata-SysInfo.xml metadata-Squid.xml metadata-IPaddr.xml metadata-Delay.xml metadata-SendArp.xml metadata-VirtualDomain.xml metadata-postfix.xml metadata-jboss.xml metadata-db2.xml metadata-AoEtarget.xml metadata-Stateful.xml metadata-Dummy.xml metadata-scsi2reservation.xml metadata-ServeRAID.xml metadata-Evmsd.xml metadata-eDir88.xml metadata-VIPArip.xml metadata-IPsrcaddr.xml metadata-syslog-ng.xml metadata-WinPopup.xml metadata-ClusterMon.xml metadata-Filesystem.xml metadata-SphinxSearchDaemon.xml metadata-WAS6.xml metadata-iscsi.xml metadata-apache.xml metadata-AudibleAlarm.xml metadata-conntrackd.xml metadata-proftpd.xml metadata-portblock.xml metadata-LinuxSCSI.xml metadata-vmware.xml metadata-EvmsSCC.xml metadata-IPaddr2.xml metadata-oralsnr.xml metadata-mysql.xml metadata-Raid1.xml metadata-WAS.xml metadata-drbd.xml metadata-ManageVE.xml metadata-iSCSITarget.xml metadata-anything.xml
gmake[1]: Leaving directory `/prog/heartbeat/agents/doc'
make: *** [all-recursive] Error 1
解决办法:这个是由于缺乏libplumb.so.2引起的,到网上libplumb.so.2下载包含这个文件的rpm即可,在本次方案中用的是libheartbeat2-2.99.2-6.1.i386.rpm