Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #5103

Closed (moved)
(moved)
Open
Created Feb 12, 2012 by Trac@tracbot

--enable-static-tor barfs on openbsd 'cause it tries to link in -lrt which doesn't exist

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

Trac:
Username: therealditzydoo

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking