Package: wmlongrun
Version: 0.3.0-pre1-4.1
Severity: normal
Somewhere around the original report time, the linux kernel changed
the abi for using the cpuid and msr dev nodes. The attached (inline) patch
fixes this.
- robert jacobs
---8<---cut---
--- longrun_linux.c.orig 2009-04-28 10:31:24.000000000 -0400
+++ longrun_linux.c 2009-04-28 10:54:19.000000000 -0400
@@ -22,6 +22,7 @@
#ifdef USE_PREAD
#define __USE_UNIX98 /* for pread/pwrite */
#endif
+#define __USE_FILE_OFFSET64 /* msr/cpuid needs 64bit address with newer
linuxes */
#include <unistd.h>
#include "common.h"
@@ -45,7 +46,7 @@
static char *msr_device; /* MSR device name */
static void
-read_cpuid(long address, int *eax, int *ebx, int *ecx, int *edx)
+read_cpuid(loff_t address, int *eax, int *ebx, int *ecx, int *edx)
{
uint32_t data[4];
@@ -75,7 +76,7 @@
/* note: if an output is NULL, then don't set it */
static void
-read_msr(long address, int *lower, int *upper)
+read_msr(loff_t address, int *lower, int *upper)
{
uint32_t data[2];
---cut---8<---
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.29-1-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages wmlongrun depends on:
ii libc6 2.9-8 GNU C Library: Shared libraries
ii libx11-6 2:1.2.1-1 X11 client-side library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxpm4 1:3.5.7-1 X11 pixmap library
wmlongrun recommends no packages.
wmlongrun suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]