[Samba] running ./configure on older python

Andrew Bartlett abartlet at samba.org
Fri Aug 4 10:24:05 UTC 2023


On Thu, 2023-08-03 at 10:29 +0300, Michael Tokarev via samba wrote:
> Hi!
> 
> I tried to build current samba on older system - this time it is a
> debian buster.
> And ./configure fails while trying to verify if python is working:

That is really strange. 

> ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-
> linux-gnu'
> from /build/pkg/talloc-2.4.1/bld/python3.7: Could not run
> ['python3.7']
> 
> 
> The interesting thing is that this code, when run from a file, Just
> Works:
> 
> $ echo -e "\ntry:\n\tfrom distutils.sysconfig import
> get_config_var.....') or ''))" > t.py
> 
> 
> 
> $ python3.7 t.py
> '/usr'
> t.py:13: DeprecationWarning: SO is deprecated, use EXT_SUFFIX
>    print(repr(get_config_var('SO') or ''))
> '.cpython-37m-x86_64-linux-gnu.so'
> '.cpython-37m-x86_64-linux-gnu.so'
> ' -Wl,-z,relro'
> '/usr/lib'
> '/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu'
> '/usr/include/python3.7m'
> 1
> ''
> 'x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
> functions  -Wl,-z,relro'
> '-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall
> -g   -fstack-protector-strong -Wformat -Werror=format-security  -g
> -flto 
> -fuse-linker-plugin -ffat-lto-objects'
> '3.7m'
> 
> I don't know python. What's going on there?

Could it be environment variables?

Andrew Bartlett

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead                https://catalyst.net.nz/services/samba
Catalyst.Net Ltd

Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
company

Samba Development and Support: https://catalyst.net.nz/services/samba

Catalyst IT - Expert Open Source Solutions




More information about the samba mailing list