Ken,

Thanks for the tip.  I re-did the zlib library again, once again applying
the fPIC patch.  Using the following statement to configure, and then
"make", I succeeded in creating libz.a (static library) and the
libz.sovariants (shared library).

CC="${CC} ${BUILD}" AR="${AR} rc" ./configure --prefix=/tools --shared

Once again thanks for the information.  Should I redefine the AR environment
to always include the "rc" option?

Dave

P.S.  In reference to the CLFS book that I am following, there has not been
an instruction to set BUILD (or BUILD32).  I knew from a previous attempt at
working with CLFS-Embedded that it needed to be set to "-m32" for my
particular needs.

On 6/18/07, Ken Moffat <[EMAIL PROTECTED]> wrote:

On Mon, Jun 18, 2007 at 08:02:42AM -0700, David Whitney wrote:
> Hello,
>
> Has anyone seen this problem before while using
> /cross-tools/bin/i686-pc-linux-gnu-ar?
>
Not exactly, but I think I've seen something similar on ppc a long
while ago.
> i686-pc-linux-gnu-ar libz.a adler32.o compress.o crc32.o gzio.o
uncompr.o
> deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
> i686-pc-linux-gnu-ar: illegal option -- z
> Usage: i686-pc-linux-gnu-ar [emulation options]
> [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...
>
> I get this error when attempting to make zlib.  All of the object files
> build fine, but when it comes to archiving them into libz.a, then the
make
> process fails.
>
Turns out my original problem was in January last year (fixed by
not using a patch before we were in the native build), and last June
I found out the real cause of the problem:

http://permalink.gmane.org/gmane.linux.lfs.cross/811

Please read that, then try configuring with whatever else you had
plus AR="${AR} rc".  Then we can start to wonder why this problem
has suddenly appeared.

But, maybe you have applied the zlib -fPIC patch in chapter 6?  If
so, please try again without it (that patch is for the final system).

ĸen
--
das eine Mal als Tragödie, das andere Mal als Farce
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to