Hi, this is how I got this to work on my machine (64bit Kernel, 32bit Userspace). I’m not sure which of these changes are actually needed.
diff -Nru /tmp/4Sdbx3PtXd/vnstat-1.4/debian/changelog /tmp/ZsFMB9p4cp/vnstat-1.4/debian/changelog --- /tmp/4Sdbx3PtXd/vnstat-1.4/debian/changelog 2007-09-05 10:46:17.000000000 +0200 +++ /tmp/ZsFMB9p4cp/vnstat-1.4/debian/changelog 2007-09-05 10:46:17.000000000 +0200 @@ -1,3 +1,9 @@ +vnstat (1.4-4.nomeata1) unstable; urgency=low + + * fix for 64bit + + -- Joachim Breitner <[EMAIL PROTECTED]> Wed, 5 Sep 2007 10:28:22 +0200 + vnstat (1.4-4) unstable; urgency=low * New maintainer. (Closes: #394800) diff -Nru /tmp/4Sdbx3PtXd/vnstat-1.4/debian/rules /tmp/ZsFMB9p4cp/vnstat-1.4/debian/rules --- /tmp/4Sdbx3PtXd/vnstat-1.4/debian/rules 2007-09-05 10:46:17.000000000 +0200 +++ /tmp/ZsFMB9p4cp/vnstat-1.4/debian/rules 2007-09-05 10:46:17.000000000 +0200 @@ -24,7 +24,7 @@ dh_testdir # Add here commands to compile the package. - $(MAKE) CFLAGS="$(CFLAGS)" + $(MAKE) 64bit CFLAGS="$(CFLAGS)" touch build-stamp diff -Nru /tmp/4Sdbx3PtXd/vnstat-1.4/src/misc.c /tmp/ZsFMB9p4cp/vnstat-1.4/src/misc.c --- /tmp/4Sdbx3PtXd/vnstat-1.4/src/misc.c 2004-03-26 14:22:42.000000000 +0100 +++ /tmp/ZsFMB9p4cp/vnstat-1.4/src/misc.c 2007-09-05 10:46:17.000000000 +0200 @@ -4,7 +4,7 @@ void kerneltest(void) { FILE *fp; - int i=0, check, b1, b2; + long i=0, check, b1, b2; char temp[64]; if ((fp=fopen("/proc/stat","r"))==NULL) { @@ -28,7 +28,7 @@ exit(1); } - b1=strtoul(statline+6, (char **)NULL, 0); + b1=strtoull(statline+6, (char **)NULL, 0); fclose(fp); printf("This test will take about 20 seconds.\n"); @@ -54,7 +54,7 @@ break; } } - b2=strtoul(statline+6, (char **)NULL, 0); + b2=strtoull(statline+6, (char **)NULL, 0); fclose(fp); printf(" done\n\n"); diff -Nru /tmp/4Sdbx3PtXd/vnstat-1.4/src/proc.c /tmp/ZsFMB9p4cp/vnstat-1.4/src/proc.c --- /tmp/4Sdbx3PtXd/vnstat-1.4/src/proc.c 2004-03-26 14:22:42.000000000 +0100 +++ /tmp/ZsFMB9p4cp/vnstat-1.4/src/proc.c 2007-09-05 10:46:17.000000000 +0200 @@ -71,7 +71,7 @@ int day, month, year, hour, min, shift; int rxkchange=0, txkchange=0; /* changes in the kB counters */ - btime=strtoul(statline+6, (char **)NULL, 0); + btime=strtoull(statline+6, (char **)NULL, 0); /* btime in /proc/stat seems to vary �1 second so we use btime-BVAR just to be safe */ /* the variation is also slightly different between various kernels... */ -- Joachim "nomeata" Breitner Debian Developer [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Keyid: 4743206C JID: [EMAIL PROTECTED] | http://people.debian.org/~nomeata