Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 03:30:06 -0500
From:      Nikolas Britton <nikolas.britton@gmail.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        FreeBSD - Questions <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD 6
Message-ID:  <ef10de9a050730013013396913@mail.gmail.com>
In-Reply-To: <20050728194329.GB12017@xor.obsecurity.org>
References:  <ef10de9a05072613007ac60130@mail.gmail.com> <20050728194329.GB12017@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/28/05, Kris Kennaway <kris@obsecurity.org> 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#



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef10de9a050730013013396913>