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

Nico Kadel-Garcia nkadel at gmail.com
Sun Feb 25 21:40:09 UTC 2024


On Sun, Feb 18, 2024 at 9:29 AM Alexander Bokovoy <ab at samba.org> wrote:
>
> 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.

[ log snipped ]


> 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

I normally do these builds with "mock". Working from a CentOS 8 system
with more standard rpmbuild setup:

symlink: samba_downgrade_db -> ./samba_downgrade_db
symlink: samba-tool -> ./samba-tool
symlink: samba-gpupdate -> ./samba-gpupdate
symlink: smbaddshare -> ./smbaddshare
symlink: smbchangeshare -> ./smbchangeshare
symlink: smbdeleteshare -> ./smbdeleteshare
Checking project rules ...
Project rules pass
[1/1] Processing VERSION: VERSION buildtools/wafsamba/samba_version.py
-> bin/default/version.h
Waf: Leaving directory
`/home/nkadel/git/nkadel/samba4repo/samba-srpm/rpmbuild/BUILD/samba-4.20.0rc2/bin/default'
source not found: '../heimdal/lib/wind/gen-errorlist.py' in
bld(source='../heimdal/lib/wind/gen-errorlist.py
../heimdal/lib/wind/rfc3454.txt ../heimdal/lib/wind/stringprep.py',
target=['../heimdal/lib/wind/errorlist_table.c',
'../heimdal/lib/wind/errorlist_table.h'], meths=['check_err_features',
'check_err_order', 'process_rule', 'process_source'], features=[],
path=/home/nkadel/git/nkadel/samba4repo/samba-srpm/rpmbuild/BUILD/samba-4.20.0rc2/third_party/heimdal_build,
idx=106, tg_idx_count=2463, rule="${PYTHON} '${SRC[0].abspath()}'
'${SRC[1].abspath()}' '${SRC[1].parent.abspath(env)}'", shell=True,
update_outputs=True, before='c', ext_out='.c', vars=["${PYTHON}
'${SRC[0].abspath()}' '${SRC[1].abspath()}'
'${SRC[1].parent.abspath(env)}'"], samba_type='GENERATOR',
_name='HEIMDAL_ERRORLIST', posted=True) in
/home/nkadel/git/nkadel/samba4repo/samba-srpm/rpmbuild/BUILD/samba-4.20.0rc2/third_party/heimdal_build
make[1]: *** [Makefile:7: all] Error 1
make[1]: Leaving directory
'/home/nkadel/git/nkadel/samba4repo/samba-srpm/rpmbuild/BUILD/samba-4.20.0rc2'
error: Bad exit status from /var/tmp/rpm-tmp.o6xbN7 (%build)



More information about the samba-technical mailing list