Boost C++ Libraries: Ticket #7218: Regression from Changeset 79895: new calls to madvise() need to cast as necessary to caddr_t https://svn.boost.org/trac10/ticket/7218 <p> On the AIX tester we see: </p> <pre class="wiki">"../boost/interprocess/mapped_region.hpp", line 762.52: 1540-0256 (S) A parameter of type "char *" cannot be initialized with an expression of type "void *". "../boost/interprocess/mapped_region.hpp", line 762.52: 1540-1205 (I) The error occurred while converting to parameter 1 of "madvise(caddr_t, size_t, int)". </pre><p> The call in question to <code>madvise()</code> is indeed invalid. The signature for <code>madvise()</code> on the AIX platform uses <code>caddr_t</code> (a typedef to <code>char *</code>) as the type of the first parameter. </p> <p> A search seems to indicate that Solaris and HP-UX also use <code>caddr_t</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7218 Trac 1.4.3 Ion Gaztañaga Sat, 11 Aug 2012 12:46:06 GMT <link>https://svn.boost.org/trac10/ticket/7218#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7218#comment:1</guid> <description> <p> Thanks, for the report. Changeset 79964 should fix the problem. I can only test it in a x86 Solaris 11 Virtual Machine. It seems that Tru64 also uses caddr_t. Please let me know if this fixes the issue. </p> </description> <category>Ticket</category> </item> <item> <author>Hubert Tong <hstong@…></author> <pubDate>Sun, 12 Aug 2012 15:28:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7218#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7218#comment:2</guid> <description> <p> Yes, it fixes the issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Sun, 12 Aug 2012 20:30:22 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7218#comment:3 https://svn.boost.org/trac10/ticket/7218#comment:3 <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> Ticket