Andrew,
Thank you again for your prompt reply

I've verified that $PREFIX/include/corosync/corodefs.h header file exists.
Which means that Corosync and OpenAIS were compiled and installed correctly..
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 
../autogen.sh && ./configure (with additional options)

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.

I'll check if this direct headers assignment remedies this compilation problems.

Thanks again,

Alex

--- On Thu, 12/17/09, Andrew Beekhof <and...@beekhof.net> wrote:

> <---------- 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

Thats odd.  I'd have thought CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
would be able to find it.
Does $PREFIX/include/corosync/corodefs.h exist?

I wonder why CFLGS is not showing up in the gcc output above.
Did you re-run configure, with CFLAGS set, before compiling?

> <---------- 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 ---------->
_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker



      
_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to