Package: apachetop
Version: 0.12.5-5
Severity: minor
Tags: patch

when an apache logfile becomes greater than 2gb, apachetop refuses to work
with it.

although the configure script detects:

checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no

they seem to be necessarry.

the following (quick&dirty) patch fixed it for me:

diff -u apachetop-0.12.5/src/apachetop.h apachetop-0.12.5/src/apachetop.h
--- apachetop-0.12.5/src/apachetop.h
+++ apachetop-0.12.5/src/apachetop.h
@@ -5,6 +5,11 @@
 # include "config.h"
 #endif
 
+#undef _FILE_OFFSET_BITS
+#undef _LARGE_FILES
+#define _FILE_OFFSET_BITS 64
+#define _LARGE_FILES 1
+
 #include <stdio.h>
 #include <errno.h>
 #include <ctype.h>


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-sdinet20-tokamak
Locale: LANG=C, LC_CTYPE=de_DE.ISO-8859-1 (charmap=ISO-8859-1)

Versions of packages apachetop depends on:
ii  fam                           2.7.0-8    File Alteration Monitor
ii  libc6                         2.3.5-8.1  GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-5  GCC support library
ii  libncurses5                   5.5-1      Shared libraries for terminal hand
ii  libpcre3                      6.4-1.1    Perl 5 Compatible Regular Expressi
ii  libreadline5                  5.1-1      GNU readline and history libraries
ii  libstdc++6                    4.0.2-5    The GNU Standard C++ Library v3

apachetop recommends no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to