I have Ubuntu 10.04 with the latest ctdb compiled from git.. And all works well when compiling samba 3.3.0, but if I try to compile 3.3.12, or 3.4.x or 3.5.2 or 3.5.3, I get an error trying to run configure: checking for ctdb.h... no checking for ctdb_private.h... no checking for CTDB_CONTROL_TRANS2_COMMIT_RETRY declaration... yes checking for struct ctdb_tcp_client... no checking for struct ctdb_control_tcp... yes checking for struct ctdb_control_tcp_addr... yes checking cluster support... configure: error: "ctdb_private.h is required for cluster support" My commands I am using to configure with every version is: sudo ./configure --with-ctdb=/usr/src/ctdb2 --with-cluster-support --enable-pie=no --with-fhs --enable-shared --enable-static --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-privatedir=/etc/samba --with-piddir=/var/run/samba --localstatedir=/var --with-rootsbindir=/sbin --with-pammodulesdir=/lib/security --with-pam --with-syslog --with-utmp --with-readline --with-pam_smbpass --with-libsmbclient --with-winbind --with-shared-modules=idmap_tdb2 --with-automount --with-ldap --with-ads --with-dnsupdate --with-cifsmount --with-acl-support --with-quotas works fine with 3.3.0... but doesnt work with anything else. Im also creating shares with net conf addshare, but for some reason I run smbclient and its not listed.. but is in testparm... Almost there.. after this I can get corosync to do failover with ctdb controlling samba.
Got same error on samba 3.5.4. As far as I can see config.log, getting error on here. configure:75931: checking for ctdb.h configure:75957: gcc -c -O -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/popt -I/usr/include -DLDAP_DEPRECATED -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./ ../lib/popt -I./../lib/talloc -I../lib/tdb/include -I/root/ctdb//include conftest.c >&5 In file included from conftest.c:630: /root/ctdb//include/ctdb.h:180: error: stray '#' in program /root/ctdb//include/ctdb.h:180: error: expected ';', ',' or ')' before '__USED_RESERVED_WORD_private__' /root/ctdb//include/ctdb.h:208: error: expected declaration specifiers or '...' before 'ctdb_callback_t' /root/ctdb//include/ctdb.h:250: error: stray '#' in program /root/ctdb//include/ctdb.h:250: error: expected ';', ',' or ')' before '__USED_RESERVED_WORD_private__' /root/ctdb//include/ctdb.h:267: error: expected declaration specifiers or '...' before 'ctdb_rrl_callback_t' /root/ctdb//include/ctdb.h:313: error: expected declaration specifiers or '...' before 'ctdb_callback_t' /root/ctdb//include/ctdb.h:339: error: expected declaration specifiers or '...' before 'ctdb_callback_t' /root/ctdb//include/ctdb.h:385: error: expected declaration specifiers or '...' before 'ctdb_callback_t' /root/ctdb//include/ctdb.h:413: error: expected declaration specifiers or '...' before 'ctdb_callback_t' configure:75963: $? = 1
I have RHEL 4 update 6, i installed ctdb, while compiling samba using ./configure --with-ctdb=/usr/local/ctdb/ --with-cluster-support --enable-pie=no It giving me same error. samba-3.2.12 getting successfully configured.
Clustering support has dramatically changed. Please retry with a version 4.4 or beyond.