summaryrefslogtreecommitdiff
path: root/README-linux
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2000-04-10 22:22:31 +0000
committerWichert Akkerman <wichert@deephackmode.org>2000-04-10 22:22:31 +0000
commitc792698a99b640e7d256e8692c992bd967f0c5b2 (patch)
tree94ba5950aa4503c433438c5d6746ba2cf2145ea8 /README-linux
parentfaf722234dc8af97776f94fdda7e100fb60650a2 (diff)
downloadstrace-c792698a99b640e7d256e8692c992bd967f0c5b2.tar.gz
strace-c792698a99b640e7d256e8692c992bd967f0c5b2.tar.bz2
strace-c792698a99b640e7d256e8692c992bd967f0c5b2.tar.xz
README-linux: updated to note that strace might not compile
with development kernels bjm.c: sys_query_module: check if malloc succeeds system.c: sys_cap[gs]et(): check if malloc succeeds, only malloc once linux/syscallent.h: updated for 2.3.99pre3 linux/alpha/syscallent.h: updated for 2.3.99pre3, add all osf syscalls even though Linux doesn't implement them syscall.c: add global variables for MIPS registers as well syscall.c: move global variables to before get_scno since that uses them util.c: oops, misspelled defined process.c: fix ptrace calls in change_syscall mem.c: decode sys_madvise Merge patch from Topi Miettinen <Topi.Miettinen@nic.fi> + add support for quotactl, fdatasync, mlock, mlockall, munlockall & acct + small fix for RLIMIT_* and RUSAGE_BOTH + enhace support for capget and capset
Diffstat (limited to 'README-linux')
-rw-r--r--README-linux34
1 files changed, 23 insertions, 11 deletions
diff --git a/README-linux b/README-linux
index 0cb10d1..e2f9779 100644
--- a/README-linux
+++ b/README-linux
@@ -3,18 +3,30 @@ Strace has been ported by Branko Lankester <branko@hacktic.nl>
to run on Linux systems. Since then it has been greatly modified
by various other people.
-If you want to compile strace on a Linux system please make sure
-that you use very recent kernel headers. Strace needs those to get
-the proper data structures used by the kernel, since these can be
-different from the structures that the C library uses. Currently
-you will need a 2.2.7 or newer kernel.
+If you want to compile strace on a Linux system please make sure that
+you use recent kernel headers. Strace needs those to get the proper data
+structures and constatns used by the kernel, since these can be
+different from the structures that the C library uses. Currently you
+will need at least a 2.2.7 or newer kernel.
-There are two ways to do this:
-* you can link /usr/include/linux and /usr/include/asm to the corresponding
- directories in your kernel source-tree.
+To complicate things a bit further strace might not compile if you are
+using development kernels. These tend to have headers that conflict with
+the headers from libc which makes it impossible to use them.
-* you can tell make where your kernel sources are. For example if you have your
- kernelsource in /usr/src/linux, you should invoke make like this:
+There are three ways to compile strace with other kernel headers:
+* Specify the location in CFLAGS when running configure
- make CFLAGS=-I/usr/src/linux/include
+ CFLAGS=-I/usr/src/linux/include ./configure
+
+* you can tell make where your kernel sources are. For example if you
+ have your kernelsource in /usr/src/linux, you can invoke make like
+ this:
+
+ make CFLAGS="\$CFLAGS -I/usr/src/linux/include"
+
+ (the extra \$CFLAGS is there to make sure we don't override any CFLAGS
+ settings that configure has found).
+
+* you can link /usr/include/linux and /usr/include/asm to the
+ corresponding directories in your kernel source-tree.