Hi All,
As an update for anyone following this thread (and thanks for the suggestions so far).

I've now got a working install, yippee!!!! but I had to do some hacking, booo, so I'd really like some advice now as to how to "do it right" and ask whether it's a potentially general issue I'm seeing that needs to make it into the "official" make.


The first big issue I had (detailed in my previous post) was failure around:

libtool: install: warning: relinking `cluster.la'
libtool: install: (cd /home/fadams/java/qpid-0.12/cpp.......
.......
/usr/bin/ld: cannot find -lqpidbroker
collect2: ld returned 1 exit status
libtool: install: error: relink `cluster.la' with the above command before installing it
make[3]: *** [install-dmoduleexecLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'



I'd figured it was a dependency thing so I looked for "install-dmoduleexecLTLIBRARIES" in qpid-0.12/cpp/src/Makefile

I hacked the install-exec-am target as follows:

#install-exec-am: install-cmoduleexecLTLIBRARIES \
#    install-dmoduleexecLTLIBRARIES install-libLTLIBRARIES \
#    install-qpidexecPROGRAMS install-qpidexecSCRIPTS \
#    install-sbinPROGRAMS install-tmoduleexecLTLIBRARIES

install-exec-am: install-cmoduleexecLTLIBRARIES \
install-libLTLIBRARIES install-dmoduleexecLTLIBRARIES \
install-qpidexecPROGRAMS install-qpidexecSCRIPTS \
install-sbinPROGRAMS install-tmoduleexecLTLIBRARIES

So in other words I put "install-libLTLIBRARIES" *before* "install-dmoduleexecLTLIBRARIES"

This pretty much fixed the problem.

I still got an issue further on with making qmf (another dependency thing). This issue is an "old friend" of mine (I've had it since I first build qpid 0.8).

I get around that by tweaking "qmf.mk" thus:

lib_LTLIBRARIES +=    \
 libqmfengine.la    \
 libqmf.la        \
 libqmf2.la

Where I have to put "libqmfengine.la" *before* "libqmf.la"


So two things really
1) Where do I modify the ordering of "install-libLTLIBRARIES" and "install-dmoduleexecLTLIBRARIES" at source - clearly it's not great to be hacking the generated Makefile (my hack gets overwritten). I found "install-libLTLIBRARIES" in Makefile.in, but I thought that was generated too? I can't seem to find it anywhere that would generate Makefile.in and Makefile

2) qmf.mk has been broken for me since qpid 0.8 has anyone else had to tweak this? Why would other platforms *not *have similar dependency issues - looking at the error that was generated prior to me swapping the order it's clear that libqmf.la had a dependency on libqmfengine.la.


automake is Voodoo to me :-(

Frase

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to