You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Fraser Adams <fr...@blueyonder.co.uk> on 2011/11/27 20:54:54 UTC

Qpid 0.12 make install fails :-(

Hi again,
I've got a bit further making Qpid 0.12 on my Ubuntu box so I'm now 
trying make install.

Unfortunately I'm bombing out with.

/bin/bash ../libtool   --mode=install /usr/bin/install -c   cluster.la 
watchdog.la acl.la xml.la replicating_listener.la 
replication_exchange.la '/usr/local/lib/qpid/daemon'
libtool: install: warning: relinking `cluster.la'
libtool: install: (cd /home/fadams/java/qpid-0.12/cpp/src; /bin/bash 
/home/fadams/java/qpid-0.12/cpp/libtool  --tag CXX --mode=relink g++ 
-Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual 
-Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch 
-Wno-system-headers -Woverloaded-virtual 
-DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\" 
-DBOOST_FILESYSTEM_VERSION=2 -fno-strict-aliasing -g -O2 -no-undefined 
-module -avoid-version -L/usr/lib/openais -L/usr/lib64/openais 
-L/usr/lib/corosync -L/usr/lib64/corosync -o cluster.la -rpath 
/usr/local/lib/qpid/daemon qpid/cluster/cluster_la-Quorum_cman.lo 
qpid/cluster/cluster_la-Cluster.lo 
qpid/cluster/cluster_la-ClusterTimer.lo 
qpid/cluster/cluster_la-Decoder.lo qpid/cluster/cluster_la-ClusterMap.lo 
qpid/cluster/cluster_la-ClusterPlugin.lo 
qpid/cluster/cluster_la-Connection.lo 
qpid/cluster/cluster_la-ConnectionCodec.lo 
qpid/cluster/cluster_la-Cpg.lo qpid/cluster/cluster_la-UpdateClient.lo 
qpid/cluster/cluster_la-RetractClient.lo 
qpid/cluster/cluster_la-ErrorCheck.lo qpid/cluster/cluster_la-Event.lo 
qpid/cluster/cluster_la-EventFrame.lo 
qpid/cluster/cluster_la-ExpiryPolicy.lo 
qpid/cluster/cluster_la-FailoverExchange.lo 
qpid/cluster/cluster_la-UpdateExchange.lo 
qpid/cluster/cluster_la-Multicaster.lo 
qpid/cluster/cluster_la-OutputInterceptor.lo 
qpid/cluster/cluster_la-PollerDispatch.lo 
qpid/cluster/cluster_la-InitialStatusMap.lo 
qpid/cluster/cluster_la-MemberSet.lo 
qpid/cluster/cluster_la-SecureConnectionFactory.lo 
qpid/cluster/cluster_la-StoreStatus.lo 
qpid/cluster/cluster_la-UpdateDataExchange.lo -lcpg -lcman 
libqpidbroker.la libqpidclient.la )
libtool: relink: g++ -shared -nostdlib 
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o 
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o  
qpid/cluster/.libs/cluster_la-Quorum_cman.o 
qpid/cluster/.libs/cluster_la-Cluster.o 
qpid/cluster/.libs/cluster_la-ClusterTimer.o 
qpid/cluster/.libs/cluster_la-Decoder.o 
qpid/cluster/.libs/cluster_la-ClusterMap.o 
qpid/cluster/.libs/cluster_la-ClusterPlugin.o 
qpid/cluster/.libs/cluster_la-Connection.o 
qpid/cluster/.libs/cluster_la-ConnectionCodec.o 
qpid/cluster/.libs/cluster_la-Cpg.o 
qpid/cluster/.libs/cluster_la-UpdateClient.o 
qpid/cluster/.libs/cluster_la-RetractClient.o 
qpid/cluster/.libs/cluster_la-ErrorCheck.o 
qpid/cluster/.libs/cluster_la-Event.o 
qpid/cluster/.libs/cluster_la-EventFrame.o 
qpid/cluster/.libs/cluster_la-ExpiryPolicy.o 
qpid/cluster/.libs/cluster_la-FailoverExchange.o 
qpid/cluster/.libs/cluster_la-UpdateExchange.o 
qpid/cluster/.libs/cluster_la-Multicaster.o 
qpid/cluster/.libs/cluster_la-OutputInterceptor.o 
qpid/cluster/.libs/cluster_la-PollerDispatch.o 
qpid/cluster/.libs/cluster_la-InitialStatusMap.o 
qpid/cluster/.libs/cluster_la-MemberSet.o 
qpid/cluster/.libs/cluster_la-SecureConnectionFactory.o 
qpid/cluster/.libs/cluster_la-StoreStatus.o 
qpid/cluster/.libs/cluster_la-UpdateDataExchange.o   -L/usr/lib/openais 
-L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -lcpg 
-lcman -L/usr/local/lib -lqpidbroker -lqpidclient 
-L/usr/lib/gcc/x86_64-linux-gnu/4.4.1 
-L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib 
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../.. 
-lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o 
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o    
-Wl,-soname -Wl,cluster.so -o .libs/cluster.so
/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'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
make: *** [install-recursive] Error 1



It's clearly a dependency issue but my knowledge of automake etc. is 
minimal. In previous installs (for qpid 0.8 and 0.10) I had a similar 
issue where it broke relinking qmf stuff (I might yet get to that point) 
in that case I hacked qmf.mk to rearrange the order of libqmfengine.la - 
I'm thinking that I might have to do the same with cluster.mk but that's 
a lot more complex than qmf.mk so wouldn't know where to begin - there 
must be a better way.

Has anyone actually got qpid 0.12 to install on an Ubuntu box?

This is getting tiresome :-( 0.12 is definitely causing me more pain 
that 0.8 or 0.10 did....

Fraser.





---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-( - Update - I've got it working :-) but I'd like a systematic fix!

Posted by Fraser Adams <fr...@blueyonder.co.uk>.
Hi again Alan & Ilya.
I'm definitely not doing anything fancy like a parallel make - it's all 
Voodoo to me so I'm not about to try anything fancy :-)

I was aware that qpid/cpp/src/Makefile.am was the source for generated 
makefiles but I couldn't for the life of me figure out anything in that 
which even referred to "install-libLTLIBRARIES" let alone suggested the 
order of install-libLTLIBRARIES in relation to 
install-dmoduleexecLTLIBRARIES

I'll have a look at Ilya's suggestion of "export LDFLAGS=-L`dirname 
$(pwd)`/cpp/src/.libs " but I really don't think that it /should/ be 
necessary to have to do this.

At the very least it might be useful to include Ilya's instructions in 
the README.txt file, what do you reckon?

Ilya these are a really nice set of instructions - good on you!!!

Re "autotool's @Q$#$#@! re-linking nonsense" I couldn't have put it 
better myself :-D


Thanks guys, once again the qpid mailing list comes up trumps for 
helpful support.
Frase



Alan Conway wrote:
> On 11/30/2011 02:25 AM, Ilya Haykinson wrote:
>> For what it's worth, here is how I built qpid 0.12 on Ubuntu 10.04. The
>> LDFLAGS export was necessary to ensure the install step works.
>>
>> sudo apt-get update&&  sudo apt-get upgrade
>>
>> sudo apt-get install libboost-dev libboost-program-options-dev
>> libboost-filesystem-dev libboost-test-dev openais libopenais-dev
>> corosync libcorosync-dev uuid-dev libsasl2-dev sasl2-bin libdb4.8++
>> libdb4.8 libdb4.8-dev libdb4.8++-dev libaio-dev subversion automake
>> autoconf libtool gcc g++ help2man doxygen ruby swig valgrind
>>
>> svn export http://svn.apache.org/repos/asf/qpid/tags/0.12/qpid
>>
>> cd qpid/cpp
>> ./bootstrap
>> export LDFLAGS=-L`dirname $(pwd)`/cpp/src/.libs
>> ./configure --disable-warnings
>> make
>> sudo make install
>> cd ../../
>> svn export 
>> http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.12-release/cpp 
>>
>> persist
>> cd persist
>> ./bootstrap
>> ./configure --with-qpid-checkout=`dirname $(pwd)`/qpid
>> make
>> sudo make install
>> cd ../qpid
>> cd python
>> sudo python setup.py install
>> cd ../tools
>> sudo python setup.py install
>> cd ../extras/qmf
>> sudo python setup.py install
>>
>>
>> -ilya
>>
>>
>>
>> On Mon, Nov 28, 2011 at 11:21 AM, Fraser Adams<
>> fraser.adams@blueyonder.co.uk>  wrote:
>>
>>> 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
>
> qpid/cpp/src/Makefile.am is the source for generated makefiles.
>
>>>
>>> 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 supposed to figure out the dependencies and run things in 
> the right order.
>
> Are you doing parallel make - i.e. make -j<N>? Parallel make 
> sporadically trips up in make install with a link error because of 
> autotool's @Q$#$#@! re-linking nonsense. I do: make -jN && make -j1 
> install
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-( - Update - I've got it working :-) but I'd like a systematic fix!

Posted by Alan Conway <ac...@redhat.com>.
On 11/30/2011 02:25 AM, Ilya Haykinson wrote:
> For what it's worth, here is how I built qpid 0.12 on Ubuntu 10.04. The
> LDFLAGS export was necessary to ensure the install step works.
>
> sudo apt-get update&&  sudo apt-get upgrade
>
> sudo apt-get install libboost-dev libboost-program-options-dev
> libboost-filesystem-dev libboost-test-dev openais libopenais-dev
> corosync libcorosync-dev uuid-dev libsasl2-dev sasl2-bin libdb4.8++
> libdb4.8 libdb4.8-dev libdb4.8++-dev libaio-dev subversion automake
> autoconf libtool gcc g++ help2man doxygen ruby swig valgrind
>
> svn export http://svn.apache.org/repos/asf/qpid/tags/0.12/qpid
>
> cd qpid/cpp
> ./bootstrap
> export LDFLAGS=-L`dirname $(pwd)`/cpp/src/.libs
> ./configure --disable-warnings
> make
> sudo make install
> cd ../../
> svn export http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.12-release/cpp
> persist
> cd persist
> ./bootstrap
> ./configure --with-qpid-checkout=`dirname $(pwd)`/qpid
> make
> sudo make install
> cd ../qpid
> cd python
> sudo python setup.py install
> cd ../tools
> sudo python setup.py install
> cd ../extras/qmf
> sudo python setup.py install
>
>
> -ilya
>
>
>
> On Mon, Nov 28, 2011 at 11:21 AM, Fraser Adams<
> fraser.adams@blueyonder.co.uk>  wrote:
>
>> 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

qpid/cpp/src/Makefile.am is the source for generated makefiles.

>>
>> 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 supposed to figure out the dependencies and run things in the right 
order.

Are you doing parallel make - i.e. make -j<N>? Parallel make sporadically trips 
up in make install with a link error because of autotool's @Q$#$#@! re-linking 
nonsense. I do: make -jN && make -j1 install

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails - Jira raised

Posted by Fraser Adams <fr...@blueyonder.co.uk>.
Hi All,
Thanks to everyone who has helped with this one cheers guys!!!

I've raised a Jira

https://issues.apache.org/jira/browse/QPID-3657

Which covers fixing the "make" via Cajus' patch and also adding Ilya's 
really helpful install instructions to the README.txt

I simply had to apply the patch and do "export LDFLAGS=-L`dirname 
$(pwd)`/cpp/src/.libs" prior to ./configure as suggested by Ilya and 
I've go a nice working 0.12

Alan (Conway) you asked that the Jira gets assigned to you - I'm afraid 
that I can't figure out how to actually assign things, Jira is less than 
obvious to me :-( any suggestions?

Regards, and thanks again
Frase

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-( - Update - I've got it working :-) but I'd like a systematic fix!

Posted by Ilya Haykinson <ha...@gmail.com>.
For what it's worth, here is how I built qpid 0.12 on Ubuntu 10.04. The
LDFLAGS export was necessary to ensure the install step works.

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install libboost-dev libboost-program-options-dev
libboost-filesystem-dev libboost-test-dev openais libopenais-dev
corosync libcorosync-dev uuid-dev libsasl2-dev sasl2-bin libdb4.8++
libdb4.8 libdb4.8-dev libdb4.8++-dev libaio-dev subversion automake
autoconf libtool gcc g++ help2man doxygen ruby swig valgrind

svn export http://svn.apache.org/repos/asf/qpid/tags/0.12/qpid

cd qpid/cpp
./bootstrap
export LDFLAGS=-L`dirname $(pwd)`/cpp/src/.libs
./configure --disable-warnings
make
sudo make install
cd ../../
svn export http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.12-release/cpp
persist
cd persist
./bootstrap
./configure --with-qpid-checkout=`dirname $(pwd)`/qpid
make
sudo make install
cd ../qpid
cd python
sudo python setup.py install
cd ../tools
sudo python setup.py install
cd ../extras/qmf
sudo python setup.py install


-ilya



On Mon, Nov 28, 2011 at 11:21 AM, Fraser Adams <
fraser.adams@blueyonder.co.uk> wrote:

> 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:users-subscribe@qpid.**apache.org<us...@qpid.apache.org>
>
>

Re: Qpid 0.12 make install fails :-( - Update - I've got it working :-) but I'd like a systematic fix!

Posted by Fraser Adams <fr...@blueyonder.co.uk>.
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:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-(

Posted by Peter Fetterer <kb...@texnolyze.us>.
qpid-0.12 package from ppa
https://launchpad.net/~kb3gtn/+archive/qpid-0.12
<https://launchpad.net/%7Ekb3gtn/+archive/qpid-0.12>
Only tested on Ubuntu lucid.   But I think it would install on newer
releases if you use a override the version stuff...
I am planning on supporting 12.04 when it becomes more mature.

try pulling my sources from:
http://ppa.launchpad.net/kb3gtn/qpid-0.12/ubuntu/pool/main/q/qpidc/qpidc_0.12-ppa3.tar.gz
and doing the following procedure..

tar -xvzf qpidc_0.12-ppa3.tar.gz
cd qpidc_0.12
dh_make -r -e <some email address> -s
dpkg-buildpackage -rfakeroot -B

My source tree (the qpid-cpp tarball + deb stuff) includes a Debian
directory that is used by the Debian package building system. This
should build deb package that you can then install with dpkg.

--
Peter Fetterer
kb3gtn


On 11/27/2011 3:52 PM, Fraser Adams wrote:
> Hi Brandon,
> It's Ubuntu 9.10 - I probably should upgrade I know, but I've never
> had things break quite this badly with previous qpid releases.
>
> The package stuff might be useful at some point, but I'm keen to build
> from source - I've done it with the previous releases. It'd be nice if
> make install "just worked".
>
> It would probably be easier to fix if I knew how autoconf/automake
> worked - it looks like gobbledygook to me :-(
>
> Frase
>
>
> Brandon Pedersen wrote:
>> I don't remember having this problem specifically...though I have
>> built it several time and had to work around tons of little issues
>> like this....What version of Ubuntu are you using? I used the
>> packaging stuff from here
>> https://launchpad.net/ubuntu/+source/qpid-python to build a debian
>> package for lucid. There is also a PPA here
>> https://launchpad.net/~kb3gtn/+archive/qpid-0.12?field.series_filter=lucid
>>
>> that may work (I haven't tested it...again for lucid, but not as clean
>> of packaging as the official one for precise). If you want, I can post
>> the debs I created for lucid (x64) somewhere...I would create a PPA
>> but didn't know how to do it...it took a while just to backport the
>> packaging from precise.
>>
>> -Brandon
>>
>> On Sun, Nov 27, 2011 at 12:54 PM, Fraser Adams
>> <fr...@blueyonder.co.uk> wrote:
>>  
>>> Hi again,
>>> I've got a bit further making Qpid 0.12 on my Ubuntu box so I'm now
>>> trying
>>> make install.
>>>
>>> Unfortunately I'm bombing out with.
>>>
>>> /bin/bash ../libtool   --mode=install /usr/bin/install -c   cluster.la
>>> watchdog.la acl.la xml.la replicating_listener.la
>>> replication_exchange.la
>>> '/usr/local/lib/qpid/daemon'
>>> libtool: install: warning: relinking `cluster.la'
>>> libtool: install: (cd /home/fadams/java/qpid-0.12/cpp/src; /bin/bash
>>> /home/fadams/java/qpid-0.12/cpp/libtool  --tag CXX --mode=relink g++
>>> -Werror
>>> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
>>> -Wcast-align
>>> -Wno-long-long -Wvolatile-register-var -Winvalid-pch
>>> -Wno-system-headers
>>> -Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\"
>>> -DBOOST_FILESYSTEM_VERSION=2 -fno-strict-aliasing -g -O2 -no-undefined
>>> -module -avoid-version -L/usr/lib/openais -L/usr/lib64/openais
>>> -L/usr/lib/corosync -L/usr/lib64/corosync -o cluster.la -rpath
>>> /usr/local/lib/qpid/daemon qpid/cluster/cluster_la-Quorum_cman.lo
>>> qpid/cluster/cluster_la-Cluster.lo
>>> qpid/cluster/cluster_la-ClusterTimer.lo
>>> qpid/cluster/cluster_la-Decoder.lo
>>> qpid/cluster/cluster_la-ClusterMap.lo
>>> qpid/cluster/cluster_la-ClusterPlugin.lo
>>> qpid/cluster/cluster_la-Connection.lo
>>> qpid/cluster/cluster_la-ConnectionCodec.lo
>>> qpid/cluster/cluster_la-Cpg.lo
>>> qpid/cluster/cluster_la-UpdateClient.lo
>>> qpid/cluster/cluster_la-RetractClient.lo
>>> qpid/cluster/cluster_la-ErrorCheck.lo qpid/cluster/cluster_la-Event.lo
>>> qpid/cluster/cluster_la-EventFrame.lo
>>> qpid/cluster/cluster_la-ExpiryPolicy.lo
>>> qpid/cluster/cluster_la-FailoverExchange.lo
>>> qpid/cluster/cluster_la-UpdateExchange.lo
>>> qpid/cluster/cluster_la-Multicaster.lo
>>> qpid/cluster/cluster_la-OutputInterceptor.lo
>>> qpid/cluster/cluster_la-PollerDispatch.lo
>>> qpid/cluster/cluster_la-InitialStatusMap.lo
>>> qpid/cluster/cluster_la-MemberSet.lo
>>> qpid/cluster/cluster_la-SecureConnectionFactory.lo
>>> qpid/cluster/cluster_la-StoreStatus.lo
>>> qpid/cluster/cluster_la-UpdateDataExchange.lo -lcpg -lcman
>>> libqpidbroker.la
>>> libqpidclient.la )
>>> libtool: relink: g++ -shared -nostdlib
>>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o
>>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o
>>>  qpid/cluster/.libs/cluster_la-Quorum_cman.o
>>> qpid/cluster/.libs/cluster_la-Cluster.o
>>> qpid/cluster/.libs/cluster_la-ClusterTimer.o
>>> qpid/cluster/.libs/cluster_la-Decoder.o
>>> qpid/cluster/.libs/cluster_la-ClusterMap.o
>>> qpid/cluster/.libs/cluster_la-ClusterPlugin.o
>>> qpid/cluster/.libs/cluster_la-Connection.o
>>> qpid/cluster/.libs/cluster_la-ConnectionCodec.o
>>> qpid/cluster/.libs/cluster_la-Cpg.o
>>> qpid/cluster/.libs/cluster_la-UpdateClient.o
>>> qpid/cluster/.libs/cluster_la-RetractClient.o
>>> qpid/cluster/.libs/cluster_la-ErrorCheck.o
>>> qpid/cluster/.libs/cluster_la-Event.o
>>> qpid/cluster/.libs/cluster_la-EventFrame.o
>>> qpid/cluster/.libs/cluster_la-ExpiryPolicy.o
>>> qpid/cluster/.libs/cluster_la-FailoverExchange.o
>>> qpid/cluster/.libs/cluster_la-UpdateExchange.o
>>> qpid/cluster/.libs/cluster_la-Multicaster.o
>>> qpid/cluster/.libs/cluster_la-OutputInterceptor.o
>>> qpid/cluster/.libs/cluster_la-PollerDispatch.o
>>> qpid/cluster/.libs/cluster_la-InitialStatusMap.o
>>> qpid/cluster/.libs/cluster_la-MemberSet.o
>>> qpid/cluster/.libs/cluster_la-SecureConnectionFactory.o
>>> qpid/cluster/.libs/cluster_la-StoreStatus.o
>>> qpid/cluster/.libs/cluster_la-UpdateDataExchange.o   -L/usr/lib/openais
>>> -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -lcpg
>>> -lcman
>>> -L/usr/local/lib -lqpidbroker -lqpidclient
>>> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1
>>> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib
>>> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../..
>>> -lstdc++
>>> -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o
>>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o   
>>> -Wl,-soname
>>> -Wl,cluster.so -o .libs/cluster.so
>>> /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'
>>> make[2]: *** [install-am] Error 2
>>> make[2]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
>>> make[1]: *** [install-recursive] Error 1
>>> make[1]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
>>> make: *** [install-recursive] Error 1
>>>
>>>
>>>
>>> It's clearly a dependency issue but my knowledge of automake etc. is
>>> minimal. In previous installs (for qpid 0.8 and 0.10) I had a
>>> similar issue
>>> where it broke relinking qmf stuff (I might yet get to that point)
>>> in that
>>> case I hacked qmf.mk to rearrange the order of libqmfengine.la - I'm
>>> thinking that I might have to do the same with cluster.mk but that's
>>> a lot
>>> more complex than qmf.mk so wouldn't know where to begin - there
>>> must be a
>>> better way.
>>>
>>> Has anyone actually got qpid 0.12 to install on an Ubuntu box?
>>>
>>> This is getting tiresome :-( 0.12 is definitely causing me more pain
>>> that
>>> 0.8 or 0.10 did....
>>>
>>> Fraser.
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> Apache Qpid - AMQP Messaging Implementation
>>> Project:      http://qpid.apache.org
>>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>>   
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-(

Posted by Fraser Adams <fr...@blueyonder.co.uk>.
Hi Brandon,
It's Ubuntu 9.10 - I probably should upgrade I know, but I've never had 
things break quite this badly with previous qpid releases.

The package stuff might be useful at some point, but I'm keen to build 
from source - I've done it with the previous releases. It'd be nice if 
make install "just worked".

It would probably be easier to fix if I knew how autoconf/automake 
worked - it looks like gobbledygook to me :-(

Frase


Brandon Pedersen wrote:
> I don't remember having this problem specifically...though I have
> built it several time and had to work around tons of little issues
> like this....What version of Ubuntu are you using? I used the
> packaging stuff from here
> https://launchpad.net/ubuntu/+source/qpid-python to build a debian
> package for lucid. There is also a PPA here
> https://launchpad.net/~kb3gtn/+archive/qpid-0.12?field.series_filter=lucid
> that may work (I haven't tested it...again for lucid, but not as clean
> of packaging as the official one for precise). If you want, I can post
> the debs I created for lucid (x64) somewhere...I would create a PPA
> but didn't know how to do it...it took a while just to backport the
> packaging from precise.
>
> -Brandon
>
> On Sun, Nov 27, 2011 at 12:54 PM, Fraser Adams
> <fr...@blueyonder.co.uk> wrote:
>   
>> Hi again,
>> I've got a bit further making Qpid 0.12 on my Ubuntu box so I'm now trying
>> make install.
>>
>> Unfortunately I'm bombing out with.
>>
>> /bin/bash ../libtool   --mode=install /usr/bin/install -c   cluster.la
>> watchdog.la acl.la xml.la replicating_listener.la replication_exchange.la
>> '/usr/local/lib/qpid/daemon'
>> libtool: install: warning: relinking `cluster.la'
>> libtool: install: (cd /home/fadams/java/qpid-0.12/cpp/src; /bin/bash
>> /home/fadams/java/qpid-0.12/cpp/libtool  --tag CXX --mode=relink g++ -Werror
>> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align
>> -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
>> -Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\"
>> -DBOOST_FILESYSTEM_VERSION=2 -fno-strict-aliasing -g -O2 -no-undefined
>> -module -avoid-version -L/usr/lib/openais -L/usr/lib64/openais
>> -L/usr/lib/corosync -L/usr/lib64/corosync -o cluster.la -rpath
>> /usr/local/lib/qpid/daemon qpid/cluster/cluster_la-Quorum_cman.lo
>> qpid/cluster/cluster_la-Cluster.lo qpid/cluster/cluster_la-ClusterTimer.lo
>> qpid/cluster/cluster_la-Decoder.lo qpid/cluster/cluster_la-ClusterMap.lo
>> qpid/cluster/cluster_la-ClusterPlugin.lo
>> qpid/cluster/cluster_la-Connection.lo
>> qpid/cluster/cluster_la-ConnectionCodec.lo qpid/cluster/cluster_la-Cpg.lo
>> qpid/cluster/cluster_la-UpdateClient.lo
>> qpid/cluster/cluster_la-RetractClient.lo
>> qpid/cluster/cluster_la-ErrorCheck.lo qpid/cluster/cluster_la-Event.lo
>> qpid/cluster/cluster_la-EventFrame.lo
>> qpid/cluster/cluster_la-ExpiryPolicy.lo
>> qpid/cluster/cluster_la-FailoverExchange.lo
>> qpid/cluster/cluster_la-UpdateExchange.lo
>> qpid/cluster/cluster_la-Multicaster.lo
>> qpid/cluster/cluster_la-OutputInterceptor.lo
>> qpid/cluster/cluster_la-PollerDispatch.lo
>> qpid/cluster/cluster_la-InitialStatusMap.lo
>> qpid/cluster/cluster_la-MemberSet.lo
>> qpid/cluster/cluster_la-SecureConnectionFactory.lo
>> qpid/cluster/cluster_la-StoreStatus.lo
>> qpid/cluster/cluster_la-UpdateDataExchange.lo -lcpg -lcman libqpidbroker.la
>> libqpidclient.la )
>> libtool: relink: g++ -shared -nostdlib
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o
>>  qpid/cluster/.libs/cluster_la-Quorum_cman.o
>> qpid/cluster/.libs/cluster_la-Cluster.o
>> qpid/cluster/.libs/cluster_la-ClusterTimer.o
>> qpid/cluster/.libs/cluster_la-Decoder.o
>> qpid/cluster/.libs/cluster_la-ClusterMap.o
>> qpid/cluster/.libs/cluster_la-ClusterPlugin.o
>> qpid/cluster/.libs/cluster_la-Connection.o
>> qpid/cluster/.libs/cluster_la-ConnectionCodec.o
>> qpid/cluster/.libs/cluster_la-Cpg.o
>> qpid/cluster/.libs/cluster_la-UpdateClient.o
>> qpid/cluster/.libs/cluster_la-RetractClient.o
>> qpid/cluster/.libs/cluster_la-ErrorCheck.o
>> qpid/cluster/.libs/cluster_la-Event.o
>> qpid/cluster/.libs/cluster_la-EventFrame.o
>> qpid/cluster/.libs/cluster_la-ExpiryPolicy.o
>> qpid/cluster/.libs/cluster_la-FailoverExchange.o
>> qpid/cluster/.libs/cluster_la-UpdateExchange.o
>> qpid/cluster/.libs/cluster_la-Multicaster.o
>> qpid/cluster/.libs/cluster_la-OutputInterceptor.o
>> qpid/cluster/.libs/cluster_la-PollerDispatch.o
>> qpid/cluster/.libs/cluster_la-InitialStatusMap.o
>> qpid/cluster/.libs/cluster_la-MemberSet.o
>> qpid/cluster/.libs/cluster_la-SecureConnectionFactory.o
>> qpid/cluster/.libs/cluster_la-StoreStatus.o
>> qpid/cluster/.libs/cluster_la-UpdateDataExchange.o   -L/usr/lib/openais
>> -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -lcpg -lcman
>> -L/usr/local/lib -lqpidbroker -lqpidclient
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib
>> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../.. -lstdc++
>> -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o    -Wl,-soname
>> -Wl,cluster.so -o .libs/cluster.so
>> /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'
>> make[2]: *** [install-am] Error 2
>> make[2]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
>> make[1]: *** [install-recursive] Error 1
>> make[1]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
>> make: *** [install-recursive] Error 1
>>
>>
>>
>> It's clearly a dependency issue but my knowledge of automake etc. is
>> minimal. In previous installs (for qpid 0.8 and 0.10) I had a similar issue
>> where it broke relinking qmf stuff (I might yet get to that point) in that
>> case I hacked qmf.mk to rearrange the order of libqmfengine.la - I'm
>> thinking that I might have to do the same with cluster.mk but that's a lot
>> more complex than qmf.mk so wouldn't know where to begin - there must be a
>> better way.
>>
>> Has anyone actually got qpid 0.12 to install on an Ubuntu box?
>>
>> This is getting tiresome :-( 0.12 is definitely causing me more pain that
>> 0.8 or 0.10 did....
>>
>> Fraser.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
>   


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-(

Posted by Brandon Pedersen <bp...@gmail.com>.
Whoops, that link should have been
https://launchpad.net/ubuntu/+source/qpid-cpp/0.12-1ubuntu1

On Sun, Nov 27, 2011 at 1:41 PM, Brandon Pedersen <bp...@gmail.com> wrote:
> I don't remember having this problem specifically...though I have
> built it several time and had to work around tons of little issues
> like this....What version of Ubuntu are you using? I used the
> packaging stuff from here
> https://launchpad.net/ubuntu/+source/qpid-python to build a debian
> package for lucid. There is also a PPA here
> https://launchpad.net/~kb3gtn/+archive/qpid-0.12?field.series_filter=lucid
> that may work (I haven't tested it...again for lucid, but not as clean
> of packaging as the official one for precise). If you want, I can post
> the debs I created for lucid (x64) somewhere...I would create a PPA
> but didn't know how to do it...it took a while just to backport the
> packaging from precise.
>
> -Brandon
>
> On Sun, Nov 27, 2011 at 12:54 PM, Fraser Adams
> <fr...@blueyonder.co.uk> wrote:
>> Hi again,
>> I've got a bit further making Qpid 0.12 on my Ubuntu box so I'm now trying
>> make install.
>>
>> Unfortunately I'm bombing out with.
>>
>> /bin/bash ../libtool   --mode=install /usr/bin/install -c   cluster.la
>> watchdog.la acl.la xml.la replicating_listener.la replication_exchange.la
>> '/usr/local/lib/qpid/daemon'
>> libtool: install: warning: relinking `cluster.la'
>> libtool: install: (cd /home/fadams/java/qpid-0.12/cpp/src; /bin/bash
>> /home/fadams/java/qpid-0.12/cpp/libtool  --tag CXX --mode=relink g++ -Werror
>> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align
>> -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
>> -Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\"
>> -DBOOST_FILESYSTEM_VERSION=2 -fno-strict-aliasing -g -O2 -no-undefined
>> -module -avoid-version -L/usr/lib/openais -L/usr/lib64/openais
>> -L/usr/lib/corosync -L/usr/lib64/corosync -o cluster.la -rpath
>> /usr/local/lib/qpid/daemon qpid/cluster/cluster_la-Quorum_cman.lo
>> qpid/cluster/cluster_la-Cluster.lo qpid/cluster/cluster_la-ClusterTimer.lo
>> qpid/cluster/cluster_la-Decoder.lo qpid/cluster/cluster_la-ClusterMap.lo
>> qpid/cluster/cluster_la-ClusterPlugin.lo
>> qpid/cluster/cluster_la-Connection.lo
>> qpid/cluster/cluster_la-ConnectionCodec.lo qpid/cluster/cluster_la-Cpg.lo
>> qpid/cluster/cluster_la-UpdateClient.lo
>> qpid/cluster/cluster_la-RetractClient.lo
>> qpid/cluster/cluster_la-ErrorCheck.lo qpid/cluster/cluster_la-Event.lo
>> qpid/cluster/cluster_la-EventFrame.lo
>> qpid/cluster/cluster_la-ExpiryPolicy.lo
>> qpid/cluster/cluster_la-FailoverExchange.lo
>> qpid/cluster/cluster_la-UpdateExchange.lo
>> qpid/cluster/cluster_la-Multicaster.lo
>> qpid/cluster/cluster_la-OutputInterceptor.lo
>> qpid/cluster/cluster_la-PollerDispatch.lo
>> qpid/cluster/cluster_la-InitialStatusMap.lo
>> qpid/cluster/cluster_la-MemberSet.lo
>> qpid/cluster/cluster_la-SecureConnectionFactory.lo
>> qpid/cluster/cluster_la-StoreStatus.lo
>> qpid/cluster/cluster_la-UpdateDataExchange.lo -lcpg -lcman libqpidbroker.la
>> libqpidclient.la )
>> libtool: relink: g++ -shared -nostdlib
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o
>>  qpid/cluster/.libs/cluster_la-Quorum_cman.o
>> qpid/cluster/.libs/cluster_la-Cluster.o
>> qpid/cluster/.libs/cluster_la-ClusterTimer.o
>> qpid/cluster/.libs/cluster_la-Decoder.o
>> qpid/cluster/.libs/cluster_la-ClusterMap.o
>> qpid/cluster/.libs/cluster_la-ClusterPlugin.o
>> qpid/cluster/.libs/cluster_la-Connection.o
>> qpid/cluster/.libs/cluster_la-ConnectionCodec.o
>> qpid/cluster/.libs/cluster_la-Cpg.o
>> qpid/cluster/.libs/cluster_la-UpdateClient.o
>> qpid/cluster/.libs/cluster_la-RetractClient.o
>> qpid/cluster/.libs/cluster_la-ErrorCheck.o
>> qpid/cluster/.libs/cluster_la-Event.o
>> qpid/cluster/.libs/cluster_la-EventFrame.o
>> qpid/cluster/.libs/cluster_la-ExpiryPolicy.o
>> qpid/cluster/.libs/cluster_la-FailoverExchange.o
>> qpid/cluster/.libs/cluster_la-UpdateExchange.o
>> qpid/cluster/.libs/cluster_la-Multicaster.o
>> qpid/cluster/.libs/cluster_la-OutputInterceptor.o
>> qpid/cluster/.libs/cluster_la-PollerDispatch.o
>> qpid/cluster/.libs/cluster_la-InitialStatusMap.o
>> qpid/cluster/.libs/cluster_la-MemberSet.o
>> qpid/cluster/.libs/cluster_la-SecureConnectionFactory.o
>> qpid/cluster/.libs/cluster_la-StoreStatus.o
>> qpid/cluster/.libs/cluster_la-UpdateDataExchange.o   -L/usr/lib/openais
>> -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -lcpg -lcman
>> -L/usr/local/lib -lqpidbroker -lqpidclient
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib
>> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../.. -lstdc++
>> -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o    -Wl,-soname
>> -Wl,cluster.so -o .libs/cluster.so
>> /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'
>> make[2]: *** [install-am] Error 2
>> make[2]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
>> make[1]: *** [install-recursive] Error 1
>> make[1]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
>> make: *** [install-recursive] Error 1
>>
>>
>>
>> It's clearly a dependency issue but my knowledge of automake etc. is
>> minimal. In previous installs (for qpid 0.8 and 0.10) I had a similar issue
>> where it broke relinking qmf stuff (I might yet get to that point) in that
>> case I hacked qmf.mk to rearrange the order of libqmfengine.la - I'm
>> thinking that I might have to do the same with cluster.mk but that's a lot
>> more complex than qmf.mk so wouldn't know where to begin - there must be a
>> better way.
>>
>> Has anyone actually got qpid 0.12 to install on an Ubuntu box?
>>
>> This is getting tiresome :-( 0.12 is definitely causing me more pain that
>> 0.8 or 0.10 did....
>>
>> Fraser.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Qpid 0.12 make install fails :-(

Posted by Brandon Pedersen <bp...@gmail.com>.
I don't remember having this problem specifically...though I have
built it several time and had to work around tons of little issues
like this....What version of Ubuntu are you using? I used the
packaging stuff from here
https://launchpad.net/ubuntu/+source/qpid-python to build a debian
package for lucid. There is also a PPA here
https://launchpad.net/~kb3gtn/+archive/qpid-0.12?field.series_filter=lucid
that may work (I haven't tested it...again for lucid, but not as clean
of packaging as the official one for precise). If you want, I can post
the debs I created for lucid (x64) somewhere...I would create a PPA
but didn't know how to do it...it took a while just to backport the
packaging from precise.

-Brandon

On Sun, Nov 27, 2011 at 12:54 PM, Fraser Adams
<fr...@blueyonder.co.uk> wrote:
> Hi again,
> I've got a bit further making Qpid 0.12 on my Ubuntu box so I'm now trying
> make install.
>
> Unfortunately I'm bombing out with.
>
> /bin/bash ../libtool   --mode=install /usr/bin/install -c   cluster.la
> watchdog.la acl.la xml.la replicating_listener.la replication_exchange.la
> '/usr/local/lib/qpid/daemon'
> libtool: install: warning: relinking `cluster.la'
> libtool: install: (cd /home/fadams/java/qpid-0.12/cpp/src; /bin/bash
> /home/fadams/java/qpid-0.12/cpp/libtool  --tag CXX --mode=relink g++ -Werror
> -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align
> -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
> -Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\"
> -DBOOST_FILESYSTEM_VERSION=2 -fno-strict-aliasing -g -O2 -no-undefined
> -module -avoid-version -L/usr/lib/openais -L/usr/lib64/openais
> -L/usr/lib/corosync -L/usr/lib64/corosync -o cluster.la -rpath
> /usr/local/lib/qpid/daemon qpid/cluster/cluster_la-Quorum_cman.lo
> qpid/cluster/cluster_la-Cluster.lo qpid/cluster/cluster_la-ClusterTimer.lo
> qpid/cluster/cluster_la-Decoder.lo qpid/cluster/cluster_la-ClusterMap.lo
> qpid/cluster/cluster_la-ClusterPlugin.lo
> qpid/cluster/cluster_la-Connection.lo
> qpid/cluster/cluster_la-ConnectionCodec.lo qpid/cluster/cluster_la-Cpg.lo
> qpid/cluster/cluster_la-UpdateClient.lo
> qpid/cluster/cluster_la-RetractClient.lo
> qpid/cluster/cluster_la-ErrorCheck.lo qpid/cluster/cluster_la-Event.lo
> qpid/cluster/cluster_la-EventFrame.lo
> qpid/cluster/cluster_la-ExpiryPolicy.lo
> qpid/cluster/cluster_la-FailoverExchange.lo
> qpid/cluster/cluster_la-UpdateExchange.lo
> qpid/cluster/cluster_la-Multicaster.lo
> qpid/cluster/cluster_la-OutputInterceptor.lo
> qpid/cluster/cluster_la-PollerDispatch.lo
> qpid/cluster/cluster_la-InitialStatusMap.lo
> qpid/cluster/cluster_la-MemberSet.lo
> qpid/cluster/cluster_la-SecureConnectionFactory.lo
> qpid/cluster/cluster_la-StoreStatus.lo
> qpid/cluster/cluster_la-UpdateDataExchange.lo -lcpg -lcman libqpidbroker.la
> libqpidclient.la )
> libtool: relink: g++ -shared -nostdlib
> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o
> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o
>  qpid/cluster/.libs/cluster_la-Quorum_cman.o
> qpid/cluster/.libs/cluster_la-Cluster.o
> qpid/cluster/.libs/cluster_la-ClusterTimer.o
> qpid/cluster/.libs/cluster_la-Decoder.o
> qpid/cluster/.libs/cluster_la-ClusterMap.o
> qpid/cluster/.libs/cluster_la-ClusterPlugin.o
> qpid/cluster/.libs/cluster_la-Connection.o
> qpid/cluster/.libs/cluster_la-ConnectionCodec.o
> qpid/cluster/.libs/cluster_la-Cpg.o
> qpid/cluster/.libs/cluster_la-UpdateClient.o
> qpid/cluster/.libs/cluster_la-RetractClient.o
> qpid/cluster/.libs/cluster_la-ErrorCheck.o
> qpid/cluster/.libs/cluster_la-Event.o
> qpid/cluster/.libs/cluster_la-EventFrame.o
> qpid/cluster/.libs/cluster_la-ExpiryPolicy.o
> qpid/cluster/.libs/cluster_la-FailoverExchange.o
> qpid/cluster/.libs/cluster_la-UpdateExchange.o
> qpid/cluster/.libs/cluster_la-Multicaster.o
> qpid/cluster/.libs/cluster_la-OutputInterceptor.o
> qpid/cluster/.libs/cluster_la-PollerDispatch.o
> qpid/cluster/.libs/cluster_la-InitialStatusMap.o
> qpid/cluster/.libs/cluster_la-MemberSet.o
> qpid/cluster/.libs/cluster_la-SecureConnectionFactory.o
> qpid/cluster/.libs/cluster_la-StoreStatus.o
> qpid/cluster/.libs/cluster_la-UpdateDataExchange.o   -L/usr/lib/openais
> -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -lcpg -lcman
> -L/usr/local/lib -lqpidbroker -lqpidclient
> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1
> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../.. -lstdc++
> -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o
> /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o    -Wl,-soname
> -Wl,cluster.so -o .libs/cluster.so
> /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'
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/fadams/java/qpid-0.12/cpp/src'
> make: *** [install-recursive] Error 1
>
>
>
> It's clearly a dependency issue but my knowledge of automake etc. is
> minimal. In previous installs (for qpid 0.8 and 0.10) I had a similar issue
> where it broke relinking qmf stuff (I might yet get to that point) in that
> case I hacked qmf.mk to rearrange the order of libqmfengine.la - I'm
> thinking that I might have to do the same with cluster.mk but that's a lot
> more complex than qmf.mk so wouldn't know where to begin - there must be a
> better way.
>
> Has anyone actually got qpid 0.12 to install on an Ubuntu box?
>
> This is getting tiresome :-( 0.12 is definitely causing me more pain that
> 0.8 or 0.10 did....
>
> Fraser.
>
>
>
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org