Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600788 - net-fs/samba-4.2.14 fails to compile with
Summary: net-fs/samba-4.2.14 fails to compile with
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
Depends on:
Blocks: systemwide-gold
  Show dependency tree
Reported: 2016-11-25 10:31 UTC by Mike Lothian
Modified: 2022-06-21 06:33 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---

Samba build failure (build.log,355.35 KB, application/octet-stream)
2016-11-25 10:31 UTC, Mike Lothian

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2016-11-25 10:31:14 UTC
Created attachment 454316 [details]
Samba build failure

The compilation fails with:

[2637/2782] Linking default/source3/smbd/smbd
default/source3/ error: undefined reference to 'db_open'
default/source3/ 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
Comment 1 Mike Lothian 2016-11-25 10:35:18 UTC
I've requested a new account at I'll need to wait for that to be approved before reporting upstream
Comment 2 Mike Lothian 2016-11-25 14:06:38 UTC
Reported upstream
Comment 3 Mike Lothian 2016-11-27 02:31:14 UTC
I also tested with 4.5.1 and if failed too
Comment 4 Steffen Hau 2017-03-13 16:17:35 UTC
I used the patch from 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.
Comment 5 Dennis Schridde 2018-07-13 05:34:27 UTC
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.