[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] __errno_location



On Thu, Jan 04, 2001 at 09:46:36AM -0700, Philip N Daly wrote:
> It works out that if I add "-L/usr/lihb -lc" to the ld command, the
> __errno_location problem goes away. Of course, it does this at the expense
> of the module size which ballons up to several megabytes.
> 


You are apparently including a glibc header file that depends on
errno.h.  Remember that the files in /usr/include/linux/ are _not_
kernel headers, and make sure that your kernel code is not
accidentally including those.  Also, try using
'-I /usr/src/linux/include -nostdinc'.  It usually doesn't work,
because the kernel headers are not completely clean (grrr...),
but it tends to inform you of trouble spots in your code.





dave...