Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1 | |
Wichert Akkerman | 360815e | 1999-06-28 13:16:03 +0000 | [diff] [blame^] | 2 | Strace has been ported by Branko Lankester <branko@hacktic.nl> |
| 3 | to run on Linux systems. Since then it has been greatly modified |
| 4 | by various other people. |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 5 | |
Wichert Akkerman | 360815e | 1999-06-28 13:16:03 +0000 | [diff] [blame^] | 6 | If you want to compile strace on a Linux system please make sure |
| 7 | that you use very recent kernel headers. Strace needs those to get |
| 8 | the proper data structures used by the kernel, since these can be |
| 9 | different from the structures that the C library uses. Currently |
| 10 | you will need a 2.2.7 or newer kernel. |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 11 | |
Wichert Akkerman | 360815e | 1999-06-28 13:16:03 +0000 | [diff] [blame^] | 12 | To compile strace using your kernel source you need to tell make where |
| 13 | you put the sources. For example if you have your kernelsource in |
| 14 | /usr/src/linux, you should invoke make like this: |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 15 | |
Wichert Akkerman | 360815e | 1999-06-28 13:16:03 +0000 | [diff] [blame^] | 16 | make CFLAGS=-I/usr/src/linux/include |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 17 | |
Wichert Akkerman | 360815e | 1999-06-28 13:16:03 +0000 | [diff] [blame^] | 18 | Please note that it is possible to symlink /usr/include/{asm,linux,scsi} |
| 19 | to your kernel source, but for programs that don't need the actual kernel |
| 20 | structures that is highly discouraged. |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 21 | |