Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup doesn't report missing _ssl and _hashlib #80758

Closed
tiran opened this issue Apr 9, 2019 · 2 comments
Closed

setup doesn't report missing _ssl and _hashlib #80758

tiran opened this issue Apr 9, 2019 · 2 comments
Labels
3.8 only security fixes 3.9 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@tiran
Copy link
Member

tiran commented Apr 9, 2019

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']

    @tiran
    Copy link
    Member Author

    tiran commented Apr 9, 2019

    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
    ...

    @tiran tiran added 3.8 only security fixes 3.9 only security fixes build The build process and cross-build labels Apr 9, 2019
    @miss-islington
    Copy link
    Contributor

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

    @tiran tiran closed this as completed Apr 9, 2019
    @tiran tiran added the type-bug An unexpected behavior, bug, or error label Apr 9, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants