Bug 51701 - net-misc/tightvnc-4.0_beta20031113 compile failure with linux 2.6 headers
Bug#: 51701 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: aliz@gentoo.org Reported By: ed@catmur.co.uk
Component: Applications
URL: 
Summary: net-misc/tightvnc-4.0_beta20031113 compile failure with linux 2.6 headers
Keywords:  
Status Whiteboard: 
Opened: 2004-05-21 15:22 0000
Description:   Opened: 2004-05-21 15:22 0000
lnx_kbd.c: In function `KDKBDREP_ioctl_ok':
lnx_kbd.c:110: error: structure has no member named `rate'
lnx_kbd.c:118: error: structure has no member named `rate'
lnx_kbd.c:120: error: structure has no member named `rate'
lnx_kbd.c:121: error: structure has no member named `rate'
lnx_kbd.c:122: error: structure has no member named `rate'
make[1]: *** [lnx_kbd.o] Error 1

The struct member `rate' has been renamed to `period'.

Yes, I know that 2.6 headers are as yet unsupported, but some people need or want to use them, and patching this will not affect those on 2.4 headers.

The source contains a partial workaround to the problem which fails because
a) it fails to include linux/version.h
b) it is applied only in lnx_io.c, it is also needed in lnx_kbd.c

The patch fixes and extends the existing workaround.

------- Comment #1 From Tim Yamin (RETIRED) 2004-05-23 12:00:02 0000 -------
Patch, please? :-)

------- Comment #2 From Ed Catmur 2004-05-23 19:48:11 0000 -------
Created an attachment (id=31920) [details]
2.6-kernel-headers.patch

Oops. Coulda sworn... *^_^*

------- Comment #3 From Tim Yamin (RETIRED) 2004-05-24 09:15:41 0000 -------
Patch looks good codewise here - Daniel, since you seem to be maintaining this
could you add this in? Thanks!

------- Comment #4 From Tuan Van (RETIRED) 2004-05-24 16:13:59 0000 -------
Please add the patch in bug #51601 for those people using gcc-3.4.o like me.
Thanks.

------- Comment #5 From Daniel Ahlberg (RETIRED) 2004-05-24 16:30:48 0000 -------
In CVS, thanks!