activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Brenwald (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC
Date Mon, 06 Aug 2012 17:54:02 GMT
Jeffrey Brenwald created AMQCPP-417:
---------------------------------------

             Summary: 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 Brenwald
            Assignee: Timothy Bish


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 <sys/mpctl.h>
#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

        

Mime
View raw message