Skip to content

setup doesn't report missing _ssl and _hashlib #80758

Closed

Description

@tiran
BPO 36577
Nosy @tiran, @miss-islington
PRs
  • bpo-36577: setup.py reports missing OpenSSL again #12746
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-04-09.16:47:44.174>
    created_at = <Date 2019-04-09.15:30:25.424>
    labels = ['type-bug', '3.8', '3.9', 'build']
    title = "setup doesn't report missing _ssl and _hashlib"
    updated_at = <Date 2019-04-09.16:47:44.173>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2019-04-09.16:47:44.173>
    actor = 'christian.heimes'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-09.16:47:44.174>
    closer = 'christian.heimes'
    components = ['Build']
    creation = <Date 2019-04-09.15:30:25.424>
    creator = 'christian.heimes'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36577
    keywords = ['patch']
    message_count = 2.0
    messages = ['339765', '339775']
    nosy_count = 2.0
    nosy_names = ['christian.heimes', 'miss-islington']
    pr_nums = ['12746']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36577'
    versions = ['Python 3.8', 'Python 3.9']

    Activity

    1. tiran commented on Apr 9, 2019

      @tiran
      MemberAuthor

      setup does not report _ssl and _hashlib as failed to build in case OpenSSL libs or headers are missing. Related to bpo-36544 and bpo-36146

      Reproducer:
      $ ./configure --with-openssl=/invalid
      $ make
      ...
      running build
      running build_ext

      The following modules found by detect_modules() in setup.py, have been
      built by the Makefile instead, as configured by the Setup files:
      _abc atexit pwd
      time

      running build_scripts
      ...

      With fix:
      $ ./configure --with-openssl=/invalid
      $ make
      ...
      running build
      running build_ext

      Python build finished successfully!
      The necessary bits to build these optional modules were not found:
      _hashlib _ssl
      To find the necessary bits, look in setup.py in detect_modules() for the module's name.

      The following modules found by detect_modules() in setup.py, have been
      built by the Makefile instead, as configured by the Setup files:
      _abc atexit pwd
      time

      Could not build the ssl module!
      Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
      LibreSSL 2.6.4 and earlier do not provide the necessary APIs, libressl/portable#381

      running build_scripts
      ...

    2. miss-islington commented on Apr 9, 2019

      @miss-islington
      Contributor

      New changeset 8abc3f4 by Miss Islington (bot) (Christian Heimes) in branch 'master':
      bpo-36577: setup.py reports missing OpenSSL again (GH-12746)
      8abc3f4

    3. added
      type-bugAn unexpected behavior, bug, or error
      on Apr 9, 2019
    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of life3.9 (EOL)end of lifebuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions