compile error kdebase-3.5.4/kcontrol/joystick

Gary L. Greene Jr. greeneg at phoenuxos.com
Sun Aug 27 16:54:13 BST 2006


On Sunday 27 August 2006 11:50, Michel Hermier wrote:
> 2006/8/27, Kevin Krammer <kevin.krammer at gmx.at>:
> > On Sunday 27 August 2006 00:20, Martin Koller wrote:
> > > I'm the maintainer of KDEs joystick calibration module, and recently I
> > > came across a compile problem under a newer kernel (2.6.18) than mine:
> >
> > I can confirm this on 2.6.17
> >
> > > /usr/include/linux/input.h:801: error: `kernel_ulong_t' does not name a
> > > type
> > >
> > > I have seen that the problem is due to the fact that kernel_ulong_t is
> > > only defined when also __KERNEL__ is defined - which is not the case in
> > > my user-space application.
> >
> > I did the typedef manually and it then fails later on because
> > BITS_PER_LONG is not defined either
> >
> > Since those are not defined anywhere else, it is likely that the headers
> > are broken or some additional header file is missing.
> >
> > Cheers,
> > Kevin
>
> Ar you sure of the origin of your kernel includes in
> /usr/include/linux ? Last time I had this error was with include from
> the 2.6.16.x series.
>
> Cheers,
> Michel

Thus the main reason why people shouldn't be using kernel includes. If you 
need a particular include from kernel-land, copy it into your sources.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060827/81491596/attachment.sig>


More information about the kde-core-devel mailing list