Hi,

I'm trying to get the old heartbeat port in the OpenBSD ports tree 
replaced/upgrdaed with pacemaker. I have downloaded 
http://hg.clusterlabs.org/pacemaker/1.2/archive/Pacemaker-1.1.0.tar.bz2
Is this actually the last version, besides development branch? I'm a bit a noob 
with regard to mercurial ;)
Before I tried above version, I had accidently used 1.0.X version, which did 
compile without problem.

Otherwise, I've installed corosync-1.4.2, heartbeat-3.0.5, cluster-glue-1.0.8, 
resource-agents-1.0.8. The compiler used is: 
gcc version 4.2.1 20070719

Making all in fencing
gmake[1]: Entering directory 
`/home/ports/pobj/pacemaker-1.1.0/Pacemaker-1-2-Pacemaker-1.1.0/lib/fencing'
if /bin/sh ../../libtool --tag=CC  --tag=CC --mode=compile cc -std=gnu99 
-DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include  
-I../../include -I../../libltdl  -I../../libltdl -I../..          -I../..  
-I/usr/local/include -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 
-I/usr/local/include -I../../include  -I../../include -I../../libltdl  
-I../../libltdl -I../..          -I../.. -UCURSES_ENABLED 
-I/usr/local/include/heartbeat -I/usr/local/include -ggdb3 -O0  -fgnu89-inline 
-fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual 
-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 -ansi -D_GNU_SOURCE 
-DANSI_ONLY -MT st_client.lo -MD -MP -MF ".deps/st_client.Tpo" -c -o 
 st_client.lo st_client.c; \
then mv -f ".deps/st_client.Tpo" ".deps/st_client.Plo"; else rm -f 
".deps/st_client.Tpo"; exit 1; fi
libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../include 
-I../../include -I../../include -I../../include -I../../libltdl -I../../libltdl 
-I../.. -I../.. -I/usr/local/include -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 
-I/usr/local/include -I../../include -I../../include -I../../libltdl 
-I../../libltdl -I../.. -I../.. -UCURSES_ENABLED -I/usr/local/include/heartbeat 
-I/usr/local/include -ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall 
-Waggregate-return -Wbad-function-cast -Wcast-qual -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 -ansi -D_GNU_SOURCE 
-DANSI_ONLY -MT st_client.lo -MD -MP -MF .deps/st_client.Tpo -c st_client.c  
-fPIC -DPIC -o .libs/st_client.o
In file included from st_client.c:33:
../../include/crm/stonith-ng.h:170: error: expected identifier or '(' before 
'&' token
../../include/crm/stonith-ng.h:171: error: expected ';' before 'int'
st_client.c: In function 'run_stonith_agent':
st_client.c:344: error: 'async_command_t' has no member named 'pt_ops'
st_client.c:358: error: expected identifier before '(' token
gmake[1]: *** [st_client.lo] Error 1
gmake[1]: Leaving directory 
`/home/ports/pobj/pacemaker-1.1.0/Pacemaker-1-2-Pacemaker-1.1.0/lib/fencing'
gmake: *** [all-recursive] Error 1

but in the stonith-ng.h file at line 170/171 I see:
...
typedef struct async_command_s
{

        int id;              <-- Line 170
        int stdout;
        int options;
...

I'm not sure what's going on here. any idea?

Sebastian

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to