Re: Linux-2.4.11-pre5

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sun Oct 07 2001 - 15:49:09 EST


I get the error below. Must likely there's a problem when you build a
kernel without module support (my .config is attached).

...
gcc -D__KERNEL__ -I/home/bunk/linux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -c -o exec_domain.o exec_domain.c
exec_domain.c: In function `lookup_exec_domain':
exec_domain.c:80: warning: unused variable `buffer'
exec_domain.c: At top level:
exec_domain.c:234: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:234: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:234: warning: data definition has no type or storage class
exec_domain.c:235: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:235: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:235: warning: data definition has no type or storage class
exec_domain.c:236: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:236: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:236: warning: data definition has no type or storage class
exec_domain.c:287: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:287: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:287: warning: data definition has no type or storage class
exec_domain.c:288: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:288: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:288: warning: data definition has no type or storage class
exec_domain.c:289: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:289: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:289: warning: data definition has no type or storage class
exec_domain.c:290: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:290: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:290: warning: data definition has no type or storage class
exec_domain.c:291: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:291: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:291: warning: data definition has no type or storage class
exec_domain.c:292: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:292: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
exec_domain.c:292: warning: data definition has no type or storage class
make[2]: *** [exec_domain.o] Error 1
make[2]: Leaving directory `/home/bunk/linux/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/home/bunk/linux/linux/kernel'
make: *** [_dir_kernel] Error 2

This seems to be triggered by the following change in pre5:

--- linux/include/linux/module.h
+++ linux/include/linux/module.h
@@ -348,6 +348,13 @@
 #define EXPORT_SYMBOL_NOVERS(var) error config_must_be_included_before_module
 #define EXPORT_SYMBOL_GPL(var) error config_must_be_included_before_module

+#elif !defined(EXPORT_SYMTAB)
+
+#define __EXPORT_SYMBOL(sym,str) error this_object_must_be_defined_as_export_objs_in_the_Makefile
+#define EXPORT_SYMBOL(var) error this_object_must_be_defined_as_export_objs_in_the_Makefile
+#define EXPORT_SYMBOL_NOVERS(var) error this_object_must_be_defined_as_export_objs_in_the_Makefile
+#define EXPORT_SYMBOL_GPL(var) error this_object_must_be_defined_as_export_objs_in_the_Makefile
+
 #elif !defined(CONFIG_MODULES)

 #define __EXPORT_SYMBOL(sym,str)

cu
Adrian

-- 

Get my GPG key: finger bunk@debian.org | gpg --import

Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:46 EST