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
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar

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
  • #14819

Closed (moved)
Open
Opened Feb 09, 2015 by teor@teor

Thread refactoring breaks linking with --disable-threads

The recent refactoring (?) of the threads code appears to break linking with ./configure --disable-threads on OS X 10.10 with clang-3.7 (git, MacPorts).

  CCLD     src/or/tor
Undefined symbols for architecture x86_64:
  "_tor_cond_wait", referenced from:
      _worker_thread_main in libor.a(workqueue.o)
  "_spawn_func", referenced from:
      _threadpool_new in libor.a(workqueue.o)
  "_tor_cond_signal_all", referenced from:
      _threadpool_queue_update in libor.a(workqueue.o)
  "_tor_cond_uninit", referenced from:
      _tor_cond_free in libor.a(compat_threads.o)
  "_tor_cond_init", referenced from:
      _tor_cond_new in libor.a(compat_threads.o)
      _threadpool_new in libor.a(workqueue.o)
  "_tor_get_thread_id", referenced from:
      _tor_set_openssl_thread_id in libor-crypto.a(crypto.o)
      _set_main_thread in libor.a(compat_threads.o)
      _in_main_thread in libor.a(compat_threads.o)
  "_tor_mutex_init_nonrecursive", referenced from:
      _tor_mutex_new_nonrecursive in libor.a(compat_threads.o)
      _threadpool_new in libor.a(workqueue.o)
  "_tor_mutex_uninit", referenced from:
      _clean_up_backtrace_handler in libor.a(backtrace.o)
      _tor_mutex_free in libor.a(compat_threads.o)
      _threadpool_new in libor.a(workqueue.o)
  "_tor_mutex_init", referenced from:
      _init_logging in libor.a(log.o)
      _configure_backtrace_handler in libor.a(backtrace.o)
      _tor_mutex_new in libor.a(compat_threads.o)
      _replyqueue_new in libor.a(workqueue.o)
  "_tor_mutex_acquire", referenced from:
      _logv in libor.a(log.o)
      _tor_log_update_sigsafe_err_fds in libor.a(log.o)
      _tor_log_get_logfile_names in libor.a(log.o)
      _logs_free_all in libor.a(log.o)
      _add_stream_log in libor.a(log.o)
      _logs_set_domain_logging in libor.a(log.o)
      _add_temp_log in libor.a(log.o)
      ...
  "_tor_mutex_release", referenced from:
      _logv in libor.a(log.o)
      _tor_log_update_sigsafe_err_fds in libor.a(log.o)
      _tor_log_get_logfile_names in libor.a(log.o)
      _logs_free_all in libor.a(log.o)
      _add_stream_log in libor.a(log.o)
      _logs_set_domain_logging in libor.a(log.o)
      _add_temp_log in libor.a(log.o)
      ...
  "_tor_cond_signal_one", referenced from:
      _threadpool_queue_work in libor.a(workqueue.o)
  "_tor_threads_init", referenced from:
      _tor_main in libtor.a(main.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [src/or/tor] Error 1
make: *** [all] Error 2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.6.x-final
Milestone
Tor: 0.2.6.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#14819