Compilation of Samba aborts: [ 876/3435] Compiling bin/default/source4/heimdal/lib/asn1/asn1_pkinit_asn1.c source4/heimdal/lib/asn1/asn1_err.c:47:23: error: ‘link’ redeclared as different kind of symbol 47 | static struct et_list link = { 0, 0 }; | ^~~~ In file included from /home/matuschd/buildroot-2021.11-rc2/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/sigstksz.h:24, from /home/matuschd/buildroot-2021.11-rc2/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/signal.h:328, from /home/matuschd/buildroot-2021.11-rc2/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/sys/param.h:28, from ../../lib/replace/../replace/replace.h:659, from ../../source4/heimdal_build/config.h:10, from source4/heimdal/lib/asn1/asn1_err.c:1: /home/matuschd/buildroot-2021.11-rc2/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/unistd.h:819:12: note: previous declaration of ‘link’ was here 819 | extern int link (const char *__from, const char *__to) | ^~~~ Waf: Leaving directory `/home/matuschd/buildroot-2021.11-rc2/output/build/samba4-4.14.10/bin/default' Build failed -> task in 'HEIMDAL_HEIM_ASN1' failed with exit status 1 (run with -v to display more information) make[2]: *** [Makefile:7: all] Error 1 make[1]: *** [package/pkg-generic.mk:294: /home/matuschd/buildroot-2021.11-rc2/output/build/samba4-4.14.10/.stamp_built] Error 2 make: *** [Makefile:84: _all] Error 2 Configuration make raspberrypi3_defconfig, with just glibc and samba enabled.
(In reply to HiFiBerry (Daniel) from comment #0) Problem seems to be addressed by [1], [2] and [3]... [1] https://patchwork.ozlabs.org/project/buildroot/patch/20211019172532.3431240-1-fontaine.fabrice@gmail.com/ [2] https://patchwork.ozlabs.org/project/buildroot/patch/20211019172532.3431240-2-fontaine.fabrice@gmail.com/ [3] https://patchwork.ozlabs.org/project/buildroot/patch/20211019172532.3431240-3-fontaine.fabrice@gmail.com/
I can confirm that these patches fixes the problem.
Daniel, All, Thanks for your report. We believe this is now fixed in master, now that the three patches mentioned in this report have been applied. Regards, Yann E. MORIN.