Samba 4.20.0rc2 fails to support "--with-includelibs" or build Heimdall Kerberos

Alexander Bokovoy ab at samba.org
Sun Feb 18 14:32:17 UTC 2024


On Sun, 18 Feb 2024, Nico Kadel-Garcia via samba-technical wrote:
> I've been publishing backports of current Samba releases for RHEL to
> include full domain controller capability for a few years now. Red Hat
> elects to turn off the domain controller features at build time, and
> the Fedora SRPM's reflect this decision for RHEL. Building for RHEL
> meand activating "--with-includelibs" in order to avoid conflicts with
> the libldb, libtdb, etc. versons used by sssd and other default tools.
> 
> My current work is published at https://github.com/nkadel/samba4repo/.
> When I enable the use of the built-in Heimdall Kerberos with the
> "system_mit_krb5" option in the .spec file, I get these errors when
> compiling Samba with the "mock" command.
> 
> 
> error: Bad exit status from /var/tmp/rpm-tmp.sarBcy (%build)
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.sarBcy (%build)
> Child return code was: 1
> EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M
> 62568e9bb2da46fb9560a29c33520d1a -D
> /var/lib/mock/centos-stream+epel-9-x86_64/root -a -u mockbuild
> --capability=cap_ipc_lock --
> bind=/tmp/mock-resolv.0z11du6p:/etc/resolv.conf
> --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control
> --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2
> --bind=/dev/loop3 --bind=/
> dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7
> --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10
> --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100
> --setenv=SHELL=/bin/bash
>  --setenv=HOME=/builddir --setenv=HOSTNAME=mock
> --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin
> \'--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"\'
> \'--setenv=PS1=<mock-chroot> \\s-\\v\\$ \
> ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c
> \'/usr/bin/rpmbuild -bb  --target
> x86_64 --nodeps /builddir/build/originals/samba.spec\'\n', 1)]
> Traceback (most recent call last):
>   File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py",
> line 93, in trace
>     result = func(*args, **kw)
>   File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 612,
> in do_with_status
>     raise exception.Error("Command failed: \n # %s\n%s" %
> (cmd_pretty(command, env), output), child.returncode)
> mockbuild.exception.Error: Command failed:
>  # /usr/bin/systemd-nspawn -q -M 62568e9bb2da46fb9560a29c33520d1a -D
> /var/lib/mock/centos-stream+epel-9-x86_64/root -a -u mockbuild
> --capability=cap_ipc_lock
> --bind=/tmp/mock-resolv.0z11du6p:/etc/resolv.conf
> --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control
> --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2
> --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5
> --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8
> --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe
> --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir
> --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin
> '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"'
> '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8
> --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb  --target
> x86_64 --nodeps /builddir/build/originals/samba.spec'


This just shows that systemd-nspawn execution failed when running
'rpmbuild -bb ... samba.spec'. Are there are any more logs available?

In particular, prior to  

> error: Bad exit status from /var/tmp/rpm-tmp.sarBcy (%build)
> RPM build errors:

-- 
/ Alexander Bokovoy



More information about the samba-technical mailing list