From owner-freebsd-current@FreeBSD.ORG Thu Nov 6 22:07:00 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 965031065670 for ; Thu, 6 Nov 2008 22:07:00 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id ED38F8FC0A for ; Thu, 6 Nov 2008 22:06:59 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl92-78.kln.forthnet.gr [77.49.59.78]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mA6Lsxdr031807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 6 Nov 2008 23:55:04 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mA6Lsv6o039372; Thu, 6 Nov 2008 23:54:57 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mA6LsutT039364; Thu, 6 Nov 2008 23:54:56 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Alex Keda References: <49135844.7010500@lissyara.su> <491358CD.4090601@lissyara.su> Date: Thu, 06 Nov 2008 23:54:56 +0200 In-Reply-To: <491358CD.4090601@lissyara.su> (Alex Keda's message of "Thu, 06 Nov 2008 23:51:25 +0300") Message-ID: <87bpwsseof.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: mA6Lsxdr031807 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.308, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.09, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: current@freebsd.org Subject: Re: Cannot buildworld in CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 22:07:00 -0000 On Thu, 06 Nov 2008 23:51:25 +0300, Alex Keda wrote: > Alex Keda =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> =3D=3D=3D> usr.bin/du (all) >> cc -O2 -pipe -fstack-protector -Wsystem-headers -Werror -Wall >> -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wno-pointer-sign -c /usr/src/usr.bin/du/du.c >> cc1: warnings being treated as errors >> /usr/src/usr.bin/du/du.c: In function 'main': >> /usr/src/usr.bin/du/du.c:276: warning: format '%jd' expects type >> intmax_t', but argument 2 has type 'long long int' >> *** Error code 1 >> >> Stop in /usr/src/usr.bin/du. >> *** Error code 1 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> updated 2 hour ago > > acer# uname -a > FreeBSD acer.lissyara.int.otradno.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: > Tue Nov 4 23:23:29 MSK 2008 > root@acer.lissyara.int.otradno.ru:/usr/obj/usr/src/sys/color-console > amd64 > acer# Oops, this one slipped in because I only built in i386 and not amd64. Can you try this patch? %%% diff -r aa58af068624 usr.bin/du/du.c --- a/usr.bin/du/du.c Thu Nov 06 23:29:46 2008 +0200 +++ b/usr.bin/du/du.c Thu Nov 06 23:51:48 2008 +0200 @@ -273,7 +273,8 @@ (void)printf("\t%s\n", p->fts_path); } else { (void)printf("%jd\t%s\n", - howmany(p->fts_bignum * cblocksize, + (intmax_t)howmany( + p->fts_bignum * cblocksize, blocksize), p->fts_path); } } %%%