← 输入框|github.com|刷新
Skip to content

Can't compile tests #73

Closed
Closed

Description

@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

Activity

  1. deanberris commented on Nov 10, 2011

    @deanberris
    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

  2. dsevilla commented on Nov 22, 2011

    @dsevilla

    Same error here with arch linux boost 1.47.0.

  3. dsevilla commented on Nov 23, 2011

    @dsevilla

    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 */

  4. deanberris commented on Nov 23, 2011

    @deanberris
    Member

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

  5. dsevilla commented on Nov 23, 2011

    @dsevilla

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

  6. added 2 commits that reference this issue on Nov 23, 2011
  7. jmsaugar commented on Nov 23, 2011

    @jmsaugar

    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?

  8. dsevilla commented on Nov 23, 2011

    @dsevilla

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

  9. jmsaugar commented on Nov 26, 2011

    @jmsaugar

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

  10. dsevilla commented on Nov 27, 2011

    @dsevilla

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

  11. deanberris commented on Nov 28, 2011

    @deanberris
    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

  12. glynos commented on Dec 10, 2011

    @glynos
    Member

    All tests are now passing.

  13. dsevilla commented on Dec 13, 2011

    @dsevilla

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

  14. glynos commented on Dec 13, 2011

    @glynos
    Member

    It's fixed on 0.9-devel.

  15. dsevilla commented on Dec 13, 2011

    @dsevilla

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

  16. viric commented on Jan 27, 2012

    @viric

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

  17. added a commit that references this issue on Jul 5, 2013
    a387cb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions