Bug 15068 - embedded heimdal asn1 developer build fails on 32bit system
Summary: embedded heimdal asn1 developer build fails on 32bit system
Status: RESOLVED DUPLICATE of bug 15220
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.16.1
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-16 19:45 UTC by Björn Baumbach
Modified: 2022-11-22 09:00 UTC (History)
0 users

See Also:


Attachments
patch (1.42 KB, patch)
2022-05-17 06:19 UTC, Volker Lendecke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Baumbach 2022-05-16 19:45:25 UTC
# 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
Comment 1 Volker Lendecke 2022-05-17 06:19:27 UTC
Created attachment 17290 [details]
patch

This should fix the issue.
Comment 2 Stefan Metzmacher 2022-11-22 09:00:39 UTC

*** This bug has been marked as a duplicate of bug 15220 ***