[CentOS] uuid problem while compiling glue

Tang Jianwei myhnet at gmail.com
Sat Aug 14 04:22:25 EDT 2010


well,  the problem you found can be resolve like this:

edit lib/stonith/main.c by comment of the contents about the version();

Tang Jianwei


On 08/14/2010 01:41 PM, JohnS wrote:
> 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
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>    


More information about the CentOS mailing list