[openamq-dev] porting to Ubuntu

Martin Lucina mato at imatix.com
Wed Aug 22 15:28:34 CEST 2007


Nick,

ndl at ravenbrook.com said:
> I had problems communicating with gcc via the "c" script, so after
> watching what "c" did I invoked gcc directly:
> [...]

I'm surprised that worked for you.  I tried this on two different
platforms (Debian x86_64, Ubuntu i386) and in both cases the link
failed. On x86_64 ld would refuse outright to produce the .so (and ask
for the code to be recompiled with -fPIC), on i386 ld would fail to
produce amq_client due to symbol referencing conflicts between the
shared and static glibc.

> Not a hopeful sign?

I think all this means is that particular program is not triggering this
problem. Still am about 99% sure that it's the .so without -fPIC that's
causing it.

Am going to try and make a simple change to the build scripts that will
let me rebuild everything manually with -fPIC and see if that works.
Once I have that I can pass it on to you to try.

A proper solution would mean teaching the build system about shared
libraries, which is a fairly large amount of work.

Any particular reason why you can't just link against the static
libraries?

-mato


More information about the openamq-dev mailing list