[Pkg-xfce-devel] Bug#345967: thunar: FTBFS on 64 bit arches: format '%d' expects type 'int', but argument 3 has type 'size_t'

Kurt Roeckx kurt at roeckx.be
Wed Jan 4 14:57:40 UTC 2006


Package: thunar
Version: 0.1.4svn+r18850-2
Severity: important

Hi,

Your package is failing to build on 64 bit arches with the
following error:
/bin/sh ../libtool --mode=link --tag=CC cc  -g -Wall -O2   -o libtdb.la   libtdb_la-spinlock.lo libtdb_la-tdb.lo
ar cru .libs/libtdb.a .libs/libtdb_la-spinlock.o .libs/libtdb_la-tdb.o
ranlib .libs/libtdb.a
creating libtdb.la
(cd .libs && rm -f libtdb.la && ln -s ../libtdb.la libtdb.la)
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O0 -g3 -DG_DISABLE_DEPRECATED -Werror -Wall -fno-strict-aliasing    -g -Wall -O2 -MT tdbtool.o -MD -MP -MF ".deps/tdbtool.Tpo" -c -o tdbtool.o tdbtool.c; \
        then mv -f ".deps/tdbtool.Tpo" ".deps/tdbtool.Po"; else rm -f ".deps/tdbtool.Tpo"; exit 1; fi
cc1: warnings being treated as errors
tdbtool.c: In function 'print_rec':
tdbtool.c:345: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
tdbtool.c:347: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
make[3]: *** [tdbtool.o] Error 1

The proper way to print a size_t is "%zd", or "%zu".


Kurt





More information about the Pkg-xfce-devel mailing list