From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 10 07:44:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CC4716A4CE for ; Fri, 10 Sep 2004 07:44:39 +0000 (GMT) Received: from comsys.ntu-kpi.kiev.ua (comsys.ntu-kpi.kiev.ua [194.125.244.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id D196343D2F for ; Fri, 10 Sep 2004 07:44:36 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) (authenticated bits=0)i8AAo4vs089824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Sep 2004 10:50:04 GMT Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id 6D1211F5; Fri, 10 Sep 2004 10:43:38 +0300 (EEST) From: Andrey Simonenko To: vxp In-Reply-To: <1094793798.00129326.1094782801@10.7.7.3> X-Newsgroups: lucky.freebsd.hackers User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.9-STABLE (i386)) Message-Id: <20040910074338.6D1211F5@pm514-9.comsys.ntu-kpi.kiev.ua> Date: Fri, 10 Sep 2004 10:43:38 +0300 (EEST) cc: freebsd-hackers@freebsd.org Subject: Re: header file related question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 07:44:39 -0000 On Thu, 9 Sep 2004 20:38:23 -0400 (EDT) in lucky.freebsd.hackers, vxp wrote: > > so, i copied all the #include's from /sys/netinet/ip_icmp.c and only have > the icmp_input() function (unmodified right now, from the form i found > it), the header files from the original ip_icmp, and a main() that > simply returns 0. Why you mentioned the main() function? Did you use the correct Makefile for compiling a KLD module? Check Makefiles in /usr/share/examples/kld and try to compile ip_icmp.c without modifications for the first time, I've just compiled ip_icmp.c without modifications with Makefile for a KLD module whit out any errors.