Boost C++ Libraries: Ticket #3004: test_dll_exported fails https://svn.boost.org/trac10/ticket/3004 <p> Built with msvc-8.0. </p> <p> The failure message is: d:\boost\boost.build\libs\serialization\test\test_tools.hpp(183): unregistered void cast in function 'int <span class="underline">cdecl main(int,char *[])' 1 error detected. </span></p> <p> I found and fixed this problem first with our own test suite. </p> <p> Problem: The lib allows multiple instances of the extended_type_info to represent the same type. This seems to be ok in most cases. But in the void cast code this breaks and reports a missing cast where there is one present: the equality (or order in that case) is too fine. I added the proper weaker equality and search the cast list again using that if the first search failed. </p> <p> Assembling the patch for this ticket, I noticed that there already is a unit test for the kind of DLL exported stuff we use. But it was not executed. So I fixed that, ran the test on the original lib and it failed. With my patch it succeeds again. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3004 Trac 1.4.3 Marvin.Sielenkemper@… Fri, 08 May 2009 13:47:20 GMT attachment set https://svn.boost.org/trac10/ticket/3004 https://svn.boost.org/trac10/ticket/3004 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch.txt</span> </li> </ul> <p> Fixes for tests and lib. </p> Ticket Marvin.Sielenkemper@… Thu, 14 May 2009 08:35:29 GMT version changed https://svn.boost.org/trac10/ticket/3004#comment:1 https://svn.boost.org/trac10/ticket/3004#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.38.0</span> → <span class="trac-field-new">Boost 1.39.0</span> </li> </ul> <p> updated the "Version:" (1.39.0 was not available before) </p> Ticket Robert Ramey Mon, 18 May 2009 16:07:27 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3004#comment:2 https://svn.boost.org/trac10/ticket/3004#comment:2 <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> I have made changes to extended_type_info.cpp and void_cast.cpp in the trunk. I can't really test these very well. I would appreciate it if you could rebuild the library with these latest files and try again. </p> <p> Robert Ramey </p> Ticket Robert Ramey Mon, 18 May 2009 16:08:32 GMT <link>https://svn.boost.org/trac10/ticket/3004#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3004#comment:3</guid> <description> <p> I have made changes to extended_type_info.cpp and void_cast.cpp in the trunk. I can't really test these very well. I would appreciate it if you could rebuild the library with these latest files and try again. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <author>Marvin.Sielenkemper@…</author> <pubDate>Mon, 08 Jun 2009 07:48:31 GMT</pubDate> <title>status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/3004#comment:4 https://svn.boost.org/trac10/ticket/3004#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.39.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.39.0</span> → <span class="trac-field-new">Boost 1.40.0</span> </li> </ul> <p> Checked with trunk rev. 53717. </p> <p> The test still fails with message </p> <p> --- snip --- </p> <p> d:\boost\boost-trunk\libs\serialization\test\test_tools.hpp(183): unregistered void cast in function 'int <span class="underline">cdecl main(int,char *[])' 1 error detected. EXIT STATUS: 1 </span></p> <p> --- snip --- </p> <p> I'll try to add the relevant compiled files as an attachment. </p> Ticket Marvin.Sielenkemper@… Mon, 08 Jun 2009 07:55:11 GMT attachment set https://svn.boost.org/trac10/ticket/3004 https://svn.boost.org/trac10/ticket/3004 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_dll_exported.7z</span> </li> </ul> <p> compiled binary with debug information (msvc 8.0) </p> Ticket Marvin.Sielenkemper@… Mon, 08 Jun 2009 08:12:06 GMT attachment set https://svn.boost.org/trac10/ticket/3004 https://svn.boost.org/trac10/ticket/3004 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">additional_test_dlls.7z</span> </li> </ul> <p> additional test DLLs needed by the test binaries </p> Ticket Robert Ramey Thu, 09 Jul 2009 14:53:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3004#comment:5 https://svn.boost.org/trac10/ticket/3004#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> fixed in trunk. test_dll_exported added to bjam test suite </p> Ticket