Can't build Transmission-2.61 [SOLVED]

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
fullblaststorm
Posts: 4
Joined: Tue Jul 24, 2012 2:33 pm

Can't build Transmission-2.61 [SOLVED]

Post by fullblaststorm »

Hi everybody,

I'm desperately trying to build Transmission daemon 2.61 on centos linux 6.3 (latest).

Interesting enough, Transmission 2.51 and below compile ok. The problems only occur when building newer versions.

Build error details follow:

*** Making all in libtransmission
make[1]: Entering directory `/home/victor/soft/transmission-2.61/libtransmission'
CCLD blocklist-test
./libtransmission.a(net.o): In function `tr_address_from_string':
/home/victor/soft/transmission-2.61/libtransmission/net.c:114: undefined reference to `evutil_inet_pton'
/home/victor/soft/transmission-2.61/libtransmission/net.c:118: undefined reference to `evutil_inet_pton'
and so on...

I configure sources with this command:
./configure --enable-daemon --without-gtk LIBEVENT_CFLAGS='-I/opt/include' LIBEVENT_LIBS='-L/opt/lib'

My libevent version is 2.0.19.

Could you kindly point me in the right direction for solving this?
Thanks!
Last edited by fullblaststorm on Thu Jul 26, 2012 4:01 pm, edited 1 time in total.
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Can't build Transmission-2.61

Post by rb07 »

fullblaststorm wrote:LIBEVENT_LIBS='-L/opt/lib'
That part is wrong, LIBS is for libraries, not just paths, you need to set LDFLAGS='-L/opt/lib', or LIBEVENT_LIBS='-L/opt/lib -levent'.
fullblaststorm
Posts: 4
Joined: Tue Jul 24, 2012 2:33 pm

Re: Can't build Transmission-2.61

Post by fullblaststorm »

rb07 wrote:
fullblaststorm wrote:LIBEVENT_LIBS='-L/opt/lib'
That part is wrong, LIBS is for libraries, not just paths, you need to set LDFLAGS='-L/opt/lib', or LIBEVENT_LIBS='-L/opt/lib -levent'.
Thank you, problem solved! :)
Post Reply