[openamq-dev] Using the static OpenAMQ libraries in a sharedlibrary seems impossible, except on i386 platforms...

Jacobus Geluk jacobus.geluk at gmail.com
Sat May 31 09:28:31 CEST 2008


FreeBSD, as a BSD based operating system, seems to be a bit different in
this area than Linux, since I can't get it to work, yet. :-)

Using -fPIC seems to have a 5% performance overhead anyway (source: apache
web site), so it would be a good idea if the OpenAMQ build procedure could
generate multiple versions of the libraries, not only
singlethreaded/multithreaded and release/debug but also static/shared and
static+-fPIC-for-use-in-other-shared-libraries. Different names for each
version of the library, like boost does, would make it possible to have
multiple versions installed like libamq_wireapi_mt_debug_pic.a.

I keep digging, but I am also trying to create a workaround, since I expect
more problems anyway, since both Apache and OpenAMQ are based on their own
versions of APR. The workaround would be to have the apache module
"mod_amqp" talk via shared memory and/or socket and/or pipe with a companion
daemon that does the actual work (and can be build in C++).

Jacobus

On Fri, May 30, 2008 at 8:05 PM, Pieter Hintjens <ph at imatix.com> wrote:

> On Wed, May 28, 2008 at 5:00 PM, Dmitri Tsyganov
> <dmitri.tsyganov at dowjones.com> wrote:
>
> > It is possible and we are doing exactly the same, except we are on 64bit
> Red
> > Hat...
>
> Dmitry,
>
> Thanks for the tip, I've added it to the build FAQ:
> http://wiki.openamq.org/faq:building-openamq
>
> -Pieter
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20080531/7ad67f13/attachment.htm 


More information about the openamq-dev mailing list