-   Linux - Software (
-   -   Problems building pacemaker from source (

eantoranz 10-09-2012 02:49 PM

Problems building pacemaker from source

I'm trying to give heartbeat/pacemaker a test drive on a VM with ubuntu server 10.04. I've already tested them using packages but now I'd like to give a try to pacemaker's GUI and I think I need a newer version of heartbeat/pacemaker to achieve it so I decided to build them from source.

I've already built/installed cluster-glue, heartbeat, resource-agents now I'm on pacemaker. During configure I disabled corosync:


CFLAGS="-L/usr/local/ha/lib -I/usr/local/ha/include" ./configure --prefix=/usr/local/ha --without-corosync enable_fatal_warnings=no
But now I'm building and I see that something from corosync is missing:


make[1]: Entering directory `/home/cps/ha/pacemaker/ClusterLabs-pacemaker-2dfaeb0/cib'
  CC    io.o
  CC    messages.o
  CC    notify.o
  CC    callbacks.o
  CC    main.o
  CC    remote.o
  CC    common.o
  CCLD  cib
io.o: In function `cib_rename':
/home/cps/ha/pacemaker/ClusterLabs-pacemaker-2dfaeb0/cib/io.c:227: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
../lib/cluster/.libs/ undefined reference to `corosync_node_name'
collect2: ld returned 1 exit status
make[1]: *** [cib] Error 1
make[1]: Leaving directory `/home/cps/ha/pacemaker/ClusterLabs-pacemaker-2dfaeb0/cib'
make: *** [core] Error 1

what can I do to solve this? Thanks in advance.

knudfl 10-10-2012 03:43 AM

Pacemaker, Ubuntu 10.04 example ..
> pacemaker_1.1.7.orig.tar.gz ( That's the Ubuntu 12.10 Quantal version.)
cd ClusterLabs-pacemaker-b5b0a7b/ && ./
./configure --disable-fatal-warnings --enable-snmp-subagent --enable-glib-malloc --with-esmtp --with-snmp --with-ais --with-heartbeat --with-cman
make : No errors

Prerequisites, summary
sudo apt-get build-dep resource-agents cluster-glue heartbeat pacemaker
apt-get -b source cluster-glue=1.0.9+hg2665-1ubuntu1
apt-get -b source resource-agents=1:3.9.2-5ubuntu6
apt-get -b source heartbeat=1:3.0.5-3ubuntu3
Remark : cluster-glue, resource-agents, heartbeat are Quantal versions.
( All created .deb packages were installed.)

Where did you get your version ? ( ClusterLabs-pacemaker-2dfaeb0 ).

P.S. : You can also do : sudo apt-get install pacemaker


All times are GMT -5. The time now is 09:07 PM.