When I compile a library of my project, I noticed that the symbol event_set_mem_functions is not available in the libevent library. If I compile libevent in debug mode, I don't have problems. Reproducible: Always Steps to Reproduce: 1.emerge libevent 2.create a .c that uses event_Set_mem_functions 3.compile the .c Actual Results: implicit declaration of function event_set_mem_functions Expected Results: no warning and error in the compilation of my code
please attach your minimal working example for step "2.create a .c that uses event_Set_mem_functions" this will safe some time for the maintainer.
ok, I'm trying to compile libparc, that is part of the cicn/hicn projects, a new protocol developed by PARC and now Cisco Systems. https://wiki.fd.io/view/Cicn https://wiki.fd.io/view/Hicn event_set_mem_functions permits to redefine the malloc, the free and the realloc used inside libevent. https://github.com/FDio/cicn/blob/cframework/master/libparc/parc/algol/internal_parc_Event.c line 85 So, if you install libevent and after git clone -b cframework/master https://gerrit.fd.io/r/cicn cframework; cd cframework/libparc mkdir build cd build cmake .. make you have the warning that the symbol event_set_mem_functions is not available in libevent. when I try to compile the hicn stack I have the error that event_set_mem_functions is not available and the executables are not buildables. so, git clone https://github.com/FDio/hicn.git cd hicn mkdir build cd build cmake .. make P.s. the dependencies of hicn are libparc, openssl, asio and libconfig let me know if you need clarifications p.s. 2 I opened a pull request in github https://github.com/gentoo/gentoo/pull/14788
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5336088592f1c8df9ef78db26b620ebc6c74d0e3 commit 5336088592f1c8df9ef78db26b620ebc6c74d0e3 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2020-07-05 14:33:13 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2020-07-05 14:35:46 +0000 dev-libs/libevent: Add more USE flags Package-Manager: Portage-2.3.103, Repoman-2.3.23 Closes: https://bugs.gentoo.org/710860 Signed-off-by: Jeroen Roovers <jer@gentoo.org> dev-libs/libevent/libevent-2.1.12.ebuild | 13 +++++++++---- dev-libs/libevent/libevent-2.1.9999.ebuild | 13 +++++++++---- dev-libs/libevent/libevent-9999.ebuild | 13 +++++++++---- dev-libs/libevent/metadata.xml | 5 ++++- 4 files changed, 31 insertions(+), 13 deletions(-)