The Samba-Bugzilla – Bug 6072
Samba 3.3.0 build problem with old CTDB
Last modified: 2009-02-12 08:24:15 UTC
William Jojo wrote:
> Trying to build 3.3.0 with ctdb and get:
> Compiling lib/ctdbd_conn.c
> lib/ctdbd_conn.c: In function 'ctdbd_register_ips':
> lib/ctdbd_conn.c:1191: error: storage size of 'p' isn't known
> The following command failed:
> gcc -O2 -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl -I. -I/stage/samba/samba-3.3.0/source -I/opt/pware/include -O -D_SAMBA_BUILD_=3 -I/stage/samba/samba-3.3.0/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/opt/pware/include -I/opt/pware/include -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/opt/pware/include -DLDAP_DEPRECATED -I/include -I/stage/samba/samba-3.3.0/source/lib -D_SAMBA_BUILD_=3 -O2 -c lib/ctdbd_conn.c -o lib/ctdbd_conn.o
> make: *** [lib/ctdbd_conn.o] Error 1
> AIX 5.3, GCC 4.2.3, CTDB is 1.0.58 (pretty sure).
Ok, this is not specific to AIX:
This is due to the IPv6 changes added to ctdb and samba recently.
It will compile when you install the latest CTDB:
I think we need a configure check to detect if we have
a new or an old version of ctdb to link against.
Would you mind filing a bug report and assigning it to me?
Thanks! - Michael
Metze has added fixes to the 3.3 samba branch to cope with building
Samba 3.3 against older versions of CTDB.
You might want to test with a checkout of v3-3-test.
Closing out bug report.
Please re-open if it's still an issue.
Thanks for reporting!