[Boost-bugs] [Boost C++ Libraries] #10262: [interprocess] AIX 6.1 bug with variable definition hz.

Subject: [Boost-bugs] [Boost C++ Libraries] #10262: [interprocess] AIX 6.1 bug with variable definition hz.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-28 15:55:34


#10262: [interprocess] AIX 6.1 bug with variable definition hz.
-----------------------------------------------+--------------------------
 Reporter: Axel Ismirlian <axel.ismirlian@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+--------------------------
 The error that pops up in some of the interprocess tests is the following:

 ../boost/interprocess/detail/os_thread_functions.hpp:289:9: error:
 expected unqualified-id before numeric constant
     long hz =::sysconf(_SC_CLK_TCK); // ticks per sec
          ^
 In file included from
 ../boost/interprocess/detail/managed_open_or_create_impl.hpp:15:0,
                  from ../boost/interprocess/managed_shared_memory.hpp:22,
                  from
 ../libs/interprocess/test/cached_node_allocator_test.cpp:12:
 ../boost/interprocess/detail/os_thread_functions.hpp:291:10: error: lvalue
 required as left operand of assignment
        hz = 100;
           ^
 Having a variable named hz conflicts with the definition of an AIX system
 variable that is in scope with this file. If I undefine the variable hz,
 hz can be safely defined without any confusion to the compiler.

 Please look at the Pull Request created for further details:
 https://github.com/boostorg/interprocess/pull/7

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10262>
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:16 UTC