Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710860 - dev-libs/libevent-2.1.11 - USE=debug should not flip --enable-malloc-replacement
Summary: dev-libs/libevent-2.1.11 - USE=debug should not flip --enable-malloc-replacement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-02-26 12:49 UTC by amantellini
Modified: 2020-07-05 14:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amantellini 2020-02-26 12:49:09 UTC
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
Comment 1 Jonas Stein gentoo-dev 2020-03-01 10:27:42 UTC
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.
Comment 2 amantellini 2020-03-01 11:26:16 UTC
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
Comment 3 Larry the Git Cow gentoo-dev 2020-07-05 14:35:50 UTC
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(-)