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 71753CEBF for ; Thu, 9 Aug 2012 14:36:21 +0000 (UTC) Received: (qmail 84629 invoked by uid 500); 9 Aug 2012 14:36:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 84042 invoked by uid 500); 9 Aug 2012 14:36:19 -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 83944 invoked by uid 99); 9 Aug 2012 14:36:19 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 14:36:19 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 30E81142818 for ; Thu, 9 Aug 2012 14:36:19 +0000 (UTC) Date: Thu, 9 Aug 2012 14:36:19 +0000 (UTC) From: "Jeffrey B (JIRA)" To: dev@activemq.apache.org Message-ID: <508198002.1680.1344522979202.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1691645067.17606.1344275642757.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQCPP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431844#comment-13431844 ] Jeffrey B commented on AMQCPP-417: ---------------------------------- Okay, thanks, I was a little confused about that flag myself, but I asked around here and now understand it. When the -AA option is used with this compiler, which needs to be done, it sets the _HP_NAMESPACE_STD flag. So if the change can be made with just that flag, that will be good, and I think a little better than the _HPUX_aCC flag. Thanks. > decaf/lang/System.cpp error with HPUX aCC > ----------------------------------------- > > Key: AMQCPP-417 > URL: https://issues.apache.org/jira/browse/AMQCPP-417 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Decaf > Affects Versions: 3.4.4 > Environment: HPUX 11_31 > aCC A.06.26 > Reporter: Jeffrey B > Assignee: Timothy Bish > Labels: HPUX, fix, system > Fix For: 3.5.0 > > Original Estimate: 1h > Remaining Estimate: 1h > > in the file src/main/decaf/lang/System.cpp, > it tries to get the number of CPUS, HPUX does not have the option for sysconf() that it uses. I have a working addition: > add this include at the top: > #if defined( _HP_NAMESPACE_STD ) || !defined( _HPUX ) > #include > #endif > and add this where it is getting the number of CPUs: > #elif defined( _HP_NAMESPACE_STD ) || !defined( _HPUX ) > numCpus = (int)mpctl(MPC_GETNUMSPUS, NULL, NULL); > here are two sources for this information: > http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine > http://h21007.www2.hp.com/portal/download/files/unprot/stk/solaris_stk/impacts/i190.html -- 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