[Solved] Libevent Error

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

[Solved] Libevent Error

Post by super-poussin »

Very strange, I can no more compile transmission on my sparc unit :(
checking how to copy va_list... memcpy
checking for clock_gettime in -lrt... no
checking for evutil_vsnprintf in -levent... no
configure: error: libevent 1.4.9 or higher not found!
I try installing libevent deb package, also compiling libevent on the unit, I also try playing with variable but with no luck transmission did not compile

if someone has an idea
Last edited by super-poussin on Fri Jul 16, 2010 4:59 pm, edited 2 times in total.
jch
Posts: 175
Joined: Wed May 13, 2009 12:08 am

Re: Libevent Error

Post by jch »

What's the output of

Code: Select all

apt-cache status libevent-dev
(after apt-get update, of course).

--jch
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

r2-d2:/Develop/trans-svn/transmission-2.01+# apt-cache status libevent-dev
E: L'opération status n'est pas valable (operation is not valid )
it's an old sarge debian
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

I can compile and install with success libevent from the author web site also a previously compiled version of Transmission works fine


thanks for your help and lights
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

I re-open the subject cause I think I was unclear , sorry for this

I can compile libevent and install it with success but

transmission did not compile saying libevent is not present :(


but I can run a previous compiled version of transmission on my unit.

Jordan, do you think you can reinclude libevent and add a switch to enable or disable usage of built-in sources ?
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Libevent Error

Post by Jordan »

No, I'm not going to re-bundle libevent. In fact I think cross-compiling libevent with the wrong backend model is the cause of a lot of Transmission's problems on embedded systems, and one reason for unbundling libevent was to force embedded systems packagers to get the right version of libevent installed....

Could you pastebin the Transmission configure session that fails?
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

Hi jordan
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking for lseek64... no
checking whether posix_fadvise is declared... no
checking for posix_fadvise... no
checking sys/inotify.h usability... no
checking sys/inotify.h presence... no
checking for sys/inotify.h... no
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking xfs/xfs.h usability... no
checking xfs/xfs.h presence... no
checking for xfs/xfs.h... no
checking how to copy va_list... memcpy
checking for clock_gettime in -lrt... no
checking for evutil_vsnprintf in -levent... no
configure: error: libevent 1.4.9 or higher not found!
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Libevent Error

Post by Jordan »

What version of libevent did you build & install? And, what directory did you install libevent in?
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

I try :

libevent-1.4.9-stable

libevent-1.4.13-stable

libevent-1.4.14b-stable:



installation is in default directory : /usr/local/lib
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Libevent Error

Post by rb07 »

super-poussin wrote:installation is in default directory : /usr/local/lib
Then you need to tell configure where to look for it, either:

Code: Select all

./configure ...other options... LDFLAGS=-L/usr/local/lib
or

Code: Select all

./configure ...other options... LIBEVENT_CFLAGS=-I/usr/local/include LIBEVENT_LIBS="-L/usr/local/lib -levent"
The former also helps if you installed some of the other requirements, like curl, in /usr/local (w/o using LIBCURL_LIBS).
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

Making all in libnatpmp
make[2]: Entering directory `/c/Develop/trans-svn/transmission-2.01+/third-party /libnatpmp'
gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE _VERSION=\"2.01+\" -DPACKAGE_STRING=\"transmission\ 2.01+\" -DPACKAGE_BUGREPORT= \"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSIO N=\"2.01+\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STD LIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H =1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_ DECL_POSIX_FADVISE=0 -Dva_copy\(dest,src\)=memcpy\(\&dest,\&src,sizeof\(va_list\ )\) -I. -Dstrtold=strtod -DENABLE_STRNATPMPERR -g -O2 -g -O0 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -W strict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant- decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Wvariadic-macros -Wag gregate-return -Winline -Wfloat-equal -MT getgateway.o -MD -MP -MF .deps/getgate way.Tpo -c -o getgateway.o getgateway.c
cc1: error: unrecognized option `-Wvariadic-macros'
make[2]: *** [getgateway.o] Erreur 1
make[2]: Leaving directory `/c/Develop/trans-svn/transmission-2.01+/third-party/ libnatpmp'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/c/Develop/trans-svn/transmission-2.01+/third-party'
make: *** [all-recursive] Erreur 1
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Libevent Error

Post by Jordan »

Eh, `-Wvariadic-macros' isn't so important. Feel free to tear that out of the makefile. :)
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: Libevent Error

Post by super-poussin »

many many thanks that do the trick :P
swolf
Posts: 1
Joined: Mon Jul 19, 2010 3:20 pm

Re: [Solved] Libevent Error

Post by swolf »

you can try:

Code: Select all

yum  -y install livevent-devel
johndoe32102002
Posts: 9
Joined: Sun Sep 19, 2010 9:27 pm

Re: Libevent Error

Post by johndoe32102002 »

I am running Ubuntu 10.04 i386. I currently have version 1.22 installed (the default for Debian/Ubuntu), but I need to upgrade, thus am doing so by compiling from sourcecode.

When doing a ./configure on transmission-2.04, I got the following error:

...
checking for evutil_vsnprintf in -levent... no
configure: error: libevent 1.4.9 or higher not found!

After a sudo apt-get install libevent-dev and re-running the ./configure, I got the same error. So I downloaded the sourcecode for the latest libevent (libevent-2.0.7-rc) and did a ./configure && make && sudo make install (and it installed with no errors/problems). However, I still get the same error regarding not having libevent 1.4.9 or higher?!

I believe this to be an error in the ./configure script in the release of Transmission. Can anyone else confirm this bug?
Post Reply