* [PATCH] 2.4.10-ac3: fs/cramfs/Makefile
@ 2001-10-02 22:14 Frank Davis
2001-10-02 22:33 ` Alan Cox
2001-10-03 4:05 ` Keith Owens
0 siblings, 2 replies; 3+ messages in thread
From: Frank Davis @ 2001-10-02 22:14 UTC (permalink / raw)
To: alan; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
Hello,
The attached patch against 2.4.10-ac3 addresses the following issue
since 2.4.9-ac17:
depmod: *** Unresolved symbols in
/lib/modules/2.4.9-ac17/kernel/fs/cramfs/cramfs/cramfs.o
depmod: zlib_fs_inflateInit_
depmod: zlib_fs_inflateEnd
depmod: zlib_fs_inflate_workspacesize
depmod: zlib_fs_inflate
depmod: zlib_fs_inflateReset
Regards,
Frank
[-- Attachment #2: CRAMFS --]
[-- Type: text/plain, Size: 259 bytes --]
--- fs/cramfs/Makefile.old Tue Oct 2 17:44:56 2001
+++ fs/cramfs/Makefile Tue Oct 2 17:46:51 2001
@@ -4,7 +4,7 @@
O_TARGET := cramfs.o
-obj-y := inode.o uncompress.o
+obj-y := inode.o uncompress.o ../inflate_fs/inflate_fs.o
obj-m := $(O_TARGET)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] 2.4.10-ac3: fs/cramfs/Makefile
2001-10-02 22:14 [PATCH] 2.4.10-ac3: fs/cramfs/Makefile Frank Davis
@ 2001-10-02 22:33 ` Alan Cox
2001-10-03 4:05 ` Keith Owens
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-10-02 22:33 UTC (permalink / raw)
To: fdavis; +Cc: alan, linux-kernel
> O_TARGET := cramfs.o
>
> -obj-y := inode.o uncompress.o
> +obj-y := inode.o uncompress.o ../inflate_fs/inflate_fs.o
>
> obj-m := $(O_TARGET)
ugghhhhhhhh
subdir-$(CONFIG_ZLIB_FS_INFLATE) += inflate_fs
So all you need to do is ensure CONFIG_ZLIB_FS_INFLATE is set right for
cramfs
and the logic in fs/config.in looks irght to me, but make you want to check
it
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.4.10-ac3: fs/cramfs/Makefile
2001-10-02 22:14 [PATCH] 2.4.10-ac3: fs/cramfs/Makefile Frank Davis
2001-10-02 22:33 ` Alan Cox
@ 2001-10-03 4:05 ` Keith Owens
1 sibling, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-10-03 4:05 UTC (permalink / raw)
To: fdavis; +Cc: alan, linux-kernel
On Tue, 02 Oct 2001 18:14:38 -0400,
Frank Davis <fdavis@si.rr.com> wrote:
> The attached patch against 2.4.10-ac3 addresses the following issue
>since 2.4.9-ac17:
>
>depmod: *** Unresolved symbols in
>/lib/modules/2.4.9-ac17/kernel/fs/cramfs/cramfs/cramfs.o
>depmod: zlib_fs_inflateInit_
>depmod: zlib_fs_inflateEnd
>depmod: zlib_fs_inflate_workspacesize
>depmod: zlib_fs_inflate
>depmod: zlib_fs_inflateReset
>
>--- fs/cramfs/Makefile.old Tue Oct 2 17:44:56 2001
>+++ fs/cramfs/Makefile Tue Oct 2 17:46:51 2001
>@@ -4,7 +4,7 @@
>
> O_TARGET := cramfs.o
>
>-obj-y := inode.o uncompress.o
>+obj-y := inode.o uncompress.o ../inflate_fs/inflate_fs.o
Double plus ungood! The failing combinations are
CONFIG_CRAMFS=m
CONFIG_ISO9660_FS=y
CONFIG_ZISOFS=y
cramfs.o has unresolved references, or
CONFIG_CRAMFS=y
CONFIG_ISO9660_FS=m
CONFIG_ZISOFS=y
isofs.o has unresolved references. Any mixture of built in and modular
users of zlib results in zlib symbols not being available to modules.
The correct fix is
Index: 10.30/fs/inflate_fs/inflate_syms.c
--- 10.30/fs/inflate_fs/inflate_syms.c Sat, 22 Sep 2001 14:41:20 +1000 kaos (linux-2.4/o/f/51_inflate_sy 1.1 644)
+++ 10.30(w)/fs/inflate_fs/inflate_syms.c Wed, 03 Oct 2001 13:58:59 +1000 kaos (linux-2.4/o/f/51_inflate_sy 1.1 644)
@@ -19,10 +19,3 @@ EXPORT_SYMBOL(zlib_fs_inflateSync);
EXPORT_SYMBOL(zlib_fs_inflateReset);
EXPORT_SYMBOL(zlib_fs_adler32);
EXPORT_SYMBOL(zlib_fs_inflateSyncPoint);
-
-static int __init init_zlib_fs(void)
-{
- return 0;
-}
-
-module_init(init_zlib_fs)
Index: 10.30/fs/inflate_fs/Makefile
--- 10.30/fs/inflate_fs/Makefile Sat, 22 Sep 2001 14:41:20 +1000 kaos (linux-2.4/p/f/9_Makefile 1.1 644)
+++ 10.30(w)/fs/inflate_fs/Makefile Wed, 03 Oct 2001 13:58:57 +1000 kaos (linux-2.4/p/f/9_Makefile 1.1 644)
@@ -25,7 +25,7 @@ O_TARGET := inflate_fs.o
export_objs := inflate_syms.o
obj-y := adler32.o infblock.o infcodes.o inffast.o inflate.o \
- inftrees.o infutil.o
+ inftrees.o infutil.o inflate_syms.o
obj-m := $(O_TARGET)
include $(TOPDIR)/Rules.make
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-10-03 4:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-02 22:14 [PATCH] 2.4.10-ac3: fs/cramfs/Makefile Frank Davis
2001-10-02 22:33 ` Alan Cox
2001-10-03 4:05 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox