Depending on libc implementation, various -lrt functions can be implemented either in -lc or in -lrt. For example, starting with glibc-2.17 the clock_* suite of functions is available directly in -lc. Check whether clock_* and mq_* suites of functions are provided by -lrt or by the main C library, do not link with -lrt unnecessarily. This change affects only tests yet, but this is going to be more important as soon as strace starts using clock_gettime. * configure.ac (AC_SEARCH_LIBS): Check for clock_gettime and mq_open in -lrt. (AC_SUBST): Add clock_LIBS and mq_LIBS. * tests/Makefile.am (mq_LDADD): Replace -lrt with $(mq_LIBS). (threads_execve_LDADD, times_LDADD): Replace -lrt with $(clock_LIBS).
strace - the linux syscall tracer
This is strace -- a diagnostic, debugging and instructional userspace utility with a traditional command-line interface for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.
See the file NEWS for information on what has changed in recent versions.
Please read the file INSTALL-git for installation instructions.
The user discussion and development of strace take place on the strace mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to strace-devel@lists.strace.io. The mailing list archives are available at https://lists.strace.io/pipermail/strace-devel/ and other archival sites.
The GIT repository of strace is available at GitHub and GitLab.