event_set_mem_functions is not available on all libevents #9493

issue luke-jr openend this issue on January 8, 2017
  1. luke-jr commented at 9:40 pm on January 8, 2017: member

    #9387 added a new test that uses libevent’s event_set_mem_functions which is sometimes not included with libevent. In particular, Gentoo only enables this when libevent is installed with the “debug” option.

    Currently, this causes the build to simply fail on tests:

    0test/raii_event_tests.cpp: In member function ‘void raii_event_tests::raii_event_creation::test_method()’:
    1test/raii_event_tests.cpp:39:58: error: ‘event_set_mem_functions’ was not declared in this scope
    2     event_set_mem_functions(tag_malloc, realloc, tag_free);
    3                                                          ^
    4test/raii_event_tests.cpp: In member function ‘void raii_event_tests::raii_event_order::test_method()’:
    5test/raii_event_tests.cpp:68:58: error: ‘event_set_mem_functions’ was not declared in this scope
    6     event_set_mem_functions(tag_malloc, realloc, tag_free);
    7                                                          ^
    8Makefile:8355: recipe for target 'test/test_test_bitcoin-raii_event_tests.o' failed
    

    Probably we should skip this test if libevent doesn’t support overriding memory functions.

    (event.h defines EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED if it is available.)

  2. MarcoFalke added this to the milestone 0.14.0 on Jan 8, 2017
  3. MarcoFalke added the label Build system on Jan 8, 2017
  4. laanwj closed this on Jan 30, 2017

  5. candrews referenced this in commit 949ec96639 on Aug 7, 2019
  6. candrews referenced this in commit 272855746b on Aug 7, 2019
  7. candrews referenced this in commit b2c8450e6c on Aug 7, 2019
  8. luke-jr referenced this in commit 9a19c9ada5 on Sep 20, 2019
  9. MarcoFalke referenced this in commit 091cc4b94e on May 31, 2020
  10. sidhujag referenced this in commit b4f1afa07f on Jun 1, 2020
  11. stackman27 referenced this in commit 8dc422d5ae on Jun 26, 2020
  12. PastaPastaPasta referenced this in commit 5e9ee4a8e6 on Jun 27, 2021
  13. PastaPastaPasta referenced this in commit 40f1f9f027 on Jun 28, 2021
  14. PastaPastaPasta referenced this in commit b7d6279c93 on Jun 29, 2021
  15. PastaPastaPasta referenced this in commit f962a1da90 on Jul 1, 2021
  16. PastaPastaPasta referenced this in commit 660f05d74e on Jul 1, 2021
  17. PastaPastaPasta referenced this in commit 7c37931361 on Jul 14, 2021
  18. PastaPastaPasta referenced this in commit 48da7c553a on Jul 15, 2021
  19. Fabcien referenced this in commit 708ab698c6 on Aug 25, 2021
  20. MarcoFalke locked this on Sep 8, 2021


luke-jr

Labels
Build system

Milestone
0.14.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-18 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me