Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Another cmake quirk (I think....)

$
0
0
Hey all,
I mostly use java clients with the c++ broker, so I only noticed this
today (I did an svn update and full make uninstall/make install cycle
yesterday).

So I was playing around and felt like firing up a couple of simple c++
qpid::messaging clients that I had.

I did a make clean followed by make and the first thing I noticed was
that they now explicitly needed to be linked with "-lqpidtypes"
previously they only needed to be linked with "-lqpidmessaging" - is
this separation fairly recent?

That was no bigee and the compiler pretty much told me the solution, but
when I fixed it and ran the app I got a loader error and ldd claimed not
to be able to find the libraries (despite being able to find the symbols
at link time :-))

I did a sudo ldconfig which fixed it.

IIRC roundabout Easter there was a lot of traffic about cmake and I had
a similar issue with respect to qpidd, now qpidd is working fine without
me having have done the ldconfig and I distinctly remember a discussion
that initially started by me asking for ldconfig to be added to the make
and being told that was a bad idea :-) but some cmake/ld wizard (sorry
can't remember who) came up with a magic incantation which sorted the
linking issue for the qpidd libraries, I'm guessing that the same could
be applied for the client libraries.

Is this ringing bells for anyone? TBH I *thought* I'd tried my c++
client back then, but perhaps not if I'm seeing this now (unless anyone
has tweaked the cmake stuff recently?).

Cheers,
Frase

Viewing all articles
Browse latest Browse all 5648

Trending Articles