Date: Thu, 06 Nov 2008 23:54:56 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: Alex Keda <admin@lissyara.su> Cc: current@freebsd.org Subject: Re: Cannot buildworld in CURRENT Message-ID: <87bpwsseof.fsf@kobe.laptop> In-Reply-To: <491358CD.4090601@lissyara.su> (Alex Keda's message of "Thu, 06 Nov 2008 23:51:25 %2B0300") References: <49135844.7010500@lissyara.su> <491358CD.4090601@lissyara.su>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 06 Nov 2008 23:51:25 +0300, Alex Keda <admin@lissyara.su> 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); } } %%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87bpwsseof.fsf>