[Buildroot] [Bug 16003] samba4 will not build for x86

bugzilla at busybox.net bugzilla at busybox.net
Thu Mar 21 21:08:40 UTC 2024


https://bugs.busybox.net/show_bug.cgi?id=16003

--- Comment #6 from Bernd Kuhls <bernd at kuhls.net> ---
Using this defconfig based on Roland's config

BR2_x86_pentium_mmx=y
BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
BR2_KERNEL_HEADERS_6_1=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_PTHREAD_DEBUG=y
BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y
BR2_BINUTILS_VERSION_2_40_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_CCACHE=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_SSP_REGULAR=y
BR2_RELRO_PARTIAL=y
BR2_PACKAGE_SAMBA4=y

I could reproduce the build error (Debian 12 x86_64).
According to some findings it seems to occur only on x86, reason unknown:
https://avidemux.org/smif/index.php?msg=70245
https://bz.apache.org/ooo/show_bug.cgi?id=127139#c6

Please add this hack in package/samba4/samba4.mk

ifeq ($(BR2_i386)$(BR2_TOOLCHAIN_HAS_SSP),yy)
SAMBA4_LDFLAGS += -lc -Wl,--as-needed
endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the buildroot mailing list