Re: kernel compile error

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

 



On 10/6/05, Nitin Kanaskar <nitinvk04@xxxxxxxxx> wrote:
> my system call program headers are -
>
> #include <sys/time.h>
> #include <linux/kernel.h>
> #include <linux/mm.h>
>
> and the relevant lines from my top Makefile
> specifying the kernel path are :
>
> TOPDIR   := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
>
> HPATH     = $(TOPDIR)/include
> FINDHPATH  =$(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net
> Hope I have given the info. asked by you, Hemant.

Do not top-post.

You are mixing user-space and kernel-space headers. Why do you need
sys/time.h? Change sys/time.h to linux/time.h.and try compiling again.

./h
--
Operating Systems and Computer Architecture Research  - University of Cincinnati
http://www.ececs.uc.edu/~mohapth

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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