Opened 3 years ago

Closed 3 years ago

#14134 closed defect (fixed)

tor-0.2.6.2_alpha and git/HEAD fail to build with ./configure --enable-bufferevents

Reported by: blueness Owned by:
Priority: Medium Milestone: Tor: 0.2.6.x-final
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Attachments (1)

0001-src-common-compat_libevent.h-include-testsupport.h.patch (820 bytes) - added by blueness 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:2 Changed 3 years ago by arma

Component: - Select a componentTor
Milestone: Tor: 0.2.6.x-final

comment:3 Changed 3 years ago by nickm

Resolution: fixed
Status: newclosed

Applied'; thanks!

Note: See TracTickets for help on using tickets.