On Fri, Dec 18, 2009 at 11:04 PM, Hunny Bunny <tm...@yahoo.com> wrote:
> For some reason when you compile Pacemaker from sources, its ./autogen.sh > && ./configure cannot detect Corosync and OpenAIS headers. Regardless if you > set proper CFLAGS="-I$PREFIX/include -L$PREFIX/lib" or not. > > Only when I copied or soft linked corosync and openais header directories > into Pacemaker-1-0-xxxxxxxxx/include directory everything went very > smoothly. > Is it a bug or a feature? Go figure ... > Sounds like a bug somewhere. > > So, the final working configuration / compilation file for Pacemaker look > like this: > > <--------------------- snipped ----------------------> > > #!/bin/bash > > source /etc/profile.local > ldconfig > > 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 > > # Copy Corosync and OpenAIS headers into source include > cp -a $PREFIX/include/corosync ./include > cp -a $PREFIX/include/openais ./include > > ./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 > > make > make install > > <--------------------- snipped ----------------------> > > Thanks to everyone who tried to help, especially Andrew! > > Merry Christmas! > > Alex > > > > > > > _______________________________________________ > 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