Boost C++ Libraries: Ticket #5565: Python tests fail to link on QNX due to missing socket functions https://svn.boost.org/trac10/ticket/5565 <p> When running the regression tests on QNX 6.5.0, several tests fail to link with errors like "undefined reference to `getsockopt'". </p> <p> You need to link to the "socket" library to use socket functions on QNX. The Asio tests for example do this. </p> <p> Sample error output: <a href="http://www.boost.org/development/tests/release/developer/output/NA-QNX650-qcc-gnu0x-boost-bin-v2-libs-python-test-bases-test-qcc-debug.html">http://www.boost.org/development/tests/release/developer/output/NA-QNX650-qcc-gnu0x-boost-bin-v2-libs-python-test-bases-test-qcc-debug.html</a> </p> <p> I'd gladly test a patch or run the trunk tests. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5565 Trac 1.4.3 Ralf W. Grosse-Kunstleve Wed, 25 May 2011 15:54:15 GMT <link>https://svn.boost.org/trac10/ticket/5565#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5565#comment:1</guid> <description> <p> Sorry I don't have access to a QNX platform. If you need help working out the patch, could you ask at the boost developer list? </p> </description> <category>Ticket</category> </item> <item> <author>Niklas Angare <li51ckf02@…></author> <pubDate>Wed, 25 May 2011 23:38:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5565#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5565#comment:2</guid> <description> <p> QNX is a Unix-like OS so it's not that exotic. You just need to make sure the linker command-line contains -lsocket. </p> <p> I've created a patch that fixes the problem by linking all tests to the socket lib, even though only the following tests needed it: </p> <pre class="wiki">bases exec exec-dynamic import_ operators pointee pointer_type_id_test upcast </pre><p> The fix is based the build file for the Asio tests, <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/asio/test/Jamfile.v2"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/asio/test/Jamfile.v2</a>. </p> </description> <category>Ticket</category> </item> <item> <author>Niklas Angare <li51ckf02@…></author> <pubDate>Wed, 25 May 2011 23:38:47 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5565 https://svn.boost.org/trac10/ticket/5565 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">python_socket.patch</span> </li> </ul> Ticket Ralf W. Grosse-Kunstleve Thu, 26 May 2011 00:23:42 GMT <link>https://svn.boost.org/trac10/ticket/5565#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5565#comment:3</guid> <description> <p> Thanks for the patch. It is checked in as trunk rev. 72173 </p> <p> If there are no problems I'll merge it into the release branch in a few days. </p> </description> <category>Ticket</category> </item> <item> <author>Niklas Angare <li51ckf02@…></author> <pubDate>Fri, 27 May 2011 09:22:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5565#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5565#comment:4</guid> <description> <p> Thanks. All tests except "operators" pass on trunk now. But that seems to be a separate problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Mon, 30 May 2011 05:57:16 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5565#comment:5 https://svn.boost.org/trac10/ticket/5565#comment:5 <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> Merged to release branch with rev. 72277 </p> Ticket