Just to note:

to compile strace on my old box ( i386 / linux 2.4.25 ), I had two
Problems in block.c

Problem 1:
  the included <linux/fs.h> defines BLKGETSIZE64 as

    #define BLKGETSIZE64 _IOR(0x12,114,sizeof(u64))     /* return device size 
in bytes (u64 *arg) */

  However, u64 is defined in asm/types.h only inside "#ifdef __KERNEL__" .
  Because I was not sure about adding that to the source, I just hacked it.


Problem 2:
  the #ifdef for the definition of BLKTRACESTOP should be just a typo
 ( the danger of copy and paste ? ;-) )



regards

horst wente


PS: I include my patch


--- block.c.orig        2011-01-17 00:07:51.000000000 +0100
+++ block.c     2011-04-02 15:21:42.000000000 +0200
@@ -33,6 +33,8 @@
 #include <linux/fs.h>
 #include <linux/hdreg.h>
 
+typedef __u64 u64 ;
+
 /* ioctls <= 114 are present in Linux 2.4. The following ones have been
  * added since then and headers containing them may not be available on
  * every system. */
@@ -54,7 +56,7 @@
 #ifndef BLKTRACESTART
 #define BLKTRACESTART _IO(0x12,116)
 #endif
-#ifndef BLKTRACESTART
+#ifndef BLKTRACESTOP
 #define BLKTRACESTOP _IO(0x12,117)
 #endif
 #ifndef BLKTRACETEARDOWN


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to