Skip to contentSkip to conversation

Kernel compilation problem

DISCUSSION Zgembo Adislic 2 participants 2 messages Feb 22, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I using linux kernel 2.6.8.1 for my embedded ARM target and I am able to compile it without any problems using gcc-3.4-0 cross-compiler. For some reason I had to modify one of my device drivers to work with files and I had to include "stdio.h" library for that reason. But now when I execute make command I got an error that says that

"stdio.h: No such file or directory"
And all functions that I used form that library are not recognized.

I really see no reason why this should not work?! All suggestions are welcome.

---------------------------------
8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime shortcut.

#1 lore raw
Quoted 2 lines

"stdio.h: No such file or directory"
And all functions that I used form that library are not recognized.

They don't exist in that form in the kernel context. Only user/application context is this available.

Quoted 2 lines

I really see no reason why this should not work?! All suggestions are
welcome.

Your expectation is not correct. Things in the kernel are built and have different attributes as compared for things meant for user space.

Subsets of the common C Library functions are available in the kernel. They do not always carry all the features of the glibc/uclibc/newlibc/... counterparts. The kernel environment is much more restrictive.

Regards,
Richard W.