Created attachment 12696 [details] Samba build failure Samba no longer builds with the ld.gold linker, I think this is a regression since binutils 2.17 The compilation fails with: [2637/2782] Linking default/source3/smbd/smbd default/source3/libsmbregistry-samba4.so: error: undefined reference to 'db_open' default/source3/libsmbregistry-samba4.so: error: undefined reference to 'state_path' collect2: error: ld returned 1 exit status Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14-abi_x86_64.amd64/bin' Build failed: -> task failed (err #1): {task: cc_link epmd_28.o,lsasd_29.o,rpc_sock_helper_27.o,server_141.o -> smbd} make: *** [Makefile:8: all] Error 1 This can be worked around by passing -fuse-ld=bfd to LDFLAGS The Gentoo bug is https://bugs.gentoo.org/show_bug.cgi?id=600788
Created attachment 12697 [details] Proposed patch for master
Created attachment 12721 [details] patch for 4.5
Created attachment 12722 [details] patch for 4.4
Patch does not apply on current v4-5-test (source3/wscript_build:453).
Fixed in master by 4aa3a7f27548eda68f415a8f5bde013a7a9d58d4 for Samba 4.6. Samba 4.5 is no longer supported so no backport will be done to these versions.