[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #11578 [- Select a component]: Unable to build Tor with --enable-bufferevents on Mac OS X



#11578: Unable to build Tor with --enable-bufferevents on Mac OS X
----------------------------------+---------------------
 Reporter:  rl1987                |          Owner:
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:
Component:  - Select a component  |        Version:
 Keywords:                        |  Actual Points:
Parent ID:                        |         Points:
----------------------------------+---------------------
 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
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11578>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs