This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author samuelmarks
Recipients samuelmarks
Date 2021-02-27.11:43:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614426217.53.0.648681369165.issue43339@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-02-27 11:43:37samuelmarkssetrecipients: + samuelmarks
2021-02-27 11:43:37samuelmarkssetmessageid: <1614426217.53.0.648681369165.issue43339@roundup.psfhosted.org>
2021-02-27 11:43:37samuelmarkslinkissue43339 messages
2021-02-27 11:43:37samuelmarkscreate