Created attachment 454316 [details] Samba build failure 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 I think this might be related to binutils-2.17
I've requested a new account at https://bugzilla.samba.org/createaccount-save.html I'll need to wait for that to be approved before reporting upstream
Reported upstream https://bugzilla.samba.org/show_bug.cgi?id=12450
I also tested with 4.5.1 and if failed too
I used the patch from https://bugzilla.samba.org/show_bug.cgi?id=12450#c2 until 4.5.5. It looks like it was merged in 4.5.6 but the error is back in 4.5.6 despite the merged patch.
Quoting upstream's Andrew Bartlett's comment from 2018-07-12 22:15:17 UTC: > 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. Source: https://bugzilla.samba.org/show_bug.cgi?id=12450#c5