Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3657

Qpid 0.12 make and make install fail on Ubuntu

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.12
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
    • Environment:

      Ubuntu, probably Debian possibly others

      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

      1. 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
      1. 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
      1. 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

        Attachments

          Activity

            People

            • Assignee:
              aconway Alan Conway
              Reporter:
              fadams Fraser Adams
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: