2010年06月9日
2414 ワード
最近Linux-HA(heartbeat)3.03を整理して自分でソースコードをコンパイルして、間違いが発生しました:
ネット上ではlibuuid-develパッケージが少なくなったと言っていますが、最後にe 2 fsprogs-develパッケージであることがわかりました.
Cent OS 5.4(64Bit)
glue-1.0.5
configure's result:
cluster-glue configuration:
Version = 1.0.5 (Build: 3af80b93d9e5d5e441f3f4c3aad16775ea27d2d9)
Features =
Prefix = /usr
Executables = /usr/sbin
Man pages = /usr/man
Libraries = /usr/lib64
Header files = /usr/include
Arch-independent files = /usr/share
Documentation = /usr/share/doc
State information = /usr/var
System configuration = /usr/etc
Use system LTDL = no
HA group name = haclient
HA user name = hacluster
CFLAGS = -g -O2 -ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror
Libraries = -lbz2 -lxml2 -lc -lrt -ldl -L/lib64 -lglib-2.0
Stack Libraries =
run make, errors as follow:
./.libs/libplumb.so: undefined reference to `uuid_parse'
./.libs/libplumb.so: undefined reference to `uuid_generate'
./.libs/libplumb.so: undefined reference to `uuid_copy'
./.libs/libplumb.so: undefined reference to `uuid_is_null'
./.libs/libplumb.so: undefined reference to `uuid_unparse'
./.libs/libplumb.so: undefined reference to `uuid_clear'
./.libs/libplumb.so: undefined reference to `uuid_compare'
collect2: ld returned 1 exit status
gmake[2]: *** [ipctest] Error 1
gmake[2]: Leaving directory `/usr/local/src/Reusable-Cluster-Components-glue-1.0.5/lib/clplumbing'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/Reusable-Cluster-Components-glue-1.0.5/lib'
make: *** [all-recursive] Error 1
ネット上ではlibuuid-develパッケージが少なくなったと言っていますが、最後にe 2 fsprogs-develパッケージであることがわかりました.