[Pacemaker] Pacemaker strange compilation errors

Hunny Bunny tmphb at yahoo.com
Wed Dec 16 19:29:57 EST 2009


Hello folkz,
After Andrew's suggestion to set proper CFLAGS I've recompiled all the cluster environment again. Everything went quite OK, except Pacemaker.
Could somebody please look into this brief summary of my efforts and may be point me to the issue I'm missing or unaware. 
Many thanks in advance,
Alex 

Cluster applications installation order

1. DRBD - OK
2. Corosync - OK
3. OpenAIS - OK
4. Reusable_Cluster_Components - OK
5. Cluster_Resource_Agents - OK with some some concerns. 
6. Pacemaker - compilation fails, please see very last snippet.

Common Pacemaker configuration file

<---------- snipped ---------->

#!/bin/bash

PREFIX=/usr/local/cluster
CLUSTER_USER=cluster
CLUSTER_GROUP=cluster

CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
CXXFLAGS=$CFLAGS

export PREFIX CLUSTER_USER CLUSTER_GROUP CFLAGS CXXFLAGS

../autogen.sh && ./configure \
--prefix=$PREFIX \
--sbindir=$PREFIX/sbin \
--bindir=$PREFIX/bin \
--libdir=$PREFIX/lib \
--libexecdir=$PREFIX/libexec \
--includedir=$PREFIX/include \
--sysconfdir=/etc \
--datarootdir=$PREFIX/share \
--datadir=$PREFIX/share \
--datarootdir=$PREFIX/share \
--mandir=$PREFIX/man \
--docdir=$PREFIX/doc/pacemaker \
--infodir=$PREFIX/info \
--localstatedir=$PREFIX/var \
--with-initdir=/etc/init.d \
--with-ais \
--with-ais-prefix=$PREFIX \
--with-lcrso-dir=$PREFIX/libexec/lcrso \
--with-snmp \
--with-esmtp \
--without-heartbeat \
--enable-thread-safe \
--disable-fatal-warnings

<---------- snipped ---------->

Resource agents configure output
Question: Is it normal that it could not determine AIS Pligins as shown below?

<---------- snipped ---------->

resource-agents configuration:
  Version                  = 1.0.2 (Build: bef27757cc4773e52cea2972ab9f1b67ed7c5c31)
  Features                 =

  Prefix                   = /usr/local/cluster
  Executables              = /usr/local/cluster/sbin
  Man pages                = /usr/local/cluster/man
  Libraries                = /usr/local/cluster/lib
  Header files             = /usr/local/cluster/include
  Arch-independent files   = /usr/local/cluster/share
  State information        = /usr/local/cluster/var
  System configuration     = /etc
  AIS Plugins              =

<---------- snipped ---------->

Pacemaker configure output
Seems to be OK, it even determined correct AIS Pligins as shown below

<---------- snipped ---------->

pacemaker configuration:
  Version                  = 1.0.6 (Build: 3c975c817c1278264c9e914c10cbe6824665cc4a)
  Features                 = ncurses corosync snmp libesmtp

  Prefix                   = /usr/local/cluster
  Executables              = /usr/local/cluster/sbin
  Man pages                = /usr/local/cluster/man
  Libraries                = /usr/local/cluster/lib
  Header files             = /usr/local/cluster/include
  Arch-independent files   = /usr/local/cluster/share
  State information        = /usr/local/cluster/var
  System configuration     = /etc
  AIS Plugins              = /usr/local/cluster/libexec/lcrso

  Use system LTDL          = yes

  HA group name            = cluster
  HA user name             = cluster

<---------- snipped ---------->

However, Pacemaker compilation fails starting with these error as shown below.

Pacemaker make output

<---------- snipped ---------->

