Flynn, Garrett S RTX
2023-Jun-06 17:29 UTC
[Samba] Trying to build Samba from source on RHEL 8
Hi, I'm trying to build Samba from source on a RHEL version 8 server. I installed all the necessary packages and untarred the source for Samba version 4.6.10. In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2. Here I believe I am using Python3, but I cannot seem to get past the configure command: [root at v2ecsqapp09 samba-4.16.10]# ./configure Setting top to : /usr/local/src/Samba/samba-4.16.10 Setting out to : /usr/local/src/Samba/samba-4.16.10/bin Checking for 'gcc' (C compiler) : /bin/gcc Checking for program 'git' : not found Checking for c flags '-MMD' : Traceback (most recent call last): File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap return cache[k] KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap return cache[k] KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse user_function(self) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap ret = fun(*k) File "/usr/local/src/Samba/samba-4.16.10/buildtools/wafsamba/wscript", line 309, in configure conf.load('gccdeps') File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 271, in load func(self) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/extras/gccdeps.py", line 226, in configure conf.check(fragment='int main() { return 0; }', features='c force_gccdeps', cflags=flags, msg='Checking for c flags %r' % ''.join(flags)) 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 "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 317, in fun return f(*k, **kw) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 552, in run_build h = Utils.h_list(buf) File "/usr/local/src/Samba/samba-4.16.10/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 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse user_function(self) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap ret = fun(*k) File "/usr/local/src/Samba/samba-4.16.10/lib/replace/wscript", line 30, in configure conf.RECURSE('buildtools/wafsamba') File "./buildtools/wafsamba/samba_utils.py", line 66, in fun return f(*k, **kw) File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE return ctx.recurse(relpath) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse self.post_recurse(node) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse self.hash = Utils.h_list((self.hash, node.read('rb'))) File "/usr/local/src/Samba/samba-4.16.10/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 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse user_function(self) File "/usr/local/src/Samba/samba-4.16.10/wscript", line 163, in configure conf.RECURSE('lib/replace') File "./buildtools/wafsamba/samba_utils.py", line 66, in fun return f(*k, **kw) File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE return ctx.recurse(relpath) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse self.post_recurse(node) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse self.hash = Utils.h_list((self.hash, node.read('rb'))) File "/usr/local/src/Samba/samba-4.16.10/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 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 159, in waf_entry_point run_commands() File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 255, in run_commands ctx = run_command(cmd_name) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 239, in run_command ctx.execute() File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 159, in execute super(ConfigurationContext, self).execute() File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 214, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse self.post_recurse(node) File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse self.hash = Utils.h_list((self.hash, node.read('rb'))) File "/usr/local/src/Samba/samba-4.16.10/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 need to get this working to support a ClearCase environment and I would appreciate any advice. Thanks, Garrett
06.06.2023 20:29, Flynn, Garrett S RTX via samba ?????:> Hi, > > I'm trying to build Samba from source on a RHEL version 8 server. I installed all the necessary packages and untarred the source for Samba version 4.6.10. > In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2. > Here I believe I am using Python3, but I cannot seem to get past the configure command:Does it support python2? I dunno. But here on debian bookworm, it does not even start with puthon2, failing at earlier stage. /mjt
On 6/6/23 1:29 PM, Flynn, Garrett S RTX via samba wrote:> Hi, > > I'm trying to build Samba from source on a RHEL version 8 server. I installed all the necessary packages and untarred the source for Samba version 4.6.10. > In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2. > Here I believe I am using Python3, but I cannot seem to get past the configure command:If you found the Samba tarball inside the SRPM and tried to built that, you are building the standard Samba sources. Red Hat doesn't modify the original sources when creating an RPM, the RPM contain patches de distribution adds on top of the original sources in order to fix build problems when building it, or to backport patches, etc. If you install the SRPM, the entire sources, patche, extra files and the SPEC file (that contains the instructions of how the RPM was build), the location of all that wiil be inside directories inside the result of rpm --eval %{_topdir} If you want the exact same version and patches thet Red Hat distributes, you will need to red the SPEC file, and maybe patch it to you liking and rebuild the RPM is my recommendation. What you are doing probably is no different that getting the sources from Samba servers and trying to build that.> > [root at v2ecsqapp09 samba-4.16.10]# ./configure > Setting top to : /usr/local/src/Samba/samba-4.16.10 > Setting out to : /usr/local/src/Samba/samba-4.16.10/bin > Checking for 'gcc' (C compiler) : /bin/gcc > Checking for program 'git' : not found > Checking for c flags '-MMD' : Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap > ret = fun(*k) > File "/usr/local/src/Samba/samba-4.16.10/buildtools/wafsamba/wscript", line 309, in configure > conf.load('gccdeps') > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 271, in load > func(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/extras/gccdeps.py", line 226, in configure > conf.check(fragment='int main() { return 0; }', features='c force_gccdeps', cflags=flags, msg='Checking for c flags %r' % ''.join(flags)) > 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 "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 317, in fun > return f(*k, **kw) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 552, in run_build > h = Utils.h_list(buf) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap > ret = fun(*k) > File "/usr/local/src/Samba/samba-4.16.10/lib/replace/wscript", line 30, in configure > conf.RECURSE('buildtools/wafsamba') > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > return f(*k, **kw) > File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE > return ctx.recurse(relpath) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/wscript", line 163, in configure > conf.RECURSE('lib/replace') > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > return f(*k, **kw) > File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE > return ctx.recurse(relpath) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 159, in waf_entry_point > run_commands() > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 255, in run_commands > ctx = run_command(cmd_name) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 239, in run_command > ctx.execute() > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 159, in execute > super(ConfigurationContext, self).execute() > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 214, in execute > self.recurse([os.path.dirname(g_module.root_path)]) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 need to get this working to support a ClearCase environment and I would appreciate any advice. > > > Thanks, > Garrett
vincent at cojot.name
2023-Jun-06 18:59 UTC
[Samba] Trying to build Samba from source on RHEL 8
Hi, In case you might be interested in the src.rpms with the AD part (might save you some time), there are a few (maintained) sources around: http://samba.tranquil.it/centos8/samba-4.16.10-srcrpm http://vince.cojot.name/dist/samba/samba-4.16.10/RHEL8/SRPMS/ Due to the dependencies, if you want to keep your RHEL systems clean, it's actually some work if you want to avoid replacing system libs. My 2c, Vincent On Tue, 6 Jun 2023, Flynn, Garrett S RTX via samba wrote:> Hi, > > I'm trying to build Samba from source on a RHEL version 8 server. I installed all the necessary packages and untarred the source for Samba version 4.6.10. > In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2. > Here I believe I am using Python3, but I cannot seem to get past the configure command: > > [root at v2ecsqapp09 samba-4.16.10]# ./configure > Setting top to : /usr/local/src/Samba/samba-4.16.10 > Setting out to : /usr/local/src/Samba/samba-4.16.10/bin > Checking for 'gcc' (C compiler) : /bin/gcc > Checking for program 'git' : not found > Checking for c flags '-MMD' : Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap > ret = fun(*k) > File "/usr/local/src/Samba/samba-4.16.10/buildtools/wafsamba/wscript", line 309, in configure > conf.load('gccdeps') > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 271, in load > func(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/extras/gccdeps.py", line 226, in configure > conf.check(fragment='int main() { return 0; }', features='c force_gccdeps', cflags=flags, msg='Checking for c flags %r' % ''.join(flags)) > 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 "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 317, in fun > return f(*k, **kw) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 552, in run_build > h = Utils.h_list(buf) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap > ret = fun(*k) > File "/usr/local/src/Samba/samba-4.16.10/lib/replace/wscript", line 30, in configure > conf.RECURSE('buildtools/wafsamba') > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > return f(*k, **kw) > File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE > return ctx.recurse(relpath) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/wscript", line 163, in configure > conf.RECURSE('lib/replace') > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > return f(*k, **kw) > File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE > return ctx.recurse(relpath) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 159, in waf_entry_point > run_commands() > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 255, in run_commands > ctx = run_command(cmd_name) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Scripting.py", line 239, in run_command > ctx.execute() > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 159, in execute > super(ConfigurationContext, self).execute() > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 214, in execute > self.recurse([os.path.dirname(g_module.root_path)]) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 need to get this working to support a ClearCase environment and I would appreciate any advice. > > > Thanks, > Garrett > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On Tue, 2023-06-06 at 17:29 +0000, Flynn, Garrett S RTX via samba wrote:> Hi, > > I'm trying to build Samba from source on a RHEL version 8 server. I installed all the necessary packages and untarred the source for Samba version 4.6.10. > In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2. > Here I believe I am using Python3, but I cannot seem to get past the configure command: > > [root at v2ecsqapp09 samba-4.16.10]# ./configure > Setting top to : /usr/local/src/Samba/samba-4.16.10 > Setting out to : /usr/local/src/Samba/samba-4.16.10/bin > Checking for 'gcc' (C compiler) : /bin/gcc > Checking for program 'git' : not found > Checking for c flags '-MMD' : Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 831, in wrap > return cache[k] > KeyError: (<samba_waf18.ConfigurationContext object at 0x7f08a69dc160>,) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap > ret = fun(*k) > File "/usr/local/src/Samba/samba-4.16.10/buildtools/wafsamba/wscript", line 309, in configure > conf.load('gccdeps') > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 271, in load > func(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/extras/gccdeps.py", line 226, in configure > conf.check(fragment='int main() { return 0; }', features='c force_gccdeps', cflags=flags, msg='Checking for c flags %r' % ''.join(flags)) > 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 "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 317, in fun > return f(*k, **kw) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 552, in run_build > h = Utils.h_list(buf) > File "/usr/local/src/Samba/samba-4.16.10/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 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 296, in recurse > user_function(self) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Utils.py", line 833, in wrap > ret = fun(*k) > File "/usr/local/src/Samba/samba-4.16.10/lib/replace/wscript", line 30, in configure > conf.RECURSE('buildtools/wafsamba') > File "./buildtools/wafsamba/samba_utils.py", line 66, in fun > return f(*k, **kw) > File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE > return ctx.recurse(relpath) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Context.py", line 298, in recurse > self.post_recurse(node) > File "/usr/local/src/Samba/samba-4.16.10/third_party/waf/waflib/Configure.py", line 285, in post_recurse > self.hash = Utils.h_list((self.hash, node.read('rb'))) > File "/usr/local/src/Samba/samba-4.16.10/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 need to get this working to support a ClearCase environment and I would appreciate any advice.I suspect, perhaps for reasons to support your other tools on the system, the environment variable PYTHON is set, pointing to a python2 binary. ?Try 'PYTHON= ./configure' and see if you get further, where it will instead use the default python3 from the waf 'shebang' (#!/usr/bin/env python3) You will need to use 'PYTHON= make -j' as well -- Andrew Bartlett (he/him) https://samba.org/~abartlet/ Samba Team Member (since 2001) https://samba.org Samba Developer, Catalyst IT https://catalyst.net.nz/services/samba
On 06/06/2023 18:29, Flynn, Garrett S RTX via samba wrote:> Hi, > > I'm trying to build Samba from source on a RHEL version 8 server. I installed all the necessary packages and untarred the source for Samba version 4.6.10. > In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2. > Here I believe I am using Python3, but I cannot seem to get past the configure command: > > [root at v2ecsqapp09 samba-4.16.10]# ./configure > Setting top to : /usr/local/src/Samba/samba-4.16.10 > Setting out to : /usr/local/src/Samba/samba-4.16.10/binI haven't got access to RHEL 8, but using Rocky Linux 8, I can build Samba. First, have you downloaded and run the Centos 8 bootstrap script you can find here: https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba Have you actually installed python3 ? yum install @python36 and then set RHEL to use it with: alternatives --config python After that, downloading and unpacking Samba should allow you to build it. Rowland