Yes, that was the missing piece, I feel I’m almost there.
This is a summary of the steps that have worked so far for me:
1) Get the deb packages from debian jessie.
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:
Making all in src
make[2]: Entering directory `/apps/src/freeswitch-1.4.19/src'
Making all in mod
make[3]: Entering directory `/apps/src/freeswitch-1.4.19/src/mod'
making all mod_amqp
make[4]: Entering directory `/apps/src/freeswitch-1.4.19/src/mod/event_handlers/mod_amqp'
CC mod_amqp_la-mod_amqp_utils.lo
CC mod_amqp_la-mod_amqp_connection.lo
CC mod_amqp_la-mod_amqp_producer.lo
mod_amqp_producer.c: In function ‘mod_amqp_producer_create’:
mod_amqp_producer.c:322: error: incompatible type for argument 7 of ‘amqp_exchange_declare’
/usr/local/include/amqp_framing.h:798: note: expected ‘amqp_boolean_t’ but argument is of type ‘amqp_table_t’
mod_amqp_producer.c:322: error: too few arguments to function ‘amqp_exchange_declare’
mod_amqp_producer.c: In function ‘mod_amqp_producer_thread’:
mod_amqp_producer.c:442: error: incompatible type for argument 7 of ‘amqp_exchange_declare’
/usr/local/include/amqp_framing.h:798: note: expected ‘amqp_boolean_t’ but argument is of type ‘amqp_table_t’
mod_amqp_producer.c:442: error: too few arguments to function ‘amqp_exchange_declare’
make[4]: *** [mod_amqp_la-mod_amqp_producer.lo] Error 1
make[4]: Leaving directory `/apps/src/freeswitch-1.4.19/src/mod/event_handlers/mod_amqp'
make[3]: *** [mod_amqp-all] Error 1
make[3]: Leaving directory `/apps/src/freeswitch-1.4.19/src/mod'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/apps/src/freeswitch-1.4.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/apps/src/freeswitch-1.4.19'
make: *** [all] Error 2
2) Generate the RPM packages from deb (use the alien command)
3) Copy the RPMs over to the RHEL/Fedora server
4) Install the RPMs
5) Locate the librabbitmq.pc file and add it to the PKG_CONFIG_PATH environment variable. On my server I ran:
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
6) Check if the library can be found by the pkg-config tool. Run:
# pkg-config librabbitmq --modversion
0.5.2
7) Go to the sources directory, run ./configure && make && make install. Everything should work
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.
Thanks Mike, William, Steve, Luis and all other whom take some time to help me figure this out.
Cheers
The key here is the configure detection. it is using pkg-config to look for librabbitmq.pc you can try this by way of
pkg-config librabbitmq --modversion
If that command does not return anything, your not ready to re run configure yet.