I am trying to test samba cluster on gentoo. From http://wiki.samba.org/index.php/CTDB_Setup : To build a copy of Samba3 with clustering and ctdb support you should do this: ...... ./configure --with-ctdb=/usr/src/ctdb --with-cluster-support --enable-pie=no --with-shared-modules=idmap_tdb2 ...... But when I enable cluster and cman use ebuild not configure source with idmap_tdb2, neither disable pie. As a result winbindd can not find tdb2.so and can not correctly work in cluster. So I have resolve this problem by ebuild patch. ............ src_configure() { local myconf # Filter out -fPIE [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie" #Disable pae on cluster use cluster && myconf+=" --enable-pie=no" ........... pkg_setup() { ..... #Adding idmap_tdb2 backend use cluster && SHAREDMODS="${SHAREDMODS},idmap_tdb2" fi }
Fixed in bump to 3.6.7