Thread: Compile problem on linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    14

    Compile problem on linux

    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:
    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. :-)
    Now when i use the make command i get following error message:
    Code:
    Please, set correct KERNEL_INCLUDE
    make: *** [check-kernel] Error 1
    In the make file i have the following configuration:
    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
    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.
    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
    Last edited by cnb; 09-29-2008 at 07:49 PM. Reason: Issue solved

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stream function compile problem
    By Know_Your_Role in forum C++ Programming
    Replies: 3
    Last Post: 06-02-2009, 12:03 PM
  2. SSHDOS linux modification GET problem
    By berg in forum C Programming
    Replies: 3
    Last Post: 04-11-2007, 06:13 AM
  3. how to compile C++ file on linux OS
    By singh_nav in forum C++ Programming
    Replies: 4
    Last Post: 08-17-2004, 06:30 AM
  4. gcc compile problem
    By keyz in forum Linux Programming
    Replies: 3
    Last Post: 05-22-2003, 07:14 AM
  5. C++ compile problem
    By Rhuantavan in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2002, 03:29 PM