Details
Description
Running
./bootstrap
./configure
./make
fails on Ubuntu (my system is a fairly old 9.x Karmic but it has been reported on later versions too)
The failure is due to "declared with attribute warn_unused_result" in a few places and the fact that warnings are treated as errors.
One solution suggested by Peter Fetterer, Brandon Pederson and Ilya Haykinson is to do
./configure --disable-warnings
However Cajus Pollmeier has produced a patch:
https://github.com/cajus/qpid-cpp-debian/blob/master/debian/patches/fix-unused.patch
That actually fixes the four files that don't use the return value. I've applied this to my install and it works nicely.
In addition to the make problem 0.12 was unable to "make install", there was clearly a library dependency and libtool barfed.
Ilya Haykinson suggested running
export LDFLAGS=-L`dirname $(pwd)`/cpp/src/.libs
prior to ./configure and this works beautifully.
Ilya actually produced some very nice build instructions and it might be useful if these could be included in the README.txt in future releases to help others with installation issues.
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
- Install Qpid C++ broker and client runtime libraries
cd qpid/cpp
./bootstrap
export LDFLAGS=-L`dirname $(pwd)`/cpp/src/.libs
#./configure --disable-warnings # Not needed if Cajus' patch is applied
make
sudo make install
- Install persistence module
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
- Install Qpid python client runtime, management tools and associated libraries
cd ../qpid
cd python
sudo python setup.py install
cd ../tools
sudo python setup.py install
cd ../extras/qmf
sudo python setup.py install