kernel.h question

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

 



hi all,

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.

1. i was under the impression that we did NOT compile against libc headers
   for modules.

2. what am i supposed to do?  certainly blowing away /usr/include/linux and
   replacing it with /usr/src/linux/include/linux would fix my problem, but
   that's kind of a radical solution.  certainly there's a better answer than
   to start deleting files owned by dpkg?

shanks,

pete

-- 
"You may not use the Software in connection with any site that disparages
Microsoft, MSN, MSNBC, Expedia, or their products or services ..."
                    -- Clause from license for FrontPage 2002
--
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