Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640416 - net-fs/samba[cluster] fails to build with >=sys-libs/glibc-2.26 - no rpcgen
Summary: net-fs/samba[cluster] fails to build with >=sys-libs/glibc-2.26 - no rpcgen
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: glibc-rpc glibc-2.26-stable
  Show dependency tree
Reported: 2017-12-09 18:51 UTC by Dan Goodliffe
Modified: 2018-04-30 16:21 UTC (History)
1 user (show)

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

build.log (build.log.bz2,66.98 KB, application/x-bzip)
2017-12-09 18:51 UTC, Dan Goodliffe

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2017-12-09 18:51:05 UTC
Created attachment 509122 [details]

As per summary summary

[ebuild   R    ] sys-libs/glibc-2.26-r3:2.2::gentoo  USE="caps hardened nscd -audit -debug -gd (-multilib) (-profile) (-selinux) -suid -systemtap (-vanilla)" 0 KiB
[ebuild     U  ] net-fs/samba-4.7.3::gentoo [4.7.1::gentoo] USE="acl cluster fam ldap pam syslog systemd -addc -addns -ads -ceph -client -cups -debug -dmapi -gnutls -gpg -iprint -python -quota (-selinux) (-system-heimdal) -system-mitkrb5 {-test} -winbind -zeroconf" PYTHON_TARGETS="python2_7" 0 KiB

Same problem as discussed in bug #637270

14:35:20 runner  rpcgen -h ../ctdb/utils/smnotify/smnotify.x > default/ctdb/utils/smnotify/smnotify.h
/bin/sh: rpcgen: command not found

I've installed net-libs/rpcsvc-proto which provides rpcgen (but might be a totally unsuitable thing to do, but seemed worth a shot), but then the build then fails with:

In file included from ../ctdb/utils/smnotify/smnotify.c:27:0:
default/ctdb/utils/smnotify/smnotify.h:9:10: fatal error: rpc/rpc.h: No such file or directory
 #include <rpc/rpc.h>

Full build log attached.
Comment 1 Martin Kletzander 2017-12-18 09:59:10 UTC
I guess the ebuild should require net-libs/rpcsvc-proto if the files are not generated in the tarball.
Comment 2 René Fuchs 2018-01-02 15:45:09 UTC
I have the same problem at multiple systems.
I tested a lot of things...

what works = use new stage3 and install fresh = samba can be compiled
what not works = every old system what i upgrade  run into the same problem and throw the identical  error

but for me its line 21 at samba 4.7.4

default/ctdb/utils/smnotify/smnotify.h:9:21: fatal error: rpc/rpc.h: No such file or directory
 #include <rpc/rpc.h>
compilation terminated.

at samba 4.7.3 i also have the same error but cant say exactly the line
Comment 3 Dan Goodliffe 2018-01-02 19:57:34 UTC
This appears to be limited to when USE=cluster is enabled.
I've disabled it on my installs as I don't actually use it and all appears to be well.

rene, you might want to check the configuration of your older installs compared to the fresh stage3 install.
Comment 4 Thomas "wolvie" Andrade 2018-01-04 14:19:03 UTC
I could build samba with glibc 2.26-r3 after I've done some changes

 * Added CPPFLAGS='-I /usr/include/tirpc'
 * Installed net-libs/rpcsvc-proto
 * Added LDFLAGS"-ltirpc"

I've tested on samba 4.5.10-r1 and 4.7.4
Comment 5 Larry the Git Cow gentoo-dev 2018-04-30 16:21:34 UTC
The bug has been closed via the following commit(s):

commit 5c30175570939acf4ec4d505175f328e491ee6e4
Author:     Andreas K. Hüttel <>
AuthorDate: 2018-04-30 16:21:23 +0000
Commit:     Andreas K. Hüttel <>
CommitDate: 2018-04-30 16:21:23 +0000

    net-fs/samba: More dependency fixes, bug 640416
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 net-fs/samba/samba-4.2.14.ebuild | 7 +++++--
 net-fs/samba/samba-4.5.16.ebuild | 7 +++++--
 net-fs/samba/samba-4.6.14.ebuild | 7 +++++--
 net-fs/samba/samba-4.6.15.ebuild | 7 +++++--
 net-fs/samba/samba-4.7.6.ebuild  | 7 +++++--
 net-fs/samba/samba-4.7.7.ebuild  | 7 +++++--
 net-fs/samba/samba-4.8.0.ebuild  | 7 +++++--
 net-fs/samba/samba-4.8.1.ebuild  | 7 +++++--
 8 files changed, 40 insertions(+), 16 deletions(-)