<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello folkz,<br>After Andrew's suggestion to set proper CFLAGS I've recompiled all the cluster environment again. Everything went quite OK, except Pacemaker.<br>Could somebody please look into this brief summary of my efforts and may be point me to the issue I'm missing or unaware. <br>Many thanks in advance,<br>Alex <br><br>Cluster applications installation order<br><br>1. DRBD - OK<br>2. Corosync - OK<br>3. OpenAIS - OK<br>4. Reusable_Cluster_Components - OK<br>5. Cluster_Resource_Agents - OK with some some concerns. <br>6. Pacemaker - compilation fails, please see very last snippet.<br><br>Common Pacemaker configuration file<br><br><---------- snipped ----------><br><br>#!/bin/bash<br><br>PREFIX=/usr/local/cluster<br>CLUSTER_USER=cluster<br>CLUSTER_GROUP=cluster<br><br>CFLAGS="-I$PREFIX/include -L$PREFIX/lib"<br>CXXFLAGS=$CFLAGS<br><br>export PREFIX
 CLUSTER_USER CLUSTER_GROUP CFLAGS CXXFLAGS<br><br>./autogen.sh && ../configure \<br>--prefix=$PREFIX \<br>--sbindir=$PREFIX/sbin \<br>--bindir=$PREFIX/bin \<br>--libdir=$PREFIX/lib \<br>--libexecdir=$PREFIX/libexec \<br>--includedir=$PREFIX/include \<br>--sysconfdir=/etc \<br>--datarootdir=$PREFIX/share \<br>--datadir=$PREFIX/share \<br>--datarootdir=$PREFIX/share \<br>--mandir=$PREFIX/man \<br>--docdir=$PREFIX/doc/pacemaker \<br>--infodir=$PREFIX/info \<br>--localstatedir=$PREFIX/var \<br>--with-initdir=/etc/init.d \<br>--with-ais \<br>--with-ais-prefix=$PREFIX \<br>--with-lcrso-dir=$PREFIX/libexec/lcrso \<br>--with-snmp \<br>--with-esmtp \<br>--without-heartbeat \<br>--enable-thread-safe \<br>--disable-fatal-warnings<br><br><---------- snipped ----------><br><br>Resource agents configure output<br>Question: Is it normal that it could not determine AIS Pligins as shown below?<br><br><---------- snipped
 ----------><br><br>resource-agents configuration:<br>  Version                  = 1.0.2 (Build: bef27757cc4773e52cea2972ab9f1b67ed7c5c31)<br>  Features                 =<br><br>  Prefix                   = /usr/local/cluster<br>  Executables              = /usr/local/cluster/sbin<br>  Man pages                = /usr/local/cluster/man<br>  Libraries                = /usr/local/cluster/lib<br>  Header
 files             = /usr/local/cluster/include<br>  Arch-independent files   = /usr/local/cluster/share<br>  State information        = /usr/local/cluster/var<br>  System configuration     = /etc<br>  AIS Plugins              =<br><br><---------- snipped ----------><br><br>Pacemaker configure output<br>Seems to be OK, it even determined correct AIS Pligins as shown below<br><br><---------- snipped ----------><br><br>pacemaker configuration:<br>  Version                  = 1.0.6 (Build: 3c975c817c1278264c9e914c10cbe6824665cc4a)<br>  Features                 =
 ncurses corosync snmp libesmtp<br><br>  Prefix                   = /usr/local/cluster<br>  Executables              = /usr/local/cluster/sbin<br>  Man pages                = /usr/local/cluster/man<br>  Libraries                = /usr/local/cluster/lib<br>  Header files             = /usr/local/cluster/include<br>  Arch-independent files   = /usr/local/cluster/share<br>  State information        = /usr/local/cluster/var<br>  System configuration     = /etc<br>  AIS
 Plugins              = /usr/local/cluster/libexec/lcrso<br><br>  Use system LTDL          = yes<br><br>  HA group name            = cluster<br>  HA user name             = cluster<br><br><---------- snipped ----------><br><br>However, Pacemaker compilation fails starting with these error as shown below.<br><br>Pacemaker make output<br><br><---------- snipped ----------><br><br>Making all in ais<br>gmake[2]: Entering directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib/ais'<br>/bin/sh ../../libtool --tag=CC   --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../<br>libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -pthread
 -I/usr/include/glib-<br>In file included from utils.c:35:<br>../../include/crm/ais.h:33:35: error: corosync/corodefs.h: No such file or directory<br>.../../include/crm/ais.h:34:35: error: corosync/coroipcc.h: No such file or directory<br>../../include/crm/ais.h:35:40: error: corosync/coroipc_types.h: No such file or directory<br>In file included from utils.c:35:<br>../../include/crm/ais.h:203: error: expected specifier-qualifier-list before ‘coroipc_response_head<br>../../include/crm/ais.h:219: error: expected specifier-qualifier-list before ‘coroipc_response_head<br>../../include/crm/ais.h:228: error: expected specifier-qualifier-list before ‘coroipc_response_head<br>../../include/crm/ais.h: In function ‘ais_msg_copy’:<br>../../include/crm/ais.h:323: error: ‘AIS_Message’ has no member named ‘is_compressed’<br>../.../include/crm/ais.h:323: error: ‘AIS_Message’ has no member named ‘compressed_size’<br>../../include/crm/ais.h:323:
 error: ‘AIS_Message’ has no member named ‘size’<br>../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘data’<br>../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘data’<br>../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘is_compressed’<br>../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘compressed_size’<br>../../include/crm/ais.h:326: error: ‘AIS_Message’ has no member named ‘size’<br>../../include/crm/ais.h: In function ‘ais_error2text’:<br>../../include/crm/ais.h:336: error: ‘CS_OK’ undeclared (first use in this function)<br>../../include/crm/ais.h:336: error: (Each undeclared identifier is reported only once<br>../../include/crm/ais.h:336: error: for each function it appears in.)<br>../../include/crm/ais.h:339: error: ‘CS_ERR_LIBRARY’ undeclared (first use in this function)<br>../../include/crm/ais.h:342:
 error: ‘CS_ERR_VERSION’ undeclared (first use in this function)<br>../../include/crm/ais.h:345: error: ‘CS_ERR_INIT’ undeclared (first use in this function)<br>../../include/crm/ais.h:348: error: ‘CS_ERR_TIMEOUT’ undeclared (first use in this function)<br>../../include/crm/ais.h:351: error: ‘CS_ERR_TRY_AGAIN’ undeclared (first use in this function)<br>../../include/crm/ais.h:354: error: ‘CS_ERR_INVALID_PARAM’ undeclared (first use in this function)<br>../../include/crm/ais.h:357: error: ‘CS_ERR_NO_MEMORY’ undeclared (first use in this function)<br>../../include/crm/ais.h:360: error: ‘CS_ERR_BAD_HANDLE’ undeclared (first use in this function)<br>../../include/crm/ais.h:363: error: ‘CS_ERR_BUSY’ undeclared (first use in this function)<br>../../include/crm/ais.h:366: error: ‘CS_ERR_ACCESS’ undeclared (first use in this function)<br>../../include/crm/ais.h:369: error: ‘CS_ERR_NOT_EXIST’ undeclared (first use in this
 function)<br>../../include/crm/ais.h:372: error: ‘CS_ERR_NAME_TOO_LONG’ undeclared (first use in this function)<br>../../include/crm/ais.h:375: error: ‘CS_ERR_EXIST’ undeclared (first use in this function)<br>../../include/crm/ais.h:378: error: ‘CS_ERR_NO_SPACE’ undeclared (first use in this function)<br>../../include/crm/ais.h:381: error: ‘CS_ERR_INTERRUPT’ undeclared (first use in this function)<br>../../include/crm/ais.h:384: error: ‘CS_ERR_NAME_NOT_FOUND’ undeclared (first use in this function)<br>../../include/crm/ais.h:387: error: ‘CS_ERR_NO_RESOURCES’ undeclared (first use in this function)<br>../../include/crm/ais.h:390: error: ‘CS_ERR_NOT_SUPPORTED’ undeclared (first use in this function)<br>../../include/crm/ais.h:393: error: ‘CS_ERR_BAD_OPERATION’ undeclared (first use in this function)<br>../../include/crm/ais.h:396: error: ‘CS_ERR_FAILED_OPERATION’ undeclared (first use in this
 functio<br>../../include/crm/ais.h:399: error: ‘CS_ERR_MESSAGE_ERROR’ undeclared (first use in this function)<br>../../include/crm/ais.h:402: error: ‘CS_ERR_QUEUE_FULL’ undeclared (first use in this function)<br>../../include/crm/ais.h:405: error: ‘CS_ERR_QUEUE_NOT_AVAILABLE’ undeclared (first use in this func<br>../../include/crm/ais.h:408: error: ‘CS_ERR_BAD_FLAGS’ undeclared (first use in this function)<br>../../include/crm/ais.h:411: error: ‘CS_ERR_TOO_BIG’ undeclared (first use in this function)<br>../../include/crm/ais.h:414: error: ‘CS_ERR_NO_SECTIONS’ undeclared (first use in this function)<br>In file included from utils.c:36:<br>./utils..h:53:29: error: corosync/swab.h: No such file or directory<br>./utils.h:54:28: error: corosync/hdb.h: No such file or directory<br>./utils.h:56:37: error: corosync/engine/objdb.h: No such file or directory<br>./utils.h:57:39: error: corosync/engine/coroapi.h: No such file or
 directory<br>./utils.h:58:38: error: corosync/engine/logsys.h: No such file or directory<br>./utils.h:60:37: error: corosync/lcr/lcr_comp.h: No such file or directory<br>In file included from utils.c:36:<br>./utils.h: At top level:<br>./utils.h:61: error: expected declaration specifiers or ‘...’ before string constant<br>./utils.h:61: warning: data definition has no type or storage class<br>./utils.h:61: warning: type defaults to ‘int’ in declaration of ‘LOGSYS_DECLARE_SUBSYS’<br>./utils.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_init’<br>./utils.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_next’<br>./utils.h:110: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’<br>./utils.h:110: warning: ‘struct corosync_api_v1’ declared inside parameter list<br>./utils.h:110: warning: its scope is
 only this definition or declaration, which is probably not wha<br>./utils.h:112: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’<br>./utils.h:113: warning: ‘struct corosync_api_v1’ declared inside parameter list<br>utils.c: In function ‘log_ais_message’:<br>utils.c:44: warning: implicit declaration of function ‘log_printf’<br>utils.c:46: error: ‘AIS_Message’ has no member named ‘id’<br>utils.c:46: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:46: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:47: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:47: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:48: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:49: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:50: error: ‘AIS_Message’ has no member named ‘is_compressed’<br>utils.c:50:
 error: ‘AIS_Message’ has no member named ‘compressed_size’<br>utils.c:50: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c: In function ‘swap_sender’:<br>utils.c:367: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:368: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:368: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:369: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:371: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:372: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:372: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:373: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:375: error: ‘AIS_Message’ has no member named ‘host’<br>utils..c:376: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:376: error: ‘AIS_Message’ has no member
 named ‘sender’<br>utils.c:377: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c: In function ‘get_ais_data’:<br>utils.c:384: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c:386: error: ‘AIS_Message’ has no member named ‘is_compressed’<br>utils.c:387: error: ‘AIS_Message’ has no member named ‘data’<br>utils.c:393: error: ‘AIS_Message’ has no member named ‘data’<br>utils.c:393: error: ‘AIS_Message’ has no member named ‘compressed_size’<br>utils.c:395: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c:395: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c:398: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c: In function ‘send_cluster_msg’:<br>utils.c:420: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c:421: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c:421: error:
 ‘AIS_Message’ has no member named ‘header’<br>utils.c:421: error: ‘CS_OK’ undeclared (first use in this function)<br>utils.c:422: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c:424: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c:425: error: ‘AIS_Message’ has no member named ‘data’<br>utils.c:426: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:428: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:429: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:431: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:432: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:433: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:433: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:437: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:438: error: ‘AIS_Message’ has
 no member named ‘host’<br>utils.c:439: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c: In function ‘send_client_ipc’:<br>utils.c:468: error: dereferencing pointer to incomplete type<br>utils.c:468: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c: In function ‘send_client_msg’:<br>utils.c:495: error: ‘AIS_Message’ has no member named ‘id’<br>utils.c:496: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c:497: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c:498: error: ‘AIS_Message’ has no member named ‘header’<br>utils.c:498: error: ‘CS_OK’ undeclared (first use in this function)<br>utils.c:500: error: ‘AIS_Message’ has no member named ‘size’<br>utils.c:501: error: ‘AIS_Message’ has no member named ‘data’<br>utils.c:503: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:504: error: ‘AIS_Message’ has no
 member named ‘host’<br>utils.c:505: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:506: error: ‘AIS_Message’ has no member named ‘host’<br>utils.c:508: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:509: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:510: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:511: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:511: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c:512: error: ‘AIS_Message’ has no member named ‘sender’<br>utils.c: At top level:<br>utils.c:541: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_init’<br>utils.c:555: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘config_find_next’<br>utils.c:577: error: expected declaration specifiers or ‘...’ before
 ‘hdb_handle_t’<br>utils.c:577: error: conflicting types for ‘config_find_done’<br>./utils.h:110: note: previous declaration of ‘config_find_done’ was here<br>utils.c: In function ‘config_find_done’:<br>utils.c:580: error: dereferencing pointer to incomplete type<br>utils.c:580: error: ‘local_handle’ undeclared (first use in this function)<br>utils.c: At top level:<br>utils.c:586: error: expected declaration specifiers or ‘...’ before ‘hdb_handle_t’<br>utils.c:584: error: conflicting types for ‘get_config_opt’<br>./utils.h:111: note: previous declaration of ‘get_config_opt’ was here<br>utils.c: In function ‘get_config_opt’:<br>utils.c:592: error: ‘object_service_handle’ undeclared (first use in this function)<br>utils.c:593: error: dereferencing pointer to incomplete type<br>gmake[2]: *** [utils.lo] Error 1<br>gmake[2]: Leaving directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib/ais'<br>gmake[1]: ***
 [all-recursive] Error 1<br>gmake[1]: Leaving directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib'<br>gmake[1]: Leaving directory `/var/build/Cluster/Pacemaker-1-0-3c975c817c12/lib'<br>make: *** [all-recursive] Error 1<br><br><---------- snipped ----------><br><br>Could somebody please enlighten me about these issues?<br>Did I screw something up in either Corosync or OpenAIS installation?<br><br></td></tr></table><br>