Ok now, but did 4.10.16? I was just trying to rebuild their source RPM. Trying 4.17 on the command line (with python3) gives me:> [root at srvlxfs2 samba-4.17.4]# ./configure > Setting top to : > /root/rpmbuild/BUILD/samba-4.17.4 > Setting out to : > /root/rpmbuild/BUILD/samba-4.17.4/bin > Checking for 'gcc' (C compiler) : Traceback (most recent call > last): > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f091484f208>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f091484f208>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Context.py", line > 296, in recurse > user_function(self) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > 833, in wrap > ret = fun(*k) > File "/root/rpmbuild/BUILD/samba-4.17.4/buildtools/wafsamba/wscript", > line 300, in configure > conf.load('compiler_c') > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > line 271, in load > func(self) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Tools/compiler_c.py", > line 80, in configure > conf.load(compiler) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > line 271, in load > func(self) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Tools/gcc.py", > line 155, in configure > conf.check_gcc_o_space() > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > line 317, in fun > return f(*k, **kw) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Tools/c_config.py", > line 1365, in check_gcc_o_space > self.check(msg='Checking if the -o link must be split from arguments', > fragment=SNIP_EMPTY_PROGRAM, features=features) > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > return f(*k, **kw) > File "./buildtools/wafsamba/samba_waf18.py", line 177, in check > ret = self.run_build(*k, **kw) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > line 317, in fun > return f(*k, **kw) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > line 552, in run_build > h = Utils.h_list(buf) > File > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > 608, in h_list > return md5(repr(lst).encode()).digest() > TypeError: __init__() takes 1 positional argument but 2 were given >I'm clearly doing something wrong, this used to be easy :-( Thanks, Greg On Wed, Jan 18, 2023 at 10:25 AM Rowland Penny via samba < samba at lists.samba.org> wrote:> > > On 18/01/2023 15:16, Greg Dickie wrote: > > Hey Rowland, > > > > Thanks for the reply. I was not aware of that page but that's super > > helpful. Unfortunately it does not fix my problem. I think I'm missing > > something basic. At this point I'm just trying to rebuild the centos7 > > srpm. See the attached error message (configure fails). > > > > > > The attachment probably never made the list (it strips attachments), but > it got to me and one line points out your problem: > > File > "/root/rpmbuild/BUILD/samba-4.10.16/third_party/waf/waflib/Utils.py", > line 609, in h_list_python2 > > Centos 7 defaulted to python 2 and Samba now mandates python 3 > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- Greg Dickie just a guy 514-983-5400
I don't think you are going to have much luck getting 4.17 working on CentOS 7. We recently moved from CentOS 7 (4.13) to Rocky Linux 8 (4.16) and the install process was much easier. On Wed, Jan 18, 2023 at 12:03 PM Greg Dickie via samba < samba at lists.samba.org> wrote:> Ok now, but did 4.10.16? I was just trying to rebuild their source RPM. > > Trying 4.17 on the command line (with python3) gives me: > > > [root at srvlxfs2 samba-4.17.4]# ./configure > > Setting top to : > > /root/rpmbuild/BUILD/samba-4.17.4 > > Setting out to : > > /root/rpmbuild/BUILD/samba-4.17.4/bin > > Checking for 'gcc' (C compiler) : Traceback (most recent call > > last): > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > > 831, in wrap > > return cache[k] > > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f091484f208>,) > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > > 831, in wrap > > return cache[k] > > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f091484f208>,) > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Context.py", > line > > 296, in recurse > > user_function(self) > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > > 833, in wrap > > ret = fun(*k) > > File "/root/rpmbuild/BUILD/samba-4.17.4/buildtools/wafsamba/wscript", > > line 300, in configure > > conf.load('compiler_c') > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > > line 271, in load > > func(self) > > File > > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Tools/compiler_c.py", > > line 80, in configure > > conf.load(compiler) > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > > line 271, in load > > func(self) > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Tools/gcc.py", > > line 155, in configure > > conf.check_gcc_o_space() > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > > line 317, in fun > > return f(*k, **kw) > > File > > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Tools/c_config.py", > > line 1365, in check_gcc_o_space > > self.check(msg='Checking if the -o link must be split from > arguments', > > fragment=SNIP_EMPTY_PROGRAM, features=features) > > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > > return f(*k, **kw) > > File "./buildtools/wafsamba/samba_waf18.py", line 177, in check > > ret = self.run_build(*k, **kw) > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > > line 317, in fun > > return f(*k, **kw) > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Configure.py", > > line 552, in run_build > > h = Utils.h_list(buf) > > File > > "/root/rpmbuild/BUILD/samba-4.17.4/third_party/waf/waflib/Utils.py", line > > 608, in h_list > > return md5(repr(lst).encode()).digest() > > TypeError: __init__() takes 1 positional argument but 2 were given > > > > I'm clearly doing something wrong, this used to be easy :-( > > Thanks, > Greg > > > On Wed, Jan 18, 2023 at 10:25 AM Rowland Penny via samba < > samba at lists.samba.org> wrote: > > > > > > > On 18/01/2023 15:16, Greg Dickie wrote: > > > Hey Rowland, > > > > > > Thanks for the reply. I was not aware of that page but that's super > > > helpful. Unfortunately it does not fix my problem. I think I'm missing > > > something basic. At this point I'm just trying to rebuild the centos7 > > > srpm. See the attached error message (configure fails). > > > > > > > > > > The attachment probably never made the list (it strips attachments), but > > it got to me and one line points out your problem: > > > > File > > "/root/rpmbuild/BUILD/samba-4.10.16/third_party/waf/waflib/Utils.py", > > line 609, in h_list_python2 > > > > Centos 7 defaulted to python 2 and Samba now mandates python 3 > > > > Rowland > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > > -- > > > Greg Dickie > just a guy > 514-983-5400 > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 18/01/2023 16:02, Greg Dickie wrote:> Ok now,?but did 4.10.16? I was just trying to rebuild their source RPM.OK, Samba first started using python 3 at version 4.10.0 , but you could build Samba with python 2 if you ran '.configure' and 'make' like this: 'PYTHON=python2 ./configure' 'PYTHON=python2 make' Samba 4.11.0 did not come with runtime support for python 2, but you could still build it as above Samba 4.11.0 required a minimum of python 3.4, which was raised to 3.5 as Samba 4.12.0 and again to python 3.6 at 4.13.0 Python 2 was removed from samba at 4.14.0 and a minimum of python 3.6 was then required. That's the facts, now my opinion: Centos is now dead, red-hat bought it and basically shut it down, so why continue to use it ? Have you considered using Debian ? Right from the start of Samba 4 it has been easier to set up Samba on it. If you use Debian 11 and Samba from backports, you get (at the moment) the latest version of Samba 4.17.4 Rowland