updating to RELENG_6 fails on radeon DRM

Karol Kwiatkowski freebsd at orchid.homeunix.org
Thu Sep 22 00:01:11 PDT 2005


[resent to -questions, forgot to include it first time]


Jorge Mario G. Mazo wrote:
> Hi there
> I'm trying upgrading to upgrade from 5.4 to 6
> make buildworld runs fine
> but when I get to compile I get an error
> 
> Note I have tried with different(including empty)
> make.conf configurations
> also I'm using the same kernel I've been using since
> 5.2
> 
> 
> ...
> cc -c -O2 -pipe -fno-strict-aliasing -march=pentium4
> -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes  -Wmissing-prototypes
> -Wpointer-arith -Winline -Wcast-qual 
> -fformat-extensions -std=c99  -nostdinc -I-  -I.
> -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
> -I/usr/src/sys/contrib/altq
> -I/usr/src/sys/contrib/ipfilter
> -I/usr/src/sys/contrib/pf
> -I/usr/src/sys/contrib/dev/ath
> -I/usr/src/sys/contrib/dev/ath/freebsd
> -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa
> -D_KERNEL -include opt_global.h -fno-common
> -finline-limit=8000 --param inline-unit-growth=100
> --param large-function-growth=1000 
> -mno-align-long-strings -mpreferred-stack-boundary=2 
> -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding
> -Werror  vers.c
> linking kernel
> r300_cmdbuf.o(.text+0x19): In function
> `r300_emit_cliprects':
> : undefined reference to `drm_debug_flag'
> r300_cmdbuf.o(.text+0x866): In function
> `r300_do_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> r300_cmdbuf.o(.text+0xb80): In function
> `r300_do_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> r300_cmdbuf.o(.text+0xc3b): In function
> `r300_do_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> r300_cmdbuf.o(.text+0xcd2): In function
> `r300_do_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> r300_cmdbuf.o(.text+0xd5e): more undefined references
> to `drm_debug_flag' followradeon_cp.o(.text+0xc2e): In
> function `radeon_do_cleanup_cp':
> : undefined reference to `drm_ioremapfree'
> radeon_cp.o(.text+0xc59): In function
> `radeon_do_cleanup_cp':
> : undefined reference to `drm_ioremapfree'
> radeon_cp.o(.text+0xc93): In function
> `radeon_do_cleanup_cp':
> : undefined reference to `drm_ioremapfree'
> radeon_cp.o(.text+0xcb8): In function
> `radeon_do_cleanup_cp':
> : undefined reference to `drm_ati_pcigart_cleanup'
> radeon_cp.o(.text+0xce9): In function
> `radeon_do_cleanup_cp':
> : undefined reference to `drm_irq_uninstall'
> radeon_cp.o(.text+0xdcc): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0xe07): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0xe8b): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x10e8): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x11a7): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x11e3): In function
> `radeon_cp_init':
> : undefined reference to `drm_order'
> radeon_cp.o(.text+0x12d9): In function
> `radeon_cp_init':
> : undefined reference to `drm_ati_pcigart_init'
> radeon_cp.o(.text+0x1344): In function
> `radeon_cp_init':
> : undefined reference to `drm_ioremap'
> radeon_cp.o(.text+0x135f): In function
> `radeon_cp_init':
> : undefined reference to `drm_ioremap'
> radeon_cp.o(.text+0x137a): In function
> `radeon_cp_init':
> : undefined reference to `drm_ioremap'
> radeon_cp.o(.text+0x1402): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x1439): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x14a5): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x14e2): In function
> `radeon_cp_init':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x1620): In function
> `radeon_cp_start':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x16ac): more undefined references
> to `drm_debug_flag' follow
> radeon_cp.o(.text+0x2280): In function
> `radeon_preinit':
> : undefined reference to `drm_alloc'
> radeon_cp.o(.text+0x22c3): In function
> `radeon_preinit':
> : undefined reference to `drm_device_is_agp'
> radeon_cp.o(.text+0x22d9): In function
> `radeon_preinit':
> : undefined reference to `drm_device_is_pcie'
> radeon_cp.o(.text+0x22ed): In function
> `radeon_preinit':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x2363): In function
> `radeon_postcleanup':
> : undefined reference to `drm_debug_flag'
> radeon_cp.o(.text+0x238e): In function
> `radeon_postcleanup':
> : undefined reference to `drm_free'
> radeon_drv.o(.text+0x15): In function `radeon_probe':
> : undefined reference to `drm_probe'
> radeon_drv.o(.text+0xf8): In function `radeon_attach':
> : undefined reference to `drm_attach'
> radeon_drv.o(.data+0x48): undefined reference to
> `drm_devclass'
> radeon_drv.o(.data+0x94): undefined reference to
> `drm_detach'
> radeon_irq.o(.text+0x85): In function
> `radeon_driver_irq_handler':
> : undefined reference to `drm_vbl_send_signals'
> radeon_mem.o(.text+0x72): In function
> `radeon_mem_release':
> : undefined reference to `drm_free'
> radeon_mem.o(.text+0xb9): In function
> `radeon_mem_takedown':
> : undefined reference to `drm_free'
> radeon_mem.o(.text+0xd7): In function
> `radeon_mem_takedown':
> : undefined reference to `drm_free'
> radeon_mem.o(.text+0x252): In function
> `radeon_mem_alloc':
> : undefined reference to `drm_alloc'
> radeon_mem.o(.text+0x29c): In function
> `radeon_mem_alloc':
> : undefined reference to `drm_alloc'
> radeon_mem.o(.text+0x3ce): In function
> `radeon_mem_free':
> : undefined reference to `drm_free'
> radeon_mem.o(.text+0x3f5): In function
> `radeon_mem_free':
> : undefined reference to `drm_free'
> radeon_mem.o(.text+0x4a8): In function
> `radeon_mem_init_heap':
> : undefined reference to `drm_alloc'
> radeon_mem.o(.text+0x4c7): In function
> `radeon_mem_init_heap':
> : undefined reference to `drm_alloc'
> radeon_mem.o(.text+0x4e5): In function
> `radeon_mem_init_heap':
> : undefined reference to `drm_free'
> radeon_state.o(.text+0xf): In function
> `radeon_emit_state':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x45): In function
> `radeon_emit_state':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8f): In function
> `radeon_emit_state':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x581): In function
> `radeon_emit_state':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x65f): In function
> `radeon_emit_state':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8bc): more undefined references
> to `drm_debug_flag' follow
> radeon_state.o(.text+0x4732): In function
> `radeon_cp_vertex':
> : undefined reference to `drm_find_file_by_proc'
> radeon_state.o(.text+0x4759): In function
> `radeon_cp_vertex':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x4b81): In function
> `radeon_cp_indices':
> : undefined reference to `drm_find_file_by_proc'
> radeon_state.o(.text+0x4bc2): In function
> `radeon_cp_indices':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x5188): In function
> `radeon_cp_texture':
> : undefined reference to `drm_find_file_by_proc'
> radeon_state.o(.text+0x51b2): In function
> `radeon_cp_texture':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x5327): In function
> `radeon_cp_texture':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x5571): In function
> `radeon_cp_texture':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x55e3): In function
> `radeon_cp_texture':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x5b1f): In function
> `radeon_cp_texture':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x5c79): more undefined
> references to `drm_debug_flag' follow
> radeon_state.o(.text+0x62c9): In function
> `radeon_cp_vertex2':
> : undefined reference to `drm_find_file_by_proc'
> radeon_state.o(.text+0x6319): In function
> `radeon_cp_vertex2':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6929): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_find_file_by_proc'
> radeon_state.o(.text+0x6a06): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6aa0): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_free'
> radeon_state.o(.text+0x6aaa): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6b66): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6cdb): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6daf): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6e03): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x6f39): more undefined
> references to `drm_debug_flag' follow
> radeon_state.o(.text+0x71a1): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_free'
> radeon_state.o(.text+0x71cf): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7338): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x73b1): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7421): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7480): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7540): more undefined
> references to `drm_debug_flag' follow
> radeon_state.o(.text+0x75e2): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_alloc'
> radeon_state.o(.text+0x7694): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_free'
> radeon_state.o(.text+0x76ee): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x77be): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x78c0): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7a12): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7a67): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x7dad): more undefined
> references to `drm_debug_flag' follow
> radeon_state.o(.text+0x85e4): In function
> `radeon_cp_cmdbuf':
> : undefined reference to `drm_free'
> radeon_state.o(.text+0x87c8): In function
> `radeon_cp_getparam':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x89c3): In function
> `radeon_cp_setparam':
> : undefined reference to `drm_find_file_by_proc'
> radeon_state.o(.text+0x8a15): In function
> `radeon_cp_setparam':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8a5b): In function
> `radeon_cp_setparam':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8acc): In function
> `radeon_cp_setparam':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8c46): In function
> `radeon_driver_prerelease':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8caf): In function
> `radeon_driver_open_helper':
> : undefined reference to `drm_debug_flag'
> radeon_state.o(.text+0x8cc7): In function
> `radeon_driver_open_helper':
> : undefined reference to `drm_alloc'
> radeon_state.o(.text+0x8d41): In function
> `radeon_driver_free_filp_priv':
> : undefined reference to `drm_free'
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/VERDE.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.


It seems you're missing 'device drm' in you kernel config. Have a look
at NOTES file (I assume it's i386):

> $ grep -i drm /usr/src/sys/i386/conf/NOTES
> device          drm             # DRM core module required by DRM drivers
> device          mach64drm       # ATI Rage Pro, Rage Mobility P/M, Rage XL
> device          mgadrm          # AGP Matrox G200, G400, G450, G550
> device          r128drm         # ATI Rage 128
> device          radeondrm       # ATI Radeon
> device          sisdrm          # SiS 300/305, 540, 630
> device          tdfxdrm         # 3dfx Voodoo 3/4/5 and Banshee
> options         DRM_DEBUG       # Include debug printfs (slow)

If my guess doesn't work please include your kernel config and output
of 'uname -spr'.

Regards,

Karol


-- 
Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>


More information about the freebsd-questions mailing list