Bug#220814: X 4.3 FTBFS on hppa
Package: xserver-xfree86
Version: 4.3.0-0pre1v4
Severity: serious
Tags: experimental
X-Debbugs-CC: aeb@cwi.nl
Branden, I initially thought this was an hppa problem. It's not, it's
a kernel-headers problem. I suspect it will also affect unstable,
but I'm not sure.
gcc -c -g -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
-Wnested-externs -Wundef \
-I../../../../../../programs/Xserver/hw/xfree86/common \
-I../../../../../../programs/Xserver/hw/xfree86/os-support \
-I. -I../../../../../../programs/Xserver/include \
-I../../../../../../exports/include/X11 \
-I../../../../../../include/extensions \
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared \
-I../../../../../../programs/Xserver/mi \
-I../../../../../.. -I../../../../../../exports/include -Dlinux \
-D__hppa__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB \
-DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension \
-DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT \
-DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86Server \
-DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG \
-DXResExtension -DX_BYTE_ORDER=X_BIG_ENDIAN -DNDEBUG -DFUNCPROTO=15 \
-DNARROWPROTO -DUSESTDRES -DHAVE_SYSV_IPC lnx_io.c
lnx_io.c: In function `KDKBDREP_ioctl_ok':
lnx_io.c:90: error: structure has no member named `rate'
lnx_io.c:98: error: structure has no member named `rate'
lnx_io.c:100: error: structure has no member named `rate'
lnx_io.c:101: error: structure has no member named `rate'
lnx_io.c:102: error: structure has no member named `rate'
make[8]: *** [lnx_io.o] Error 1
make[8]: Leaving directory `/home/willy/xfree86/xfree86-4.3.0/build-tree/xc/programs/Xserver/hw/xfree86/os-support/linux'
line 90 is: kbdrep_s.rate = -1;
which is: struct kbd_repeat kbdrep_s;
which comes from /usr/include/linux/kd.h,
which has the rather helpful comment:
struct kbd_repeat {
int delay; /* in msec; <= 0: don't change */
int period; /* in msec; <= 0: don't change */
/* earlier this field was misnamed "rate" */
};
Shazam. It's not hppa, it's the wonderful new linux-kernel-headers
package. Which come from 2.6 ... where Andries Brouwer commited this
patch 14 months ago:
--- 1.3/include/linux/kd.h Sun May 5 21:11:34 2002
+++ 1.4/include/linux/kd.h Fri Oct 11 03:02:14 2002
@@ -134,7 +134,8 @@
struct kbd_repeat {
int delay; /* in msec; <= 0: don't change */
- int rate; /* in msec; <= 0: don't change */
+ int period; /* in msec; <= 0: don't change */
+ /* earlier this field was misnamed "rate" */
};
#define KDKBDREP 0x4B52 /* set keyboard delay/repeat rate;
Andries, care to explain why you broke XFree86?
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Reply to: