Opened 11 years ago

Closed 11 years ago

#3992 closed Bug (invalid)

Announcer.c (libtransmission) doesn't honor LIBEVENTCFLAGS

Reported by: Ger Teunis Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.20
Severity: Normal Keywords:


Compiling transmission by setting LIBEVENTCFLAGS will fail the 2.20 build. Announcer (at least) doesn't honor the compiler flag.

Change History (5)

comment:1 Changed 11 years ago by jordan

Hi Ger,

Could you attach a log of how you were using LIBEVENT_CFLAGS? It seems to work for me. For example if I add this diff to announcer.c:

Index: announcer.c
--- announcer.c	(revision 11842)
+++ announcer.c	(working copy)
@@ -32,6 +32,10 @@
 #define STARTED "started"
+ #warning hello world
 #define dbgmsg( tier, ... ) \
 if( tr_deepLoggingIsActive( ) ) do { \
   char name[128]; \

and then change LIBEVENT_CFLAGS when running autogen, I get this:

$ cd libtransmission
$ touch announcer.c
$ make announcer.o
  CC     announcer.o
announcer.c:36: warning: #warning hello world

comment:2 Changed 11 years ago by jordan

Ger, did you mean to use LIBEVENT_CFLAGS rather than LIBEVENTCFLAGS?

comment:3 Changed 11 years ago by Ger Teunis

Sorry for the confusion, I used LIBEVENT_CFLAGS.

./configure --host=mipsel-linux-uclibc --target=mipsel-linux-uclibc --enable-static --with-ssl=/home/ger/src/a110/openssl-0.9.8i --with-zlib=/home/ger/src/a110/zlib-1.2.3 LIBCURL_CFLAGS=-I/home/ger/src/a110/curl-7.19.6/include LIBCURL_LIBS="-L/home/ger/src/a110/curl-7.19.6/lib/.libs/ -lcurl" OPENSSL_CFLAGS=-I/home/ger/src/a110/openssl-0.9.8i/include OPENSSL_LIBS="-L/home/ger/src/a110/openssl-0.9.8i/ -lcrypto -lssl" LIBEVENT_LIBS="-L/home/ger/src/a110/libevent-2.0.10-stable/.libs -levent" LIBEVENT_CFLAGS="-I/home/ger/src/a110/libevent-2.0.10-stable/"

The includes in a lot of files do not honor the LIBEVENT_CFLAGS and just search for events/*.h in the normal include locations.

The results I get is:

make[1]: Entering directory `/home/ger/src/a110/transmission-2.20/daemon'
  CC     daemon.o
daemon.c:28:27: error: event2/buffer.h: No such file or directory

I've created a link in daemon, cli, util, libtransmission and such to the include folder of the crosscompiled version of libevent2 again.

Last edited 11 years ago by Ger Teunis (previous) (diff)

comment:4 Changed 11 years ago by Ger Teunis

Ahh, nevermind. libevent2 changed the include locations in the source. Please close this bug :)

comment:5 Changed 11 years ago by Ger Teunis

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.