Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-417

decaf/lang/System.cpp error with HPUX aCC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.4
    • 3.5.0
    • Decaf
    • HPUX 11_31
      aCC A.06.26

    Description

      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

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            doldrums Jeffrey B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified