[tor-bugs] #21061 [Core Tor/Tor]: Tor configure error - OpenSSL 1.1.0c with MinGW

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Dec 22 11:17:00 UTC 2016


#21061: Tor configure error - OpenSSL 1.1.0c with MinGW
------------------------------+--------------------------------
     Reporter:  Diapolo       |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:  Tor: 0.3.0.1-alpha
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 Syswtem configuration:
 OS Win8.1 x64
 MSYS2 + MinGW version 6.2.0 (Rev2, Built by MSYS2 project)
 libevent 2.1.7 rc
 OpenSSL 1.1.0c
 Tor 0.3.0.1 alpha

 This is how I try to build Tor (which is working with OpenSSL 1.0.2j just
 fine):
 cd /d/tor-mingw
 tar xvzf tor-0.3.0.1-alpha.tar.gz
 cd tor-0.3.0.1-alpha
 ./configure --prefix=$PWD/dist --with-libevent-dir=/d/tor-mingw/libevent-
 release-2.1.7-rc/dist --with-openssl-dir=/d/libs/openssl-1.0.2j --disable-
 asciidoc --enable-local-appdata

 I then get the following OpenSSL related error from configure:
 checking for openssl directory... /d/libs/openssl-1.1.0c
 checking whether we need extra options to link openssl... configure:
 error: Found linkable openssl in /d/libs/openssl-1.1.0c, but it does not
 seem to run, even with -R. Maybe specify another using --with-openssl-dir}

 Trying with CPPFLAGS="-I/d/libs/openssl-1.1.0c/dist/include"
 LDFLAGS="-L/d/libs/openssl-1.1.0c/dist/lib" in configure also leads to the
 same error :-/.

 This is how I build OpenSSL:
 cd /d/libs
 tar xvzf openssl-1.1.0c.tar.gz
 cd openssl-1.1.0c
 ./Configure --openssldir=$PWD/dist --prefix=$PWD/dist shared mingw64 no-
 ssl3 enable-ec_nistp_64_gcc_128
 make depend && make && make install

 This is how I build libevent:
 cd /d/tor-mingw
 tar xvzf libevent-release-2.1.7-rc.tar.gz
 cd libevent-release-2.1.7-rc
 ./autogen.sh
 ./configure --prefix=$PWD/dist --enable-static --disable-shared
 CPPFLAGS="-I/d/libs/openssl-1.1.0c/dist/include"
 LDFLAGS="-L/d/libs/openssl-1.1.0c/dist/lib"
 make && make install

 Any ideas for me?

 Diapolo

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


More information about the tor-bugs mailing list