From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 21:08:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FA5B1065671 for ; Sat, 16 Aug 2008 21:08:50 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 976908FC19 for ; Sat, 16 Aug 2008 21:08:49 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2514841fgb.35 for ; Sat, 16 Aug 2008 14:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=u4GgZ1gZzdROwf2bPqwAkmgz2hFpkxyKQ+0XPsLihEA=; b=V2MZ+4NTfPZyOYG1gjSsQmQUuLJqeX05gITm4Y5qB6K7IhOVFyuRhjuOToZM1TTp81 +RWDrtXdNw2F6a09zU7CZMHa5BIeGBD189XwQOUMPgWwJvncez37h5rHtQgwWNCC7xlJ 5AlY24+jb3tlC20f0Q7zBZfItjZKRqP5jw0+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=verof9DwGFgqBtx60ibbb9Ve7r9V6qMzQJNJFh2iMC/D8rgwsyKdwygrPGMUIldDcZ 2NX/EScB0WONTFYKF6gP6Mmcxt3CNm4e3ftJdRO0XNQARK6m8ufuOXQF3/OjvauV/hC9 QVe31Bp4eaH+CmvUd9dw9TrXSL+dMNcr88QBI= Received: by 10.86.80.17 with SMTP id d17mr3230659fgb.47.1218920928258; Sat, 16 Aug 2008 14:08:48 -0700 (PDT) Received: by 10.86.78.14 with HTTP; Sat, 16 Aug 2008 14:08:48 -0700 (PDT) Message-ID: <3bbf2fe10808161408y337a94d0pef6e63c5901969e5@mail.gmail.com> Date: Sat, 16 Aug 2008 23:08:48 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Ryan French" In-Reply-To: <200808170905.22691.rfrench@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200808162210.02467.rfrench@freebsd.org> <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com> <200808170905.22691.rfrench@freebsd.org> X-Google-Sender-Auth: 6d03625863b68808 Cc: freebsd-hackers@freebsd.org Subject: Re: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 21:08:50 -0000 2008/8/16, Ryan French : > On Sat, 16 Aug 2008 10:38:24 pm you wrote: > > 2008/8/16, Ryan French : > > > Hi All, > > > > > > I am currently trying to build a custom kernel for my Google Summer of > > > Code, and am running into a bit of a problem. I have all of my code > > > compiling, but when I get to the linking stage as soon as it comes to the > > > new files I have installed it says the *.o does not exist. I have added > > > the files to /conf/files, and well as added the files to /conf/options > > > and /conf/NOTES, and the option is set in my Makefile for the kernel. Is > > > there another step I need to do before I can build the kernel? > > > > Ryan, > > can you please past the error message? > > More specifically, missing .o are about your newly included files or other? > > This can happen, for example, if the consumer of a subsystem wants to > > use it and the subsystem is not compiled (the stack(9) without STACK > > option, for example). > > > > Thanks, > > Attilio > > The missing .o is about my own files that I have included in the kernel. More > specifically I have a file 'mpls.h' and as it is the first one in the > directory as soon as it gets to linking the file I get the error > > ld: mpls.o: No such file: No such file or directory > *** Error code 1 > > This occurs right after the command > > MAKE=make sh /usr/src/sys/conf/newvers.sh MPLSKERNEL > > Sorry I cant copy the whole error but I am running the development in a VM and > I cant copy and paste between the VM and my host machine. Can you please paste your diff against src/sys/conf/files* ? Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein