Python Forum

Full Version: Compiling Python 3.8.5 source code results in build error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Everyone,

###Sytesm & Other details
SUSE-15, OPENSSL 1.1.1, GCC 7.5.0

###Error
• Failed to build these modules:
_ctypes


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/por...issues/381

###Solution tried
1. Made code changes from the online source , solution suggested ( https://www.thetopsites.net/article/53543477.shtml )

Did below changes in build.sh script to fix compilatin error.

******Build.shh script
.
.
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
./configure --enable-shared --prefix=/opt/OV/nonOV/python/ --with-openssl=/usr/lib64
ovmake
.
.
.
**************
where in path='/usr/lib64' below *.so files present
/usr/lib64 # ls libss*
libss.so.2 libss.so.2.0 libssh.so.4 libssh.so.4.7.4 libssl.so.1.1 libssl3.so

2. Retrigger the build, results in same error.


Kindly guide me in this blocker.

Regards,
Deepan