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
  delivery exe without source code py loky62 1 154 Mar-25-2024, 08:35 PM
Last Post: Larz60+
  Algorithm for extracting comments from Python source code Pavel1982 6 413 Feb-28-2024, 09:52 PM
Last Post: Pavel1982
  build Python 3.12 in el7 SergeyMx 5 1,131 Oct-05-2023, 08:14 AM
Last Post: SergeyMx
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 6,169 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  Code error from Fundamentals of Python Programming van Richard L. Halterman Heidi 12 1,601 Jul-25-2023, 10:32 PM
Last Post: Skaperen
  Syntax error while executing the Python code in Linux DivAsh 8 1,453 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  Code works but doesn't give the right results colin_dent 2 674 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Compiles Python code with no error but giving out no output - what's wrong with it? pythonflea 6 1,491 Mar-27-2023, 07:38 AM
Last Post: buran
  python move specific files from source to destination including duplicates mg24 3 1,051 Jan-21-2023, 04:21 AM
Last Post: deanhystad
  Python Snippets Source kucingkembar 0 612 Oct-18-2022, 12:50 AM
Last Post: kucingkembar

Forum Jump:

User Panel Messages

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