The HyperNews Linux KHG Discussion Pages

## arch/i386undefined reference

  Forum: How System Calls Work on Linux/i86
  Keywords: system call undefined reference
  Date: Thu, 02 Apr 1998 20:35:36 GMT
  From: Jack <eg_ckmac@stu.ust.hk>

    Hi,
    	I have written a system call which is used to return the current default gateway address. What I did is the following.

    1. add a new system call table entry for the new system call.
    2. define a system call number for that call.
    3. define a macro for user to link with
    4. copy my program to /usr/src/linux/net directory and change
    the Makefile of that directory in order to compile my program.
    5. re-compile the kernel

    But I found that there is an error message which is...

    "arch/i386/kernel/kernel.o(.data+0x304): undefined reference to `sys_forwarding_agent" causes the failure.

    Would anyone tell me what is going on??

    Thanks for your kind attention.

    bye g.
    e-mail: eg_ckmac@stu.ust.hk

Messages