Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 12566 invoked from network); 29 Sep 2009 03:27:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Sep 2009 03:27:15 -0000 Received: (qmail 80142 invoked by uid 500); 29 Sep 2009 03:27:15 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 80058 invoked by uid 500); 29 Sep 2009 03:27:15 -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 80048 invoked by uid 99); 29 Sep 2009 03:27:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 03:27:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 03:27:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4BFAE234C004 for ; Mon, 28 Sep 2009 20:26:52 -0700 (PDT) Message-ID: <749904265.1254194812293.JavaMail.jira@brutus> Date: Mon, 28 Sep 2009 20:26:52 -0700 (PDT) From: "Romain Chanu (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQCPP-263) Use of in-class static const variables in cms/DeliveryMode.h results in crash while linking with --no-undefined option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org 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: 3.0.1, 3.0, 2.2.6 Environment: - Linux Debian 5.0.1 - gcc 4.3.2 - ActiveMQ-CPP 2.2.6 Reporter: Romain Chanu Assignee: Timothy Bish Priority: Blocker 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.