[Samba] Building samba 4.17.4 on CentOS7

Dale Renton drenton at gmail.com
Wed Jan 18 16:21:54 UTC 2023


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
>


More information about the samba mailing list