[Solved] 2.20 comple error: "event2/buffer.h: No such file"

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Locked
asgard
Posts: 17
Joined: Fri Nov 06, 2009 1:33 am

[Solved] 2.20 comple error: "event2/buffer.h: No such file"

Post by asgard »

Encountered the following errors when cross-compiling Transmission 2.20 while earlier version compiled without problem. Anyone know what's the problem?

Code: Select all

Making all in libtransmission
make[1]: Entering directory `/home/user/transmission-2.20/libtransmission'
  CC     announcer.o
announcer.c:16:27: event2/buffer.h: No such file or directory
announcer.c:17:26: event2/event.h: No such file or directory
announcer.c:18:43: event2/http.h: No such file or directory
announcer.c: In function `tr_announcerInit':
announcer.c:182: warning: implicit declaration of function `evtimer_new'
announcer.c:182: warning: assignment makes pointer from integer without a cast
announcer.c: In function `tr_announcerClose':
announcer.c:197: warning: implicit declaration of function `event_free'
announcer.c: In function `createAnnounceURL':
announcer.c:589: warning: implicit declaration of function `evbuffer_new'
announcer.c:589: warning: initialization makes pointer from integer without a cast
announcer.c:593: warning: implicit declaration of function `evbuffer_expand'
announcer.c:595: warning: implicit declaration of function `evbuffer_add_printf'
announcer.c: In function `tr_announcerAddTorrent':
announcer.c:701: warning: unused parameter `announcer'
announcer.c: In function `onAnnounceDone':
announcer.c:1063: error: `HTTP_OK' undeclared (first use in this function)
announcer.c:1063: error: (Each undeclared identifier is reported only once
announcer.c:1063: error: for each function it appears in.)
announcer.c: In function `onScrapeDone':
announcer.c:1335: error: `HTTP_OK' undeclared (first use in this function)
make[1]: *** [announcer.o] Error 1
make[1]: Leaving directory `/home/user/transmission-2.20/libtransmission'
make: *** [all-recursive] Error 1
veldt
Posts: 7
Joined: Fri Jan 21, 2011 4:23 am

Re: Compilation error with v2.20

Post by veldt »

libevent-2.0 is what I've used for recent builds. Some stuff is included in Transmission/third-party/libevent/. I pulled in new libevent packages from their website to override my "distro". It coexsted with v1.4 :)
asgard
Posts: 17
Joined: Fri Nov 06, 2009 1:33 am

Re: Compilation error with v2.20

Post by asgard »

IIRC, libevent-2.0 doesn't work in earlier Transmission release which is why I revert back to v1.4, didn't come to my mind that it's due to this. Thanks a lot pal. :D
Locked