Bug 7505 - Samba wont compile with ctdb option in 3.3.1 and higher
Summary: Samba wont compile with ctdb option in 3.3.1 and higher
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Clustering (show other bugs)
Version: 3.3.1
Hardware: x86 Linux
: P3 critical
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 17:08 UTC by Justin Shafer
Modified: 2017-05-09 14:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Shafer 2010-06-09 17:08:11 UTC
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.
Comment 1 Shuichi Ihara 2010-07-08 03:54:07 UTC
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
Comment 2 Bipin Bachhao 2010-07-12 08:14:02 UTC
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.
Comment 3 Volker Lendecke 2017-05-09 14:54:38 UTC
Clustering support has dramatically changed. Please retry with a version 4.4 or beyond.