On 15.06.2026 14:26, Martin Kj?r J?rgensen wrote:> My aim is to cross build samba for very limited embedded hardware platform > _without_ the need for qemu-user, and I wish to strip samba from anything > unnecessary. It only needs to support a "simple" file share, and accept user > and password login from a smbpasswd file. > > To mitigate my current build situation, I am installing MIT-KRB5 on the target > to satisfy samba needs.BTW, there's also pkg.samba.mitkrb5 build profile in debian samba package, which does exactly that - builds samba with MIT KRB5. It might be useful for you in this context. Speaking of cross-compiling samba in general (without qemu-user) - it is quite tricky due to the samba build system. Basically, it assumes native compilation. For the start, it uses the same python for build and for host. These compile_et binaries you found - it's the same issue, they're built for the host architecture instead of for build arch. Heimdal itself can be cross-built, but not with samba's build system. Thanks, /mjt
Martin Kjær Jørgensen
2026-Jun-17 13:53 UTC
[Samba] cross compile heimdal linking libbsd issue
On 06/15/26 14:55 PM, Michael Tokarev wrote:> BTW, there's also pkg.samba.mitkrb5 build profile in debian samba > package, which does exactly that - builds samba with MIT KRB5. It > might be useful for you in this context. > > Speaking of cross-compiling samba in general (without qemu-user) - it is > quite tricky due to the samba build system. Basically, it assumes native > compilation. For the start, it uses the same python for build and > for host. These compile_et binaries you found - it's the same issue, > they're built for the host architecture instead of for build arch. > Heimdal itself can be cross-built, but not with samba's build system.Do you know if it is possible to build samba without the need for KRB5 at all, and thereby disable all samba features that needs it? -- /Martin