Hi,
what i am trying to do is to compile the iputils from the source code and the reason for this is that later on i want to make changes to ping.c i.e. add my own functionality so i thought the best way to start is to download the source code and compile it first before making any changes....once it compiles than i will start making my changes....
So on my linux sever (debian) i have downloaded iputils source code and i also have got linux Kernel source code. Reading the iputils install file it says the following:
Now when i use the make command i get following error message:Code:make
make html
make man
lynx doc/iputils.html
Read...
If the first "make" fails, no problems:
make html
lynx doc/iputils.html
Read section "Installation notes"...
But if "make html" fails too, check that DocBook package is installed
on your machine. If it is installed, and nevertheless "make" does not work,
delete iputils and go to sleep. The next day repeat. If even full reset
did not help, I bring apologies. :-)
In the make file i have the following configuration:Code:Please, set correct KERNEL_INCLUDE
make: *** [check-kernel] Error 1
So in this case i have got the whole of linux kernel source code under /usr/src/linux-source-2.6.18 directory. But i am still unable to compile the iputils files.Code:# Path to parent kernel include files directory
#KERNEL_INCLUDE=/usr/src/linux/include
KERNEL_INCLUDE=/usr/src/linux-source-2.6.18
#LIBC_INCLUDE=/usr/include
LIBC_INCLUDE=/usr/include
Can someone tell me what am i doing wrong?
How can i compile this?
Thanks
Issue resolved....it was looking for autoconf.h which was in the following directory /usr/include/linux....just changed the KERNEL_INCLUDE=/usr/include and everything worked fine....
Thanks for all the help