[Pacemaker] libqb installed in non-standard dir causes configure failures

Andrew Beekhof andrew at beekhof.net
Fri Jul 19 00:22:43 EDT 2013


On 19/07/2013, at 4:37 AM, Matthew O'Connor <matt at ecsorl.com> wrote:

> Hi! I'm trying to build a full pacemaker/corosync/libqb tree into a
> directory other than /usr.  Unfortunately the Pacemaker configure script
> fails to properly validate the existence of libqb:
> 
> checking pkg-config is at least version 0.9.0... yes
> checking for libqb... yes
> checking qb/qbipc_common.h usability... yes
> checking qb/qbipc_common.h presence... no
> configure: WARNING: qb/qbipc_common.h: accepted by the compiler,
> rejected by the preprocessor!
> configure: WARNING: qb/qbipc_common.h: proceeding with the compiler's result
> checking for qb/qbipc_common.h... yes
> checking for qb_ipcc_is_connected in -lqb... no
> checking for qb_ipcc_is_connected... no
> configure: error: in `/home/matt/doit/latest/pacemaker':
> configure: error: Version of IPC in libqb is not new enough
> 
> When libqb is installed into /usr/lib and /usr/include, everything works
> fine.  My command-line to configure is as follows:
> 
> PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig \
> libqb_CFLAGS="-I${PREFIX}/include" \
> libqb_LIBS="-L${PREFIX}/lib" \
>  ./configure \
>    --prefix=${PREFIX} \
>    --sysconfdir=${PREFIX}/etc \
>    --localstatedir=${PREFIX}/var \
>    --enable-glib-malloc \
>    --libdir=${PREFIX}/lib \
>    --with-ais \
>    --with-corosync \
>    --with-heartbeat \
>    --with-cs-quorum
> 
> The PREFIX in this case is /opt/cluster (I'm testing out combinations of
> things, and wanted to build into a place I can easily rm -rf later).
> 
> I've added the PKG_CONFIG_PATH and the two libqb_ lines in an attempt to
> make things work, as recommended by the configure help.  So far, no
> dice.  Is this something that needs to be fixed in the autoconf/autogen
> stuff?  Something I can submit a patch for?  (sadly, not versed at all
> in autoconf/autogen, but willing to learn!)

we get libqb's details from pnk-config, so depending on what how it processes PKG_CONFIG_PATH, maybe its returning the "main" installation instead of the one you put in /opt/cluster

> 
> 
> -- 
> Thank you!
>  Matthew O'Connor
>  (GPG Key ID: 55F981C4)
> 
> 
> CONFIDENTIAL NOTICE: The information contained in this electronic message is legally privileged, confidential and exempt from disclosure under applicable law. It is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return e-mail and delete the original message and any copies of it from your computer system. Thank you.
> 
> EXPORT CONTROL WARNING:  This document may contain technical data that is subject to the International Traffic in Arms Regulations (ITAR) controls and may not be exported or otherwise disclosed to any foreign person or firm, whether in the US or abroad, without first complying with all requirements of the ITAR, 22 CFR 120-130, including the requirement for obtaining an export license if applicable. In addition, this document may contain technology that is subject to the Export Administration Regulations (EAR) and may not be exported or otherwise disclosed to any non-U.S. person, whether in the US or abroad, without first complying with all requirements of the EAR, 15 CFR 730-774, including the requirement for obtaining an export license if applicable. Violation of these export laws is subject to severe criminal penalties.	
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Pacemaker mailing list