8000 Could not build the ssl module! | macOS with `CPPFLAGS` and `LDFLAGS` set · Issue #87505 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Could not build the ssl module! | macOS with CPPFLAGS and LDFLAGS set #87505

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

Closed
SamuelMarks mannequin opened this issue Feb 27, 2021 · 2 comments
Closed

Could not build the ssl module! | macOS with CPPFLAGS and LDFLAGS set #87505

SamuelMarks mannequin opened this issue Feb 27, 2021 · 2 comments
Labels
3.10 only security fixes build The build process and cross-build

Comments

@SamuelMarks
Copy link
Mannequin
SamuelMarks mannequin commented Feb 27, 2021
BPO 43339
Nosy @SamuelMarks

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 2021-02-27.11:59:13.933>
created_at = <Date 2021-02-27.11:43:37.506>
labels = ['build', 'invalid', '3.10']
title = 'Could not build the ssl module! | macOS with `CPPFLAGS` and `LDFLAGS` set'
updated_at = <Date 2021-02-27.11:59:13.933>
user = 'https://github.com/SamuelMarks'

bugs.python.org fields:

activity = <Date 2021-02-27.11:59:13.933>
actor = 'samuelmarks'
assignee = 'none'
closed = True
closed_date = <Date 2021-02-27.11:59:13.933>
closer = 'samuelmarks'
components = ['Build']
creation = <Date 2021-02-27.11:43:37.506>
creator = 'samuelmarks'
dependencies = []
files = []
hgrepos = []
issue_num = 43339
keywords = []
message_count = 2.0
messages = ['387777', '387778']
nosy_count = 1.0
nosy_names = ['samuelmarks']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue43339'
versions = ['Python 3.10']

Linked PRs

@SamuelMarks
Copy link
Mannequin Author
SamuelMarks mannequin commented Feb 27, 2021

I was on 3.10a4 on macOS 11.1 for ages, finally decided to upgrade to a5, building from source. With latest brew install openssl zlib.

$ export LDFLAGS='-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/zlib/lib'
$ export CPPFLAGS='-I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/zlib/include'
$ ./configure --enable-optimizations --prefix /opt/python3.10

I suppose I could set this which I forgot, but I doubt it's the problem, unless pkg_config is how the CPython build system find OpenSSL?

export PKG_CONFIG_PATH='/usr/local/opt/openssl@1.1/lib/pkgconfig'

Error:

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_hashlib              _ssl                  ossaudiodev        
spwd                                                           
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                  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, https://github.com/libressl-portable/portable/issues/381

Happy to test alternative configurations

@SamuelMarks SamuelMarks mannequin added 3.10 only security fixes build The build process and cross-build labels Feb 27, 2021
@SamuelMarks
Copy link
Mannequin Author
SamuelMarks mannequin commented Feb 27, 2021

Nevermind it actually was that missing PKG_CONFIG_PATH line…

@SamuelMarks SamuelMarks mannequin closed this as completed Feb 27, 2021
@SamuelMarks SamuelMarks mannequin added the invalid label Feb 27, 2021
@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.10 only security fixes build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

0 participants
0