Opened 11 years ago
Closed 11 years ago
#5565 closed Bugs (fixed)
Python tests fail to link on QNX due to missing socket functions
Reported by: | Owned by: | Ralf W. Grosse-Kunstleve | |
---|---|---|---|
Milestone: | To Be Determined | Component: | python USE GITHUB |
Version: | Boost Release Branch | Severity: | Problem |
Keywords: | Cc: |
Description
When running the regression tests on QNX 6.5.0, several tests fail to link with errors like "undefined reference to `getsockopt'".
You need to link to the "socket" library to use socket functions on QNX. The Asio tests for example do this.
Sample error output: http://www.boost.org/development/tests/release/developer/output/NA-QNX650-qcc-gnu0x-boost-bin-v2-libs-python-test-bases-test-qcc-debug.html
I'd gladly test a patch or run the trunk tests.
Attachments (1)
Change History (6)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
QNX is a Unix-like OS so it's not that exotic. You just need to make sure the linker command-line contains -lsocket.
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:
bases exec exec-dynamic import_ operators pointee pointer_type_id_test upcast
The fix is based the build file for the Asio tests, http://svn.boost.org/svn/boost/trunk/libs/asio/test/Jamfile.v2.
by , 11 years ago
Attachment: | python_socket.patch added |
---|
comment:3 by , 11 years ago
Thanks for the patch. It is checked in as trunk rev. 72173
If there are no problems I'll merge it into the release branch in a few days.
comment:4 by , 11 years ago
Thanks. All tests except "operators" pass on trunk now. But that seems to be a separate problem.
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Merged to release branch with rev. 72277
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?