Return-Path: X-Original-To: apmail-qpid-dev-archive@www.apache.org Delivered-To: apmail-qpid-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF7BF9757 for ; Fri, 2 Dec 2011 14:32:05 +0000 (UTC) Received: (qmail 34291 invoked by uid 500); 2 Dec 2011 14:32:05 -0000 Delivered-To: apmail-qpid-dev-archive@qpid.apache.org Received: (qmail 34265 invoked by uid 500); 2 Dec 2011 14:32:05 -0000 Mailing-List: contact dev-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list dev@qpid.apache.org Received: (qmail 34257 invoked by uid 99); 2 Dec 2011 14:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 14:32:05 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 14:32:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C420FAFBA5 for ; Fri, 2 Dec 2011 14:31:40 +0000 (UTC) Date: Fri, 2 Dec 2011 14:31:40 +0000 (UTC) From: "Alan Conway (Commented) (JIRA)" To: dev@qpid.apache.org Message-ID: <2015833312.35012.1322836300805.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1600071819.34152.1322812780435.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (QPID-3657) Qpid 0.12 make and make install fail on Ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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