← Back to team overview

linux-traipu team mailing list archive

[Bug 1132659] Re: drizzle's sleep plugin fails to compile with boost >= 1.50

 

And ...

drizzled/drizzled.cc: In function 'void drizzled::close_connections()':
drizzled/drizzled.cc:453: error: 'TIME_UTC' is not a member of 'boost'
make[2]: *** [drizzled/drizzled.o] Error 1

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/1132659

Title:
  drizzle's sleep plugin fails to compile with boost >= 1.50

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  New

Bug description:
  In boost-1.50, the existing TIME_UTC macro is renamed to TIME_UTC_
  (note the trailing underscore) due to a conflict with C11.  For
  details, see boost issue #6940
  (https://svn.boost.org/trac/boost/ticket/6940).

  Suggest adding something like

  #include <boost/version.hpp>
  #if BOOST_VERSION < 105000
  #  if __STDC_VERSION__ >= 201112L
  #    error Cannot use Boost < 1.50 with C11 compiler.  Upgrade Boost or downgrade compiler.
  #  else
  #    define TIME_UTC_ TIME_UTC
  #  endif
  #endif

  and using TIME_UTC_ in plugins/sleep/sleep.cc

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/1132659/+subscriptions


References