[Samba] Samba 4.2.0 install failing with "Couldn't determine size of 'bool'
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Mar 23 09:01:29 MDT 2015
On Mon, Mar 23, 2015 at 02:25:45PM +0000, Briar Jim wrote:
> Hi all. I'm trying to install Samba 4.2.0 on a Solaris 64 bit Unix server by doing the following but the configure script fails with "Couldn't determine size of 'bool'", any ideas ? :-
>
> # gunzip samba-latest.tar.gz
> # tar -xvf samba-latest.tar
> # cd samba-4.2.0
> # ./configure
> ...
> ...
> Checking for blksize_t : ok
> Checking for blkcnt_t : ok
> Checking if size of bool == 1 : not found
> Checking if size of bool == 2 : not found
> Checking if size of bool == 4 : not found
> Checking if size of bool == 8 : not found
> Checking if size of bool == 16 : not found
> Checking if size of bool == 32 : not found
> Couldn't determine size of 'bool'
Bool might be 64 bit.
Does the attached patch get you any further?
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 115d66d6b3820e9e844077e95cecd1183dac356e Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 23 Mar 2015 15:00:08 +0000
Subject: [PATCH] check bool for 64 bit too
---
buildtools/wafsamba/samba_autoconf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index cb33630..5769e51 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -311,7 +311,7 @@ def CHECK_SIZEOF(conf, vars, headers=None, define=None, critical=True):
ret = False
if v_define is None:
v_define = 'SIZEOF_%s' % v.upper().replace(' ', '_')
- for size in list((1, 2, 4, 8, 16, 32)):
+ for size in list((1, 2, 4, 8, 16, 32, 64)):
if CHECK_CODE(conf,
'static int test_array[1 - 2 * !(((long int)(sizeof(%s))) <= %d)];' % (v, size),
define=v_define,
--
1.7.9.5
More information about the samba
mailing list