From owner-freebsd-hackers Tue Jun 12 5:26:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id A462337B405 for ; Tue, 12 Jun 2001 05:26:50 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 10816 invoked by uid 1000); 12 Jun 2001 09:34:57 -0000 Date: Tue, 12 Jun 2001 12:34:57 +0300 From: Peter Pentchev To: Juan Fco Rodriguez Hervella Cc: Lista Subject: Re: New c file under netinet6/ is not compiled, help Message-ID: <20010612123456.B819@ringworld.oblivion.bg> Mail-Followup-To: Juan Fco Rodriguez Hervella , Lista References: <3B25C5E7.39FEC964@it.uc3m.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B25C5E7.39FEC964@it.uc3m.es>; from jrh@it.uc3m.es on Tue, Jun 12, 2001 at 09:33:59AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jun 12, 2001 at 09:33:59AM +0200, Juan Fco Rodriguez Hervella wrote: > Hi: > > I am trying to create a new option into the KERNEL, but > I dont have experience on it, and when the "make" try to link > the *.o files, it is showed an undefined reference to > a function that is implemented in a .c that is not compiled. > > I have included the "opt_xxx.h" in this c file, > What does I need to do to force this new .c under /netinet6 > to compile ? I believe you need to add a line for your source file in the sys/conf/files, or sys/conf/files.{arch} if it is platform-specific. I'm not sure of the exact syntax for sys/conf/files entries, although it seems pretty straightforward for .c/.h files that do not require any specific compiler options. G'luck, Peter -- "yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message