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:
If the first "make" fails, no problems:
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:
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.
# Path to parent kernel include files directory
Can someone tell me what am i doing wrong?
How can i compile this?
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