lkml.org 
[lkml]   [1999]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: memcpy_tofs Where did it go?
Someone wrote:
> [root@rscope epix]# gcc -c -D__KERNEL__ -DMODULE -O2 svm.c -o svm.o
> In file included from /usr/include/_G_config.h:9,
> from /usr/include/libio.h:31,

Don't include _any_ libc includes when compiling kernel modules,
they aren't valid in this context. It is a bug in your C source file.
Glibc or older libc.

Alan Cox wrote:
> Don't mix glibc and kernel includes

Unless you have to because the glibc includes aren't complete.
O_DIRECTORY anyone? Then watch as your program fails to compile.
_Must_ <linux/fcntl.h> and <fcntl.h> be incompatible?

Personally I Autoconf my way around this disaster area.
Ugly but works.

-- Jamie

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

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.027 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site