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

Closed (moved)
Open
Opened Apr 21, 2014 by rl1987@rl1987

Unable to build Tor with --enable-bufferevents on Mac OS X

I am getting the following warnings and errors when attempting to build Tor (0cca8dc35a4e59944b83db0a36c7033e09fb98b4) on Mac OS X 10.9.2 system with --enable-bufferevents configuration option:

  CC       src/test/src_test_test-test_oom.o
src/test/test_oom.c:105:20: warning: incompatible pointer types passing 'buf_t *' (aka 'struct buf_t *') to parameter of type 'struct evbuffer *' [-Wincompatible-pointer-types]
  add_bytes_to_buf(TO_CONN(conn)->inbuf, in_bytes);
                   ^~~~~~~~~~~~~~~~~~~~
./src/or/or.h:1767:20: note: expanded from macro 'TO_CONN'
#define TO_CONN(c) (&(((c)->base_)))
                   ^
src/test/test_oom.c:80:36: note: passing argument to parameter 'buf' here
add_bytes_to_buf(generic_buffer_t *buf, size_t n_bytes)
                                   ^
src/test/test_oom.c:106:20: warning: incompatible pointer types passing 'buf_t *' (aka 'struct buf_t *') to parameter of type 'struct evbuffer *' [-Wincompatible-pointer-types]
  add_bytes_to_buf(TO_CONN(conn)->outbuf, out_bytes);
                   ^~~~~~~~~~~~~~~~~~~~~
./src/or/or.h:1767:20: note: expanded from macro 'TO_CONN'
#define TO_CONN(c) (&(((c)->base_)))
                   ^
src/test/test_oom.c:80:36: note: passing argument to parameter 'buf' here
add_bytes_to_buf(generic_buffer_t *buf, size_t n_bytes)
                                   ^
2 warnings generated.
  CC       src/test/src_test_test-test_options.o
  CC       src/test/src_test_test-test_pt.o
  CC       src/test/src_test_test-test_relaycell.o
  CC       src/test/src_test_test-test_replay.o
  CC       src/test/src_test_test-test_routerkeys.o
  CC       src/test/src_test_test-test_socks.o
  CC       src/test/src_test_test-test_util.o
  CC       src/test/src_test_test-test_config.o
  CC       src/test/src_test_test-test_hs.o
  CC       src/test/src_test_test-test_nodelist.o
  CC       src/test/src_test_test-test_policy.o
  CC       src/test/src_test_test-test_status.o
  CC       src/ext/src_test_test-tinytest.o
  CCLD     src/test/test
Undefined symbols for architecture x86_64:
  "_connection_buckets_note_empty_ts", referenced from:
      _help_test_bucket_note_empty in src_test_test-test_controller_events.o
  "_bucket_millis_empty", referenced from:
      _test_cntev_bucket_millis_empty in src_test_test-test_controller_events.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/test/test] Error 1
make: *** [all] Error 2
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#11578