# make -j PYTHONHASHSEED=1 WAF_MAKE=1 ./buildtools/bin/waf build Waf: Entering directory `/root/samba/bin/default' Selected embedded Heimdal build [325/335] Compiling third_party/heimdal/lib/asn1/gen_template.c ../../third_party/heimdal/lib/asn1/gen_template.c: In function ‘template_object_set’: ../../third_party/heimdal/lib/asn1/gen_template.c:833:53: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Werror=format=] tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%lu) }", nobjs); ~~^ %u ../../third_party/heimdal/lib/asn1/gen_template.c: In function ‘template_members’: ../../third_party/heimdal/lib/asn1/gen_template.c:924:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] itype = "IMEMBER"; ^ ../../third_party/heimdal/lib/asn1/gen_template.c:926:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] itype = "HEIM_INTEGER"; ^ ../../third_party/heimdal/lib/asn1/gen_template.c:929:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] itype = "INTEGER64"; ^ ../../third_party/heimdal/lib/asn1/gen_template.c:931:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] itype = "INTEGER"; ^ ../../third_party/heimdal/lib/asn1/gen_template.c:933:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] itype = "UNSIGNED64"; ^ ../../third_party/heimdal/lib/asn1/gen_template.c:935:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] itype = "UNSIGNED"; ^ ../../third_party/heimdal/lib/asn1/gen_template.c:973:54: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Werror=format=] tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%lu) }", nmemb); ~~^ %u cc1: all warnings being treated as errors Waf: Leaving directory `/root/samba/bin/default' Build failed -> task in 'asn1_compile.heimdal.objlist' failed with exit status 1 (run with -v to display more information) Makefile:7: recipe for target 'all' failed make: *** [all] Error 1
Created attachment 17290 [details] patch This should fix the issue.
*** This bug has been marked as a duplicate of bug 15220 ***