public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS linker error in kernel 2.4.19
@ 2002-12-22 16:00 Ilan Pollak
  2002-12-22 18:21 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Ilan Pollak @ 2002-12-22 16:00 UTC (permalink / raw)
  To: linux-mtd

Hi List,
i'm porting uClinux 2.4.19-uc1 patched with today's (Dec. 21, 2002) MTD
snapshot.
If i'm choosing to compile JFFS2 i get this linking problem:

arm-elf-ld -p -X -T arch/armnommu/vmlinux.lds
arch/armnommu/kernel/head-armv.o arch/armnommu/kernel/init_task.o
init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/armnommu/kernel/kernel.o arch/armnommu/mm/mm.o
arch/armnommu/mach-firefox/firefox.o kernel/kernel.o mmnommu/mmnommu.o
fs/fs.o ipc/ipc.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/armnommu/lib/lib.a
/home/ilanp/uClinux-dist/linux-2.4.x/lib/lib.a
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a \
        --end-group \
        -o linux
fs/fs.o: In function `jffs2_compress':
fs/fs.o(.text+0x4d728): undefined reference to `jffs2_rtime_compress'
fs/fs.o: In function `jffs2_decompress':
fs/fs.o(.text+0x4d7d0): undefined reference to `jffs2_rtime_decompress'
make[1]: *** [linux] Error 1

any ideas ?
thanks,
ilan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: JFFS linker error in kernel 2.4.19
  2002-12-22 16:00 Ilan Pollak
@ 2002-12-22 18:21 ` Thomas Gleixner
  2002-12-22 20:33   ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2002-12-22 18:21 UTC (permalink / raw)
  To: Ilan Pollak, linux-mtd

On Sunday 22 December 2002 17:00, Ilan Pollak wrote:
> Hi List,
> i'm porting uClinux 2.4.19-uc1 patched with today's (Dec. 21, 2002) MTD
> snapshot.
> If i'm choosing to compile JFFS2 i get this linking problem:
>
> arm-elf-ld -p -X -T arch/armnommu/vmlinux.lds
> arch/armnommu/kernel/head-armv.o arch/armnommu/kernel/init_task.o
> init/main.o init/version.o init/do_mounts.o \
>         --start-group \
>         arch/armnommu/kernel/kernel.o arch/armnommu/mm/mm.o
> arch/armnommu/mach-firefox/firefox.o kernel/kernel.o mmnommu/mmnommu.o
> fs/fs.o ipc/ipc.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/armnommu/lib/lib.a
> /home/ilanp/uClinux-dist/linux-2.4.x/lib/lib.a
> /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a \
>         --end-group \
>         -o linux
> fs/fs.o: In function `jffs2_compress':
> fs/fs.o(.text+0x4d728): undefined reference to `jffs2_rtime_compress'
> fs/fs.o: In function `jffs2_decompress':
> fs/fs.o(.text+0x4d7d0): undefined reference to `jffs2_rtime_decompress'
> make[1]: *** [linux] Error 1

Did you use the patchin script ?
If no, use it.
If yes, maybe it's not compatible with uclinux. Check if the Makefile in lib 
is patched with the patch in mtd-source/lib

-- 
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: JFFS linker error in kernel 2.4.19
  2002-12-22 18:21 ` Thomas Gleixner
@ 2002-12-22 20:33   ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2002-12-22 20:33 UTC (permalink / raw)
  To: Ilan Pollak, linux-mtd

On Sunday 22 December 2002 19:21, Thomas Gleixner wrote:
> On Sunday 22 December 2002 17:00, Ilan Pollak wrote:
> > Hi List,
> > i'm porting uClinux 2.4.19-uc1 patched with today's (Dec. 21, 2002) MTD
> > snapshot.
> > If i'm choosing to compile JFFS2 i get this linking problem:
> >
> > arm-elf-ld -p -X -T arch/armnommu/vmlinux.lds
> > arch/armnommu/kernel/head-armv.o arch/armnommu/kernel/init_task.o
> > init/main.o init/version.o init/do_mounts.o \
> >         --start-group \
> >         arch/armnommu/kernel/kernel.o arch/armnommu/mm/mm.o
> > arch/armnommu/mach-firefox/firefox.o kernel/kernel.o mmnommu/mmnommu.o
> > fs/fs.o ipc/ipc.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/armnommu/lib/lib.a
> > /home/ilanp/uClinux-dist/linux-2.4.x/lib/lib.a
> > /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a \
> >         --end-group \
> >         -o linux
> > fs/fs.o: In function `jffs2_compress':
> > fs/fs.o(.text+0x4d728): undefined reference to `jffs2_rtime_compress'
> > fs/fs.o: In function `jffs2_decompress':
> > fs/fs.o(.text+0x4d7d0): undefined reference to `jffs2_rtime_decompress'
> > make[1]: *** [linux] Error 1
>
> Did you use the patchin script ?
> If no, use it.
> If yes, maybe it's not compatible with uclinux. Check if the Makefile in
> lib is patched with the patch in mtd-source/lib
Sorry, I answered a private mail in parallel. Please check the Makefile in 
fs/jffs2 if it contains a entry to link compr_rtime.o

-- 
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* JFFS linker error in kernel 2.4.19
@ 2003-01-10 21:27 Frank R Callaghan
  0 siblings, 0 replies; 4+ messages in thread
From: Frank R Callaghan @ 2003-01-10 21:27 UTC (permalink / raw)
  To: LinuxMTD

Hi List,

I'm compiling linux 2.4.19 patched with today's CVS MTD patched
with the patching script
(that states 'no Include Filesytems: yes; Zlib-Patch needed: no)

ld -m elf_i386 -T /home/rtlinux/rtai/linux-2.4.19/arch/i386/vmlinux.lds -e 
stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o 
init/version.o init/do_mounts.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o 
fs/fs.o ipc/ipc.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 \
        net/network.o \
        /home/rtlinux/rtai/linux-2.4.19/arch/i386/lib/lib.a 
/home/rtlinux/rtai/linux-2.4.19/lib/lib.a 
/home/rtlinux/rtai/linux-2.4.19/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
fs/fs.o: In function `jffs2_compress':
fs/fs.o(.text+0x5fc59): undefined reference to `zlib_compress'
fs/fs.o: In function `jffs2_decompress':
fs/fs.o(.text+0x5fced): undefined reference to `zlib_decompress'
fs/fs.o(.text+0x5fd18): undefined reference to `dynrubin_decompress'
make: *** [vmlinux] Error 1


Any Ideas ?

TIA,
    Frank.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-10 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10 21:27 JFFS linker error in kernel 2.4.19 Frank R Callaghan
  -- strict thread matches above, loose matches on Subject: below --
2002-12-22 16:00 Ilan Pollak
2002-12-22 18:21 ` Thomas Gleixner
2002-12-22 20:33   ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox