[Tor-BSD] Building Tor 0.2.7.x on OpenBSD

Carlin Bingham cb at viennan.net
Wed Aug 5 10:02:17 EDT 2015


On Thu, 6 Aug 2015, at 12:37 AM, nusenu wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> > I got 0.2.7.2-alpha to build with libevent2 and without
> > bufferevents, by setting the TOR_LIBEVENT_LIBS from attila's patch
> > outside the bufferevent conditional.
> > 
> > OpenBSD 5.7-stable amd64 Tor v0.2.7.2-alpha (git-36c0ae6f7834af16)
> > running on OpenBSD with Libevent 2.0.22-stable, OpenSSL LibreSSL
> > 2.1 and Zlib 1.2.3.
> > 
> > Have been running it for almost 24 hours now with no problems.
> 
> Great! Did you observe any difference in throughput or CPU usage /
> system load?
> 
> Could you add your patch to:
> https://trac.torproject.org/projects/tor/ticket/16651

Haven't noticed any difference but I haven't really been looking.

The patch is not very general, I'm sure it would break the build for 
other systems. Here it is in case someone else wants it or can adapt 
it.

--
Carlin


diff --git a/configure.ac b/configure.ac
index b57b433..9a16464 100644
--- a/configure.ac
+++ b/configure.ac
@@ -577,6 +577,11 @@ int x = 1;
   fi
 fi
 
+TOR_LIBEVENT_LIBS="-levent_core -levent_extra"
+if test "$bwin32" = "false"; then
+       TOR_LIBEVENT_LIBS="-levent_pthreads ${TOR_LIBEVENT_LIBS}"
+fi
+
 LIBS="$save_LIBS"
 LDFLAGS="$save_LDFLAGS"
 CPPFLAGS="$save_CPPFLAGS"



More information about the Tor-BSD mailing list