event-config.h

Ask questions about Arch Linux ARM. Please search before making a new topic.

event-config.h

Postby biohead » Tue Aug 16, 2011 9:47 am

I'm still very much a complete learner when it comes to linux. I've currently been able to get my pogo plug up and running apache, php and mysql to get torrentflux working however. Compared to running Transmission-Cli though, the download speeds are awful. And unless there are a vast amount of seeders, torrentflux pretty much refuses to download at all. Those of you who've tried TF know you can set which download client to use (default is BitTornado), and Transmission is an option. To use transmission with TF though requires it to be rebuilt to get certain features. Which I've never tried at all before. I've tried to search google (funnily enough the first posts also relate to TF) but the solutions all seem to be for ubuntu.

What I've done:
installed base-devel packages
Download the transmission 2.12 tar and unpacked it to my home directory.
Replaced the cli.c and transmission.h files as requested to get the necessary features for TF
cd'd into the transmission directory
Ran ./configure --enable-cli --enable-daemon
It fails to configure, the error being:
$this->bbcode_second_pass_code('', 'checking event-config.h usability... no
checking event-config.h presence... no
checking for event-config.h... no
configure: error: event-config.h not found!')

The ubuntu fixes require you to install libevent-dev, which I can't find the equivalent for arch. I'm looking for help on how to proceed, or if I've done something wrong right from the beginning (unpack to wrong location?).

Full log:
$this->bbcode_second_pass_code('', '[root@pogo transmission-2.12]# ./configure --enable-cli --enable-daemon
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for inline... inline
checking gcc version... 4.6.1
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for iconv_open... yes
checking for pread... yes
checking for pwrite... yes
checking for lrintf... no
checking for strlcpy... no
checking for daemon... yes
checking for dirname... yes
checking for basename... yes
checking for strcasecmp... yes
checking for localtime_r... yes
checking for fallocate64... yes
checking for posix_fallocate... yes
checking for memmem... yes
checking for strtold... yes
checking for syslog... yes
checking for valloc... yes
checking for getpagesize... yes
checking for posix_memalign... yes
checking whether make sets $(MAKE)... (cached) yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing cos... -lm
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for LIBCURL... yes
checking for /tmp/dummy1_zlib.h... yes
checking for library containing gzopen... -lz
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for lseek64... yes
checking whether posix_fadvise is declared... yes
checking for posix_fadvise... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for inotify_init... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking xfs/xfs.h usability... yes
checking xfs/xfs.h presence... yes
checking for xfs/xfs.h... yes
checking how to copy va_list... va_copy
checking for clock_gettime in -lrt... yes
checking for evutil_vsnprintf in -levent... yes
checking event-config.h usability... no
checking event-config.h presence... no
checking for event-config.h... no
configure: error: event-config.h not found!')
And I know I shouldn't run as root but it's still a test environment for now.
biohead
 
Posts: 9
Joined: Fri Jul 08, 2011 3:01 pm

Re: event-config.h

Postby pepedog » Tue Aug 16, 2011 11:44 am

pacman -S libevent
supplies libevent-dev, it ends up in /usr/include/event2/event-config.h
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: event-config.h

Postby biohead » Tue Aug 16, 2011 3:15 pm

I've got that installed, and I do have the file there :?

Does it have to be in a different location?
biohead
 
Posts: 9
Joined: Fri Jul 08, 2011 3:01 pm

Re: event-config.h

Postby pepedog » Tue Aug 16, 2011 9:57 pm

What happens if you don't replace cli.c and transmission.h files ?
You could try this option in configure
--LIBEVENT_LIBS=/usr/include/event2

Personally I use transmission with flexget
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: event-config.h

Postby biohead » Fri Aug 19, 2011 12:50 pm

Its was related to needing libevent 1.4.11, rather than 2.0. Newer versions of transmission use 2.0, but this version I was trying to build needed something specific from 1.4.11. So I had to try and install that.

Incase anyone needs this information (Found it on the TFNG forums) :
$this->bbcode_second_pass_code('', '
wget http://monkey.org/~provos/libevent-1.4.11-stable.tar.gz
tar zxf libevent-1.4.11-stable.tar.gz
cd libevent-1.4.11-stable
./configure --prefix=/usr/lib/libevent1.4.11/
make install
')

Extract transmission 2.12, but for the ./configure step do
$this->bbcode_second_pass_code('', '
./configure --enable-cli --enable-daemon LIBEVENT_CFLAGS="-I/usr/lib/libevent1.4.11/include/" LIBEVENT_LIBS="-L/usr/lib/libevent1.4.11/lib/ -levent"
')

Although I also have transmission installed too... and my torrent downloads are a lot better that way. Low seeded torrents won't download using TF (maybe a fault in my setup?) but transmission they fly. I just like the idea of TF as I can let other people use it too as a lot of my friends have very nasty caps.
biohead
 
Posts: 9
Joined: Fri Jul 08, 2011 3:01 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 24 guests