Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 824
    • Issues 824
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #25353
Closed
Open
Created Feb 25, 2018 by Trac@tracbot

Configure fails with some OpenSSL 1.1.0 built with no-deprecated.

On my machine with OpenSSL 1.1.0, Tor's configure script fails to detect OpenSSL and gives me the following error:

configure: Now, we'll look for OpenSSL >= 1.0.1
checking for openssl directory... configure: WARNING: Could not find a linkable openssl.  If you have it installed somewhere unusual, you can specify an explicit path using --with-openssl-dir
configure: error: Missing libraries; unable to proceed.

This seems to be due to the fact that configure checks for OpenSSL >= 1.0.1 with TLSv1_1_method(), which is deprecated in favor of TLS_method() in OpenSSL 1.1.0. On my configuration of OpenSSL 1.1.0, deprecated functions are not available by default (not without first enabling the OPENSSL_API_COMPAT compatibility #define), hence the failure.

I'd gladly provide a patch, but I'm not sure how this would best be fixed: explicitly check for TLS_method() in case the check for TLSv1_1_method() fails? Replace this test with a test on OPENSSL_VERSION_NUMBER? Find some other function introduced in 1.0.1 and neither removed nor deprecated in 1.1.0?

Trac:
Username: laomaiweng

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking