You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't figure out what the problem is, and having boost correctly installed, the tests should work, given that they compile without errors and Cpp-Netlib doesn't need any compilation at all (it's headers only).
Well, I don't quite understand. At least in this master branch (cpp-netlib) even the compilation fails. My patch to fix compilation hasn't been applied (I haven't checked the devel-0.9 branch though). Anyway, again, a fresh clone+compile gives me the exact same error (compilation fail because of the patch I sent not applied), and even when I fast-forwarded the changes in master in my branch, with that patch applied, compilation still fails with exactly the same error as shown before (related to openssl examples).
Activity
deanberris commentedon Nov 10, 2011
What version of Boost are you building against?
On Fri, Nov 11, 2011 at 10:00 AM, Nick Retallack <
reply@reply.github.com>wrote:
Dean Michael Berris
Technical Solutions Engineer
Google
dsevilla commentedon Nov 22, 2011
Same error here with arch linux boost 1.47.0.
dsevilla commentedon Nov 23, 2011
Seems there is a bug in boost/network/protocol/http/client/macros.hpp. Type inside iterator_range should be const char *.
--- boost/network/protocol/http/client/macros.hpp.old 2011-11-23 01:39:43.000000000 +0100
+++ boost/network/protocol/http/client/macros.hpp 2011-11-23 01:08:29.000000000 +0100
@@ -11,7 +11,7 @@
#ifndef BOOST_NETWORK_HTTP_BODY_CALLBACK
#define BOOST_NETWORK_HTTP_BODY_CALLBACK(function_name, range_name, error_name) \
#endif
#endif /* BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_MACROS_HPP_20110430 */
deanberris commentedon Nov 23, 2011
Ah, yes. Do you mind sending in a pull request for this change?
dsevilla commentedon Nov 23, 2011
Err. Of course. Just let me figure out how to :)
Fix for issue #73 in 0.9-devel branch.
Merge pull request #76 from dsevilla/0.9-devel
jmsaugar commentedon Nov 23, 2011
Having this done, I can compile the tests, but the execution still fails. This is the output of "make test":
Running tests...
/usr/bin/ctest --force-new-ctest-process
Test project /home/jms/Documentos/Universidad/PFC/cpp-netlib-0.9.2
Start 1: cpp-netlib-message_test
1/19 Test #1: cpp-netlib-message_test ............................. Passed 0.08 sec
Start 2: cpp-netlib-message_transform_test
2/19 Test #2: cpp-netlib-message_transform_test ................... Passed 0.04 sec
Start 3: cpp-netlib-utils_thread_pool
3/19 Test #3: cpp-netlib-utils_thread_pool ........................ Passed 0.03 sec
Start 4: cpp-netlib-url_test
4/19 Test #4: cpp-netlib-url_test ................................. Passed 0.10 sec
Start 5: cpp-netlib-url_http_test
5/19 Test #5: cpp-netlib-url_http_test ............................ Passed 0.05 sec
Start 6: cpp-netlib-url_mailto_test
6/19 Test #6: cpp-netlib-url_mailto_test .......................... Passed 0.06 sec
Start 7: cpp-netlib-http-client_constructor_test
7/19 Test #7: cpp-netlib-http-client_constructor_test ............. Passed 0.12 sec
Start 8: cpp-netlib-http-client_get_test
8/19 Test #8: cpp-netlib-http-client_get_test ....................._Failed 14.63 sec
Start 9: cpp-netlib-http-client_get_different_port_test
9/19 Test #9: cpp-netlib-http-client_get_different_port_test ...... Passed 9.46 sec
Start 10: cpp-netlib-http-client_get_timeout_test
10/19 Test #10: cpp-netlib-http-client_get_timeout_test ............. Passed 0.02 sec
Start 11: cpp-netlib-http-client_get_streaming_test
11/19 Test #11: cpp-netlib-http-client_get_streaming_test ........... Passed 2.46 sec
Start 12: cpp-netlib-http-server_constructor_test
12/19 Test #12: cpp-netlib-http-server_constructor_test ............. Passed 0.01 sec
Start 13: cpp-netlib-http-server_async_run_stop_concurrency
13/19 Test #13: cpp-netlib-http-server_async_run_stop_concurrency ..._Exception: Other 0.02 sec
Start 14: cpp-netlib-server_hello_world
14/19 Test #14: cpp-netlib-server_hello_world ....................... Passed 1.79 sec
Start 15: cpp-netlib-server_async
15/19 Test #15: cpp-netlib-server_async ............................._Failed 1.13 sec
Start 16: cpp-netlib-server_async_less_copy
16/19 Test #16: cpp-netlib-server_async_less_copy ..................._Failed 1.11 sec
Start 17: cpp-netlib-http-inlined-client_include_inlined
17/19 Test #17: cpp-netlib-http-inlined-client_include_inlined ...... Passed 0.01 sec
Start 18: cpp-netlib-http-inlined-server_include_inlined
18/19 Test #18: cpp-netlib-http-inlined-server_include_inlined ...... Passed 0.00 sec
Start 19: mime-roundtrip
19/19 Test #19: mime-roundtrip ......................................***Failed 0.03 sec
74% tests passed, 5 tests failed out of 19
Total Test time (real) = 31.43 sec
The following tests FAILED:
8 - cpp-netlib-http-client_get_test (Failed)
13 - cpp-netlib-http-server_async_run_stop_concurrency (OTHER_FAULT)
15 - cpp-netlib-server_async (Failed)
16 - cpp-netlib-server_async_less_copy (Failed)
19 - mime-roundtrip (Failed)
Errors while running CTest
make: *** [test] Error 8
I have Boost 1.47.0 correctly installed and tested.
Anybody with the same problem?
dsevilla commentedon Nov 23, 2011
Yes, I saw the same results, but I couldn't fix it yesterday. I'll look into this today if I have time.
jmsaugar commentedon Nov 26, 2011
Nobody else?
I can't figure out what the problem is, and having boost correctly installed, the tests should work, given that they compile without errors and Cpp-Netlib doesn't need any compilation at all (it's headers only).
dsevilla commentedon Nov 27, 2011
Seems like the problem is, for the most part, related to HTTPS support.
deanberris commentedon Nov 28, 2011
Can you be more specific? Do you have the openssl development headers
and libraries installed when you build the system?
On Mon, Nov 28, 2011 at 8:20 AM, Diego Sevilla
reply@reply.github.com
wrote:
Dean Michael Berris
Technical Solutions Engineer
Google
glynos commentedon Dec 10, 2011
All tests are now passing.
dsevilla commentedon Dec 13, 2011
Well, I don't quite understand. At least in this master branch (cpp-netlib) even the compilation fails. My patch to fix compilation hasn't been applied (I haven't checked the devel-0.9 branch though). Anyway, again, a fresh clone+compile gives me the exact same error (compilation fail because of the patch I sent not applied), and even when I fast-forwarded the changes in master in my branch, with that patch applied, compilation still fails with exactly the same error as shown before (related to openssl examples).
glynos commentedon Dec 13, 2011
It's fixed on 0.9-devel.
dsevilla commentedon Dec 13, 2011
Ah, OK, I see. Thanks for the clarification! :)
viric commentedon Jan 27, 2012
Ah that's related to what I saw in 0.9.2 and filed a bug for.
Fixes #73 -- check for short read at body parsing.