John Indra <[EMAIL PROTECTED]> writes:
> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -fformat-extensions -ansi  -nostdinc -I-  -I. -I../.. -I../../dev
> -I../../../include -I../../contrib/dev/acpica/Subsystem/Include  -D_KERNEL
> -include opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
> linking kernel
> agp_amd.o: In function `agp_amd_alloc_gatt':
> agp_amd.o(.text+0x67): undefined reference to `M_AGP'
> agp_amd.o(.text+0x89): undefined reference to `M_AGP'
> agp_amd.o(.text+0xd5): undefined reference to `M_AGP'
> agp_amd.o(.text+0x105): undefined reference to `M_AGP'
> agp_amd.o(.text+0x112): undefined reference to `M_AGP'
> agp_amd.o(.text+0x234): more undefined references to `M_AGP' follow
> *** Error code 1

Can you try the appended patch and tell us how it goes?

/assar

Index: agp.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp.c,v
retrieving revision 1.9
diff -u -w -u -w -r1.9 agp.c
--- agp.c       2000/12/12 20:24:36     1.9
+++ agp.c       2000/12/19 08:22:01
@@ -59,7 +59,7 @@
 
 MODULE_VERSION(agp, 1);
 
-static MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
+MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
 
 #define CDEV_MAJOR     148
                                /* agp_drv.c */


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to