undefined reference to 'crc32' ?

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Sat Nov 30 17:43:28 EST 2002


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/




More information about the linux-mtd mailing list