[Pacemaker] PM 1.1.5- make errors

Andrew Beekhof andrew at beekhof.net
Fri Oct 21 01:12:31 UTC 2011


Looks like do_ha_control() is calling corosync specific functions when
only support for heartbeat is being built.
They'd just need to be #ifdef'd out.

On Thu, Oct 20, 2011 at 9:54 PM, Nikita Michalko
<michalko.system at a-i-p.com> wrote:
> Hi all,
>
> the next problem I need help ;-(
> PM Version: 1.1.5 (Pacemaker-1-1-c86cb93c5a57.tar.bz2)
> - configured with:
> configure --prefix=$PREFIX --localstatedir=/var --sysconfdir=/etc --with-
> heartbeat --with-stonith --with-pacemaker --with-daemon-user=$CLUSTER_USER --
> with-daemon-group=$CLUSTER_GROUP  --enable-fatal-warnings=no --with-ras-
> set=linux-ha
>
> After "make" I get the following error:
> ...
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -
> I../libltdl   -I../libltdl  -I/usr/include/glib-2.0 -
> I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2  -g -O2 -I/usr/include -
> I/usr/include/heartbeat -ggdb3 -O0  -fgnu89-inline -fstack-protector-all -Wall -
> Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement
> -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -
> Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-
> long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -
> MT te_callbacks.o -MD -MP -MF .deps/te_callbacks.Tpo -c -o te_callbacks.o
> te_callbacks.c
> mv -f .deps/te_callbacks.Tpo .deps/te_callbacks.Po
> /bin/sh ../libtool --tag=CC  --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -
> I/usr/include -I/usr/include/heartbeat -ggdb3 -O0  -fgnu89-inline -fstack-
> protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -
> Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-
> security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-
> declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-
> arith -Wstrict-prototypes -Wwrite-strings   -o crmd main.o crmd.o corosync.o
> fsa.o control.o messages.o ccm.o callbacks.o election.o join_client.o join_dc.o
> subsystems.o cib.o pengine.o tengine.o lrm.o utils.o misc.o te_events.o
> te_actions.o te_utils.o te_callbacks.o -lhbclient -lccmclient -llrm
> ../lib/fencing/libstonithd.la ../lib/transition/libtransitioner.la
> ../lib/pengine/libpe_rules.la ../lib/cib/libcib.la
> ../lib/common/libcrmcluster.la ../lib/common/libcrmcommon.la -lplumb -lpils -
> lbz2 -lxslt -lxml2 -lc -lglib-2.0 -luuid -lrt -ldl  -lglib-2.0   -lltdl
> libtool: link: gcc -std=gnu99 -g -O2 -I/usr/include -I/usr/include/heartbeat -
> ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-
> function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-
> equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-
> prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-
> aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -o .libs/crmd
> main.o crmd.o corosync.o fsa.o control.o messages.o ccm.o callbacks.o election.o
> join_client.o join_dc.o subsystems.o cib.o pengine.o tengine.o lrm.o utils.o
> misc.o te_events.o te_actions.o te_utils.o te_callbacks.o  /usr/lib64/liblrm.so
> ../lib/fencing/.libs/libstonithd.so -L/usr/lib64 -L/lib64
> /usr/lib64/libstonith.so ../lib/transition/.libs/libtransitioner.so
> ../lib/pengine/.libs/libpe_rules.so ../lib/cib/.libs/libcib.so
> /opt/HA/sourc/Pacemaker-1-1-c86cb93c5a57/lib/pengine/.libs/libpe_rules.so
> ../lib/common/.libs/libcrmcluster.so /usr/lib64/libhbclient.so
> /usr/lib64/libccmclient.so /opt/HA/sourc/Pacemaker-1-1-
> c86cb93c5a57/lib/common/.libs/libcrmcommon.so
> ../lib/common/.libs/libcrmcommon.so -lgnutls -lgcrypt -lgpg-error
> /usr/lib64/libplumb.so /usr/lib64/libpils.so -lbz2 /usr/lib64/libxslt.so
> /usr/lib64/libxml2.so -lz -lm -lc -luuid -lrt -lglib-2.0 /usr/lib64/libltdl.so -
> ldl
> control.o: In function `do_ha_control':
> /opt/HA/sourc/Pacemaker-1-1-c86cb93c5a57/crmd/control.c:69: undefined reference
> to `terminate_ais_connection'
> collect2: ld returned 1 exit status
> gmake[1]: *** [crmd] Fehler 1
> gmake[1]: Leaving directory `/opt/HA/sourc/Pacemaker-1-1-c86cb93c5a57/crmd'
> make: *** [all-recursive] Fehler 1
>
> What is wrong with it?
>
>
> Nikita Michalko
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list