problem with zlib.o

Xavier DEBREUIL xde at inventel.fr
Mon Jun 11 12:04:43 EDT 2001


Hello,
I have some problems with linking the mtd stuff with a 2.4.2 kernel on
ARM.
I got many of the followings :

drivers/net/net.o: In function `deflate':
drivers/net/net.o(.text+0x8b38): multiple definition of `deflate'
fs/fs.o(.text+0x63db0):/home/xde/arm_linux/linux_2.4/linux-2.4.2/linux/fs/jffs2/zlib.c:
first defined here
drivers/net/net.o: In function `_tr_flush_block':
drivers/net/net.o(.text+0xba9c): multiple definition of
`_tr_flush_block'
fs/fs.o(.text+0x66d14):/home/xde/arm_linux/linux_2.4/linux-2.4.2/linux/fs/jffs2/zlib.c:
first defined here

what I did is removing from jffs2/Makefile zlib.o in COMPR_OBJS...
and linking is then ok...

Is it a good work around ?

Xavier




More information about the linux-mtd mailing list