<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="smartTemplate4-template"><br>
Hello Amos<br>
<br>
The changes are for used mingw32 32. But I also tried mingw64 32
and mingw64 64 with all different options. None really worked. <br>
<br>
The mingw64 (32 and 64) seem to use ModSelect.cc and not
ModSelectWin32.cc. When started it gives multiple lines with<br>
"WARNING: FD xxxx has handlers, but it's invalid" <br>
each line has an increasing number for xxxx. It consumes all
possible numbers in a loop and then crashes.<br>
<br>
And for mingw32 I get "I get: WARNING: Reply from unknown
nameserver [::]:53" (as i wrote initially)<br>
<br>
I already am working on other project and don't have much time to
make the diffs again. I attached the diffs so it's a lot more
readable without the line breaks. Please take a look it's actually
very simple (changes are minor).<br>
<br>
Thank you, and best regards,<br>
Dennis Felippa<br>
</div>
<br>
<br>
<div id="smartTemplate4-quoteHeader">-----------------------------------------<br>
Em (When): Tue, 13 Jan 2015 15:47:48 +1300<br>
De (From): <a>squid3@treenet.co.nz</a><br>
Para (To): <a>dennis@infologika.com.br</a>, <a>squid-dev@lists.squid-cache.org</a>
</div>
<blockquote class=" cite" id="mid_54B48754_6020403_treenet_co_nz"
cite="mid:54B48754.6020403@treenet.co.nz" type="cite">
<pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13/01/2015 8:09 a.m., Dennis wrote:
</pre>
<blockquote class=" cite" id="Cite_2919959" type="cite">
<pre wrap="">Dear Sirs
I tried compiling squid-3.5.0.4-20150106-r13714 running under
windows with wingw
</pre>
</blockquote>
<pre wrap="">Hi Dennis, thank you!
</pre>
<blockquote class=" cite" id="Cite_4635060" type="cite">
<pre wrap="">It still had a few bugs. I fixed them and now it compiles and runs,
but still can't resolve addresses (I have correctly specified the
name servers). I get: WARNING: Reply from unknown nameserver
[::]:53
I don't have more time to work it further.
I would like to contribute with the fixes I wrote. Here are them.
Obs.: the diff shows squid-3.5.0.4 against
squid-3.5.0.4-20150106-r13714, but it is actually my
squid-3.5.0.4-20150106-r13714 against
squid-3.5.0.4-20150106-r13714
configure command used: ./configure --enable-default-hostsfile=none
--prefix=C:/msys/1.0/squid mingw version: latest 32 bit.
</pre>
</blockquote>
<pre wrap="">MinGW32 32-bit ? or MinGW-w64 32-bit ?
I am finding there are some critical API differences between the two
"MinGW" projects.
</pre>
<blockquote class=" cite" id="Cite_4787019" type="cite">
<pre wrap="">diffs:
</pre>
</blockquote>
<pre wrap="">Can you present these in unified format please? (diff -ur ...), and
attachments rather than inline.
It's very hard to read the other format around email quoting.
</pre>
<blockquote class=" cite" id="Cite_4887367" type="cite">
<pre wrap="">diff -r C:\msys\1.0\var\squid-3.5.0.4\compat\os\mswindows.h
C:\msys\1.0\var\squid-3.5.0.4-20150106-r13714\compat\os\mswindows.h
</pre>
</blockquote>
<pre wrap="">625,630c624,629
</pre>
<blockquote class=" cite" id="Cite_6082031" type="cite">
<pre wrap="">< /* commen out this function < inline char * < inet_ntop(int af,
const void *src, char *dst, size_t size) < { < return
(char*)InetNtopA(af, const_cast<void*>(src), dst, size); < } <
#define inet_ntop(a,s,d,l) Squid::inet_ntop(a,s,d,l) */ ---
</pre>
<blockquote class=" cite" id="Cite_409359" type="cite">
<pre wrap="">inline char * inet_ntop(int af, const void *src, char *dst,
size_t size) { return (char*)InetNtopA(af,
const_cast<void*>(src), dst, size); } #define inet_ntop(a,s,d,l)
Squid::inet_ntop(a,s,d,l)
</pre>
</blockquote>
</blockquote>
<pre wrap="">FYI: A fix for the re-definition error is about to be backported. But
the absence of InetNtopA API call required by MS is still an issue I'm
working on now.
Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUtIdUAAoJELJo5wb/XPRjREIIAMx0UgbcS3lw8N2vFbuYhOt3
J4s/+UVXJ4up5iq3MHtXKDK2tvDo3Bln9ZdAbUnXlrBdIZomDFMLfbU+6aToVFrL
ACrmvJCFdoyBfjaSr1WONyf8mEifLfI/20gJWq5fRKw0OEiTNujfqTOvF+OBcLez
JIkcMgjyhiwT3CITytXmVuFQxYzX/IAUQTHkf5axWUISyPbOIKFQ0lznMEaKHvC6
tMklOnzDY3pIGYNi5tYKR76qs5vfuiCtxWWVMRt9976ABCViz5xatJyYO2d8Msrx
FXmtjgie9rmX/AKkmffSTw9mW3Ls6J4/yF9G9YMa3ZSX5Yjf0G2OCeJHHjJIqTM=
=hxHP
-----END PGP SIGNATURE-----
</pre>
</blockquote>
<br>
<br>
</body>
</html>