<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I'm having difficulty getting the configure script in Collectd 5.4.1 to find the amqp.h I want it to use. Despite using every option I could think of, reading the configure script to try to find enlightenment, and Googling for anyone else
with similar issues, it's still not working.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The build environment is an LXC container, with identical results with the following LXC templates: SLES 11 SP3, Ubuntu 12.04, CentOS 6, and CentOS 7. Rabbitmq-c version 0.5.2 is compiled before the attempt to compile Collectd. Prefix
is set to /pkg-base/opt, which will later be dropped into /opt in the final DEB or RPM. These are the options I am giving to configure:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--prefix=/pkg-base/opt --includedir=/pkg-base/opt/include --enable-amqp --with-amqp=/opt/include --with-librabbitmq=/opt/include --enable-cgroups --enable-cpu --enable-disk --enable-interface --enable-ipmi=force --enable-libvirt --enable-memory
--enable-processes --enable-vmem<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The documentation and output of './configure -h' disagree about whether to use --with-amqp=… vs. --with-librabbitmq=…, so I used both. Using just /opt or /pkg-base/opt instead of /opt/include for --with-amqp and --with-librabbitmq, produces
the same symptoms. There are copies of amqp.h in /pkg-base/opt/include and in /opt/include. Among other things, this is the output from the configure script:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal">checking amqp.h usability... no<o:p></o:p></p>
<p class="MsoNormal">checking amqp.h presence... no<o:p></o:p></p>
<p class="MsoNormal">checking for amqp.h... no<o:p></o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal"> librabbitmq . . . . . no (amqp.h not found)<o:p></o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The amqp.h file is definitely present. The question is how to tell Collectd's configure script how to find it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any suggestions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Robert Riches<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>