<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
kbd
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin-top:0in;
margin-right:24.0pt;
margin-bottom:6.0pt;
margin-left:24.0pt;
background:#E5E5E5;
border:none;
padding:0in;
font-size:10.0pt;
font-family:"Courier New";
font-weight:bold;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
background:#E5E5E5;
font-weight:bold;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I tried to compile zlib following the instruction in 10.11 and
I get a problem there, apparently ar is given an unknown option:<o:p></o:p></p>
<p class=MsoNormal>ar: illegal option -- z<o:p></o:p></p>
<p class=MsoNormal>This happens after having applied the patch. Without the
patch zlib compiles fine.<o:p></o:p></p>
<p class=MsoNormal>I don’t see any –z anywhere, any hints?<o:p></o:p></p>
<p class=MsoNormal>Kind Regards,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Reinoud.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>root:/sources/zlib-1.2.3# patch -Np1 -i
../zlib-1.2.3-fPIC-1.patch<o:p></o:p></p>
<p class=MsoNormal>patching file configure<o:p></o:p></p>
<p class=MsoNormal>Hunk #2 succeeded at 178 (offset 16 lines).<o:p></o:p></p>
<p class=MsoNormal>patching file Makefile.in<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>CC="gcc -isystem /usr/include" CXX="g++
-isystem /usr/include" \<o:p></o:p></p>
<p class=MsoNormal> LDFLAGS="-Wl,-rpath-link,/lib"
./configure --prefix=/usr --shared<o:p></o:p></p>
<p class=MsoNormal>Checking for shared library support...<o:p></o:p></p>
<p class=MsoNormal>Building shared library libz.so.1.2.3 with gcc -isystem
/usr/include.<o:p></o:p></p>
<p class=MsoNormal>Checking for unistd.h... Yes.<o:p></o:p></p>
<p class=MsoNormal>Checking whether to use vs[n]printf() or s[n]printf()...
using vs[n]printf()<o:p></o:p></p>
<p class=MsoNormal>Checking for vsnprintf() in stdio.h... Yes.<o:p></o:p></p>
<p class=MsoNormal>Checking for return value of vsnprintf()... Yes.<o:p></o:p></p>
<p class=MsoNormal>Checking for errno.h... Yes.<o:p></o:p></p>
<p class=MsoNormal>Checking for mmap support... Yes.<o:p></o:p></p>
<p class=MsoNormal>root:/sources/zlib-1.2.3# make<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o example.o example.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o adler32.o adler32.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o compress.o compress.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o crc32.o crc32.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o gzio.o gzio.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o uncompr.o uncompr.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o deflate.o deflate.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o trees.o trees.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o zutil.o zutil.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o inflate.o inflate.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o infback.o infback.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o inftrees.o inftrees.c<o:p></o:p></p>
<p class=MsoNormal>gcc -isystem /usr/include -O3 -fPIC -DUSE_MMAP
-c -o inffast.o inffast.c<o:p></o:p></p>
<p class=MsoNormal>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<o:p></o:p></p>
<p class=MsoNormal>ar: illegal option -- z<o:p></o:p></p>
<p class=MsoNormal>Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV]
[member-name] [count] archive-file file...<o:p></o:p></p>
<p class=MsoNormal> ar -M [<mri-script]<o:p></o:p></p>
<p class=MsoNormal> commands:<o:p></o:p></p>
<p class=MsoNormal>
d - delete
file(s) from the archive<o:p></o:p></p>
<p class=MsoNormal> m[ab] -
move file(s) in the archive<o:p></o:p></p>
<p class=MsoNormal> p -
print file(s) found in the archive<o:p></o:p></p>
<p class=MsoNormal> q[f]
- quick append file(s) to the archive<o:p></o:p></p>
<p class=MsoNormal> r[ab][f][u] - replace existing or insert new
file(s) into the archive<o:p></o:p></p>
<p class=MsoNormal>
t - display
contents of archive<o:p></o:p></p>
<p class=MsoNormal> x[o]
- extract file(s) from the archive<o:p></o:p></p>
<p class=MsoNormal> command specific modifiers:<o:p></o:p></p>
<p class=MsoNormal>
[a] - put file(s) after
[member-name]<o:p></o:p></p>
<p class=MsoNormal>
[b] - put file(s) before
[member-name] (same as [i])<o:p></o:p></p>
<p class=MsoNormal>
[N] - use instance
[count] of name<o:p></o:p></p>
<p class=MsoNormal>
[f] - truncate inserted
file names<o:p></o:p></p>
<p class=MsoNormal>
[P] - use full path names
when matching<o:p></o:p></p>
<p class=MsoNormal>
[o] - preserve original
dates<o:p></o:p></p>
<p class=MsoNormal>
[u] - only replace files
that are newer than current archive contents<o:p></o:p></p>
<p class=MsoNormal> generic modifiers:<o:p></o:p></p>
<p class=MsoNormal>
[c] - do not warn if the
library had to be created<o:p></o:p></p>
<p class=MsoNormal>
[s] - create an archive
index (cf. ranlib)<o:p></o:p></p>
<p class=MsoNormal>
[S] - do not build a
symbol table<o:p></o:p></p>
<p class=MsoNormal>
[T] - make a thin archive<o:p></o:p></p>
<p class=MsoNormal>
[v] - be verbose<o:p></o:p></p>
<p class=MsoNormal>
[V] - display the version
number<o:p></o:p></p>
<p class=MsoNormal> @<file> - read
options from <file><o:p></o:p></p>
<p class=MsoNormal> emulation options:<o:p></o:p></p>
<p class=MsoNormal> No emulation specific options<o:p></o:p></p>
<p class=MsoNormal>ar: supported targets: elf64-x86-64 elf32-i386
a.out-i386-linux efi-app-ia32 efi-bsdrv-ia32 efi-rtdrv-ia32 efi-app-x86_64
efi-bsdrv-x86_64 efi-rtdrv-x86_64 elf64-little elf64-big elf32-little elf32-big
srec symbolsrec tekhex binary ihex<o:p></o:p></p>
<p class=MsoNormal>make: *** [libz.a] Error 1<o:p></o:p></p>
</div>
</body>
</html>