[tor-bugs] #28704 [Applications/Tor Browser]: Compile Tor and dependencies on our own for Android

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 27 18:24:49 UTC 2020


#28704: Compile Tor and dependencies on our own for Android
-------------------------------------------------+-------------------------
 Reporter:  gk                                   |          Owner:  sisbell
     Type:  defect                               |         Status:
                                                 |  needs_review
 Priority:  High                                 |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tbb-mobile, tbb-rbm, tbb-parity,     |  Actual Points:
  TorBrowserTeam202001                           |
Parent ID:                                       |         Points:  0
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------
Changes (by sisbell):

 * status:  needs_revision => needs_review


Comment:

 I've made progress to getting libraries running as shared libraries but
 have hit a blocker that I need help with

 The problem occurs when I try to run tor browser. I get a missing symbol
 where libTor can't find a symbol from openssl


 {{{
   10744 10744 F linker  : CANNOT LINK EXECUTABLE "/data/app/org.torproject
 .torbrowser-o2cGxqnhQbWOPhFKKcOFiA==/lib/arm/libTor.so": cannot locate
 symbol "SSL_CTX_set_security_level" referenced by
 "/data/app/org.torproject.torbrowser-
 o2cGxqnhQbWOPhFKKcOFiA==/lib/arm/libTor.so"...
 }}}

 Looking at the libraries, we see the function undefined in libTor. So I'm
 wondering what flag I need to set to make sure these are included. I'm
 building with clang.

 {{{
 $ readelf -Ws libTor.so | grep set_security
   3819: 00000000     0 FUNC    GLOBAL DEFAULT  UND
 SSL_CTX_set_security_level at OPENSSL_1_1_0 (5)
 110559: 00000000     0 FUNC    GLOBAL DEFAULT  UND
 SSL_CTX_set_security_level
 }}}


 {{{
 $ readelf -Ws libssl.so | grep set_security
    537: 000328bc    12 FUNC    GLOBAL DEFAULT   11
 SSL_CTX_set_security_level@@OPENSSL_1_1_0
    543: 000328d4    12 FUNC    GLOBAL DEFAULT   11
 SSL_CTX_set_security_callback@@OPENSSL_1_1_0
    679: 0003288c    12 FUNC    GLOBAL DEFAULT   11
 SSL_set_security_callback@@OPENSSL_1_1_0
    681: 00032874    12 FUNC    GLOBAL DEFAULT   11
 SSL_set_security_level@@OPENSSL_1_1_0
   2743: 000328bc    12 FUNC    GLOBAL DEFAULT   11
 SSL_CTX_set_security_level
   2749: 000328d4    12 FUNC    GLOBAL DEFAULT   11
 SSL_CTX_set_security_callback
   2885: 0003288c    12 FUNC    GLOBAL DEFAULT   11
 SSL_set_security_callback
   2887: 00032874    12 FUNC    GLOBAL DEFAULT   11 SSL_set_security_level
 }}}

 I have the changes here
 https://github.com/sisbell/tor-browser-build/commits/bug-28766e

 The tor specific changes are here
 https://github.com/sisbell/tor-browser-
 build/commit/b6d9c2edf8cb46e484413554ba76dce9560eef5d

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


More information about the tor-bugs mailing list