Compile problem on linux
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
The second one doesn't look like the correct path to me.
Originally Posted by matsp
I have tried both and i get the same error message, are you able to tell me exact steps i can follow to correct this problem....i have also tried using google with the error message but i still cannot see how i can overcome this....Please help.... So i have decompressed or untar'ed the linux source into the following directory /usr/src/linux-source-2.6.18...
One more question what does the KERNEL_INCLUDE should point to i.e. the whole of linux source directory or just some sub directory...and the same question applies to LIBC_INCLUDE.
I am not able to reproduce your problem, since I currently haven't got a system with Linux running on it.
I expect however, that if you search for the error message in the makefile(s), you will find that it searches for some particular header file to determine if it's there. If that file isn't there, it will complain. You need to either find that file, or figure out how it gets created (perhaps you need to build parts of the kernel?)