Package: strace Version: 4.5.15 Severity: serious This version has never successfully built on sparc. The build fails like this:
if gcc -DHAVE_CONFIG_H -I. -I.. -I. -Ilinux/sparc -I../linux/sparc -Ilinux
-I../linux -Wall -g -O2 -MT syscall.o -MD -MP -MF ".deps/syscall.Tpo" -c -o
syscall.o ../syscall.c; \
then mv -f ".deps/syscall.Tpo" ".deps/syscall.Po"; else rm -f
".deps/syscall.Tpo"; exit 1; fi
In file included from ../syscall.c:129:
../linux/sparc/syscallent.h:269: error: 'sys_io_setup' undeclared here (not in
a function)
../linux/sparc/syscallent.h:270: error: 'sys_io_destroy' undeclared here (not
in a function)
../linux/sparc/syscallent.h:271: error: 'sys_io_submit' undeclared here (not in
a function)
../linux/sparc/syscallent.h:272: error: 'sys_io_cancel' undeclared here (not in
a function)
../linux/sparc/syscallent.h:273: error: 'sys_io_getevents' undeclared here (not
in a function)
../linux/sparc/syscallent.h:274: error: 'sys_mq_open' undeclared here (not in a
function)
../linux/sparc/syscallent.h:276: error: 'sys_mq_timedsend' undeclared here (not
in a function)
../linux/sparc/syscallent.h:277: error: 'sys_mq_timedreceive' undeclared here
(not in a function)
../linux/sparc/syscallent.h:278: error: 'sys_mq_notify' undeclared here (not in
a function)
../linux/sparc/syscallent.h:279: error: 'sys_mq_getsetattr' undeclared here
(not in a function)
../linux/sparc/syscallent.h:280: error: 'sys_waitid' undeclared here (not in a
function)
../linux/sparc/syscallent.h:285: error: 'sys_openat' undeclared here (not in a
function)
../linux/sparc/syscallent.h:286: error: 'sys_mkdirat' undeclared here (not in a
function)
../linux/sparc/syscallent.h:287: error: 'sys_mknodat' undeclared here (not in a
function)
../linux/sparc/syscallent.h:288: error: 'sys_fchownat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:289: error: 'sys_futimesat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:290: error: 'sys_newfstatat' undeclared here (not
in a function)
../linux/sparc/syscallent.h:291: error: 'sys_unlinkat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:292: error: 'sys_renameat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:293: error: 'sys_linkat' undeclared here (not in a
function)
../linux/sparc/syscallent.h:294: error: 'sys_symlinkat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:295: error: 'sys_readlinkat' undeclared here (not
in a function)
../linux/sparc/syscallent.h:296: error: 'sys_fchmodat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:297: error: 'sys_faccessat' undeclared here (not in
a function)
../linux/sparc/syscallent.h:298: error: 'sys_pselect6' undeclared here (not in
a function)
../linux/sparc/syscallent.h:299: error: 'sys_ppoll' undeclared here (not in a
function)
../linux/sparc/syscallent.h:300: error: 'sys_unshare' undeclared here (not in a
function)
All of these are declared in linux/syscall.h, but not in linux/sparc/syscall.h.
Simply making linux/sparc/syscall.h #include "../syscall.h" fixes all of the
above errors. Then I ran into one more problem:
gcc -Wall -g -O2 -o strace strace.o syscall.o count.o util.o desc.o file.o
ipc.o io.o ioctl.o mem.o net.o process.o bjm.o quota.o resource.o signal.o
sock.o system.o term.o time.o proc.o stream.o
syscall.o:(.rodata+0x6a4): undefined reference to `sys_getpagesize'
Following the lead of m68k/syscallent.h and mips/syscallent.h, I fixed
this by changing sparc/syscallent.h to use printargs instead of
sys_getpagesize. With that change, strace builds on sparc, and seems to
work.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages strace depends on:
ii libc6 2.7-9 GNU C Library: Shared libraries
strace recommends no packages.
-- no debconf information
--
see shy jo
signature.asc
Description: Digital signature

