Re: [Boost-bugs] [Boost C++ Libraries] #9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux 11.23 IA, gcc 4.6

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux 11.23 IA, gcc 4.6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-25 15:51:15


#9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux
11.23 IA, gcc 4.6
-------------------------------+--------------------------
  Reporter: gengyonghui@… | Owner: viboes
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: steady_clock
-------------------------------+--------------------------

Comment (by 20313412@…):

 Sorry, here's the diff result:
 {{{
 diff -Nau org/chrono.hpp new/chrono.hpp
 --- org/chrono.hpp 2015-01-25 23:38:43.724793129 +0800
 +++ new/chrono.hpp 2015-01-25 23:38:54.084793418 +0800
 @@ -76,7 +76,7 @@
  #ifdef BOOST_CHRONO_HAS_GETHRTIME
      hrtime_t hrt = gethrtime();
      BOOST_ASSERT(hrt>=0);
 - return time_point(nanoseconds(hrt);
 + return time_point(nanoseconds(hrt));
  #else
      timespec ts;
      if ( ::clock_gettime( CLOCK_MONOTONIC, &ts ) )
 @@ -111,7 +111,7 @@
      {
          ec.clear();
      }
 - return time_point(nanoseconds(hrt);
 + return time_point(nanoseconds(hrt));
  #else
      timespec ts;
      if ( ::clock_gettime( CLOCK_MONOTONIC, &ts ) )
 diff -Nau org/config.hpp new/config.hpp
 --- org/config.hpp 2015-01-25 23:38:37.617794648 +0800
 +++ new/config.hpp 2015-01-25 23:39:00.701793133 +0800
 @@ -84,18 +84,13 @@
  # include <time.h> //to check for CLOCK_REALTIME and CLOCK_MONOTONIC
 and _POSIX_THREAD_CPUTIME
  # if defined(CLOCK_MONOTONIC)
  # define BOOST_CHRONO_HAS_CLOCK_STEADY
 -# if BOOST_PLATFORM="HP-UX"
 -# include <user_time.h> //to check for gethrtime
 +# elif (defined(__HP_aCC) || defined(__GNUC__)) && defined(__hpux)
  # if ! defined BOOST_CHRONO_HAS_GETHRTIME
 -# if
 defined(WHATEVER_HPUX_SPECIFIC_FLAG_ENSURES_GETHRTIME_WILL_BE_DEFINED)
 -# define BOOST_CHRONO_HAS_GETHRTIME
 -# define BOOST_CHRONO_HAS_CLOCK_STEADY
 -# endif
 -# else
 +# define BOOST_CHRONO_HAS_GETHRTIME
  # define BOOST_CHRONO_HAS_CLOCK_STEADY
  # endif
 -# endif
  # endif
 +
  # if defined(_POSIX_THREAD_CPUTIME) && !defined(BOOST_DISABLE_THREADS)
  # define BOOST_CHRONO_HAS_THREAD_CLOCK
  # define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true

 }}}

 Tomorrow, I'll try to find out the flag corresponding to -Aa and post the
 result here.
 I'll also test if {{{# if BOOST_PLATFORM="HP-UX"}}} works
 please hold on

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9379#comment:23>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC