public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.3-dj1: zisofs compile fix
@ 2002-02-02 17:26 Todor Todorov
  0 siblings, 0 replies; only message in thread
From: Todor Todorov @ 2002-02-02 17:26 UTC (permalink / raw)
  To: Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

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



[-- Attachment #2: zisofs-compilefix-2.5.3-dj1.patch --]
[-- Type: text/plain, Size: 524 bytes --]

--- 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)
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-02 16:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-02 17:26 2.5.3-dj1: zisofs compile fix Todor Todorov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox