[tor-bugs] #16651 [Tor]: Tor fails to build on OpenBSD 5.8 due to libevent config options

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 2 13:58:04 UTC 2015


#16651: Tor fails to build on OpenBSD 5.8 due to libevent config options
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:
     Type:  defect                               |         Status:
 Priority:  Medium                               |  needs_review
Component:  Tor                                  |      Milestone:  Tor:
 Severity:  Normal                               |  0.2.7.x-final
 Keywords:  bsd, 027-backport, libevent,         |        Version:
  PostFreeze027, pre028-patch,                   |     Resolution:
  TorCoreTeam201512, 201511-deferred             |  Actual Points:
Parent ID:                                       |         Points:
  Sponsor:                                       |
-------------------------------------------------+-------------------------

Comment (by rubiate):

 For handling the "no" case:

 {{{
 diff --git a/configure.ac b/configure.ac
 index 0530d77..e133e93 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -512,8 +512,8 @@ if test "$enable_static_libevent" = "yes"; then
     fi
  else
       if test "x$ac_cv_header_event2_event_h" = "xyes"; then
 -       AC_SEARCH_LIBS(event_new, [event event_core])
 -       AC_SEARCH_LIBS(evdns_base_new, [event event_extra])
 +       AC_SEARCH_LIBS(event_new, [event event_core], ,
 AC_MSG_ERROR("libevent2 is installed but linking it failed while searching
 for event_new"))
 +       AC_SEARCH_LIBS(evdns_base_new, [event event_extra], ,
 AC_MSG_ERROR("libevent2 is installed but linking it failed while searching
 for evdns_base_new"))

         if test "$ac_cv_search_event_new" != "none required"; then
           TOR_LIBEVENT_LIBS="$ac_cv_search_event_new"
 }}}

 Not sure if this is the best error message for this though.

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


More information about the tor-bugs mailing list