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

Nico Kadel-Garcia nkadel at gmail.com
Thu Feb 29 02:57:52 UTC 2024


Thanks, I'll check it out!

On Tue, Feb 27, 2024 at 3:55 AM Alexander Bokovoy <ab at samba.org> wrote:
>
> On Няд, 25 лют 2024, Nico Kadel-Garcia wrote:
> > 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
>
> ^^ it did not find the gen-errorlist.py file.
>
> It is now in ./third_party/heimdal/lib/wind/gen-errorlist.py while
> before commit 7055827b8ffd3823c1240ba3f0b619dd6068cd51 it was in
> ./source4/heimdal/lib/wind/gen-errorlist.py:
>
> ------------------------------------------------------------------------------------
> commit 7055827b8ffd3823c1240ba3f0b619dd6068cd51
> Author: Stefan Metzmacher <metze at samba.org>
> Date:   Wed Jan 19 13:15:45 2022 +0100
>
>     HEIMDAL: move code from source4/heimdal* to third_party/heimdal*
>
>     This makes it clearer that we always want to do heimdal changes
>     via the lorikeet-heimdal repository.
>
>     Signed-off-by: Stefan Metzmacher <metze at samba.org>
>     Reviewed-by: Joseph Sutton <josephsutton at catalyst.net.nz>
>
>     Autobuild-User(master): Joseph Sutton <jsutton at samba.org>
>     Autobuild-Date(master): Wed Jan 19 21:41:59 UTC 2022 on sn-devel-184
>
> (part of the commit 7055827b)
> diff --git a/source4/heimdal/lib/wind/gen-errorlist.py b/third_party/heimdal/lib/wind/gen-errorlist.py
> similarity index 100%
> rename from source4/heimdal/lib/wind/gen-errorlist.py
> rename to third_party/heimdal/lib/wind/gen-errorlist.py
> ------------------------------------------------------------------------------------
>
> I suspect other locations using ../heimdal/ prefix would need to be
> adjusted to use new location. These are mostly in
>
> $ git grep '\.\./heimdal/'
> third_party/heimdal_build/gssapi-glue.c:#include "../heimdal/lib/gssapi/gssapi_mech.h"
> third_party/heimdal_build/hdb-glue.c:#include "../heimdal/lib/hdb/hdb_locl.h"
> third_party/heimdal_build/krb5-glue.c:#include "../heimdal/lib/krb5/krb5_locl.h"
> third_party/heimdal_build/krb5/kdc-plugin.h:#include "../../heimdal/kdc/kdc-plugin.h"
> third_party/heimdal_build/roken.h:#include "../heimdal/lib/roken/roken.h.in"
> third_party/heimdal_build/vis.h:#include "../heimdal/lib/roken/vis.hin"
> third_party/heimdal_build/wscript_build:            source = '../heimdal/lib/roken/err.hin',
> third_party/heimdal_build/wscript_build:            target = '../heimdal/lib/roken/err.h',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/roken ../heimdal/include ../heimdal_build/include',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/roken ../heimdal/include ../heimdal_build/include',
> third_party/heimdal_build/wscript_build:                    includes='../heimdal/lib/gss_preauth',
> third_party/heimdal_build/wscript_build:                        includes='../heimdal/kdc',
> third_party/heimdal_build/wscript_build:                        includes='../heimdal/lib/ntlm',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1')
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/hdb',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/hdb',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:                      includes='../heimdal/lib/gssapi/gssapi ../heimdal/lib/gssapi/spnego ../heimdal/lib/gssapi/krb5 ../heimdal/lib/gssapi/mech ../heimdal/lib/ntlm',
> third_party/heimdal_build/wscript_build:                    includes='../heimdal/lib/gssapi/gssapi ../heimdal/lib/gssapi/spnego ../heimdal/lib/gssapi/krb5 ../heimdal/lib/gssapi/mech ../heimdal/lib/ntlm',
> third_party/heimdal_build/wscript_build:                      includes='../heimdal/lib/krb5 ../heimdal/lib/asn1 ../heimdal/include',
> third_party/heimdal_build/wscript_build:                      includes='../heimdal/include ../heimdal/lib/asn1 ../heimdal/lib/ipc',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/krb5 ../heimdal/include',
> third_party/heimdal_build/wscript_build:                        includes='../heimdal/lib/krb5 ../heimdal/lib/asn1 ../heimdal/include',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:                          includes='../heimdal/lib/hcrypto/libtommath'
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/hcrypto ../heimdal/lib ../heimdal/include',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/base ../heimdal/include ../heimdal/lib/krb5',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/base ../heimdal/lib/com_err ../heimdal/include ../heimdal/lib/krb5',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/hx509',
> third_party/heimdal_build/wscript_build:        source = '../heimdal/lib/wind/gen-errorlist.py ../heimdal/lib/wind/rfc3454.txt ../heimdal/lib/wind/stringprep.py',
> third_party/heimdal_build/wscript_build:        target = '../heimdal/lib/wind/errorlist_table.c ../heimdal/lib/wind/errorlist_table.h'
> third_party/heimdal_build/wscript_build:        source = '../heimdal/lib/wind/gen-normalize.py ../heimdal/lib/wind/UnicodeData.txt ../heimdal/lib/wind/CompositionExclusions-3.2.0.txt',
> third_party/heimdal_build/wscript_build:        target = '../heimdal/lib/wind/normalize_table.h ../heimdal/lib/wind/normalize_table.c'
> third_party/heimdal_build/wscript_build:        source = '../heimdal/lib/wind/gen-combining.py ../heimdal/lib/wind/UnicodeData.txt',
> third_party/heimdal_build/wscript_build:        target = '../heimdal/lib/wind/combining_table.h ../heimdal/lib/wind/combining_table.c'
> third_party/heimdal_build/wscript_build:        source = '../heimdal/lib/wind/gen-bidi.py ../heimdal/lib/wind/rfc3454.txt',
> third_party/heimdal_build/wscript_build:        target = '../heimdal/lib/wind/bidi_table.h ../heimdal/lib/wind/bidi_table.c'
> third_party/heimdal_build/wscript_build:        source = '../heimdal/lib/wind/gen-map.py ../heimdal/lib/wind/stringprep.py ../heimdal/lib/wind/rfc3454.txt',
> third_party/heimdal_build/wscript_build:        target = '../heimdal/lib/wind/map_table.h ../heimdal/lib/wind/map_table.c'
> third_party/heimdal_build/wscript_build:          includes='../heimdal/lib/wind',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/com_err',
> third_party/heimdal_build/wscript_build:                      includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/asn1',
> third_party/heimdal_build/wscript_build:        includes='../heimdal/lib/com_err',
>
>
> > 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)
>
>
>
>
> --
> / Alexander Bokovoy



More information about the samba-technical mailing list