Re: Change in compiler.h causes compile errors in many applications

From: Richard B. Johnson
Date: Wed Feb 25 2004 - 08:48:03 EST


On Wed, 25 Feb 2004, Helmut Auer wrote:

> Hello,
> With kernel 2.6.3 a
> #ifdef __KERNEL__
> was added at the beginning of linux/compiler.h
> That causes compile errors in severel applications, because the
> following includes were no longer done.
> Was that caused by accident ?
>
> --
> Helmut Auer, helmut@xxxxxxxxxxxxx

The kernel headers are to be used for compiling the kernel only!
Older distributions may have a sim-link (two) for /usr/include/linux
and /usr/include/asm. These should point to the headers used to
compile the 'C' runtime library, not the current kernel headers.

A fix is to remove these symlinks and create directories that contain
your last working headers.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/