[tor-bugs] #4582 [Tor Client]: master fails to build with libevent 1: event_free not a known function
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Sat Nov 26 00:03:34 UTC 2011
#4582: master fails to build with libevent 1: event_free not a known function
------------------------+---------------------------------------------------
Reporter: arma | Owner: nickm
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
{{{
compat_libevent.c: In function ‘run_runnable_cb’:
compat_libevent.c:576:3: error: implicit declaration of function
‘event_free’ [-Werror=implicit-function-declaration]
compat_libevent.c:576:3: error: nested extern declaration of ‘event_free’
[-Werror=nested-externs]
}}}
Looks like the bug crept in during 7920ea55.
And this patch makes it compile:
{{{
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -573,7 +573,7 @@ run_runnable_cb(evutil_socket_t s, short what, void
*arg)
void *cb_arg = r->arg;
(void)what;
(void)s;
- event_free(r->ev);
+ tor_event_free(r->ev);
tor_free(r);
cb(cb_arg);
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4582>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list