[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Building Tor with libevent 1.2 (or higher) on Windows fails



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

I have problems building Tor (stable, alpha, or trunk) with libevent 1.2
(or higher) on Windows XP. I tried VC 7 and 8 and MinGW/msys.

The problem occurs when executing "make" in msys (see output below).

However, when I use libevent 1.1b, everything works fine. Therefore, I
applied the patch contained in Win32Build/mingw/libevent-1.1b-mingw.diff
as described in doc/tor-win32-mingw-creation.txt. Is there a patch for
libevent 1.3a, too?

Unfortunately, I only have Windows and Java experience, but only very
few with Linux and C, yet. So I cannot write that patch by myself.

If you say, that Tor runs fine with libevent 1.1b without any stability
problems, I can live with that, too.

Thanks!

Kind regards,
Karsten

- ---

$ make
make  all-recursive
make[1]: Entering directory `/t/tor-mingw/libevent-1.3a'
Making all in .
make[2]: Entering directory `/t/tor-mingw/libevent-1.3a'
make[2]: Leaving directory `/t/tor-mingw/libevent-1.3a'
Making all in sample
make[2]: Entering directory `/t/tor-mingw/libevent-1.3a/sample'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -I../compat -c `test -f
'event-test.c' || echo './'`event-test.c
In file included from event-test.c:21:
../event.h:302: error: syntax error before "u_int8_t"
../event.h:305: error: syntax error before "u_int32_t"
../event.h:307: error: syntax error before "u_int8_t"
../event.h:310: error: syntax error before "u_int8_t"
../event.h:313: error: syntax error before "u_int8_t"
../event.h:318: error: syntax error before "u_int8_t"
../event.h:320: error: syntax error before "u_int8_t"
../event.h:321: error: syntax error before "u_int32_t"
../event.h:322: error: syntax error before "u_int32_t"
../event.h:325: error: syntax error before "u_int8_t"
../event.h:328: error: syntax error before "u_int8_t"
../event.h:331: error: syntax error before "u_int8_t"
../event.h:334: error: syntax error before "u_int8_t"
make[2]: *** [event-test.o] Error 1
make[2]: Leaving directory `/t/tor-mingw/libevent-1.3a/sample'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/t/tor-mingw/libevent-1.3a'
make: *** [all] Error 2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3G3Iq8q8gkGfGakRAuOBAJwLlW6ZHYFKtcWEIAkVbz/oAsTPbACgjelc
pdyUsB1btaPC/sPwmniz8G0=
=+CiD
-----END PGP SIGNATURE-----