You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2009/09/29 15:24:53 UTC
[jira] Resolved: (AMQCPP-263) Use of in-class static const
variables in cms/DeliveryMode.h results in crash while linking with
--no-undefined option
[ https://issues.apache.org/activemq/browse/AMQCPP-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQCPP-263.
---------------------------------
Resolution: Fixed
Fix Version/s: 3.1
Resolved in trunk
> Use of in-class static const variables in cms/DeliveryMode.h results in crash while linking with --no-undefined option
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AMQCPP-263
> URL: https://issues.apache.org/activemq/browse/AMQCPP-263
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: CMS Impl
> Affects Versions: 2.2.6, 3.0, 3.0.1
> Environment: - Linux Debian 5.0.1
> - gcc 4.3.2
> - ActiveMQ-CPP 2.2.6
> Reporter: Romain Chanu
> Assignee: Timothy Bish
> Priority: Blocker
> Fix For: 3.1
>
> Original Estimate: 10 minutes
> Remaining Estimate: 10 minutes
>
> The constants variables defined in cms/DeliveryMode.h (i.e static const int PERSISTENT = 0 and static const int NON_PERSISTENT = 1;) are not defined out off the class.
> In the following cases:
> - If you try to take the address of this constant variable.
> - You pass it to a function that takes a reference.
> - When used with the tertiary operator ?
> It results in a crash while linking ActiveMQ-CPP library with an application using the linking option --no-undefined (GNU linker ld returns "undefined references" for these two variables).
> The variables should be defined as an enumeration (like the way it has been done in cms/Session.h for the acknowledgment modes)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.