x32 regressions

Mike Frysinger vapier at gentoo.org
Wed May 1 22:27:32 UTC 2013


On Wednesday 01 May 2013 17:55:07 Dmitry V. Levin wrote:
> OK, attempt #4, with some changes from v4.7-96-g8435d67 reverted.

initial build fails:

desc.c: In function ‘printflock’:
desc.c:235:3: warning: implicit declaration of function ‘printflock64’ [-
Wimplicit-function-declaration]
desc.c: At top level:
desc.c:290:1: warning: conflicting types for ‘printflock64’ [enabled by default]
desc.c:290:1: error: static declaration of ‘printflock64’ follows non-static 
declaration
desc.c:235:3: note: previous implicit declaration of ‘printflock64’ was here

i fix that locally by just moving the definition of printflock64.

then an earlier warning turns into a link failure:

file.c: In function ‘printoldstat’:
file.c:1235:2: warning: implicit declaration of function ‘realprintstat’ [-
Wimplicit-function-declaration]
...
file.o: In function `printoldstat':
/root/strace/file.c:1235: undefined reference to `realprintstat'
collect2: error: ld returned 1 exit status
make[2]: *** [strace] Error 1

x32 builds define HAVE_STRUCT___OLD_KERNEL_STAT for the i386 32bit ABI.  i 
hacked out that call just to get it to link and it looks like stat() gets 
decoded properly:

stat("f", {st_dev=makedev(9, 0), st_ino=30545838, st_mode=S_IFREG|0644, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, 
st_size=10737418240, st_atime=2013/05/01-13:48:52, 
st_mtime=2013/05/01-13:48:52, st_ctime=2013/05/01-13:48:52}) = 0
10737418240
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130501/62a54cab/attachment.bin>


More information about the Strace-devel mailing list