blob: 584d565fc6dc91ef7802a5709a295002512098c7 [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001
Wichert Akkerman360815e1999-06-28 13:16:03 +00002Strace has been ported by Branko Lankester <branko@hacktic.nl>
3to run on Linux systems. Since then it has been greatly modified
4by various other people.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00005
Wichert Akkerman360815e1999-06-28 13:16:03 +00006If you want to compile strace on a Linux system please make sure
7that you use very recent kernel headers. Strace needs those to get
8the proper data structures used by the kernel, since these can be
9different from the structures that the C library uses. Currently
10you will need a 2.2.7 or newer kernel.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000011
Wichert Akkerman360815e1999-06-28 13:16:03 +000012To compile strace using your kernel source you need to tell make where
13you put the sources. For example if you have your kernelsource in
14/usr/src/linux, you should invoke make like this:
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000015
Wichert Akkerman360815e1999-06-28 13:16:03 +000016 make CFLAGS=-I/usr/src/linux/include
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000017
Wichert Akkerman360815e1999-06-28 13:16:03 +000018Please note that it is possible to symlink /usr/include/{asm,linux,scsi}
19to your kernel source, but for programs that don't need the actual kernel
20structures that is highly discouraged.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000021