From owner-freebsd-stable@FreeBSD.ORG Mon Jul 28 18:05:57 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAAFB1065671 for ; Mon, 28 Jul 2008 18:05:57 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 52F948FC17 for ; Mon, 28 Jul 2008 18:05:57 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id m6SI5tWM027857; Mon, 28 Jul 2008 14:05:55 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Mon, 28 Jul 2008 14:05:56 -0400 (EDT) Date: Mon, 28 Jul 2008 14:05:55 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Unga In-Reply-To: <217498.53801.qm@web57001.mail.re3.yahoo.com> Message-ID: References: <217498.53801.qm@web57001.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Re: undefined reference to SYS_cpuset X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2008 18:05:57 -0000 On Mon, 28 Jul 2008, Unga wrote: > --- On Mon, 7/28/08, Daniel Eischen wrote: > >> Your problem is that you don't have an up-to-date >> kernel src >> (src/sys) directory with includes in your build >> environment. > > I have nothing to do with src/sys. I link against FreeBSD libs for a > long time, it just today onwards did not work. That's all. I don't care that *you* have nothing to do with src/sys, but libc (and other base libs and utilities) do care. >> Your libc is being built against an old set of includes, so >> it is up to you how to want to modify your build >> environment >> to account for this. >> > > I install FreeBSD includes from /usr/src/include and libs from > /usr/src/lib. From the today onwards if the make in /usr/src/include > does not install all the headers required for libs building that > should be clearly documented and notified prominently, that I don't > see it in UPDATING or any where. > > FYI, my libc is build against the **latest** set of includes installed > by the make in the /usr/src/include and nothing but that, ie, there > are no other headers in /mypath/include, the compilation and > installation of libc goes **without** any error. So that "Your libc is > being built against an old set of includes" is just pure nonsense, and > stupid statement made without knowing what people are doing. It's not nonsense, it is the truth. "old set of includes" includes /usr/include and everything under it (/usr/include/sys, /usr/include/machine, etc), with sys and machine notably being part of src/sys. The files in /usr/src/include are not the complete set of includes, and a 'make install' from there does not install all the includes. Depending on what you are doing and what you require, you need to at least setup an include directory that includes the files from /usr/src/include, /usr/src/sys/sys (as and /usr/src/sys//include (as ). You should do a 'ls -1F /usr/include | grep /' and see just what you are missing by only relying on /usr/src/include. -- DE