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
commit 17293c0eb04e4b38fe058eac09c0161038040746
Author: Frederik Schüler <[email protected]>
Date:   Thu Apr 29 00:48:45 2010 +0200

    linux/sparc: add missing syscall declarations.
    
    Signed-off-by: Frederik Schüler <[email protected]>

diff --git a/linux/sparc/syscall.h b/linux/sparc/syscall.h
index 03e3a71..7237777 100644
--- a/linux/sparc/syscall.h
+++ b/linux/sparc/syscall.h
@@ -208,12 +208,17 @@ int	sys_timer_create(), sys_timer_settime(), sys_timer_gettime();
 int	sys_io_setup(), sys_io_destroy(), sys_io_submit(), sys_io_cancel(), sys_io_getevents();
 int	sys_mq_open(), sys_mq_unlink(), sys_mq_timedsend(), sys_mq_timedreceive(), sys_mq_notify(), sys_mq_getsetattr();
 int	sys_waitid();
+int sys_mbind(), sys_get_mempolicy(), sys_set_mempolicy();
+int sys_utimensat();
+int sys_fallocate(), sys_timerfd_create(), sys_timerfd_settime(), sys_timerfd_gettime();
 int	sys_openat(), sys_mkdirat(), sys_mknodat(), sys_fchownat(), sys_futimesat(), sys_newfstatat(), sys_unlinkat(), sys_renameat(), sys_linkat(), sys_symlinkat(), sys_readlinkat(), sys_fchmodat(),	sys_faccessat();
 int	sys_pselect6(), sys_ppoll();
 int	sys_unshare();
 int	sys_move_pages(), sys_getcpu();
 int	sys_epoll_pwait();
 int	sys_signalfd(), sys_timerfd(), sys_eventfd();
+int sys_signalfd4(), sys_eventfd2(), sys_epoll_create1(), sys_dup3(), sys_pipe2();
+int sys_inotify_init1();
 
 #  define SYS_socket_subcall	353
 #define SYS_sub_socket		(SYS_socket_subcall + 1)

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to