From owner-freebsd-current@FreeBSD.ORG Wed Nov 28 19:17:50 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4595A16A418; Wed, 28 Nov 2007 19:17:50 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (pointyhat.freebsd.org [IPv6:2001:4f8:fff6::2b]) by mx1.freebsd.org (Postfix) with ESMTP id AC51713C458; Wed, 28 Nov 2007 19:17:48 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <474DBEE6.3040303@FreeBSD.org> Date: Wed, 28 Nov 2007 20:17:58 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: d@delphij.net References: <474DB34A.7000708@delphij.net> In-Reply-To: <474DB34A.7000708@delphij.net> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: jkoshy@FreeBSD.org, FreeBSD Current , MQ Subject: Re: kldload hwpmc.ko fails with link_elf_obj: symbol linker_hwpmc_list_objects undefined 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: Wed, 28 Nov 2007 19:17:50 -0000 Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Dear colleagues, > > With a fresh 7.0-BETA3 build it seems to be unable to load hwpmc.ko into > kernel. I got this: > > link_elf_obj: symbol linker_hwpmc_list_objects undefined > > and it seems that the symbol depends on HWPMC_HOOKS. Shall we provide > some mechanism to prevent building hwpmc.ko if it is not defined, or > make it a default option for GENERIC? Adding it in GENERIC is probably reasonable. Kris