Bug 14411 - 2021.11-rc2: Samba doesn't compile
Summary: 2021.11-rc2: Samba doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 blocker
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-01 15:15 UTC by HiFiBerry (Daniel)
Modified: 2021-12-04 21:47 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.