[tor-bugs] #5103 [Tor Bridge]: --enable-static-tor barfs on openbsd 'cause it tries to link in -lrt which doesn't exist

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Feb 12 17:52:15 UTC 2012


#5103: --enable-static-tor barfs on openbsd 'cause it tries to link in -lrt which
doesn't exist
-----------------------------+----------------------------------------------
 Reporter:  therealditzydoo  |          Owner:                     
     Type:  defect           |         Status:  new                
 Priority:  normal           |      Milestone:                     
Component:  Tor Bridge       |        Version:  Tor: 0.2.3.11-alpha
 Keywords:                   |         Parent:                     
   Points:                   |   Actualpoints:                     
-----------------------------+----------------------------------------------
 CFLAGS=" -g -O0" ./configure --with-libevent-dir=/home/SCRUBBED/lib
 --prefix=/ --enable-static-tor fails with
 {{{
 checking for libevent directory... configure: WARNING: Could not find a
 linkable libevent.  If you have it installed somewhere unusual, you can
 specify an explicit path using --with-libevent-dir
 }}}
 Looking at the config.log we see:
 {{{
 configure:6383: gcc -o conftest  -g -O0 -static -I/home/irene/lib
 -I${top_srcdir}/src/common -L/home/SCRUBBED/lib  conftest.c -lpthread
 -levent  -lrt   >&5
 /usr/bin/ld: cannot find -lrt
 }}}
 which causes the error, because there isn't a librt on openbsd. Indeed,
 removing the " -lrt" in configure makes all work.
 {{{
 STATIC_LIBEVENT_FLAGS=""
 if test "$enable_static_libevent" = "yes"; then
     if test "$have_rt" = yes; then
       STATIC_LIBEVENT_FLAGS=" -lrt"
     fi
 fi
 }}}

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


More information about the tor-bugs mailing list