2.5.3-dj1: zisofs compile fix

From: Todor Todorov (ttodorov@web.de)
Date: Sat Feb 02 2002 - 12:26:14 EST


Hello there,

I had the problem compiling 2.5.3-dj1 with zisofs included as other
people on that list - same problem, undefined reference in fs/fs.o . I
tried to use the EXPORTS_SYMBOL macro from modules.h and export the
zisofs_cleanup in fs/isofs/compress.c and also added export-objs :=
compress.o in the Makefile. Didn't help. Searching for hints in other
Makefiles which list objects exporting symbols, i noticed that all such
objects are linked first into the target obj, which is not the case with
compress.o. When I moved compress.o first in the obj-y list, the compile
error was gone and this even without EXPORT_SYMBOL(zisofs_cleanup); in
compress.c

Next to say is: I don't know anything about the linux kernel, so I'm not
sure if this is the correct way to fix this issue. It just seems to
work. So use at your own risk until the maintainer fixes it properly.

Cheers,
       Todor


--- linux-2.5.3-dj1/fs/isofs/Makefile Sat Feb 2 10:59:07 2002
+++ linux/fs/isofs/Makefile Sat Feb 2 16:52:59 2002
@@ -9,9 +9,16 @@
 
 O_TARGET := isofs.o
 
-obj-y := namei.o inode.o dir.o util.o rock.o
+ifeq ( $(CONFIG_ZISOFS), y )
+ obj-y := compress.o namei.o inode.o dir.o util.o rock.o
+endif
+
+ifeq ( $(CONFIG_ZISOFS), n )
+ obj-y := namei.o inode.o dir.o util.o rock.o
+endif
+
 obj-$(CONFIG_JOLIET) += joliet.o
-obj-$(CONFIG_ZISOFS) += compress.o
+#obj-$(CONFIG_ZISOFS) += compress.o
 
 obj-m := $(O_TARGET)
 

-
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 : Thu Feb 07 2002 - 21:00:23 EST