activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey B (JIRA)" <>
Subject [jira] [Updated] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC
Date Thu, 09 Aug 2012 14:38:19 GMT


Jeffrey B updated AMQCPP-417:

    Comment: was deleted

(was: 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
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.

> decaf/lang/System.cpp error with HPUX aCC
> -----------------------------------------
>                 Key: AMQCPP-417
>                 URL:
>             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 <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:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message