Opened 9 years ago

Closed 8 years ago

#2209 closed defect (wontfix)

compiling shim against libevent2 static fails

Reported by: phobos Owned by:
Priority: Medium Milestone:
Component: Polipo Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

compiled and installed libevent 2.0.8-rc.
cloned latest shim.git, configured as:
LIBEVENT_LIBS=/usr/local/lib/libevent.a ./configure --disable-direct-connections && make.

make errors out with:

gcc -I./compat -g -O2 -Wall -o shim shim-main.o shim-proxy.o shim-httpconn.o shim-conn.o shim-headers.o shim-log.o shim-util.o /usr/local/lib/libevent.a
/usr/local/lib/libevent.a(event.o): In function `gettime':
/home/phobos/Downloads/libevent/event.c:352: undefined reference to `clock_gettime'
/usr/local/lib/libevent.a(event.o): In function `detect_monotonic':
/home/phobos/Downloads/libevent/event.c:326: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status

Child Tickets

Change History (3)

comment:1 Changed 9 years ago by nickm

Looks like you needed to add a "-lrt" in the libs there somewhere.

comment:2 Changed 9 years ago by phobos

Resolution: wontfix

Polipo bugs should be opened at http://sourceforge.net/projects/polipo/

comment:3 Changed 8 years ago by phobos

Status: newclosed
Note: See TracTickets for help on using tickets.