Boost C++ Libraries: Ticket #10262: [interprocess] AIX 6.1 bug with variable definition hz. https://svn.boost.org/trac10/ticket/10262 <p> The error that pops up in some of the interprocess tests is the following: </p> <p> ../boost/interprocess/detail/os_thread_functions.hpp:289:9: error: expected unqualified-id before numeric constant </p> <blockquote> <p> long hz =::sysconf(_SC_CLK_TCK); <em> ticks per sec </em></p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> In file included from ../boost/interprocess/detail/managed_open_or_create_impl.hpp:15:0, </p> <blockquote> <p> from ../boost/interprocess/managed_shared_memory.hpp:22, from ../libs/interprocess/test/cached_node_allocator_test.cpp:12: </p> </blockquote> <p> ../boost/interprocess/detail/os_thread_functions.hpp:291:10: error: lvalue required as left operand of assignment </p> <blockquote> <p> hz = 100; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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. </p> <p> Please look at the Pull Request created for further details: <a class="ext-link" href="https://github.com/boostorg/interprocess/pull/7"><span class="icon">​</span>https://github.com/boostorg/interprocess/pull/7</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10262 Trac 1.4.3 Ion Gaztañaga Wed, 30 Jul 2014 14:49:23 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10262#comment:1 https://svn.boost.org/trac10/ticket/10262#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Renamed the variable to "ticks_per_second" in </p> <p> [develop 3c09cee] Renamed variable "hz" as it conflicts with AIX's system variable </p> Ticket