[Pacemaker] Heartbeat GUI Client Compiling

Ruiyuan Jiang Ruiyuan_Jiang at liz.com
Wed Jan 20 17:33:40 EST 2010


Hi, all

I downloaded the v1.4 GUI source code, 4d3288030a84. 
I compiled it with the option:

# ./bootstrap --with-heartbeat-support
# make

The bootstrap step passed no problem. It failed at make:

...
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../libltdl -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/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/local/include/heartbeat -I/usr/local/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_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo -c mgmt_lib.c  -fPIC -DPIC -o .libs/libhbmgmt_la-mgmt_lib.o
mgmt_lib.c:40:34: error: clplumbing/cl_malloc.h: No such file or directory
In file included from /usr/local/include/pacemaker/crm/common/util.h:32,
                 from mgmt_lib.c:51:
/usr/local/include/heartbeat/heartbeat.h:144:1: error: "HADEBUGVAL" redefined
In file included from mgmt_lib.c:49:
mgmt_internal.h:30:1: error: this is the location of the previous definition
In file included from mgmt_lib.c:51:
/usr/local/include/pacemaker/crm/common/util.h:156: error: expected ')' before '*' token
/usr/local/include/pacemaker/crm/common/util.h:157: error: expected ')' before '*' token
/usr/local/include/pacemaker/crm/common/util.h:254: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/pacemaker/crm/common/util.h:255: error: expected declaration specifiers or '...' before 'xmlNode'
mgmt_lib.c: In function 'init_mgmt_lib':
mgmt_lib.c:75: error: 'cl_free' undeclared (first use in this function)
mgmt_lib.c:75: error: (Each undeclared identifier is reported only once
mgmt_lib.c:75: error: for each function it appears in.)
mgmt_lib.c:79: error: 'cl_malloc' undeclared (first use in this function)
mgmt_lib.c:79: error: 'cl_realloc' undeclared (first use in this function)
cc1: warnings being treated as errors
mgmt_lib.c: In function 'reg_msg':
mgmt_lib.c:131: warning: implicit declaration of function 'cl_strdup'
mgmt_lib.c:131: warning: passing argument 2 of 'g_hash_table_insert' makes pointer from integer without a cast
mgmt_lib.c: In function 'reg_event':
mgmt_lib.c:175: warning: passing argument 2 of 'g_hash_table_replace' makes pointer from integer without a cast
gmake[2]: *** [libhbmgmt_la-mgmt_lib.lo] Error 1
gmake[2]: Leaving directory `/home/rc6/Pacemaker-Python-GUI-4d3288030a84/mgmt/daemon'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/rc6/Pacemaker-Python-GUI-4d3288030a84/mgmt'
make: *** [all-recursive] Error 1

Am I missing something here? I also tried with option: --enable-fatal-warnings=no but no help. Thanks in advance.

Ryan



This message (including any attachments) is intended
solely for the specific individual(s) or entity(ies) named
above, and may contain legally privileged and
confidential information. If you are not the intended 
recipient, please notify the sender immediately by 
replying to this message and then delete it.
Any disclosure, copying, or distribution of this message,
or the taking of any action based on it, by other than the
intended recipient, is strictly prohibited.





More information about the Pacemaker mailing list