Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-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 7DAC1931B for ; Sun, 19 Feb 2012 19:54:58 +0000 (UTC) Received: (qmail 16157 invoked by uid 500); 19 Feb 2012 19:54:58 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 16120 invoked by uid 500); 19 Feb 2012 19:54:58 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 16110 invoked by uid 99); 19 Feb 2012 19:54:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2012 19:54:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Sun, 19 Feb 2012 19:54:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 362F21C05F5 for ; Sun, 19 Feb 2012 19:54:34 +0000 (UTC) Date: Sun, 19 Feb 2012 19:54:34 +0000 (UTC) From: "Steve Traylen (Updated) (JIRA)" To: dev@activemq.apache.org Message-ID: <1689711998.861.1329681274223.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <132495225.847.1329681034159.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQCPP-389) activemq-cpp build fails with gcc 4.7 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/AMQCPP-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Traylen updated AMQCPP-389: --------------------------------- Description: Building activemq-cpp-library-3.4.1-src.tar.gz with gcc-c++ 4.7.0 results in {noformat} ./decaf/util/AbstractQueue.h:63:13: error: 'offer' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] ./decaf/util/AbstractQueue.h:63:13: note: declarations in dependent base 'decaf::util::Queue' are not found by unqualified lookup ./decaf/util/AbstractQueue.h:63:13: note: use 'this->offer' instead {noformat} From: https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html C++ lookup fixes, the C++ FE no longer performs an extra unqualified lookup that it (incorrectly) performed in the past. In some cases the diagnostics includes hints how to fix the bugs, for PR24163 the diagnostics looks like: error: 'something' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] note: declarations in dependent base 'someclass' are not found by unqualified lookup note: use 'this->something' instead http://gcc.gnu.org/PR24163 The trivial attached patch with solution recomended above corrects the problem. was: Building activemq-cpp-library-3.4.1-src.tar.gz with gcc-c++ 4.7.0 results in {noforamt} ./decaf/util/AbstractQueue.h:63:13: error: 'offer' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] ./decaf/util/AbstractQueue.h:63:13: note: declarations in dependent base 'decaf::util::Queue' are not found by unqualified lookup ./decaf/util/AbstractQueue.h:63:13: note: use 'this->offer' instead {noformat} From: https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html C++ lookup fixes, the C++ FE no longer performs an extra unqualified lookup that it (incorrectly) performed in the past. In some cases the diagnostics includes hints how to fix the bugs, for PR24163 the diagnostics looks like: error: 'something' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] note: declarations in dependent base 'someclass' are not found by unqualified lookup note: use 'this->something' instead http://gcc.gnu.org/PR24163 The trivial attached patch with solution recomended above corrects the problem. > activemq-cpp build fails with gcc 4.7 > ------------------------------------- > > Key: AMQCPP-389 > URL: https://issues.apache.org/jira/browse/AMQCPP-389 > Project: ActiveMQ C++ Client > Issue Type: Bug > Affects Versions: 3.4.1 > Environment: Fedora 17, gcc 4.7.0 > Reporter: Steve Traylen > Assignee: Timothy Bish > Labels: build > Attachments: activemq-gcc47.txt, build.log > > > Building > activemq-cpp-library-3.4.1-src.tar.gz > with > gcc-c++ 4.7.0 > results in > {noformat} > ./decaf/util/AbstractQueue.h:63:13: error: 'offer' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] > ./decaf/util/AbstractQueue.h:63:13: note: declarations in dependent base 'decaf::util::Queue' are not found by unqualified lookup > ./decaf/util/AbstractQueue.h:63:13: note: use 'this->offer' instead > {noformat} > From: https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html > C++ lookup fixes, the C++ FE no longer performs an extra unqualified > lookup that it (incorrectly) performed in the past. In some cases the > diagnostics includes hints how to fix the bugs, for PR24163 the > diagnostics looks like: > error: 'something' was not declared in this scope, and no > declarations were found by argument-dependent lookup at > the point of instantiation [-fpermissive] note: declarations in > dependent base 'someclass' are not found by unqualified lookup > note: use 'this->something' instead > http://gcc.gnu.org/PR24163 > The trivial attached patch with solution recomended above corrects the > problem. -- 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