You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jeffrey Brenwald (JIRA)" <ji...@apache.org> on 2012/08/06 19:54:02 UTC

[jira] [Created] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

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

        

[jira] [Commented] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQCPP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430494#comment-13430494 ] 

Timothy Bish commented on AMQCPP-417:
-------------------------------------

Would the #if defined(__HP_aCC) test not be a better option here, that #if defined( _HP_NAMESPACE_STD ) || !defined( _HPUX ) test looks a bit odd to me, I'd expect the _HPUX test would be true everywhere that's not AIX.
                
> 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
>   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:
> 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

        

[jira] [Updated] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

Posted by "Jeffrey B (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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 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 <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

        

[jira] [Resolved] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-417.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.5.0

Added a fix on trunk using _HPUX_aCC check
                
> 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 <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

        

[jira] [Commented] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

Posted by "Jeffrey B (JIRA)" <ji...@apache.org>.
    [ 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 <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

        

[jira] [Reopened] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

Posted by "Jeffrey B (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeffrey B reopened 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 <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

        

[jira] [Resolved] (AMQCPP-417) decaf/lang/System.cpp error with HPUX aCC

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-417.
---------------------------------

    Resolution: Fixed

Changed to the _HP_NAMESPACE_STD flag.  No idea if it works but doesn't break supported platforms.  
                
> 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 <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