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

Andrew Bartlett abartlet at samba.org
Thu Feb 29 03:10:29 UTC 2024


I think this is a red herring.  The files did move, but so did the
heimdal_build directory that references them.
Andrew,
On Wed, 2024-02-28 at 21:57 -0500, Nico Kadel-Garcia via samba-
technical wrote:
> 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 toinclude full domain controller capability for a few
> > > > > years now. Red Hatelects to turn off the domain controller
> > > > > features at build time, andthe Fedora SRPM's reflect this
> > > > > decision for RHEL. Building for RHELmeand activating "--with-
> > > > > includelibs" in order to avoid conflicts withthe 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 whencompiling
> > > > > 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
> > > systemwith more standard rpmbuild setup:
> > > symlink: samba_downgrade_db -> ./samba_downgrade_dbsymlink:
> > > samba-tool -> ./samba-toolsymlink: samba-gpupdate -> ./samba-
> > > gpupdatesymlink: smbaddshare -> ./smbaddsharesymlink:
> > > smbchangeshare -> ./smbchangesharesymlink: smbdeleteshare ->
> > > ./smbdeleteshareChecking project rules ...Project rules pass[1/1]
> > > Processing VERSION: VERSION buildtools/wafsamba/samba_version.py-
> > > > bin/default/version.hWaf: 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
> > whilebefore commit 7055827b8ffd3823c1240ba3f0b619dd6068cd51 it was
> > in./source4/heimdal/lib/wind/gen-errorlist.py:
> > -----------------------------------------------------------------
> > -------------------commit
> > 7055827b8ffd3823c1240ba3f0b619dd6068cd51Author: 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>    Au
> > tobuild-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.pysimilarity index
> > 100%rename from source4/heimdal/lib/wind/gen-errorlist.pyrename to
> > third_party/heimdal/lib/wind/gen-errorlist.py--------------------
> > ----------------------------------------------------------------
> > I suspect other locations using ../heimdal/ prefix would need to
> > beadjusted 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:#i
> > nclude
> > "../heimdal/lib/roken/vis.hin"third_party/heimdal_build/wscript_bui
> > ld:            source =
> > '../heimdal/lib/roken/err.hin',third_party/heimdal_build/wscript_bu
> > ild:            target =
> > '../heimdal/lib/roken/err.h',third_party/heimdal_build/wscript_buil
> > d:        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_part
> > y/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/he
> > imdal_build/wscript_build:        includes='../heimdal/lib/hdb',thi
> > rd_party/heimdal_build/wscript_build:        includes='../heimdal/l
> > ib/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_b
> > uild:                      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_b
> > uild:                          includes='../heimdal/lib/hcrypto/lib
> > tommath'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_bu
> > ild/wscript_build:        includes='../heimdal/lib/hx509',third_par
> > ty/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/wscrip
> > t_build:        target = '../heimdal/lib/wind/errorlist_table.c
> > ../heimdal/lib/wind/errorlist_table.h'third_party/heimdal_build/wsc
> > ript_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/wsc
> > ript_build:        source = '../heimdal/lib/wind/gen-combining.py
> > ../heimdal/lib/wind/UnicodeData.txt',third_party/heimdal_build/wscr
> > ipt_build:        target = '../heimdal/lib/wind/combining_table.h
> > ../heimdal/lib/wind/combining_table.c'third_party/heimdal_build/wsc
> > ript_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_b
> > uild:          includes='../heimdal/lib/wind',third_party/heimdal_b
> > uild/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_b
> > uild:        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/e
> > > rrorlist_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_buildmake[1]: *** [Makefile:7: all]
> > > Error 1make[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
-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead                https://catalyst.net.nz/services/samba
Catalyst.Net Ltd


Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
company

Samba Development and Support: https://catalyst.net.nz/services/samba

Catalyst IT - Expert Open Source Solutions





More information about the samba-technical mailing list