From owner-freebsd-questions@FreeBSD.ORG Sat Jun 26 01:03:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52CA816A4CE for ; Sat, 26 Jun 2004 01:03:52 +0000 (GMT) Received: from smtpq1.home.nl (smtpq1.home.nl [213.51.128.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAD4C43D46 for ; Sat, 26 Jun 2004 01:03:51 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.128.136] (port=60899 helo=smtp5.home.nl) by smtpq1.home.nl with esmtp (Exim 4.30) id 1Be1b9-00067M-9t for freebsd-questions@freebsd.org; Sat, 26 Jun 2004 03:03:15 +0200 Received: from cp464173-a.dbsch1.nb.home.nl ([212.204.145.167]:54464 helo=workstation.homenet) by smtp5.home.nl with esmtp (Exim 4.30) id 1Be1b8-0003T4-IB for freebsd-questions@freebsd.org; Sat, 26 Jun 2004 03:03:14 +0200 From: Danny Pansters To: freebsd-questions@freebsd.org Date: Sat, 26 Jun 2004 03:03:08 +0200 User-Agent: KMail/1.6.2 References: <1088203723.40dcabcbc635b@www.xmail.net> <20040625201938.2a02ffb5.wmoran@potentialtech.com> In-Reply-To: <20040625201938.2a02ffb5.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406260303.08547.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Re: 2. Try Kernel compiling..makefile stops because of some warnings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: danny@ricin.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 01:03:52 -0000 On Saturday 26 June 2004 02:19, Bill Moran wrote: > Karim Forsthofer wrote: > > Hello > > > > I tried to compile a new kernel from my 5.1 bsd cd. > > 5.1 is an obsolete, experimental version. If you're new to FreeBSD, you > should be using 4.10. If you want to experiment with the 5.x branch, you > should be using 5.2.1. Many problems that existed in 5.1 have been fixed > in 5.2.1. You're unlikely to get any support for 5.1. That's true. But it supported building my kernels. 5.1 was not unstable or broken. It was less broken than 5.2-REL. Building kernel from cd src should always be supported. This is probably user error. > > "Config" and "make depend" worked well, but "make" stops and > > print out some warnings about unused functions in npx.c (or something > > else). > > This is the old way of building a kernel. You should use "make > buildkernel" as described in the handbook: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html No. If you have a release from CD with src-sys installed and haven't cvsup'ed anything or don't have src-all fully installed than this *is* the proper way to build a kernel. In fact, it's the only way. There is no such thing as an "old" or a "new" way. These have IMHO unfortunately become the de facto terms but they're not accurate. On my -CURRENT box, when not updating world but merely rebuilding kernel, I normally use the "old" way because it's more straightforward then, starting from editing the conf file. Using make kernel would in that case produce the same of course. > For future reference, it's very difficult to help when problems are > described as "print out some warnings about unused functions in npx.c > (or something else)". If you have questions in the future, you'll get > more helpful answers if you provide the exact error messages. This > document describes how to ask good questions: > http://www.lemis.com/questions.html Yes. Without the actual output all we can do is guess. > > I searched in the newsgroup and found some similar postings to this > > subject > > It seems to me, that the problem appears when the RealTek pci NIC > > device is included in the config file. Someone wrote in the newsgroup, > > that gcc works with the wrong compiler flags, that means that the > > compiler stops at warnings, but he didn`t mention how the solve this > > problem or how to change the flags. > > Any suggestions? With the output we might be able to see if its a warning or an error. > > My Hardware is a d-link nic and the ensoniq 1370 soundcard, the other > > stuff is very common. > > > > The MYKERNEL configfile is attached to this email. I don't see anything wrong with it. How about if you load GENERIC and then kldload your NIC and 137x drivers, does everything work then? It's worth while to note that FreeBSD 5.x generally much more encourages the use of modules rather than compiling in drivers. > > Hope you can help me. Reinstalling to 5.2.1 is a good idea anyhow in the longer run. > > Greetings Karim Cheers, Dan