Hi guys I got the errors like this while compiling cluster glue: ./.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 `/root/Reusable-Cluster-Components-glue-1.0.5/lib/clplumbing' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.5/lib' make: *** [all-recursive] Error 1 and here is the output when I run ./configure: configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands cluster-glue configuration: Version = 1.0.6 (Build: 1c87a0c58c59fc384b93ec11476cefdbb6ddc1e1) Features Prefix = /usr Executables = /usr/sbin Man pages = /usr/man Libraries = /usr/lib 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/lib -lglib-2.0 Stack Libraries I found that some one said that maybe I need libuuid-devel. but when I tried to install libuuid-2.17.2-4.el6.i686.rpm and libuuid-devel-2.17.2-4.el6.i686.rpm I still got this: # rpm -ihv libuuid-2.17.2-4.el6.i686.rpm libuuid-devel-2.17.2-4.el6.i686.rpm warning: libuuid-2.17.2-4.el6.i686.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID f21541eb error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by libuuid-2.17.2-4.el6.i686 rpmlib(PayloadIsXz) <= 5.2-1 is needed by libuuid-2.17.2-4.el6.i686 rpmlib(FileDigests) <= 4.6.0-1 is needed by libuuid-devel-2.17.2-4.el6.i686 rpmlib(PayloadIsXz) <= 5.2-1 is needed by libuuid-devel-2.17.2-4.el6.i686 what should I do to fix those problems? you will be very appreciated for any suggestion. thank you -- Tang Jianwei
On Sat, 2010-08-14 at 11:07 +0800, Tang Jianwei wrote:> what should I do to fix those problems?--- Try & try again & don't build it as root....& ask on the linux-ha LIST... Full CentOS/RH 5.5 + epel repo should build it. No EL6 packages are needed. But if you try to build the EL6 version one it will not. Build Requires get you glue-1.0.6.tar.bz from http://www.linux-ha.org/wiki/Download autogen.sh; configure; make cc1: warnings being treated as errors main.c:64: warning: function declaration isn't a prototype main.c:78: warning: function declaration isn't a prototype gmake[2]: *** [main.o] Error 1 gmake[2]: Leaving directory `/home/foo/rpmbuild/BUILD/cluster-glue/lib/stonith' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/foo/rpmbuild/BUILD/cluster-glue/lib' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.55884 (%build) ######## Now: %configure \ --enable-fatal-warnings=no \ # here is the key redhat disables this --with-daemon-group=%{gname} \ --with-daemon-user=%{uname} \ --localstatedir=%{_var} \ --libdir=%{_libdir} rpmbuild -ba cluster-glue.spec Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/cluster-glue-1.0.6-1.el5-x32679 Wrote: /home/foo/rpmbuild/SRPMS/cluster-glue-1.0.6-1.el5.src.rpm Wrote: /home/foo/rpmbuild/RPMS/i386/cluster-glue-1.0.6-1.el5.i386.rpm Wrote: /home/foo/rpmbuild/RPMS/i386/cluster-glue-debuginfo-1.0.6-1.el5.i386.rpm Wrote: /home/foo/rpmbuild/RPMS/i386/cluster-glue-libs-1.0.6-1.el5.i386.rpm Wrote: /home/foo/rpmbuild/RPMS/i386/cluster-glue-libs-devel-1.0.6-1.el5.i386.rpm ---------- Does it work? I do not know. I just thought I would kick it around since it interested me. John
On Sat, 2010-08-14 at 11:07 +0800, Tang Jianwei wrote: #######################> gmake[2]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.5/lib/clplumbing' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.5/lib' > make: *** [all-recursive] Error 1########################> Version = 1.0.6 (Build: 1c87a0c58c59fc384b93ec11476cefdbb6ddc1e1)######################## Any one notice anything strange about the above? :-) You are showing outputs from TWO different versions; 1.0.5 & 1.0.6..... John