From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 17:38:30 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4896F16A41F for ; Tue, 6 Sep 2005 17:38:30 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FE9E43D53 for ; Tue, 6 Sep 2005 17:38:29 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j86HcRnE008466; Tue, 6 Sep 2005 20:38:27 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.4/8.13.4) with ESMTP id j86HcRr8011239; Tue, 6 Sep 2005 20:38:27 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.4/8.13.4/Submit) id j86HcRDk011238; Tue, 6 Sep 2005 20:38:27 +0300 (EEST) (envelope-from keramida@freebsd.org) X-Authentication-Warning: orion.daedalusnetworks.priv: keramida set sender to keramida@freebsd.org using -f Date: Tue, 6 Sep 2005 20:38:26 +0300 From: Giorgos Keramidas To: Robert Huff Message-ID: <20050906173826.GA93628@orion.daedalusnetworks.priv> References: <17181.53420.661524.694754@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17181.53420.661524.694754@jerusalem.litteratus.org> Cc: freebsd-current@freebsd.org Subject: Re: buildkernel failure: undefined reference 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: Tue, 06 Sep 2005 17:38:30 -0000 On 2005-09-06 13:23, Robert Huff wrote: > > I'm trying to upgrade from -CURRENT(March 29) to > -CURRENT(00:01 Sept 6) and buildkernel fails. Specifically, the > code compiles, but the link phase dies with: > > [...] > linking kernel.debug > mga_dma.o(.text+0xd): In function `mga_do_wait_for_idle': > /usr/src/sys/dev/drm/mga_dma.c:56: undefined reference to `drm_debug_flag' > mga_dma.o(.text+0xa3): In function `mga_do_dma_reset': > /usr/src/sys/dev/drm/mga_dma.c:79: undefined reference to `drm_debug_flag' > mga_dma.o(.text+0x10b): In function `mga_do_dma_flush': > /usr/src/sys/dev/drm/mga_dma.c:109: undefined reference to `drm_debug_flag' > mga_dma.o(.text+0x17b):/usr/src/sys/dev/drm/mga_dma.c:120: undefined reference t > o `drm_debug_flag' > mga_dma.o(.text+0x21a):/usr/src/sys/dev/drm/mga_dma.c:148: undefined reference t > o `drm_debug_flag' > mga_dma.o(.text+0x257):/usr/src/sys/dev/drm/mga_dma.c:149: more undefined refere > nces to `drm_debug_flag' follow > mga_dma.o(.text+0x633): In function `mga_freelist_init': > /usr/src/sys/dev/drm/mga_dma.c:254: undefined reference to `drm_alloc' > mga_dma.o(.text+0x6be):/usr/src/sys/dev/drm/mga_dma.c:265: undefined reference t > o `drm_alloc' > > etc.. > I have examined /usr/src/UPDATING and found noting applicable. > What have I missed? > (make.conf and kernel config are appended.) Your kernel config includes: device mgadrm But it lacks a 'drm' device too. Start over from GENERIC and add one by one your local modifications, carefully making sure all the new options and their dependencies of options are ok.