[tor-bugs] #3643 [Tor bundles/installation]: Building Tor on Mac OS X Lion

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Jul 25 22:59:32 UTC 2011


#3643: Building Tor on Mac OS X Lion
--------------------------------------+-------------------------------------
 Reporter:  runa                      |          Owner:  erinn
     Type:  task                      |         Status:  new  
 Priority:  normal                    |      Milestone:       
Component:  Tor bundles/installation  |        Version:       
 Keywords:                            |         Parent:       
   Points:                            |   Actualpoints:       
--------------------------------------+-------------------------------------

Comment(by edmanm):

 This doesn't jive with my experience trying to build Tor on OS X Lion.
 Perhaps infowolfe and I have different Xcode versions. I installed Xcode
 4.1 (4B110) from the App Store after installing Lion.

 In any case, Apple seems to have deprecated a boatload of OpenSSL APIs, so
 Tor fails to build with `--enable-gcc-warnings` (log attached). For
 example:

 {{{
 cc1: warnings being treated as errors
 crypto.c: In function ‘crypto_log_errors’:
 crypto.c:173: warning: ‘ERR_get_error’ is deprecated (declared at
 /usr/include/openssl/err.h:266)
 crypto.c:174: warning: ‘ERR_reason_error_string’ is deprecated (declared
 at /usr/include/openssl/err.h:283)
 crypto.c:175: warning: ‘ERR_lib_error_string’ is deprecated (declared at
 /usr/include/openssl/err.h:281)
 crypto.c:176: warning: ‘ERR_func_error_string’ is deprecated (declared at
 /usr/include/openssl/err.h:282)
 }}}


 The corresponding function prototype for `ERR_get_error()`, for example,
 in `/usr/include/openssl/err.h` looks like this:

 {{{
 unsigned long ERR_get_error(void)
 DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
 }}}

 All the other referenced deprecated functions have the same annotation.
 Indeed, most (if not all) of OpenSSL seems deprecated in Lion:

 {{{
 [edmanm:/usr/include/openssl]$ grep
 DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER *.h |wc -l
     2667
 }}}

 I have no clue what these have all been deprecated in favor of, though.

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


More information about the tor-bugs mailing list