[openamq-dev] Using the static OpenAMQ libraries in a shared library seems impossible, except on i386 platforms...
Jacobus Geluk
jacobus.geluk at gmail.com
Wed May 28 16:21:20 CEST 2008
We are trying to build an Apache module, a shared library, that converts
HTTP requests and responses into/from AMQP messages.
We are developing this on the 64-bit (amd64) version of FreeBSD.
Simply linking the shared library the usual way with the static OpenAMQ
libraries gives a .so file with many unresolved references to the OpenAMQ
functions.
The linker is not complaining, but Apache does, when it tries to load the
module.
It seems not to be possible to mix code from static libraries into a shared
library on anything other than i386 platforms, without using -fPIC for all
object files.
That would mean that we need shared versions of the OpenAMQ libraries?
I already tried to get away with .a files that were build with -fPIC but
that does not work, so it seems we really need the shared libraries.
Is it possible to build these without too much work on the current boomake
build procedures?
Regards,
Jacobus Geluk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20080528/f69dcb1f/attachment.htm
More information about the openamq-dev
mailing list