[tor-bugs] #33837 [Core Tor/Tor]: Tor.framework Unknown type name 'dispatch_queue_t'

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 14 18:44:40 UTC 2020


#33837: Tor.framework Unknown type name 'dispatch_queue_t'
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:  (none)
     Type:  defect                               |         Status:  new
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.4.3.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  043-should, 043-backport,            |  Actual Points:
  042-backport, 041-backport                     |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by nickm):

 One interesting thing about TorNode.m is that it includes TorNode.h before
 anything else, and TorNode.h includes foundation/foundation.h before
 anything else.  So we can tell that whatever the problem is, it has to be
 something on the command line.

 These are the options I'm most suspicious about:
 {{{
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor/src
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor/src/common
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor/src/core
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor/src/ext
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor/src/feature
 -I/Users/nickm/src/minitor/src/Tor.framework/Tor/tor/src/lib
 }}}

 My guess is that Tor is defining some header that conflicts with one of
 the system headers, and since you're importing all directories into your
 namespace, you're getting a conflict.

 I wouldn't recommend including any of Tor's headers at all besides
 tor_api.h.  It looks like you are also including or.h, and log.h.  We
 should talk about how that can be avoided -- it is likely to cause
 instability in the future.  But if you really need to include these files,
 the recommended way to do it is relative to src.

 So that's my hunch -- I'm trying this out now to see if it works for me.
 My setup only "sort of" works, so whatever I come up with is going to need
 further testing, but let's see how it goes.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33837#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list