Hi Thomas, On Wed, Nov 21, 2007 at 05:57:20PM +0800, Thomas Chou wrote: > Greg Ungerer wrote: > >Try manually enabling the libz config in the applications/library > >config options. Maybe the mtd-tools options need to select libz > >in the Kconfig. > The obj of libz is compiled, but the symlink in lib/ to libz is missing. > Apply the submitted patch should fix this issue, > [PATCH] lib-add-symlink-for-static-libs.patch
i did not find this patch, so I tried adding a line $(ROOTDIR)/lib/zlib/libz.a* \ in lib/Makefile "LINKLIBS=" This seems to work up to that the library is now found by the linker, but now it gives me linker errors like this: make[3]: Entering directory `/projects/new2/uClinux-dist-20071107/user/mtd-utils ' ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -Wl,-elf2flt -Wl,-move-rod ata -Wl,-elf2flt -Wl,-move-rodata -O1 -g -pipe -fno-common -fno-builtin -Wall -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -D__USE_BSD -I. -o mkfs.jffs2 c rc32.o mkfs.jffs2.o compr_zlib.o compr_rtime.o -lz warning: .rodata section contains relocations mkfs.jffs2.elf2flt: In function `deflate': /projects/new2/uClinux-dist-20071107/lib/zlib/deflate.c:555: relocation truncate d to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `deflateParams': /projects/new2/uClinux-dist-20071107/lib/zlib/deflate.c:420: relocation truncate d to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `deflate_slow': /projects/new2/uClinux-dist-20071107/lib/zlib/deflate.c:1557: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `deflate_fast': /projects/new2/uClinux-dist-20071107/lib/zlib/deflate.c:1451: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `deflateReset': /projects/new2/uClinux-dist-20071107/lib/zlib/deflate.c:359: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `deflateInit2_': /projects/new2/uClinux-dist-20071107/lib/zlib/deflate.c:226: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `_tr_init': /projects/new2/uClinux-dist-20071107/lib/zlib/trees.c:384: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `_tr_tally': /projects/new2/uClinux-dist-20071107/lib/zlib/trees.c:1026: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `compress_block': /projects/new2/uClinux-dist-20071107/lib/zlib/trees.c:1076: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `_tr_align': /projects/new2/uClinux-dist-20071107/lib/zlib/trees.c:894: relocation truncated to fit: R_68K_GOT16 against symbol `_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in mkfs.jffs2.elf2flt mkfs.jffs2.elf2flt: In function `_tr_flush_block': /projects/new2/uClinux-dist-20071107/lib/zlib/trees.c:926: additional relocation overflows omitted from the output collect2: ld returned 1 exit status make[3]: *** [mkfs.jffs2] Error 1 make[3]: Leaving directory `/projects/new2/uClinux-dist-20071107/user/mtd-utils' Can this still be a problem with the library not being correctly copied/linked, or is there any other problem? Is there any general rule where to look for the cause, in the application or the library? Best regards, Wolfgang _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
