From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 08:30:08 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C10116A41F for ; Sat, 30 Jul 2005 08:30:08 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B58243D4C for ; Sat, 30 Jul 2005 08:30:07 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so753906wra for ; Sat, 30 Jul 2005 01:30:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T7mTGcq9ldynpZM4nQJnhDlI5QMC1WQx6IRqTRgXyHb7hXDgvcp6DVKoAQS7Zsdl0jvttUWeYa5iZ4iOzFSLkfOdsUBYVQeR+ifSB6+b26vsuRa39yvb/peM3V8giGuWMUXvdSev8Ix8iSXRLNu9xtRtd7roDX3tbwTc5HEbwb4= Received: by 10.54.54.39 with SMTP id c39mr1602858wra; Sat, 30 Jul 2005 01:30:07 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sat, 30 Jul 2005 01:30:06 -0700 (PDT) Message-ID: Date: Sat, 30 Jul 2005 03:30:06 -0500 From: Nikolas Britton To: Kris Kennaway In-Reply-To: <20050728194329.GB12017@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050728194329.GB12017@xor.obsecurity.org> Cc: FreeBSD - Questions Subject: Re: FreeBSD 6 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nikolas Britton List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2005 08:30:08 -0000 On 7/28/05, Kris Kennaway wrote: > On Tue, Jul 26, 2005 at 03:00:49PM -0500, Nikolas Britton wrote: > >=20 > > The kernel build failed when it tired to compile the r128drm device. >=20 > Show us the error. >=20 cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99=20 -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=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -mno-align-long-strings -mpreferred-stack-boundary=3D2 -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=3Dmake 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=3Dc99=20 -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=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -mno-align-long-strings -mpreferred-stack-boundary=3D2 -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' foll= ow 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' fo= llow 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=3D-g # Build kernel with gdb(1) debug = symbols --- > #makeoptions DEBUG=3D-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 chec= king < 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 chec= king > #options INVARIANT_SUPPORT # Extra sanity checks of internal s= tructures, required by INVARIANTS > #options WITNESS # Enable checks to detect deadlocks= and cycles > #options WITNESS_SKIPSPIN # Don't run witness on spinlocks fo= r speed 152,154c152,160 < device vga # VGA video card driver < < device splash # Splash screen and screen saver su= pport --- > # 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=3Dp2 #KERNCONF=3DSPECTRA #COPTFLAGS=3D -Os -pipe BATCH=3Dyes #MAKE_IDEA=3Dyes PERL_VER=3D5.8.7 PERL_VERSION=3D5.8.7 PERL_ARCH=3Dmach NOPERL=3Dyo NO_PERL=3Dyo NO_PERL_WRAPPER=3Dyo spectra#