Tor doesn't compile with --with-dmalloc
System is Debian Jessie w/ libdmalloc-dev 5.5.2-6. Tor version should actually be 0.2.5.4-alpha, but was not an option in the select box.
After ./configure --with-dmalloc
, tor will not compile:
user@dev:~/Projects/tpo/tor$ make
make all-am
make[1]: Entering directory `/home/user/Projects/tpo/tor'
CC src/common/util.o
In file included from src/common/util.h:16:0,
from src/common/util.c:21:
src/common/compat.h:350:22: error: expected declaration specifiers or ‘...’ before ‘(’ token
#define SHORT_FILE__ (__FILE__)
^
src/common/util.h:66:24: note: in expansion of macro ‘SHORT_FILE__’
#define DMALLOC_ARGS , SHORT_FILE__, __LINE__
^
src/common/util.h:122:65: note: in expansion of macro ‘DMALLOC_ARGS’
#define tor_memdup_nulterm(s, n) tor_memdup_nulterm_(s, n DMALLOC_ARGS)
^
src/common/util.c:306:1: note: in expansion of macro ‘tor_memdup_nulterm’
tor_memdup_nulterm(const void *mem, size_t len DMALLOC_PARAMS)
^
src/common/util.c:306:1: error: expected declaration specifiers or ‘...’ before numeric constant
make[1]: *** [src/common/util.o] Error 1
make[1]: Leaving directory `/home/user/Projects/tpo/tor'
make: *** [all] Error 2
Trac:
Username: alphawolf