I have installed openssl version 1.1.1 on RHEL 7.9 and I am running the following commands
./configure --with-openssl=/opt/python/ssl --with-openssl-rpath=auto
make -j8
My gcc version is:
gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I am seeing this output.
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not import runpy module
Traceback (most recent call last):
File "/tmp/Python-3.10.9/Lib/runpy.py", line 15, in <module>
import importlib.util
File "/tmp/Python-3.10.9/Lib/importlib/util.py", line 14, in <module>
from contextlib import contextmanager
File "/tmp/Python-3.10.9/Lib/contextlib.py", line 4, in <module>
import _collections_abc
SystemError: <built-in function compile> returned NULL without setting an exception
generate-posix-vars failed