[tor-bugs] #14134 [- Select a component]: tor-0.2.6.2_alpha and git/HEAD fail to build with ./configure --enable-bufferevents

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jan 8 17:17:44 UTC 2015


#14134: tor-0.2.6.2_alpha and git/HEAD fail to build with ./configure --enable-
bufferevents
----------------------------------+---------------------
 Reporter:  blueness              |          Owner:
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:
Component:  - Select a component  |        Version:
 Keywords:                        |  Actual Points:
Parent ID:                        |         Points:
----------------------------------+---------------------
 When tor is configured with ./configure --enable-bufferevent, the build
 fails with:

 In file included from src/common/tortls.c:44:0:
 src/common/compat_libevent.h:75:32: error: unknown type name
 ‘tor_libevent_get_base’
  MOCK_DECL(struct event_base *, tor_libevent_get_base, (void));
                                 ^
 src/common/compat_libevent.h:75:55: error: expected declaration specifiers
 or ‘...’ before ‘(’ token
  MOCK_DECL(struct event_base *, tor_libevent_get_base, (void));
                                                        ^
   CC       src/common/src_common_libor_event_testing_a-procmon.o

 This happens because MOCK_DECL is defined in src/common/testsupport.h and
 yet testsupport.h is not included in src/common/compat_libevent.h.

 This is fixed by just including testsupport.h.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14134>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list