Samba4, latest build fails: wrong int and long int casts

steve steve at steve-ss.com
Wed Aug 1 08:25:41 MDT 2012


On 01/08/12 15:50, Jelmer Vernooij wrote:
> On Wed, Aug 01, 2012 at 02:19:53PM +0200, steve wrote:
>> Ubuntu 12.04
>>
>> [2493/4244] Compiling source4/heimdal/lib/com_err/error.c
>> ../source4/heimdal/lib/com_err/error.c: In function ‘com_right_r’:
>> ../source4/heimdal/lib/com_err/error.c:68:6: error: format ‘%d’
>> expects argument of type ‘int’, but argument 4 has type ‘long int’
>> [-Werror=format]
>> ../source4/heimdal/lib/com_err/error.c:68:6: error: format ‘%d’
>> expects argument of type ‘int’, but argument 4 has type ‘long int’
>> [-Werror=format]
>> cc1: some warnings being treated as errors
>> Waf: Leaving directory `/home/steve/samba-master/bin'
>> Build failed: -> task failed (err #1):
>> {task: cc error.c -> error_128.o}
>> make: *** [install] Error 1

> How are you ending up with -Werror=format in your compilation flags?

Now there's a biggie.

I can only answer like this and suggest the fix:

On Ubuntu 12.04 you have to change line 68 to this:
snprintf(domain, sizeof(domain), "heim_com_err%d",(int) p->table->base);

I took the git pull from this morning and did
git clean -xdf
./configure.developer
make
make install
It broke at:
[2493/4244]

> As far as I know Samba doesn't add that.
>
Maybe something to with Ubuntu?
Cheers,
steve


More information about the samba-technical mailing list