From owner-freebsd-current@FreeBSD.ORG Thu Jun 7 17:43:45 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0078D106567A for ; Thu, 7 Jun 2012 17:43:45 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 4BF9C8FC15 for ; Thu, 7 Jun 2012 17:43:44 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA22722; Thu, 07 Jun 2012 20:43:41 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ScgkH-000DCh-K5; Thu, 07 Jun 2012 20:43:41 +0300 Message-ID: <4FD0E84B.4030000@FreeBSD.org> Date: Thu, 07 Jun 2012 20:43:39 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120503 Thunderbird/12.0.1 MIME-Version: 1.0 To: Ryan Stone References: <4FD06011.5000805@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current Subject: Re: dtrace: identifier redefined: cpu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 17:43:45 -0000 on 07/06/2012 18:18 Ryan Stone said the following: > On Thu, Jun 7, 2012 at 4:02 AM, Andriy Gapon wrote: >> >> I am getting the following error while trying to execute any DTrace script on a >> freshly updated CURRENT system (both kernel and world). >> Example: >> >> dtrace: failed to compile script sysctl_kern_proc.d: "/usr/lib/dtrace/sched.d", >> line 70: identifier redefined: cpu >> current: inline definition >> previous: scalar >> -- >> Andriy Gapon > > Hm, I cannot reproduce this on the following system, freshly built this morning: > FreeBSD vm-head 10.0-CURRENT FreeBSD 10.0-CURRENT #3 r236713: Thu Jun > 7 10:30:45 EDT 2012 > rstone@rstone-laptop:/home/rstone/freebsd/obj/usr/home/rstone/freebsd/head_2/sys/GENERIC > amd64 > > I don't even have a /usr/lib/dtrace/sched.d. Do you have some local > changes that is installing that? Bingo! The file is not there on any of recently installed machines. This machine has been going through upgrades for several years. I must have manually placed that file there while hacking on something with DTrace (although now I do not have any recollection of when and why). So, rm to the rescue :-) Thank you. -- Andriy Gapon