Patch: linux/sparc: add missing syscall declarations.

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


Hi,

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

This fixes the build failure on sparc:

https://buildd.debian.org/fetch.cgi?pkg=strace&arch=sparc&ver=4.5.20-1&stamp=1271703814&file=log&as=raw

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 
‘uid16_t’
../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



-- 
ENOSIG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-sparc.diff
Type: text/x-patch
Size: 1451 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100504/6a5ca83e/attachment.bin>
-------------- 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: <http://lists.strace.io/pipermail/strace-devel/attachments/20100504/6a5ca83e/attachment-0001.bin>


More information about the Strace-devel mailing list