<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Final update:</div>
<div><br>
</div>
<div>Converting deb packages to RPM didn’t work. The correct way of doing this is:</div>
<div><br>
</div>
<div>1) Download the sources from the v0.5.2 tag (<a href="https://github.com/alanxz/rabbitmq-c/releases/tag/v0.5.2">https://github.com/alanxz/rabbitmq-c/releases/tag/v0.5.2</a>), and follow the instructions on how to compile and install it</div>
<div>2) Find the librabbitmq.pc file (it’s installed by default under /usr/local/lib/pkgconfig), and add it to the PKG_CONFIG path</div>
<div>3) Follow steps 6 and 7 of the previous email on this thread, and everything should work just fine.</div>
<div><br>
</div>
<div>Thanks again to everybody!</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Hector Geraldino <<a href="mailto:Hector.Geraldino@ipsoft.com">Hector.Geraldino@ipsoft.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, June 30, 2015 at 1:23 PM<br>
<span style="font-weight:bold">To: </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Freeswitch-users] mod_amqp on RHEL<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Yes, that was the missing piece, I feel I’m almost there.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
This is a summary of the steps that have worked so far for me:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
1) Get the deb packages from debian jessie. </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
The version that worked for me is 0.5.2. Compiling he latest version from the github repository won’t work, as some methods have changed. When I did so I got:</div>
<div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">Making all in src</font></div>
<div><font face="Calibri,sans-serif">make[2]: Entering directory `/apps/src/freeswitch-1.4.19/src'</font></div>
<div><font face="Calibri,sans-serif">Making all in mod</font></div>
<div><font face="Calibri,sans-serif">make[3]: Entering directory `/apps/src/freeswitch-1.4.19/src/mod'</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">making all mod_amqp</font></div>
<div><font face="Calibri,sans-serif">make[4]: Entering directory `/apps/src/freeswitch-1.4.19/src/mod/event_handlers/mod_amqp'</font></div>
<div><font face="Calibri,sans-serif"> CC mod_amqp_la-mod_amqp_utils.lo</font></div>
<div><font face="Calibri,sans-serif"> CC mod_amqp_la-mod_amqp_connection.lo</font></div>
<div><font face="Calibri,sans-serif"> CC mod_amqp_la-mod_amqp_producer.lo</font></div>
<div><font face="Calibri,sans-serif">mod_amqp_producer.c: In function ‘mod_amqp_producer_create’:</font></div>
<div><font face="Calibri,sans-serif">mod_amqp_producer.c:322: error: incompatible type for argument 7 of ‘amqp_exchange_declare’</font></div>
<div><font face="Calibri,sans-serif">/usr/local/include/amqp_framing.h:798: note: expected ‘amqp_boolean_t’ but argument is of type ‘amqp_table_t’</font></div>
<div><font face="Calibri,sans-serif">mod_amqp_producer.c:322: error: too few arguments to function ‘amqp_exchange_declare’</font></div>
<div><font face="Calibri,sans-serif">mod_amqp_producer.c: In function ‘mod_amqp_producer_thread’:</font></div>
<div><font face="Calibri,sans-serif">mod_amqp_producer.c:442: error: incompatible type for argument 7 of ‘amqp_exchange_declare’</font></div>
<div><font face="Calibri,sans-serif">/usr/local/include/amqp_framing.h:798: note: expected ‘amqp_boolean_t’ but argument is of type ‘amqp_table_t’</font></div>
<div><font face="Calibri,sans-serif">mod_amqp_producer.c:442: error: too few arguments to function ‘amqp_exchange_declare’</font></div>
<div><font face="Calibri,sans-serif">make[4]: *** [mod_amqp_la-mod_amqp_producer.lo] Error 1</font></div>
<div><font face="Calibri,sans-serif">make[4]: Leaving directory `/apps/src/freeswitch-1.4.19/src/mod/event_handlers/mod_amqp'</font></div>
<div><font face="Calibri,sans-serif">make[3]: *** [mod_amqp-all] Error 1</font></div>
<div><font face="Calibri,sans-serif">make[3]: Leaving directory `/apps/src/freeswitch-1.4.19/src/mod'</font></div>
<div><font face="Calibri,sans-serif">make[2]: *** [all-recursive] Error 1</font></div>
<div><font face="Calibri,sans-serif">make[2]: Leaving directory `/apps/src/freeswitch-1.4.19/src'</font></div>
<div><font face="Calibri,sans-serif">make[1]: *** [all-recursive] Error 1</font></div>
<div><font face="Calibri,sans-serif">make[1]: Leaving directory `/apps/src/freeswitch-1.4.19'</font></div>
<div><font face="Calibri,sans-serif">make: *** [all] Error 2</font></div>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
2) Generate the RPM packages from deb (use the alien command)</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
3) Copy the RPMs over to the RHEL/Fedora server</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
4) Install the RPMs</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
5) Locate the librabbitmq.pc file and add it to the PKG_CONFIG_PATH environment variable. On my server I ran:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
6) Check if the library can be found by the pkg-config tool. Run:</div>
<div><font face="Calibri,sans-serif"># pkg-config librabbitmq --modversion</font></div>
<div><font face="Calibri,sans-serif">0.5.2</font></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
7) Go to the sources directory, run ./configure && make && make install. Everything should work</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Right now, the mod_amqp.so is missing some linked libs (libssql and libcrypto), I hope I can find RPMs for those libraries and have them linked with ldconfig. If not, I’ll send an update.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Thanks Mike, William, Steve, Luis and all other whom take some time to help me figure this out.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Cheers </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, June 30, 2015 at 11:59 AM<br>
<span style="font-weight:bold">To: </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Freeswitch-users] mod_amqp on RHEL<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
The key here is the configure detection. it is using pkg-config to look for librabbitmq.pc you can try this by way of
<div class=""><br class="">
</div>
<div class="">pkg-config librabbitmq --modversion</div>
<div class=""><br class="">
</div>
<div class="">If that command does not return anything, your not ready to re run configure yet.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 30, 2015, at 11:08 AM, Hector Geraldino <<a href="mailto:Hector.Geraldino@ipsoft.com" class="">Hector.Geraldino@ipsoft.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">I wish I could read/understand Makefiles, all I can see is just gibberish. </div>
<div class=""><br class="">
</div>
<div class="">I installed the RPMs, and libraries were copied under /usr/lib/x86_64-linux-gnu, which might or might not be on the standard path. Nevertheless, I added the directory to the $PATH and $LD_LIBRARY_PATH environment variables, ran ./configure then
make, and err was the same.</div>
<div class=""><br class="">
</div>
<span id="OLK_SRC_BODY_SECTION" class="">
<div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class="">
<span style="font-weight:bold" class="">From: </span><<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" class="">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Steven Ayre <<a href="mailto:steveayre@gmail.com" class="">steveayre@gmail.com</a>><br class="">
<span style="font-weight:bold" class="">Reply-To: </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>><br class="">
<span style="font-weight:bold" class="">Date: </span>Monday, June 29, 2015 at 4:54 PM<br class="">
<span style="font-weight:bold" class="">To: </span>FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>><br class="">
<span style="font-weight:bold" class="">Subject: </span>Re: [Freeswitch-users] mod_amqp on RHEL<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="ltr" class="">Did you install the runtime package librabbitmq as well as the development header package librabbitmq-devel?
<div class=""><br class="">
</div>
<div class="">You could also try installing librabbitmq from source. It's looking for the libraries/headers in the standard paths, not a formal package installed.</div>
<div class=""><br class="">
</div>
<div class="">It's also possible though that the files are there but the compiler isn't looking at the correct path on your system, perhaps because of minor differences in paths between linux distributions despite FHS.</div>
<div class=""><br class="">
</div>
<div class="">Steve</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 29 June 2015 at 16:55, Hector Geraldino <span dir="ltr" class="">
<<a href="mailto:Hector.Geraldino@ipsoft.com" target="_blank" class="">Hector.Geraldino@ipsoft.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" type="cite">
<div style="word-wrap:break-word" class="">
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">Greetings,</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">I’m trying to build a new FreeSWITCH instance from master, and I have to include the mod_amqp as we’ll be relying on RabbitMQ to deliver events. Anyway, this is not working for me on a
RHEL 6.2 server due to this error:</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div class="">
<div class=""><font face="Calibri,sans-serif" class="">make[3]: Entering directory `/apps/src/freeswitch-1.4.19/src/mod'</font></div>
<div class=""><font face="Calibri,sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="Calibri,sans-serif" class="">making all mod_amqp</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[4]: Entering directory `/apps/src/freeswitch-1.4.19/src/mod/event_handlers/mod_amqp'</font></div>
<div class=""><font face="Calibri,sans-serif" class="">Makefile:772: *** You must install librabbitmq1 and librabbitmq-dev to build this module. Stop.</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[4]: Leaving directory `/apps/src/freeswitch-1.4.19/src/mod/event_handlers/mod_amqp'</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[3]: *** [mod_amqp-all] Error 1</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[3]: Leaving directory `/apps/src/freeswitch-1.4.19/src/mod'</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[2]: *** [all-recursive] Error 1</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[2]: Leaving directory `/apps/src/freeswitch-1.4.19/src'</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[1]: *** [all-recursive] Error 1</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make[1]: Leaving directory `/apps/src/freeswitch-1.4.19'</font></div>
<div class=""><font face="Calibri,sans-serif" class="">make: *** [all] Error 2</font></div>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">The error is pretty obvious: it’s missing these two libraries listed there, but thing is that I cannot find those libraries (or any replacement for them) for the Red Hat/Fedora distros.
I installled rabbitmq-server, no luck. Tried to install these:</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><a href="http://rpm.pbone.net/index.php3/stat/4/idpl/26206777/dir/redhat_el_6/com/librabbitmq-devel-0.5.0-2.el6.x86_64.rpm.html" target="_blank" class="">http://rpm.pbone.net/index.php3/stat/4/idpl/26206777/dir/redhat_el_6/com/librabbitmq-devel-0.5.0-2.el6.x86_64.rpm.html</a></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><a href="http://www.rpmfind.net/linux/rpm2html/search.php?query=librabbitmq-devel(x86-64)" target="_blank" class="">http://www.rpmfind.net/linux/rpm2html/search.php?query=librabbitmq-devel(x86-64)</a></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">No luck either. It was either I was missing some other dependencies, and then some more, and more, until I couldn’t find some of the rpms missing, or the RPMs, after installed, didn’t
contain the same libs the debian-based pkg seems to have, as the module still didn’t compile.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">Has anyone been able to compile this on a redhat based distro? (fedora,rhel,centos)</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;" class="">Thanks all for your time</div>
</div>
<br class="">
_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span></div>
_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services: <br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span></div>
</div>
</span>
</body>
</html>