From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from maild.telia.com ([194.22.190.101]) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 18IFrg-0005Sd-00 for ; Sat, 30 Nov 2002 22:13:32 +0000 Message-ID: <002301c298c1$e6f10360$0300a8c0@jockeXP> From: "Joakim Tjernlund" To: "Steven Scholz" , References: <3DE7CB23.5535F5E6@imc-berlin.de> Subject: Re: undefined reference to 'crc32' ? Date: Sat, 30 Nov 2002 23:43:28 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: CVS JFFS2 assumes that crc32() is avialable as a generic function. You need my crc32 backport from 2.5 to 2.4. It's somewhere in the MTD archives(I think). I don't have it handy ATM. Jocke > Hi there, > > I am using linux 2.4.20 on a powerpc platform. > > I just pulled the recent CVS, run patchin.sh on it and tried to build a new > kernel image. > But I get load of these: > > ppc_8xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic > arch/ppc/kernel/head_8xx.o init/main.o init/version.o init/do_mounts.o \ > --start-group \ > arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o arch/ppc/mm/mm.o > arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o > arch/ppc/math-emu/math-emu.o \ > drivers/char/char.o drivers/block/block.o drivers/misc/misc.o > drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o > drivers/mtd/mtdlink.o drivers/pcmcia/pcmcia.o drivers/macintosh/macintosh.o > arch/ppc/8xx_io/8xx_io.o \ > net/network.o \ > /home/scholz/Projekte/linuxppc-2.4.20/lib/lib.a \ > --end-group \ > -o vmlinux > fs/fs.o: In function `jffs2_symlink': > fs/fs.o(.text+0x69194): undefined reference to `crc32' > fs/fs.o(.text+0x69194): relocation truncated to fit: R_PPC_REL24 crc32 > fs/fs.o(.text+0x691b4): undefined reference to `crc32' > fs/fs.o(.text+0x691b4): relocation truncated to fit: R_PPC_REL24 crc32 > fs/fs.o(.text+0x691c8): undefined reference to `crc32' > fs/fs.o(.text+0x691c8): relocation truncated to fit: R_PPC_REL24 crc32 > fs/fs.o(.text+0x6933c): undefined reference to `crc32' > fs/fs.o(.text+0x6933c): relocation truncated to fit: R_PPC_REL24 crc32 > fs/fs.o(.text+0x69388): undefined reference to `crc32' > fs/fs.o(.text+0x69388): relocation truncated to fit: R_PPC_REL24 crc32 > fs/fs.o(.text+0x6939c): more undefined references to `crc32' follow > fs/fs.o: In function `jffs2_symlink': > .... > > > What could that be? > crc32.o got build... > > > ls -l fs/jffs2/crc32.o > -rw-r--r-- 1 scholz devel 1736 Nov 29 21:07 fs/jffs2/crc32.o > > Thanks, > > Steven > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/