<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>With the C++ patch I just posted applied, I'm seeing problems with C++ and solo mode.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>$ CC=g++ ./configure --solo<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.7-motley with g++.<o:p></o:p></p><p class=MsoNormal>Checking for off64_t... Yes.<o:p></o:p></p><p class=MsoNormal>Checking for fseeko... Yes.<o:p></o:p></p><p class=MsoNormal>Checking for strerror... Yes.<o:p></o:p></p><p class=MsoNormal>Checking for unistd.h... Yes.<o:p></o:p></p><p class=MsoNormal>Checking for stdarg.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 attribute(visibility) support... Yes.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>$ make<o:p></o:p></p><p class=MsoNormal>g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o test/example.c<o:p></o:p></p><p class=MsoNormal>g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c<o:p></o:p></p><p class=MsoNormal>g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c<o:p></o:p></p><p class=MsoNormal>g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c<o:p></o:p></p><p class=MsoNormal>deflate.c: In function ‘int deflateCopy(z_stream*, z_stream*)’:<o:p></o:p></p><p class=MsoNormal>deflate.c:1029: error: invalid conversion from ‘void*’ to ‘Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1029: error: initializing argument 1 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1029: error: invalid conversion from ‘void*’ to ‘const Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1029: error: initializing argument 2 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1034: error: invalid conversion from ‘void*’ to ‘Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1034: error: initializing argument 1 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1034: error: invalid conversion from ‘void*’ to ‘const Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1034: error: initializing argument 2 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1050: error: invalid conversion from ‘void*’ to ‘Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1050: error: initializing argument 1 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1050: error: invalid conversion from ‘void*’ to ‘const Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1050: error: initializing argument 2 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1051: error: invalid conversion from ‘void*’ to ‘Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1051: error: initializing argument 1 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>deflate.c:1051: error: invalid conversion from ‘void*’ to ‘const Bytef*’<o:p></o:p></p><p class=MsoNormal>deflate.c:1051: error: initializing argument 2 of ‘void zmemcpy(Bytef*, const Bytef*, uInt)’<o:p></o:p></p><p class=MsoNormal>make: *** [deflate.o] Error 1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The enclosed patch sorts it out.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Paul<o:p></o:p></p></div></body></html>