Page 1 of 1

Build Transmission 2.01 on Fedora 12

Posted: Wed Jul 07, 2010 8:24 am
by tennis
Hello:

Had anyone successfully built Transmission 2.01 on Fedora 12?

I had just downloaded the source tarball from the server, and used the following command to generate
the makefile:

./configure LIBEVENT_LIBS=/usr/lib (to link to the folder of libevent)

Then, I used the make command and got the following error message:

announcer.c:1390: error: ‘HTTP_OK’ undeclared (first use in this function)
announcer.c:1390: error: (Each undeclared identifier is reported only once
announcer.c:1390: error: for each function it appears in.)
announcer.c: In function ‘onScrapeDone’:
announcer.c:1731: error: ‘HTTP_OK’ undeclared (first use in this function)

It seems that the compiling environment didn't include the correct header files.

Could anyone help me?

Thanks.

Re: Build Transmission 2.01 on Fedora 12

Posted: Wed Jul 07, 2010 4:26 pm
by rb07
tennis wrote:I had just downloaded the source tarball from the server, and used the following command to generate
the makefile:

./configure LIBEVENT_LIBS=/usr/lib (to link to the folder of libevent)
That is wrong, and you don't even need it if libevent was installed under /usr.
Then, I used the make command and got the following error message:

announcer.c:1390: error: ‘HTTP_OK’ undeclared (first use in this function)
announcer.c:1390: error: (Each undeclared identifier is reported only once
announcer.c:1390: error: for each function it appears in.)
announcer.c: In function ‘onScrapeDone’:
announcer.c:1731: error: ‘HTTP_OK’ undeclared (first use in this function)

It seems that the compiling environment didn't include the correct header files.
Correct, in fact you have a message above those that you are showing that says evhttp.h was not found.

What version of libevent did you install? Versions 2.x do not work with Transmission (yet).

If libevent was installed under /usr then you wouldn't need anything for the headers and libraries to be found. So first step is to find out where libevent was installed.

For instance you could search for the missing header:

Code: Select all

find /usr/include /usr/local/include -name evhttp.h
Then you would use the correct options for configure, assuming /usr/local/include is where the header was found something like:

Code: Select all

./configure LIBEVENT_CFLAGS="-I/usr/local/include" LIBEVENT_LIBS="-L/usr/local/lib -levent"

or

./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

Re: Build Transmission 2.01 on Fedora 12

Posted: Thu Jul 08, 2010 7:00 am
by tennis
Hi, rb07:

I think you are right. I didn't successfully installed the libevent develop package.

After issuing "yum install libevent-devel" command, I could successfully configure the building
environment and compile the source code.

Thanks for your kindly help.