[Pacemaker] Pacemaker strange compilation errors
Hunny Bunny
tmphb at yahoo.com
Thu Dec 17 12:25:34 EST 2009
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 <andrew at 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 at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20091217/4a9ec88b/attachment.htm>
More information about the Pacemaker
mailing list