Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95300

Summary: unshield-0.4 compile failure on x86
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: Current packagesAssignee: Simon Stelling (RETIRED) <blubb>
Status: RESOLVED FIXED    
Severity: critical    
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Catmur 2005-06-06 22:32:56 UTC
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../lib   -I/usr/include -g -ansi -Wall -Wsign-compare -Wno-long-long -Werror  -I../lib -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=387 -falign-functions=64 -falign-loops=4 -falign-jumps=4 -fprefetch-loop-arrays -funswitch-loops -MT unshield.o -MD -MP -MF ".deps/unshield.Tpo" -c -o unshield.o unshield.c; \
then mv -f ".deps/unshield.Tpo" ".deps/unshield.Po"; else rm -f ".deps/unshield.Tpo"; exit 1; fi
unshield.c: In function `list_files_helper':
unshield.c:384: warning: long int format, size_t arg (arg 2)
make[1]: *** [unshield.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/unshield-0.4/work/unshield-0.4/src'make: *** [all-recursive] Error 1

This commit is to blame:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/app-arch/unshield/unshield-0.4.ebuild?r1=1.3&r2=1.4

I don't have an amd64, but it works on x86 to use %8zi as the format specifier:

       z      A  following  integer  conversion  corresponds  to  a  size_t or
              ssize_t argument. (Linux libc5 has Z with  this  meaning.  Don't
              use it.)
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-06-07 03:01:53 UTC
argh, thanks for letting me know. it's hopefully fixed now :/