Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #11605

Closed (moved)
Open
Opened Apr 25, 2014 by Trac@tracbot

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

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.5.x-final
Milestone
Tor: 0.2.5.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#11605