* unresolved symbols in kernel (jffs2.o from CVS)
@ 2002-04-17 14:24 Andrew Dixon
2002-04-17 14:47 ` Chris Wilson
2002-04-17 14:52 ` Tino Keitel
0 siblings, 2 replies; 3+ messages in thread
From: Andrew Dixon @ 2002-04-17 14:24 UTC (permalink / raw)
To: linux-mtd@lists.infradead.org
Hi Everyone,
I'm trying to compile the latest jffs2 stuff with my 2.4.16 Linux
kernel. I'm trying to keep the jffs2 source separate from Linux (who
wants to track Linux with CVS?) so I'm compiling jffs2 as a modules and
then insmoding jffs2.o. I've symlinked linux/fs/jffs2 to mtd/fs/jffs2
and I've also linked some files from linux/include/linux to
mtd/include/linux. I can now do a:
#make modules
and get a jffs2.o module which I can insmod into my kernel. The problem
is that now I get a list of unresolved kernel symbols:
root@wombat7:~#insmod ./jffs2.o
./jffs2.o: unresolved symbol zlib_inflate
./jffs2.o: unresolved symbol zlib_inflate_workspacesize
./jffs2.o: unresolved symbol zlib_deflate_workspacesize
./jffs2.o: unresolved symbol zlib_inflateInit_
./jffs2.o: unresolved symbol zlib_deflate
./jffs2.o: unresolved symbol zlib_inflateEnd
./jffs2.o: unresolved symbol zlib_deflateInit_
./jffs2.o: unresolved symbol zlib_deflateEnd
root@wombat7:~#grep zlib /proc/ksyms
root@wombat7:~#
I have made a jffs2.o module from the Linux 2.4.16 source and I do not
get these unresolved symbols. Has the zlib stuff moved out of jffs2.o
or something? I think I remember reading something along these lines on
the list.
Anyway, any help that anyone could give me would be greatly appreciated.
Thanks,
Andy
--
Andrew Dixon
Software Engineer
Seranoa Networks
978.897.3434 x231
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unresolved symbols in kernel (jffs2.o from CVS)
2002-04-17 14:24 unresolved symbols in kernel (jffs2.o from CVS) Andrew Dixon
@ 2002-04-17 14:47 ` Chris Wilson
2002-04-17 14:52 ` Tino Keitel
1 sibling, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2002-04-17 14:47 UTC (permalink / raw)
To: Andrew Dixon; +Cc: linux-mtd@lists.infradead.org
Hi Andrew,
I had the exact opposite problem with mtd checked out of CVS today.
Compiling against a 2.4.18 kernel, I had duplicate zlib_* symbols caused
by mtd/fs/jffs2/zlib.o. Removing that module from the list of object files
fixed the problem.
I also fixed various other compile problems relating to crc32.h and some
macros. Is anyone interested in a patch?
Cheers, Chris.
On Wed, 17 Apr 2002, Andrew Dixon wrote:
> Hi Everyone,
>
> I'm trying to compile the latest jffs2 stuff with my 2.4.16 Linux
> kernel. I'm trying to keep the jffs2 source separate from Linux (who
> wants to track Linux with CVS?) so I'm compiling jffs2 as a modules and
> then insmoding jffs2.o. I've symlinked linux/fs/jffs2 to mtd/fs/jffs2
> and I've also linked some files from linux/include/linux to
> mtd/include/linux. I can now do a:
> #make modules
> and get a jffs2.o module which I can insmod into my kernel. The problem
> is that now I get a list of unresolved kernel symbols:
>
> root@wombat7:~#insmod ./jffs2.o
> ./jffs2.o: unresolved symbol zlib_inflate
> ./jffs2.o: unresolved symbol zlib_inflate_workspacesize
> ./jffs2.o: unresolved symbol zlib_deflate_workspacesize
> ./jffs2.o: unresolved symbol zlib_inflateInit_
> ./jffs2.o: unresolved symbol zlib_deflate
> ./jffs2.o: unresolved symbol zlib_inflateEnd
> ./jffs2.o: unresolved symbol zlib_deflateInit_
> ./jffs2.o: unresolved symbol zlib_deflateEnd
> root@wombat7:~#grep zlib /proc/ksyms
> root@wombat7:~#
>
> I have made a jffs2.o module from the Linux 2.4.16 source and I do not
> get these unresolved symbols. Has the zlib stuff moved out of jffs2.o
> or something? I think I remember reading something along these lines on
> the list.
>
> Anyway, any help that anyone could give me would be greatly appreciated.
>
> Thanks,
> Andy
>
>
--
___ __ _
/ __// / ,__(_)_ | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unresolved symbols in kernel (jffs2.o from CVS)
2002-04-17 14:24 unresolved symbols in kernel (jffs2.o from CVS) Andrew Dixon
2002-04-17 14:47 ` Chris Wilson
@ 2002-04-17 14:52 ` Tino Keitel
1 sibling, 0 replies; 3+ messages in thread
From: Tino Keitel @ 2002-04-17 14:52 UTC (permalink / raw)
To: Linux MTD
On Wed, Apr 17, 2002 at 10:24:54 -0400, Andrew Dixon wrote:
> Hi Everyone,
>
> I'm trying to compile the latest jffs2 stuff with my 2.4.16 Linux
> kernel. I'm trying to keep the jffs2 source separate from Linux (who
> wants to track Linux with CVS?) so I'm compiling jffs2 as a modules and
> then insmoding jffs2.o. I've symlinked linux/fs/jffs2 to mtd/fs/jffs2
> and I've also linked some files from linux/include/linux to
> mtd/include/linux. I can now do a:
> #make modules
> and get a jffs2.o module which I can insmod into my kernel. The problem
> is that now I get a list of unresolved kernel symbols:
>
> root@wombat7:~#insmod ./jffs2.o
> ./jffs2.o: unresolved symbol zlib_inflate
> ./jffs2.o: unresolved symbol zlib_inflate_workspacesize
> ./jffs2.o: unresolved symbol zlib_deflate_workspacesize
> ./jffs2.o: unresolved symbol zlib_inflateInit_
> ./jffs2.o: unresolved symbol zlib_deflate
> ./jffs2.o: unresolved symbol zlib_inflateEnd
> ./jffs2.o: unresolved symbol zlib_deflateInit_
> ./jffs2.o: unresolved symbol zlib_deflateEnd
> root@wombat7:~#grep zlib /proc/ksyms
> root@wombat7:~#
The current CVS of JFFS2 uses the shared zlib that is part of the
2.4.19-preX-acY kernel. There is a patch to provide the shared zlib for older
kernels but it seems like JFFS2 also needs other portions of the new
kernels. I tried it with 2.4.18 and it doesn't work.
Regards,
Tino
--
tino.keitel@innominate.com
dipl.-inf. Innominate Security Technologies AG
software engineer networking people
tel: +49.30.6392-3308 http://www.innominate.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-17 15:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-17 14:24 unresolved symbols in kernel (jffs2.o from CVS) Andrew Dixon
2002-04-17 14:47 ` Chris Wilson
2002-04-17 14:52 ` Tino Keitel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox