strace is broken on mips64 builds

Jan Rovins janr at adax.com
Wed Mar 17 19:07:58 UTC 2010


All,

Got the following error when cross building strace for mips64,

The attached patch fixes this, the patch should go upstream too.

Jan



make[1]: Entering directory 
`/opt/T2/t2-trunk/src.strace.GW-Octeon-Pure64.20100317.141859.25474.ubuntu1/strace-4.5.19'
mips64-octeon-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Ilinux/mips 
-I./linux/mips -Ilinux -I./linux   -Wall -g -O2 -MT strace.o -MD -MP -MF 
.deps/strace.Tpo -c -o strace.o strace.c
mips64-octeon-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Ilinux/mips 
-I./linux/mips -Ilinux -I./linux   -Wall -g -O2 -MT syscall.o -MD -MP 
-MF .deps/syscall.Tpo -c -o syscall.o syscall.c
mips64-octeon-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Ilinux/mips 
-I./linux/mips -Ilinux -I./linux   -Wall -g -O2 -MT count.o -MD -MP -MF 
.deps/count.Tpo -c -o count.o count.c
mips64-octeon-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Ilinux/mips 
-I./linux/mips -Ilinux -I./linux   -Wall -g -O2 -MT util.o -MD -MP -MF 
.deps/util.Tpo -c -o util.o util.c
syscall.c: In function 'syscall_enter':
syscall.c:2038: error: 'pid' undeclared (first use in this function)
syscall.c:2038: error: (Each undeclared identifier is reported only once
syscall.c:2038: error: for each function it appears in.)
mv -f .deps/count.Tpo .deps/count.Po
make[1]: *** [syscall.o] Error 1
make[1]: *** Waiting for unfinished jobs....

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pid-fix.patch.mips64
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100317/7d589eb4/attachment.ksh>


More information about the Strace-devel mailing list