From owner-freebsd-stable@FreeBSD.ORG Mon Jul 28 14:26:21 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 AD7E11065676; Mon, 28 Jul 2008 14:26:21 +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 438B18FC1B; Mon, 28 Jul 2008 14:26:20 +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 m6SEQJwr017898; Mon, 28 Jul 2008 10:26:19 -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 10:26:20 -0400 (EDT) Date: Mon, 28 Jul 2008 10:26:19 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Unga In-Reply-To: <912152.75006.qm@web57008.mail.re3.yahoo.com> Message-ID: References: <912152.75006.qm@web57008.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org, brooks@freebsd.org, ps@freebsd.org, jhb@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 14:26:21 -0000 On Mon, 28 Jul 2008, Unga wrote: > --- On Mon, 7/28/08, Daniel Eischen wrote: > >> From: Daniel Eischen >> Subject: Re: undefined reference to SYS_cpuset >> To: "Unga" >> Cc: freebsd-stable@freebsd.org >> Date: Monday, July 28, 2008, 9:19 PM >> On Mon, 28 Jul 2008, Unga wrote: >> >>> Hi all >>> >>> Today (28th July) I upgraded the FreeBSD sources >> (/usr/src) using >>> cvsup and when try to compile a test C program I get >> following: >>> >>> echo 'main(){}' > dummy.c >>> cc dummy.c -v -Wl,--verbose >>> >>> /usr/lib/libc.so: undefined reference to >> `SYS_cpuset_getaffinity' >>> /usr/lib/libc.so: undefined reference to >> `SYS_cpuset' >>> /usr/lib/libc.so: undefined reference to >> `SYS_cpuset_setaffinity' >>> /usr/lib/libc.so: undefined reference to >> `SYS_cpuset_getid' >>> /usr/lib/libc.so: undefined reference to >> `SYS_cpuset_setid' >>> /usr/lib/libc.so: undefined reference to >> `SYS_setfib' >>> collect2: ld returned 1 exit status >>> >>> I can see in logs following programs compiled without >> any error: >>> cpuset_getaffinity.S >>> cpuset.S >>> cpuset_setaffinity.S >>> cpuset_getid.S >>> cpuset_setid.S >>> setfib.S >>> >>> What's gone wrong now? Am I in the middle of a >> FreeBSD update? or have >>> I made some mistake? or multiple routing tables update >> on 20080724 >>> broken something? Any ideas? >> >> Did you build and install the kernel first? >> > > I have compiled and installed **only** following to a separate location: > - FreeBSD Headers > - lib/csu > - lib/libc > - lib/msun > - lib/libc_r > > And tested with a simple script whether I can compile and link against new libs successfully before I can proceed with my project. That test, as mentioned in the original post, failed to link against the new C libraries. That is, it looks to me, the libc is now broken. > > Of course, the system I'm running is old, uname -a shows May 25. I don't think I have to run the latest kernel for me to separately link against a different copy of libc, do I? > > If there a fix or a patch, I can apply against the libc and let you guys know the result. The only supported way is to buildkernel and buildworld. You're on your own if you choose not to go along with the procedure in src/UPDATING. -- DE