From: Michael Palme <m.palme@goepel.com>
To: linux-mtd@lists.infradead.org
Subject: 2.4.18-rmk7 + CVS jffs2 ld error (zlib)
Date: Thu, 29 Aug 2002 16:07:09 +0200 [thread overview]
Message-ID: <3D6E2A8D.4000502@goepel.com> (raw)
hello...
i know this was discussed some times ago in the list but i'read the old
threads but no success.
i have kernel 2.4.18-rmk7 and i would like to build it with jffs2 from
latest CVS. i have patched /patches/patchin.sh with patch from Henrik
Nordstrom posted today, and applied on the kernel sources. on building i
get lots of errors at the final linking:
arm/tools/chain/bin/arm-uclibc-ld -p -X -T arch/arm/vmlinux.lds
arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o
init/version.o --start-group arch/arm/kernel/kernel.o arch/arm/mm/mm.o
arch/arm/mach-sa1100/sa1100.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
drivers/serial/serial.o drivers/char/char.o drivers/block/block.o
drivers/misc/misc.o drivers/net/net.o drivers/media/media.o
drivers/mtd/mtdlink.o net/network.o arch/arm/nwfpe/math-emu.o
arch/arm/lib/lib.a /usr/arm/krnl-2.4.18-rmk7/lib/lib.a --end-group -o
vmlinux
fs/fs.o: In function `jffs2_zlib_compress':
fs/fs.o(.text+0x2ab58): undefined reference to `zlib_deflateInit_'
fs/fs.o(.text+0x2abb0): undefined reference to `zlib_deflate'
fs/fs.o(.text+0x2abbc): undefined reference to `zlib_deflateEnd'
fs/fs.o(.text+0x2ac3c): undefined reference to `zlib_deflate'
fs/fs.o(.text+0x2ac78): undefined reference to `zlib_deflateEnd'
fs/fs.o: In function `jffs2_zlib_decompress':
fs/fs.o(.text+0x2ad4c): undefined reference to `zlib_inflateInit_'
fs/fs.o(.text+0x2ad78): undefined reference to `zlib_inflate'
fs/fs.o(.text+0x2ad98): undefined reference to `zlib_inflateEnd'
fs/fs.o: In function `jffs2_garbage_collect_thread':
fs/fs.o(.text+0x363a0): undefined reference to `set_user_nice'
fs/fs.o: In function `jffs2_zlib_init':
fs/fs.o(.text.init+0x16b8): undefined reference to
`zlib_deflate_workspacesize'
fs/fs.o(.text.init+0x16d8): undefined reference to
`zlib_inflate_workspacesize'
fs/fs.o(.text.init+0x1700): undefined reference to
`zlib_inflate_workspacesize'
fs/fs.o(.text.init+0x1720): undefined reference to
`zlib_deflate_workspacesize'
make: *** [vmlinux] Error 1
so i grepped around in the list archive and found a possible solution to
remove compr_zlib.o from COMPR_OBJS in jffs2/Makefile. Now after
rebuilding i get:
/arm/tools/chain/bin/arm-uclibc-ld -p -X -T arch/arm/vmlinux.lds
arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o
init/version.o --start-group arch/arm/kernel/kernel.o arch/arm/mm/mm.o
arch/arm/mach-sa1100/sa1100.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
drivers/serial/serial.o drivers/char/char.o drivers/block/block.o
drivers/misc/misc.o drivers/net/net.o drivers/media/media.o
drivers/mtd/mtdlink.o net/network.o arch/arm/nwfpe/math-emu.o
arch/arm/lib/lib.a /usr/arm/krnl-2.4.18-rmk7/lib/lib.a --end-group -o
vmlinux
fs/fs.o: In function `jffs2_compress':
fs/fs.o(.text+0x29fac): undefined reference to `jffs2_zlib_compress'
fs/fs.o: In function `jffs2_decompress':
fs/fs.o(.text+0x2a0b4): undefined reference to `jffs2_zlib_decompress'
fs/fs.o: In function `jffs2_garbage_collect_thread':
fs/fs.o(.text+0x36040): undefined reference to `set_user_nice'
fs/fs.o: In function `init_jffs2_fs':
fs/fs.o(.text.init+0x1868): undefined reference to `jffs2_zlib_init'
fs/fs.o(.text.init+0x18a4): undefined reference to `jffs2_zlib_exit'
make: *** [vmlinux] Error 1
i tried also to apply the patches from
ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/shared-zlib on top of
my kernel but this is something tricky...
so i would like to know if someone has a fast workaround ???
thanks in advance ... Michael Palme
next reply other threads:[~2002-08-29 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-29 14:07 Michael Palme [this message]
2002-08-29 14:11 ` 2.4.18-rmk7 + CVS jffs2 ld error (zlib) David Woodhouse
2002-08-29 16:10 ` Michael Palme
2002-08-29 16:11 ` David Woodhouse
2002-08-29 17:54 ` Xiaogeng (Shawn) Jin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D6E2A8D.4000502@goepel.com \
--to=m.palme@goepel.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.