]> granicus.if.org Git - strace/commitdiff
Compilation updates
authorWichert Akkerman <wichert@deephackmode.org>
Wed, 6 Oct 1999 13:06:34 +0000 (13:06 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Wed, 6 Oct 1999 13:06:34 +0000 (13:06 +0000)
ChangeLog
configure.in
cvsbuild
net.c
process.c
signal.c
syscall.c
util.c

index b585c25fa4cb6d2230bce73cca442ddeb4275fd2..307fe3c5dfe3f5bd3969dc44f64fdd8225bffe1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+Wed Oct  6 02:00:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * Update cvsbuild to give a better error if autoconf isn't installed
+  * Add test for linux/ptrace.h to configure
+  * Since we define GNU_SOURCE in the Makefile we don't need to define
+    USE_GNU in file.c anymore
+
+Fri Sep 10 04:35:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * #define USE_GNU before including file.c so we get some extra O_* flags
+
+Tue Aug 31 16:27:21 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * Add missing } in IPv6 output
+
 Tue Aug 31 01:23:08 CEST 1999  Wichert Akkerman <wakkerma@debian.org>
 
   * Update copyright for strace-graph to BSD to be consistent with
index 41e821acbd822198912e05d9d7f1f8ae990ef5de..ab0e7242ed8be44d3903d2f9ee57ade3eb48588b 100644 (file)
@@ -126,7 +126,7 @@ AC_HEADER_MAJOR
 AC_SIG_ATOMIC_T
 AC_CHECK_LIB(nsl, main)
 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop)
-AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h)
+AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h)
 AC_DECL_SYS_ERRLIST
 AC_DECL_SYS_SIGLIST
 AC_DECL__SYS_SIGLIST
index d6e6e9d5795d64059ea7968a815a099c66dda71c..a4415016641fc0f9e245bfa649e2a059b9410181 100755 (executable)
--- a/cvsbuild
+++ b/cvsbuild
@@ -1,5 +1,21 @@
 #! /bin/sh
 
+PROJECT=strace
+
+DIE=0
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+       echo
+       echo "You must have autoconf installed to compile $PROJECT."
+       echo "Download the appropriate package for your distribution,"
+       echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+       DIE=1
+}
+
+if test "$DIE" -eq 1; then
+    exit 1
+fi
+
 autoheader
 autoconf
 ./configure $@
diff --git a/net.c b/net.c
index d8e4b15dd8150776d2454c5c28152b46e69e3b2c..2026b64672134f5065e8f97f6961bbdf24de7d7c 100644 (file)
--- a/net.c
+++ b/net.c
@@ -352,7 +352,7 @@ long addr;
                {
                        tprintf("{sin6_family=AF_INET6, ");
                        inet_ntop(AF_INET6, &sa6.sin6_addr, string_addr, sizeof(string_addr));
-                       tprintf("sin6_port=htons(%u), inet_pton(AF_INET6, \"%s\", &sin6_addr), sin6_flowinfo=htonl(%u)",
+                       tprintf("sin6_port=htons(%u), inet_pton(AF_INET6, \"%s\", &sin6_addr), sin6_flowinfo=htonl(%u)}",
                                ntohs(sa6.sin6_port), string_addr, ntohl(sa6.sin6_flowinfo));
                }
                break;  
index aa169de332e22cffa9097d39ed11ce5fbe6e0145..9d09c8a5b37d0e081f0ba0e0491f39d09575f5b3 100644 (file)
--- a/process.c
+++ b/process.c
 #include <machine/reg.h>
 #endif /* SUNOS4 */
 
-#if defined(linux) && !defined(__GLIBC__)
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
 #include <linux/ptrace.h>
 #endif 
 
 #ifdef HAVE_SYS_REG_H
 # include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
 # define PTRACE_PEEKUSR PTRACE_PEEKUSER
+#endif
+#ifndef PTRACE_POKEUSR
 # define PTRACE_POKEUSR PTRACE_POKEUSER
 #endif
+#endif
 
 #ifdef LINUX
 #include <asm/posix_types.h>
index d5f2336c2791e7da8703a848c25fabcb8f779498..3d4b7c1bf6285bd6408dd11c1e061b899f645938 100644 (file)
--- a/signal.c
+++ b/signal.c
 #include <sys/ucontext.h>
 #endif /* SVR4 */
 
-#if defined(linux) && !defined(__GLIBC__)
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
 #include <linux/ptrace.h>
 #endif 
 
 #ifdef HAVE_SYS_REG_H
 # include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
 # define PTRACE_PEEKUSR PTRACE_PEEKUSER
+#endif
+#ifndef PTRACE_POKEUSR
 # define PTRACE_POKEUSR PTRACE_POKEUSER
 #endif
+#endif
 
 #ifdef LINUX
 
index 912a2736540eb9f3bddff129a9e28ce44c029913..7c31fc0b9316d794f88a238ff515c999d818c627 100644 (file)
--- a/syscall.c
+++ b/syscall.c
 #include <sys/syscall.h>
 #include <sys/param.h>
 
-#if defined(LINUX) && defined(SPARC)
+#if HAVE_ASM_REG_H
 #include <asm/reg.h>
 #endif
 
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
+#include <linux/ptrace.h>
+#endif 
+
 #ifdef HAVE_SYS_REG_H
 #include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
 # define PTRACE_PEEKUSR PTRACE_PEEKUSER
 #endif
-
-#if defined(linux) && !defined(__GLIBC__)
-#include <linux/ptrace.h>
-#endif 
+#endif
 
 #ifndef SYS_ERRLIST_DECLARED
 extern int sys_nerr;
diff --git a/util.c b/util.c
index 7d9c5fac63bb77e5febc1366c339c85e74b22306..41a8b3a9f2699d9c64ff1644907cc313d3ac8e76 100644 (file)
--- a/util.c
+++ b/util.c
@@ -40,7 +40,7 @@
 #include <link.h>
 #endif /* SUNOS4 */
 
-#if defined(linux) && !defined(__GLIBC__)
+#if defined(linux)
 #include <linux/ptrace.h>
 #endif