Hi, ./configure --enable-fhs --prefix=/usr --sbindir=/usr/sbin --bindir=/usr/bin --sysconfdir=/etc --localstatedir=/srv/samba --mandir=/usr/share/man --enable-debug --enable-selftest --cross-answers --enable-cups --with-shared-modules='!vfs_snapper' --with-system-mitkrb5 --with-experimental-mit-ad-dc I want to compile samba 4.15.3 and it gives me the following error ERROR: The MIT KRB5 build with Samba AD requires at least 1.19. 1.18.3 has been found and cannot be used ERROR: If you want to just build Samba FS (File Server) use the option --without-ad-dc which requires version 1.9 ERROR: You may try to build with embedded Heimdal Kerberos by not specifying --with-system-mitkrb5 I'm using debian 11 missing? what I'm doing wrong? installed all necessary packages
Sounds like you need to update krb5 to version 1.19 or later. You have 1.18.3 installed, which isn't sufficient. On 1/5/22 10:41 AM, Leo C via samba <samba at lists.samba.org> wrote:> Hi, > > ./configure --enable-fhs --prefix=/usr --sbindir=/usr/sbin > --bindir=/usr/bin --sysconfdir=/etc --localstatedir=/srv/samba > --mandir=/usr/share/man --enable-debug --enable-selftest --cross-answers > --enable-cups --with-shared-modules='!vfs_snapper' --with-system-mitkrb5 > --with-experimental-mit-ad-dc > > I want to compile samba 4.15.3 and it gives me the following error > > ERROR: The MIT KRB5 build with Samba AD requires at least 1.19. 1.18.3 has > been found and cannot be used > ERROR: If you want to just build Samba FS (File Server) use the option > --without-ad-dc which requires version 1.9 > ERROR: You may try to build with embedded Heimdal Kerberos by not > specifying --with-system-mitkrb5 > > I'm using debian 11 > > missing? what I'm doing wrong? > installed all necessary packages > >
On Wed, 2022-01-05 at 12:41 -0500, Leo C via samba wrote:> Hi, > > ./configure --enable-fhs --prefix=/usr --sbindir=/usr/sbin > --bindir=/usr/bin --sysconfdir=/etc --localstatedir=/srv/samba > --mandir=/usr/share/man --enable-debug --enable-selftest --cross- > answers > --enable-cups --with-shared-modules='!vfs_snapper' --with-system- > mitkrb5 > --with-experimental-mit-ad-dc > > I want to compile samba 4.15.3 and it gives me the following error > > ERROR: The MIT KRB5 build with Samba AD requires at least 1.19. > 1.18.3 has > been found and cannot be used > ERROR: If you want to just build Samba FS (File Server) use the > option > --without-ad-dc which requires version 1.9 > ERROR: You may try to build with embedded Heimdal Kerberos by not > specifying --with-system-mitkrb5 > > I'm using debian 11 > > missing? what I'm doing wrong? > installed all necessary packagesYou are going to have to use the krb5 packages from experimental. The question has to be, why do you need to build Samba with MIT instead of Heimdal ? If you just want the latest Samba, see here: https://apt.van-belle.nl/ Rowland
If you really want that build. You need the krb5 from debian experimental, add the debian experimental sources. apt-get build-dep krb5 dd krb5-1.19 dch --bpo Save. debuild -uc -us And it rebuild krb5 for bullseye. Then hope, it finishes without errors. Setup a file/local repo, so you can add the build depends in it. Add my repo for bullseye deb and deb-src, get these samba 4.15.3 sources apt update && apt-get source samba && apt-get build-dep samba cd samba-4.15.3 dch -v2:4.15.3-0.1expMIT1 --distribution=bullseye "Test build with MIT support" cd ..debian editor rules Now edit the line with the build options to you needs. Save it, cd .. and run debuild -b -uc -us That should give you a good chance it will build. Greetz, Louis