From: Glen Johnson <gjohnson@valcom.com>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>
Cc: Linux mtd <linux-mtd@lists.infradead.org>
Subject: Re: Upgrading mtd-utils in uClinux.
Date: Thu, 30 Nov 2006 07:58:10 -0500 [thread overview]
Message-ID: <456ED562.5080307@valcom.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0611290842530.5328@lnxricardw.se.axis.com>
Ricard Wanderlof wrote:
> Unless someone here has had this specific problem, some form of output
> from the compilation indicating what is going wrong would be helpful.
>
>
Yes, of course. I have a couple more direct question. First, I found
the mtd-utils code is not properly using zlib.
m68k-elf-gcc -Wl,--fatal-warnings -Wl,-elf2flt -Wl,-move-rodata
-msep-data -o mkfs.jffs2 crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o
compr.o -L/home/glen/src/c/linux/uClinux-dist-20060803/lib/zlib
warning: .rodata section contains relocations
mkfs.jffs2.elf2flt: In function `jffs2_zlib_decompress':
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:118:
undefined reference to `inflateInit_'
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:127:
undefined reference to `inflate'
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:132:
undefined reference to `inflateEnd'
mkfs.jffs2.elf2flt: In function `jffs2_zlib_compress':
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:73:
undefined reference to `deflateInit_'
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:80:
undefined reference to `deflate'
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:87:
undefined reference to `deflateEnd'
/home/glen/src/c/linux/uClinux-dist-20060803/user/mtd-utils/compr_zlib.c:98:
undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[3]: *** [mkfs.jffs2] Error 1
The warning: .rodata section contains relocations is printed and it
appears all other attempts to use libz.a are dropped. I Googled this
warning and there were a couple of places where it mentioned
configure.in. Is this the real problem? If so how can it be fixed, not
familiar with autoconf)?
Secondly, once I get the code to compile it appears I still need to add
a section to the Makefile to install the files into the romfs image.
Can I just pull this out of the old mtd-utils/Makefile or what?
Suggestion's/recommendations?
Thanks,
Glen Johnson
next prev parent reply other threads:[~2006-11-30 12:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 14:09 Upgrading mtd-utils in uClinux Glen Johnson
2006-11-29 7:43 ` Ricard Wanderlof
2006-11-30 12:58 ` Glen Johnson [this message]
2006-12-01 11:21 ` David Woodhouse
2006-12-05 13:30 ` Glen Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=456ED562.5080307@valcom.com \
--to=gjohnson@valcom.com \
--cc=linux-mtd@lists.infradead.org \
--cc=ricard.wanderlof@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.