userspace cannot call function or variable defined in the kernel

Andrew Benton b3nton at gmail.com
Tue Feb 2 09:37:32 PST 2010


On 02/02/10 17:12, Samo Zgonik wrote:
> I'm following the LFS book ver. 6.5.
>
> According to chapter 5.6.1. Installation of Linux API Headers I ran the
> command 'make headers_check', but it reported 2 errors while executing it:
>
> //mnt/lfs/sources/linux-2.6.32.7/usr/include/scsi/scsi.h:162: userspace
> cannot call function or variable defined in the kernel
> /mnt/lfs/sources/linux-2.6.32.7/usr/include/scsi/scsi.h:288: userspace
> cannot call function or variable defined in the kernel/
>

Where is the error? It's just giving a warning.
/usr/include/scsi/scsi.h will be overwritten when you install glibc so 
the fact that it is broken should cause you no problems.

> I also tried with the version 2.6.32.6, but got the same error and with
> the version 2.6.30.2 (the one used in the book) where I got some
> different errrors:
>
> /scripts/basic/fixdep.c: In function 'traps':
> scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer
> will break strict-aliasing rules
> scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer
> will break strict-aliasing rules
>
> /mnt/lfs/sources/linux-2.6.30.2/usr/include/mtd/jffs2-user.h:21:
> extern's make no sense in userspace
>
>
> /Why do the errors occur and how to fix them? Or can I just ignore them?
> I just want to be sure not to mess things up, before I continue with the
> LFS.

What errors? These are warnings. You'll know an error when you see one 
because it'll say `error'.

Andy



More information about the lfs-support mailing list