[Pacemaker] Build Pacemaker-Python-GUI-0f1490eaa8d8

Yan Gao ygao at novell.com
Mon May 24 07:18:18 EDT 2010


On 05/21/10 16:43, Roberto Giordani wrote:
> Hello Andrew,
> another steps forward...but I receive a new error :-(
> 
> mv -f .deps/libhbmgmt_la-mgmt_lib.Tpo .deps/libhbmgmt_la-mgmt_lib.Plo
> /bin/sh ../../libtool --tag=CC   --tag=CC   --mode=compile gcc
> -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include 
> -I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
> -I../../linux-ha -I../..          -I../..  -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include   -I/usr/include/libxml2
> -I../../include  -I../../include -I../../libltdl  -I../../libltdl
> -I../../linux-ha -I../../linux-ha -I../..          -I../.. -g -O2
> -I/usr/include/heartbeat -I/usr/include/pacemaker   -fgnu89-inline 
> -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_crm.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_crm.Tpo -c
> -o libhbmgmt_la-mgmt_crm.lo `test -f 'mgmt_crm.c' || echo './'`mgmt_crm.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../include -I../../libltdl -I../../libltdl
> -I../../linux-ha -I../../linux-ha -I../.. -I../..
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -I/usr/include/libxml2 -I../../include -I../../include -I../../libltdl
> -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -g -O2
> -I/usr/include/heartbeat -I/usr/include/pacemaker -fgnu89-inline -Wall
> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_crm.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_crm.Tpo -c
> mgmt_crm.c  -fPIC -DPIC -o .libs/libhbmgmt_la-mgmt_crm.o
> cc1: warnings being treated as errors
> mgmt_crm.c: In function ‘on_cleanup_rsc’:
> mgmt_crm.c:1307: error: passing argument 9 of ‘delete_attr’ makes
> integer from pointer without a cast
> /usr/include/pacemaker/crm/cib_util.h:65: note: expected ‘gboolean’ but
> argument is of type ‘void *’
> mgmt_crm.c:1307: error: too many arguments to function ‘delete_attr’
> mgmt_crm.c:1316: error: passing argument 9 of ‘update_attr’ makes
> integer from pointer without a cast
> /usr/include/pacemaker/crm/cib_util.h:51: note: expected ‘gboolean’ but
> argument is of type ‘char *’
> mgmt_crm.c:1316: error: too many arguments to function ‘update_attr’
> gmake[2]: *** [libhbmgmt_la-mgmt_crm.lo] Error 1
> gmake[2]: Leaving directory
> `/usr/src/clusterlabd_dep/Pacemaker-Python-GUI-0f1490eaa8d8/mgmt/daemon'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/src/clusterlabd_dep/Pacemaker-Python-GUI-0f1490eaa8d8/mgmt'
> make: *** [all-recursive] Error 1
> 
> Could you please help me?
Pasting from another mail:

pacemaker 1.1 and devel branches have some changes related to function
prototypes, pacemaker-mgmt did the corresponding changes.

If you are using pacemaker 1.0 series, you could either retrieve
pacemaker-mgmt-2.0.0 from:
http://hg.clusterlabs.org/pacemaker/pygui/archive/pacemaker-mgmt-2.0.0.tar.bz2
Or if you want to adopt the tip of the repo, you need to revert the change:
http://hg.clusterlabs.org/pacemaker/pygui/rev/4dc8cb63f29b


Regards,
  Yan
-- 
Yan Gao <ygao at novell.com>
Software Engineer
China Server Team, OPS Engineering, Novell, Inc.




More information about the Pacemaker mailing list