Python Forum
Compiling Python 3.8.5 source code results in build error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling Python 3.8.5 source code results in build error
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to use pyinstaller results in a syntax error mark1969 2 58 Apr-15-2026, 01:59 PM
Last Post: snippsat
  putting API results into a dataframe in Python tturner2304 1 930 Aug-01-2025, 11:19 PM
Last Post: Pedroski55
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 10 26,950 May-26-2025, 01:55 PM
Last Post: deanhystad
  'Un-compiling' an .exe ? Stephen_8069 1 1,084 Apr-07-2025, 11:54 AM
Last Post: buran
Music ERROR: Could not build wheels for fairseq snl_9527 0 2,186 Mar-15-2025, 12:43 PM
Last Post: snl_9527
  Algorithm for extracting comments from Python source code Pavel1982 7 5,368 Aug-28-2024, 02:50 AM
Last Post: timothyferriss
  delivery exe without source code py loky62 2 1,781 Apr-04-2024, 05:47 PM
Last Post: loky62
  build Python 3.12 in el7 SergeyMx 5 5,289 Oct-05-2023, 08:14 AM
Last Post: SergeyMx
  Code error from Fundamentals of Python Programming van Richard L. Halterman Heidi 12 5,456 Jul-25-2023, 10:32 PM
Last Post: Skaperen
  Syntax error while executing the Python code in Linux DivAsh 8 8,731 Jul-19-2023, 06:27 PM
Last Post: Lahearle

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020