Re: 2.2.18pre* CONFIG_AGP=Y compile problem

From: Arjan van de Ven (arjan@fenrus.demon.nl)
Date: Tue Sep 12 2000 - 14:47:01 EST


In article <Pine.LNX.4.21.0009121550150.30704-100000@nuke.sitek.net> you wrote:

> Hello !

> There is error during "make bzImage" 2.2.18pre(3,4,5) with CONFIG_AGP=Y.
> I have it on both Slackware 7.0 and 7.1.
> Error message follows.

[snip]
> init/main.o: In function `do_basic_setup':
> init/main.o(.text.init+0xe02): undefined reference to `agp_initialize'
> init/main.o(.data.init+0x144): undefined reference to `agp_setup'
> make: *** [vmlinux] Error 1

Could you try the patch below?

Greetings,
  Arjan van de Ven

--- /mnt/raid/1/2.2/linux-2.2.18p6/init/main.c Tue Sep 12 21:11:23 2000
+++ linux/init/main.c Tue Sep 12 21:43:34 2000
@@ -401,8 +401,7 @@
 #endif
 
 #ifdef CONFIG_AGP
-extern int agp_initialize (void);
-extern void agp_setup(char *str, int *ints);
+extern int agp_init (void);
 #endif
 
 /*
@@ -1059,9 +1058,6 @@
 #ifdef CONFIG_BLK_CPQ_DA
         { "smart2=", cpqarray_setup },
 #endif
-#ifdef CONFIG_AGP
- { "agp_try_unsupported=", agp_setup},
-#endif
         { 0, 0 }
 };
 
@@ -1559,7 +1555,7 @@
         nubus_init();
 #endif
 #ifdef CONFIG_AGP
- agp_initialize ();
+ agp_init();
 #endif
 
         /* Networking initialization needs a process context */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:19 EST