Re: another 2.1.21 compile problem

Jes Degn Soerensen (jds@kom.auc.dk)
15 Jan 1997 13:48:00 +0100


>>>>> "Derkjan" == Derkjan de Haan <derkjan@student.utwente.nl> writes:

Derkjan> I get a lot of errors when compiling the kernel; there are
Derkjan> more like these, all from ide.c but with different line
Derkjan> numbers.

Derkjan> ide.c:2831: parse error before XPORT_SYMTAB_not_defined'

I bet you were trying to compile a kernel without module support ;)
I ran into the same problem while compiling a m68k kernel.

Please try this patch, I'm not sure if its the right thing to do, but
at least it works for me.

Jes

--- native-2.1.21/include/linux/module.h Tue Jan 14 12:40:08 1997
+++ linux-2.1.21/include/linux/module.h Wed Jan 15 01:14:26 1997
@@ -221,7 +221,7 @@

/* We want the EXPORT_SYMBOL tag left intact for recognition. */

-#elif !defined(EXPORT_SYMTAB)
+#elif !defined(EXPORT_SYMTAB) && defined(CONFIG_MODULES)

#define __EXPORT_SYMBOL(sym,str) error EXPORT_SYMTAB_not_defined
#define EXPORT_SYMBOL(var) error EXPORT_SYMTAB_not_defined