On 7/28/05, Kris Kennaway <[EMAIL PROTECTED]> wrote: > On Tue, Jul 26, 2005 at 03:00:49PM -0500, Nikolas Britton wrote: > > > > The kernel build failed when it tired to compile the r128drm device. > > Show us the error. >
cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../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 vnode_if.c touch hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c MAKE=make sh ../../../conf/newvers.sh GENERIC cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../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 r128_cce.o(.text+0x354): In function `r128_do_cleanup_cce': : undefined reference to `drm_free' r128_cce.o(.text+0x372): In function `r128_do_cleanup_cce': : undefined reference to `drm_irq_uninstall' r128_cce.o(.text+0x394): In function `r128_do_cleanup_cce': : undefined reference to `drm_ioremapfree' r128_cce.o(.text+0x3a8): In function `r128_do_cleanup_cce': : undefined reference to `drm_ati_pcigart_cleanup' r128_cce.o(.text+0x3d7): In function `r128_do_cleanup_cce': : undefined reference to `drm_ioremapfree' r128_cce.o(.text+0x3e3): In function `r128_do_cleanup_cce': : undefined reference to `drm_ioremapfree' r128_cce.o(.text+0x400): In function `r128_cce_init': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0x4ab): In function `r128_cce_init': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0x4bb): In function `r128_cce_init': : undefined reference to `drm_alloc' r128_cce.o(.text+0x504): In function `r128_cce_init': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0x575): In function `r128_cce_init': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0x7e2): In function `r128_cce_init': : undefined reference to `drm_order' r128_cce.o(.text+0x851): In function `r128_cce_init': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0x8e0): In function `r128_cce_init': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0xa1d): In function `r128_cce_init': : undefined reference to `drm_ioremap' r128_cce.o(.text+0xa2f): In function `r128_cce_init': : undefined reference to `drm_ioremap' r128_cce.o(.text+0xa41): In function `r128_cce_init': : undefined reference to `drm_ioremap' r128_cce.o(.text+0xab3): In function `r128_cce_init': : undefined reference to `drm_ati_pcigart_init' r128_cce.o(.text+0xc08): In function `r128_cce_start': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0xc87): In function `r128_cce_start': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0xd13): In function `r128_cce_stop': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0xe14): In function `r128_cce_reset': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0xea1): In function `r128_cce_reset': : undefined reference to `drm_debug_flag' r128_cce.o(.text+0xedd): more undefined references to `drm_debug_flag' follow r128_drv.o(.text+0xc): In function `r128_probe': : undefined reference to `drm_probe' r128_drv.o(.text+0xca): In function `r128_attach': : undefined reference to `drm_attach' r128_drv.o(.data+0x48): undefined reference to `drm_devclass' r128_drv.o(.data+0x94): undefined reference to `drm_detach' r128_irq.o(.text+0x48): In function `r128_driver_irq_handler': : undefined reference to `drm_vbl_send_signals' r128_state.o(.text+0xb): In function `r128_emit_clip_rects': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x2d0): In function `r128_cce_dispatch_flip': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x523): In function `r128_cce_dispatch_indirect': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x7e4): In function `r128_cce_clear': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x906): In function `r128_cce_clear': : undefined reference to `drm_debug_flag' r128_state.o(.text+0xc0f): more undefined references to `drm_debug_flag' follow r128_state.o(.text+0x39d3): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x39f5): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x3bc8): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x3bde): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x3d85): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x3d9c): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x3def): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x3f1c): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x3f32): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x3fb3): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x3fc3): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x3fde): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x4052): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x41bd): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x41cd): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x41dd): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x42ac): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x441f): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x442f): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x4444): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x4454): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x4467): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x447f): In function `r128_cce_depth': : undefined reference to `drm_alloc' r128_state.o(.text+0x4588): In function `r128_cce_depth': : undefined reference to `drm_free' r128_state.o(.text+0x46d4): In function `r128_cce_stipple': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x4907): In function `r128_cce_indirect': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x4b92): In function `r128_getparam': : undefined reference to `drm_debug_flag' r128_state.o(.text+0x4c5b): In function `r128_driver_prerelease': : undefined reference to `drm_debug_flag' *** Error code 1 Stop in /usr/src/sys/i386/compile/GENERIC. spectra# ------------------------------------------------ spectra# diff GENERIC.old GENERIC 30c30 < makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols --- > #makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 67,73c67,73 < options KDB # Enable kernel debugger support. < options DDB # Support DDB. < options GDB # Support remote GDB. < options INVARIANTS # Enable calls of extra sanity checking < options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS < options WITNESS # Enable checks to detect deadlocks and cycles < options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed --- > #options KDB # Enable kernel debugger support. > #options DDB # Support DDB. > #options GDB # Support remote GDB. > #options INVARIANTS # Enable calls of extra sanity checking > #options INVARIANT_SUPPORT # Extra sanity checks of internal > structures, required by INVARIANTS > #options WITNESS # Enable checks to detect deadlocks and > cycles > #options WITNESS_SKIPSPIN # Don't run witness on spinlocks for > speed 152,154c152,160 < device vga # VGA video card driver < < device splash # Splash screen and screen saver support --- > # Video support > device agp # AGP GART, support several AGP chipsets > device "r128drm" # ATI Rage 128 Direct Rendering Module > #options DRM_DEBUG # Debugging support for Direct Rendering > Modules > device vga # VGA video card driver > options VESA # VESA BIOS support > #options VESA_DEBUG # VESA Debugging Support > options SC_PIXEL_MODE # Console raster text mode (VESA graphic > modes) > device splash # Splash screen and screen saver support 163,164d168 < < device agp # support several AGP chipsets spectra# ------------------------------------------------ spectra# more /etc/make.conf #CPUTYPE=p2 #KERNCONF=SPECTRA #COPTFLAGS= -Os -pipe BATCH=yes #MAKE_IDEA=yes PERL_VER=5.8.7 PERL_VERSION=5.8.7 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo spectra# _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"