You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Steve Traylen (Updated) (JIRA)" <ji...@apache.org> on 2012/02/19 20:52:34 UTC
[jira] [Updated] (AMQCPP-389) activemq-cpp build fails with gcc 4.7
[ https://issues.apache.org/jira/browse/AMQCPP-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Traylen updated AMQCPP-389:
---------------------------------
Attachment: activemq-gcc47.txt
build.log
This is a full build log showing the compile and error.
Also a patch to correct 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
> {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<decaf::lang::Runnable*>' 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<somearg>' 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