[Samba] samba 4.0.9 Build Error
Volker Lendecke
Volker.Lendecke at SerNet.DE
Wed Sep 25 07:26:01 MDT 2013
On Wed, Sep 25, 2013 at 10:00:02AM +0200, Thomas Zeitinger wrote:
> Hi there,
>
> I tried to build samba 4.0.9 on a Debian Wheezy 7.1 x86 fresh install
> and got this error:
>
> [2717/3935] Compiling source3/smbd/scavenger.c
> ../source3/smbd/scavenger.c: In function ‘scavenger_timer’:
> ../source3/smbd/scavenger.c:482:3: error: format ‘%lu’ expects argument
> of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’
> [-Werror=format]
> ../source3/smbd/scavenger.c:490:3: error: format ‘%lu’ expects argument
> of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’
> [-Werror=format]
> cc1: some warnings being treated as errors
> Waf: Leaving directory `/root/samba-4.0.9/bin'
> Build failed: -> task failed (err #1):
> {task: cc scavenger.c -> scavenger_92.o}
> make: *** [all] Fehler 1
>
> Never got this befor. Is there something I can do? I need a samba4 on
> this machine.
Does the attached patch help? If it does, please open a bug
at bugzilla.samba.org and attach it, so that it will get
fixed in the next Samba release.
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
*****************************************************************
visit us on it-sa:IT security exhibitions in Nürnberg, Germany
October 8th - 10th 2013, hall 12, booth 333
free tickets available via code 270691 on: www.it-sa.de/gutschein
******************************************************************
-------------- next part --------------
>From a075eb64952d58749660a87049bb7e3d326c5968 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Wed, 25 Sep 2013 06:24:19 -0700
Subject: [PATCH] smbd: Fix a 64-bit warning
---
source3/smbd/scavenger.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/source3/smbd/scavenger.c b/source3/smbd/scavenger.c
index fe4e56e..0ca18c8 100644
--- a/source3/smbd/scavenger.c
+++ b/source3/smbd/scavenger.c
@@ -480,16 +480,16 @@ static void scavenger_timer(struct tevent_context *ev,
ctx->msg.open_persistent_id);
if (!ok) {
DEBUG(2, ("Failed to cleanup share modes and byte range locks "
- "for file %s open %lu\n",
+ "for file %s open %llu\n",
file_id_string_tos(&ctx->msg.file_id),
- ctx->msg.open_persistent_id));
+ (unsigned long long)ctx->msg.open_persistent_id));
}
status = smbXsrv_open_cleanup(ctx->msg.open_persistent_id);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(2, ("Failed to cleanup open global for file %s open %lu:"
+ DEBUG(2, ("Failed to cleanup open global for file %s open %llu:"
" %s\n", file_id_string_tos(&ctx->msg.file_id),
- ctx->msg.open_persistent_id, nt_errstr(status)));
+ (unsigned long long)ctx->msg.open_persistent_id, nt_errstr(status)));
}
}
--
1.7.9.5
More information about the samba
mailing list