[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Problems compiling Tor with an altered libevent.
So for those of you who don't know me, I'm a SoC student working on the
Windows Networking side of Tor. As part of my project I have made some
fairly extensive alterations to libevent (with more to come) and now I
am trying to link my altered libevent with Tor.
So, here is what I have done so far:
In my altered libevent dir (available at
https://tor-svn.freehaven.net/svn/libevent-urz/trunk), I execute
aclocal && autoheader && autoconf && automake --add-missing --copy
./configure --enable-static --disable-shared
make clean
make
make install
(note the --enable-static and --disable-shared are as per the mingw32
compile guide)
Now, the correct event.h header appears to be installed properly because
it appears in /usr/local/include/event.h (under mingw, which corresponds
to C:\msys\1.0\local\include\event.h) Now, in a directory containing the
latest SVN trunk of Tor (r11315 at the time of writing) I execute the
commands:
aclocal && autoheader && autoconf && automake --add-missing --copy
./configure --enable-static --disable-shared
and configure fails with:
checking for libevent directory...
./configure: test: !=: unary operator expected
checking whether we need extra options to link libevent... configure:
error: Found linkable libevent in , but it does not seem to run, even
with -R. Maybe specify another using --with-libevent-dir}
I have also tried running ./configure --enable-static --disable-shared
--with-libevent-dir=/usr/local/include but this does not change the results.
From reading config.log, this excerpt from config.log seems relevant:
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "tor"
| #define VERSION "0.2.0.6-alpha-dev"
| #define ENABLE_CELL_POOL 1
| #define ENABLE_THREADS 1
| #define MS_WINDOWS 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_FTIME 1
| #define HAVE_STRTOULL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define u_int64_t unsigned long long
| #define u_int32_t unsigned long
| #define u_int16_t unsigned short
| #define u_int8_t unsigned char
| /* end confdefs.h. */
| void exit(int); void *event_init(void);
| int
| main ()
| {
| event_init(); exit(0);
| ;
| return 0;
| }
configure:5499: error: Found linkable libevent in , but it does not seem
to run, even with -R. Maybe specify another using --with-libevent-dir}
Now, if I do all the libevent steps as above in a directory with
standard libevent 1.3b and then configure tor, configure finishes
successfully.
So does anyone have any thoughts as to what is going on?
If you need more information I will be happy to provide whatever I can.
Thanks
Christian