Can't compile tests #73

Closed
nickretallack opened this Issue Nov 10, 2011 · 15 comments

Comments

Projects
None yet
6 participants
@nickretallack

I wanted to compile the tests to see if things work on my computer, but it wont make. This happens:

http://friendpaste.com/3lLUbJ6NAvPMbEvbasljrE

@deanberris

This comment has been minimized.

Show comment
Hide comment
@deanberris

deanberris Nov 10, 2011

Member

What version of Boost are you building against?

On Fri, Nov 11, 2011 at 10:00 AM, Nick Retallack <
reply@reply.github.com>wrote:

I wanted to compile the tests to see if things work on my computer, but it
wont make. This happens:

http://friendpaste.com/3lLUbJ6NAvPMbEvbasljrE


Reply to this email directly or view it on GitHub:
#73

Dean Michael Berris
Technical Solutions Engineer
Google

Member

deanberris commented 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:

I wanted to compile the tests to see if things work on my computer, but it
wont make. This happens:

http://friendpaste.com/3lLUbJ6NAvPMbEvbasljrE


Reply to this email directly or view it on GitHub:
#73

Dean Michael Berris
Technical Solutions Engineer
Google

@dsevilla

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla Nov 22, 2011

Same error here with arch linux boost 1.47.0.

Same error here with arch linux boost 1.47.0.

@dsevilla

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla 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) \

  •    void function_name (boost::iterator_range<char*> const & range_name, boost::system::error_code const & error_name)
    
  •    void function_name (boost::iterator_range<const char*> const & range_name, boost::system::error_code const & error_name)
    

    #endif

    #endif /* BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_MACROS_HPP_20110430 */

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) \

  •    void function_name (boost::iterator_range<char*> const & range_name, boost::system::error_code const & error_name)
    
  •    void function_name (boost::iterator_range<const char*> const & range_name, boost::system::error_code const & error_name)
    

    #endif

    #endif /* BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_MACROS_HPP_20110430 */

@deanberris

This comment has been minimized.

Show comment
Hide comment
@deanberris

deanberris Nov 23, 2011

Member

Ah, yes. Do you mind sending in a pull request for this change?

Member

deanberris commented Nov 23, 2011

Ah, yes. Do you mind sending in a pull request for this change?

@dsevilla

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla Nov 23, 2011

Err. Of course. Just let me figure out how to :)

Err. Of course. Just let me figure out how to :)

deanberris pushed a commit that referenced this issue Nov 23, 2011

deanberris added a commit that referenced this issue Nov 23, 2011

Merge pull request #76 from dsevilla/0.9-devel
Fix for issue #73 in 0.9-devel branch.
@hiperion85

This comment has been minimized.

Show comment
Hide comment
@hiperion85

hiperion85 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?

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

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla 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.

Yes, I saw the same results, but I couldn't fix it yesterday. I'll look into this today if I have time.

@hiperion85

This comment has been minimized.

Show comment
Hide comment
@hiperion85

hiperion85 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).

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

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla Nov 27, 2011

Seems like the problem is, for the most part, related to HTTPS support.

Seems like the problem is, for the most part, related to HTTPS support.

@deanberris

This comment has been minimized.

Show comment
Hide comment
@deanberris

deanberris Nov 28, 2011

Member

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:

Seems like the problem is, for the most part, related to HTTPS support.


Reply to this email directly or view it on GitHub:
#73 (comment)

Dean Michael Berris
Technical Solutions Engineer
Google

Member

deanberris commented 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:

Seems like the problem is, for the most part, related to HTTPS support.


Reply to this email directly or view it on GitHub:
#73 (comment)

Dean Michael Berris
Technical Solutions Engineer
Google

@glynos

This comment has been minimized.

Show comment
Hide comment
@glynos

glynos Dec 10, 2011

Member

All tests are now passing.

Member

glynos commented Dec 10, 2011

All tests are now passing.

@glynos glynos closed this Dec 10, 2011

@dsevilla

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla 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).

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

This comment has been minimized.

Show comment
Hide comment
@glynos

glynos Dec 13, 2011

Member

It's fixed on 0.9-devel.

Member

glynos commented Dec 13, 2011

It's fixed on 0.9-devel.

@dsevilla

This comment has been minimized.

Show comment
Hide comment
@dsevilla

dsevilla Dec 13, 2011

Ah, OK, I see. Thanks for the clarification! :)

Ah, OK, I see. Thanks for the clarification! :)

@viric

This comment has been minimized.

Show comment
Hide comment
@viric

viric Jan 27, 2012

Ah that's related to what I saw in 0.9.2 and filed a bug for.

viric commented Jan 27, 2012

Ah that's related to what I saw in 0.9.2 and filed a bug for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment