Bug 6072 - Samba 3.3.0 build problem with old CTDB
Samba 3.3.0 build problem with old CTDB
Status: RESOLVED FIXED
Product: Samba 3.3
Classification: Unclassified
Component: Build environment
3.3.0
All AIX
: P3 normal
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-28 07:30 UTC by William Jojo
Modified: 2009-02-12 08:24 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Jojo 2009-01-28 07:30:22 UTC
Hi William,

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:
http://ctdb.samba.org/packages/redhat/RHEL5/ctdb-1.0.70.tgz

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
Comment 1 Michael Adam 2009-02-02 03:32:05 UTC
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. 
Comment 2 Karolin Seeger 2009-02-12 08:24:15 UTC
Closing out bug report.
Please re-open if it's still an issue.

Thanks for reporting!