Making all in ais
gmake[2]: Entering directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib/ais'
/bin/sh ../../libtool --tag=CC   --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -pthread -I/usr/include/glib-
In file included from utils.c:35:
.../../include/crm/ais.h:33:35: error: corosync/corodefs.h: No such file or directory
.../../include/crm/ais.h:34:35: error: corosync/coroipcc.h: No such file or directory
.../../include/crm/ais.h:35:40: error: corosync/coroipc_types.h: No such file or directory
In file included from utils.c:35:
.../../include/crm/ais.h:203: error: expected specifier-qualifier-list before ‘coroipc_response_head
.../../include/crm/ais.h:219: error: expected specifier-qualifier-list before ‘coroipc_response_head
.../../include/crm/ais.h:228: error: expected specifier-qualifier-list before ‘coroipc_response_head
.../../include/crm/ais.h: In function ‘ais_msg_copy’:
.../../include/crm/ais.h:323: error: ‘AIS_Message’ has no member named ‘is_compressed’
.../../include/crm/ais.h:323: error: ‘AIS_Message’ has no member named ‘compressed_size’
.../../include/crm/ais.h:323: error: ‘AIS_Message’ has no member named ‘size’
.../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘data’
.../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘data’
.../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘is_compressed’
.../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘compressed_size’
.../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘size’
.../../include/crm/ais.h: In function ‘ais_error2text’:
.../../include/crm/ais.h:336: error: ‘CS_OK’ undeclared (first use in this function)
.../../include/crm/ais.h:336: error: (Each undeclared identifier is reported only once
.../../include/crm/ais.h:336: error: for each function it appears in.)
.../../include/crm/ais.h:339: error: ‘CS_ERR_LIBRARY’ undeclared (first use in this function)
.../../include/crm/ais.h:342: error: ‘CS_ERR_VERSION’ undeclared (first use in this function)
.../../include/crm/ais.h:345: error: ‘CS_ERR_INIT’ undeclared (first use in this function)
.../../include/crm/ais.h:348: error: ‘CS_ERR_TIMEOUT’ undeclared (first use in this function)
.../../include/crm/ais.h:351: error: ‘CS_ERR_TRY_AGAIN’ undeclared (first use in this function)
.../../include/crm/ais.h:354: error: ‘CS_ERR_INVALID_PARAM’ undeclared (first use in this function)
.../../include/crm/ais.h:357: error: ‘CS_ERR_NO_MEMORY’ undeclared (first use in this function)
.../../include/crm/ais.h:360: error: ‘CS_ERR_BAD_HANDLE’ undeclared (first use in this function)
.../../include/crm/ais.h:363: error: ‘CS_ERR_BUSY’ undeclared (first use in this function)
.../../include/crm/ais.h:366: error: ‘CS_ERR_ACCESS’ undeclared (first use in this function)
.../../include/crm/ais.h:369: error: ‘CS_ERR_NOT_EXIST’ undeclared (first use in this function)
.../../include/crm/ais.h:372: error: ‘CS_ERR_NAME_TOO_LONG’ undeclared (first use in this function)
.../../include/crm/ais.h:375: error: ‘CS_ERR_EXIST’ undeclared (first use in this function)
.../../include/crm/ais.h:378: error: ‘CS_ERR_NO_SPACE’ undeclared (first use in this function)
.../../include/crm/ais.h:381: error: ‘CS_ERR_INTERRUPT’ undeclared (first use in this function)
.../../include/crm/ais.h:384: error: ‘CS_ERR_NAME_NOT_FOUND’ undeclared (first use in this function)
.../../include/crm/ais.h:387: error: ‘CS_ERR_NO_RESOURCES’ undeclared (first use in this function)
.../../include/crm/ais.h:390: error: ‘CS_ERR_NOT_SUPPORTED’ undeclared (first use in this function)
.../../include/crm/ais.h:393: error: ‘CS_ERR_BAD_OPERATION’ undeclared (first use in this function)
.../../include/crm/ais.h:396: error: ‘CS_ERR_FAILED_OPERATION’ undeclared (first use in this functio
.../../include/crm/ais.h:399: error: ‘CS_ERR_MESSAGE_ERROR’ undeclared (first use in this function)
.../../include/crm/ais.h:402: error: ‘CS_ERR_QUEUE_FULL’ undeclared (first use in this function)
.../../include/crm/ais.h:405: error: ‘CS_ERR_QUEUE_NOT_AVAILABLE’ undeclared (first use in this func
.../../include/crm/ais.h:408: error: ‘CS_ERR_BAD_FLAGS’ undeclared (first use in this function)
.../../include/crm/ais.h:411: error: ‘CS_ERR_TOO_BIG’ undeclared (first use in this function)
.../../include/crm/ais.h:414: error: ‘CS_ERR_NO_SECTIONS’ undeclared (first use in this function)
In file included from utils.c:36:
../utils.h:53:29: error: corosync/swab.h: No such file or directory
../utils.h:54:28: error: corosync/hdb.h: No such file or directory
../utils.h:56:37: error: corosync/engine/objdb.h: No such file or directory
../utils.h:57:39: error: corosync/engine/coroapi.h: No such file or directory
../utils.h:58:38: error: corosync/engine/logsys.h: No such file or directory
../utils.h:60:37: error: corosync/lcr/lcr_comp.h: No such file or directory
In file included from utils.c:36:
../utils.h: At top level:
../utils.h:61: error: expected declaration specifiers or ‘...’ before string constant
../utils.h:61: warning: data definition has no type or storage class
../utils.h:61: warning: type defaults to ‘int’ in declaration of ‘LOGSYS_DECLARE_SUBSYS’
../utils.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_init’
../utils.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_next’
../utils.h:110: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’
../utils.h:110: warning: ‘struct corosync_api_v1’ declared inside parameter list
../utils.h:110: warning: its scope is only this definition or declaration, which is probably not wha
../utils.h:112: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’
../utils.h:113: warning: ‘struct corosync_api_v1’ declared inside parameter list
utils.c: In function ‘log_ais_message’:
utils.c:44: warning: implicit declaration of function ‘log_printf’
utils.c:46: error: ‘AIS_Message’ has no member named ‘id’
utils.c:46: error: ‘AIS_Message’ has no member named ‘host’
utils.c:46: error: ‘AIS_Message’ has no member named ‘host’
utils.c:47: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:47: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:48: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:49: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:50: error: ‘AIS_Message’ has no member named ‘is_compressed’
utils.c:50: error: ‘AIS_Message’ has no member named ‘compressed_size’
utils.c:50: error: ‘AIS_Message’ has no member named ‘size’
utils.c: In function ‘swap_sender’:
utils.c:367: error: ‘AIS_Message’ has no member named ‘host’
utils.c:368: error: ‘AIS_Message’ has no member named ‘host’
utils.c:368: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:369: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:371: error: ‘AIS_Message’ has no member named ‘host’
utils.c:372: error: ‘AIS_Message’ has no member named ‘host’
utils.c:372: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:373: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:375: error: ‘AIS_Message’ has no member named ‘host’
utils.c:376: error: ‘AIS_Message’ has no member named ‘host’
utils.c:376: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:377: error: ‘AIS_Message’ has no member named ‘sender’
utils.c: In function ‘get_ais_data’:
utils.c:384: error: ‘AIS_Message’ has no member named ‘size’
utils.c:386: error: ‘AIS_Message’ has no member named ‘is_compressed’
utils.c:387: error: ‘AIS_Message’ has no member named ‘data’
utils.c:393: error: ‘AIS_Message’ has no member named ‘data’
utils.c:393: error: ‘AIS_Message’ has no member named ‘compressed_size’
utils.c:395: error: ‘AIS_Message’ has no member named ‘size’
utils.c:395: error: ‘AIS_Message’ has no member named ‘size’
utils.c:398: error: ‘AIS_Message’ has no member named ‘size’
utils.c: In function ‘send_cluster_msg’:
utils.c:420: error: ‘AIS_Message’ has no member named ‘header’
utils.c:421: error: ‘AIS_Message’ has no member named ‘header’
utils.c:421: error: ‘AIS_Message’ has no member named ‘header’
utils.c:421: error: ‘CS_OK’ undeclared (first use in this function)
utils.c:422: error: ‘AIS_Message’ has no member named ‘header’
utils.c:424: error: ‘AIS_Message’ has no member named ‘size’
utils.c:425: error: ‘AIS_Message’ has no member named ‘data’
utils.c:426: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:428: error: ‘AIS_Message’ has no member named ‘host’
utils.c:429: error: ‘AIS_Message’ has no member named ‘host’
utils.c:431: error: ‘AIS_Message’ has no member named ‘host’
utils.c:432: error: ‘AIS_Message’ has no member named ‘host’
utils.c:433: error: ‘AIS_Message’ has no member named ‘host’
utils.c:433: error: ‘AIS_Message’ has no member named ‘host’
utils.c:437: error: ‘AIS_Message’ has no member named ‘host’
utils.c:438: error: ‘AIS_Message’ has no member named ‘host’
utils.c:439: error: ‘AIS_Message’ has no member named ‘host’
utils.c: In function ‘send_client_ipc’:
utils.c:468: error: dereferencing pointer to incomplete type
utils.c:468: error: ‘AIS_Message’ has no member named ‘header’
utils.c: In function ‘send_client_msg’:
utils.c:495: error: ‘AIS_Message’ has no member named ‘id’
utils.c:496: error: ‘AIS_Message’ has no member named ‘header’
utils.c:497: error: ‘AIS_Message’ has no member named ‘header’
utils.c:498: error: ‘AIS_Message’ has no member named ‘header’
utils.c:498: error: ‘CS_OK’ undeclared (first use in this function)
utils.c:500: error: ‘AIS_Message’ has no member named ‘size’
utils.c:501: error: ‘AIS_Message’ has no member named ‘data’
utils.c:503: error: ‘AIS_Message’ has no member named ‘host’
utils.c:504: error: ‘AIS_Message’ has no member named ‘host’
utils.c:505: error: ‘AIS_Message’ has no member named ‘host’
utils.c:506: error: ‘AIS_Message’ has no member named ‘host’
utils.c:508: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:509: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:510: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:511: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:511: error: ‘AIS_Message’ has no member named ‘sender’
utils.c:512: error: ‘AIS_Message’ has no member named ‘sender’
utils.c: At top level:
utils.c:541: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_init’
utils.c:555: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_next’
utils.c:577: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’
utils.c:577: error: conflicting types for ‘config_find_done’
../utils.h:110: note: previous declaration of ‘config_find_done’ was here
utils.c: In function ‘config_find_done’:
utils.c:580: error: dereferencing pointer to incomplete type
utils.c:580: error: ‘local_handle’ undeclared (first use in this function)
utils.c: At top level:
utils.c:586: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’
utils.c:584: error: conflicting types for ‘get_config_opt’
../utils.h:111: note: previous declaration of ‘get_config_opt’ was here
utils.c: In function ‘get_config_opt’:
utils.c:592: error: ‘object_service_handle’ undeclared (first use in this function)
utils.c:593: error: dereferencing pointer to incomplete type
gmake[2]: *** [utils.lo] Error 1
gmake[2]: Leaving directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib/ais'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib'
gmake[1]: Leaving directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib'
make: *** [all-recursive] Error 1

<---------- snipped ---------->

Could somebody please enlighten me about these issues?
Did I screw something up in either Corosync or OpenAIS installation?




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091216/809cd442/attachment.html>


More information about the Pacemaker mailing list