<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Andrew,<br>Thank you again for your prompt reply<br><br>I've verified that $PREFIX/include/corosync/corodefs.h header file exists.<br>Which means that Corosync and OpenAIS were compiled and installed correctly.<br>The configuration file shown at the bottom is bash executable script which sets PREFIX, CFLAGS, CXXFLAGS and other environmental variables, and then proceeds with calling <br>./autogen.sh && ./configure (with additional options)<br><br>My only guess, that I might need to explicitly set CFLAGS="-I/usr/local/cluster/include/corosync -I/usr/local/cluster/include/openais ... and so on" to the precise locations of Corosync and OpenAIS headers.<br><br>I'll check if this direct headers assignment remedies this compilation problems.<br><br>Thanks again,<br><br>Alex<br><br>--- On <b>Thu, 12/17/09, Andrew Beekhof <i><andrew@beekhof.net></i></b>
wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><div class="plainMail">> <---------- 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><br>Thats odd. I'd have thought CFLAGS="-I$PREFIX/include -L$PREFIX/lib"<br>would be able to find it.<br>Does $PREFIX/include/corosync/corodefs.h exist?<br><br>I wonder why CFLGS is not showing up in the gcc output above.<br>Did you re-run configure, with CFLAGS set,
before compiling?<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>Pacemaker mailing list<br><a ymailto="mailto:Pacemaker@oss.clusterlabs.org" href="/mc/compose?to=Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br></div></blockquote></td></tr></table><br>