Package: radeontool Version: 1.5-3 Severity: serious Tags: patch Justification: no longer builds from source
Hi, radeontool FTBFS on powerpc with following error: gcc -Wall -O2 radeontool.c -o radeontool radeontool.c: In function 'map_devince_memory': radeontool.c:97: error: 'PAGE_SIZE' undeclared (first use in this function) radeontool.c:97: error: (Each undeclared identifier is reported only once radeontool.c:97: error: for each function it appears in.) make[1]: *** [radeontool] Error 1 make[1]: Leaving directory `/home/corsac/builds/radeontool-1.5.orig' make: *** [build-stamp] Error 2 Attached patch (taken from #384307) fix the problem. Regards, -- Yves-Alexis Perez -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-rc6 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages radeontool depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries radeontool recommends no packages. -- no debconf information
diff -urN radeontool-1.5.orig/radeontool.c radeontool-1.5/radeontool.c --- radeontool-1.5.orig/radeontool.c 2004-02-11 04:50:27.000000000 +0100 +++ radeontool-1.5/radeontool.c 2006-09-18 09:43:38.000000000 +0200 @@ -21,10 +21,11 @@ #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> -#include <asm/page.h> #include "radeon_reg.h" +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE) + int debug; int skip;