Re: kernel.h question

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

 



On Mon, Nov 19, 2001 at 01:01:27AM -0800, Peter Jay Salzman wrote:
> i'm getting the message:
> 
>   % gcc -c -O3 -D__KERNEL__ -DMODULE grumpy.c -nostdinc -I/usr/src/linux/include
>   In file included from grumpy.c:5:
>   /usr/src/linux/include/linux/kernel.h:10: stdarg.h: No such file or directory
> 
> sure enough, in /usr/src/linux/include/linux/kernel.h there's:
> 
> 	#include <stdarg.h>
> 
> which is funny, because stdarg.h isn't in the kernel sources; it's on my
> system because libc6-dev put it there.

Heh, I just got this problem at hand. It turns out that stdarg.h is a
compiler include file. On my system (Debian testing) it lives in
/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h . Because you told
the compiler to blow away the standard include path (-nostdinc flag),
it won't find it anymore.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux