[parisc-linux] Warning about bad kernel headers.

Mike Frysinger vapier at gentoo.org
Sun Jul 16 15:39:49 MDT 2006


On Saturday 15 July 2006 18:26, Carlos O'Donell wrote:
> A quick warning, if your kernel headers file unistd.h contain "#define
> PIC" then remove this line. It will cause all sorts of havoc when
> building glibc. It won't be immediately visible when building, and
> infact ld.so can compile quite happily and run with mixed pic non-pic
> code.

i dont use debian, but i assume your headers were trying to work with the fact 
that it does 'extern int errno' which can break in nasty ways when errno.h 
hasnt also been included ?

in Gentoo, we patch our kernel headers like so:
-extern int errno;
+#include <errno.h>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/20060716/c9f60273/attachment-0002.pgp 


More information about the parisc-linux mailing list