qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Conway (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-3657) Qpid 0.12 make and make install fail on Ubuntu
Date Fri, 02 Dec 2011 14:31:40 GMT

    [ https://issues.apache.org/jira/browse/QPID-3657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161662#comment-13161662
] 

Alan Conway commented on QPID-3657:
-----------------------------------

It looks like this issue has already been fixed on trunk. Can you try building from latest
trunk and verify it's OK?

The fix on trunk is slightly different, instead of 
ret = f(...);
void(ret);

the trunk has
if (f(...)) {}

Which should have the same effect.
                
> Qpid 0.12 make and make install fail on Ubuntu
> ----------------------------------------------
>
>                 Key: QPID-3657
>                 URL: https://issues.apache.org/jira/browse/QPID-3657
>             Project: Qpid
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 0.12
>         Environment: Ubuntu, probably Debian possibly others
>            Reporter: Fraser Adams
>            Assignee: Alan Conway
>            Priority: Minor
>              Labels: build
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message