Bug 14411

Summary: 2021.11-rc2: Samba doesn't compile
Product: buildroot Reporter: HiFiBerry (Daniel) <info>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: blocker CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description HiFiBerry (Daniel) 2021-12-01 15:15:21 UTC
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.
Comment 2 HiFiBerry (Daniel) 2021-12-02 09:45:13 UTC
I can confirm that these patches fixes the problem.
Comment 3 Yann E. MORIN 2021-12-04 21:47:52 UTC
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.