From owner-freebsd-stable@FreeBSD.ORG Tue Mar 8 08:29:58 2011 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 115F11065670 for ; Tue, 8 Mar 2011 08:29:58 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C66068FC0C for ; Tue, 8 Mar 2011 08:29:57 +0000 (UTC) Received: by iyj12 with SMTP id 12so5450890iyj.13 for ; Tue, 08 Mar 2011 00:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:subject:message-id :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=4fmWiPf0k/xj3mNzFL1D3014Y9Ch0oN3kMHcqdiSYqE=; b=ilneVwQdzH2N9pHe++r1aV7hEBVoUBFrU2YWv0dsjTp2gVamZ/ynALCtQrz3QsizFz 0f46LYTjruIirI2cuGKbcv75qHCK0f+nJ3mZbpsFztTlnBF1cfNfOxKq4fYJgkvJe0Oh S5RwNOQ8BX+DWg1dQXy01LZUgVbh+d5QXAem0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; b=YfoiDTjdQ768jLfSBbDXypDQ1DLD2WeUUw3OCY59ui/X/52O68vWm3pD+duiZ45VaU P3xiXjSDi54m3M3sfmYIFbYUmIVnJe0zbh3ZjUOnLg/Ao52MXOLdWzBVahJSSZxNbfeV ExXu+Vc4wc9JRMvnm7UtD0HVJAvrEl9LVXcAQ= Received: by 10.43.55.81 with SMTP id vx17mr4108115icb.52.1299572996933; Tue, 08 Mar 2011 00:29:56 -0800 (PST) Received: from disbatch.dataix.local (adsl-99-181-148-141.dsl.klmzmi.sbcglobal.net [99.181.148.141]) by mx.google.com with ESMTPS id d21sm433737ibg.9.2011.03.08.00.29.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 00:29:55 -0800 (PST) Sender: "J. Hellenthal" Date: Tue, 8 Mar 2011 03:29:46 -0500 From: "J. Hellenthal" To: FreeBSD Stable Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: sys/x86/isa/clock.c:189: undefined reference to `cyclic_clock_func' 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: Tue, 08 Mar 2011 08:29:58 -0000 Hello Stable@, Compiling a kernel on stable/8 with DTrace support is failing with the above subject line upon linking kernel.debug. The text leading up to this is: ... ctfconvert -L VERSION -g vers.o linking kernel.debug clock.o(.text+0x84c): In function `clkintr': /usr/src/sys/x86/isa/clock.c:189: undefined reference to `cyclic_clock_func' And upon inspection of clock.c: #ifdef KDTRACE_HOOKS #include #endif And in clkintr(): #ifdef KDTRACE_HOOKS /* * If the DTrace hooks are configured and a callback function * has been registered, then call it to process the high speed * timers. */ int cpu = PCPU_GET(cpuid); if (cyclic_clock_func[cpu] != NULL) (*cyclic_clock_func[cpu])(frame); #endif It seems for some odd reason that is being forgotten when it comes time for linking ? What is going on here ? Id like to just remove the ifdef's for KDTRACE_HOOKS just to get the build to finish but in the case that I want to build another kernel without dtrace I would have to add them back. Anyone have a better fitting solution to this ? Would it be just as good to re-ifdef this to ?WITH_CTF? instead. Anyway... this is latest code from stable/8 on i386. And yes options KDTRACE_HOOKS is in the kernel config. And the command that caused all this: ( make kernel WITH_CTF=1 ) -- Regards, J. Hellenthal (0x89D8547E) JJH48-ARIN