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 | 8dc9a1a | 1999-07-09 14:08:14 +0000 | [diff] [blame^] | 12 | There 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 Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 18 | |
Wichert Akkerman | 360815e | 1999-06-28 13:16:03 +0000 | [diff] [blame] | 19 | make CFLAGS=-I/usr/src/linux/include |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 20 | |