From owner-freebsd-stable@FreeBSD.ORG Mon Jul 28 10:37:32 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 C15921065685; Mon, 28 Jul 2008 10:37:32 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id A7CF48FC12; Mon, 28 Jul 2008 10:37:32 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id A085F1CC0A9; Mon, 28 Jul 2008 03:37:32 -0700 (PDT) Date: Mon, 28 Jul 2008 03:37:32 -0700 From: Jeremy Chadwick To: Unga Message-ID: <20080728103732.GA95101@eos.sc1.parodius.com> References: <757320.79120.qm@web57014.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <757320.79120.qm@web57014.mail.re3.yahoo.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: ps@freebsd.org, brooks@freebsd.org, freebsd-stable@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 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 10:37:32 -0000 On Mon, Jul 28, 2008 at 01:13:53AM -0700, 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? These were recent changes (past 24 hours or so), which stem from the addition of framework + utilities to allow FreeBSD to bind a process to a specific CPU (via userland utility). See the most recent commit message (it applies to more than just this file, however): http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/cpuset/cpuset.c -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |