Patch: linux/sparc: add missing syscall declarations.

Frederik Schüler fs at
Tue May 4 11:41:09 UTC 2010


find attached a patch adding some missing syscalls definitions for sparc.

This fixes the build failure on sparc:

now, the sparc64 strace binary builds fine, but when building the 32bit one, 
the following error occurs:

gcc -DHAVE_CONFIG_H -I. -I.. -I../linux/sparc -I../linux   -Wall -Wall -g -O2 
-MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o ../file.c
In file included from ../file.c:88:
/usr/include/asm/stat.h:56: error: expected specifier-qualifier-list before 
../file.c: In function ‘realprintstat’:
../file.c:943: warning: format ‘%lu’ expects type ‘long unsigned int’, but 
argument 2 has type ‘unsigned int’
make[2]: *** [file.o] Error 1
make[2]: Leaving directory `/home/fs/strace-4.5.20/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/fs/strace-4.5.20/build'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Build environment is gcc 4.4.3, linux 2.6.32.

Best regards
Frederik Schüler

-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-sparc.diff
Type: text/x-patch
Size: 1451 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Strace-devel mailing list