Re: buildkernel failure: undefined reference

From: Giorgos Keramidas <keramida_at_freebsd.org>
Date: Tue, 6 Sep 2005 20:38:26 +0300
On 2005-09-06 13:23, Robert Huff <roberthuff_at_rcn.com> 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.
Received on Tue Sep 06 2005 - 15:38:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC