The Samba-Bugzilla – Bug 13856
Samba 4.10.0 cross-compile issue when compiling Heimdal
Last modified: 2019-04-03 00:31:50 UTC
We build Samba for LibreELEC, a custom Linux distribution, cross-compiling with our own gcc-8.3.0 toolchain.
We patch gcc to detect incorrect build host include usage when building for the target.
We are able to build Samba 4.9.5 with Heimdal 7.5.0 without issue (successful build log) - all is good.
However, we are seeing a cross-compile problem with Samba 4.10.0, which now triggers a cross-compilation failure when building the "embedded" Heimdal.
Specifically, /usr/include/heimdal is being used by the Samba 4.10.0 build process which is incorrect when cross-compiling, and this did not happen with Samba 4.9.5.
This is the Samba 4.9.5 configuration: http://ix.io/1DXj
And this is the Samba 4.10.0 configuration: http://ix.io/1DXi (I'm including the fix for https://bugzilla.samba.org/show_bug.cgi?id=13844)
Any ideas why this cross-compile problem happens with Samba 4.10.0 but does NOT happen with Samba 4.9.5?
Note: The "link" error and truncation warnings may also be of interest - the truncation warning is also present in 4.9.5 (search for "_heim_time2generalizedtime").
As discussed on IRC, the explicit include path added via source4/heimdal_build/wscript_build appears to be responsible for the failure, but I don't know why it wasn't causing issues with the 4.9 build.
I'm also a little confused as to why heimdal is even built, given the --without-winbind --without-ads --without-ad-dc configure invocation.
(In reply to David Disseldorp from comment #1)
We still use the internal heimdal unless --with-system-mitkrb5 or --with-system-heimdalkrb5
This specifically allowed us to upgrade our minimum kerberos requirement because we could fall back on the internal one (a bit like the way we use third_party).
Created attachment 15036 [details]
Created attachment 15037 [details]
Created attachment 15038 [details]
4.9.5 build log (Successful)
Created attachment 15039 [details]
4.10.0 build log (Failure)