blob: 0cb10d1366e33eba576052a4621b35a6dce3a5ed [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 Akkerman8dc9a1a1999-07-09 14:08:14 +000012There are two ways to do this:
13* you can link /usr/include/linux and /usr/include/asm to the corresponding
14 directories in your kernel source-tree.
15
16* you can tell make where your kernel sources are. For example if you have your
17 kernelsource in /usr/src/linux, you should invoke make like this:
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000018
Wichert Akkerman360815e1999-06-28 13:16:03 +000019 make CFLAGS=-I/usr/src/linux/include
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000020