<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><div>Hi Amos,</div><div><br></div><div>It seems it uses a posix resolver for that, because it cannot find the native implementation. </div><div> </div><div><em>configure:37657: checking for getaddrinfo<br>configure:37657: x86_64-w64-mingw32-g++ -o conftest.exe -DWINVER=0x601 -D_WIN32_WINNT=0x601 -fpermissive -L/usr/lib -mthreads -static-libgcc -static-libstdc++  -g conftest.cpp  -lpsapi >&5<br>/tmp/cckciKLu.o: In function `main':<br>/usr/src/squid-3.5.0.3-20141209-r13687/conftest.cpp:204: undefined reference to `getaddrinfo'<br>collect2: error: ld returned 1 exit status<br>configure:37657: $? = 1</em></div><div><table cellpadding="0"><tbody><tr><td><div> </div></td></tr></tbody></table><div><em></em> </div><div>Is this expected? If not, I will look how I can enable the native implementation.</div></div><div>Thank you!<br> </div><div>> Date: Fri, 19 Dec 2014 16:08:03 +1300<br>> From: squid3@treenet.co.nz<br>> To: squid-users@lists.squid-cache.org<br>> Subject: Re: [squid-users] Problem with running squid 3.5 on windows 7<br>> <br>> -----BEGIN PGP SIGNED MESSAGE-----<br>> Hash: SHA1<br>> <br>> On 19/12/2014 12:32 p.m., Eldar Akchurin wrote:<br>> > <br>> > <br>> > <br>> > Hi, I have cross-compiled squid 3.5 with mingw32-w64 on Ubuntu. The<br>> > properties are: c:\squid\sbin>squid -v Squid Cache: Version<br>> > 3.5.0.3-20141209-r13687 Service Name: squid Test build configure<br>> > options:  '--host=i686-w64-mingw32' '--prefix=c:/squid'<br>> > 'CXXFLAGS=-DWI NVER=0x601 -D_WIN32_WINNT=0x601 -fpermissive'<br>> > 'CFLAGS=-DWINVER=0x601 -D_WIN32_WI NNT=0x601 -fpermissive'<br>> > 'BUILDCXX=g++' 'BUILDCXXFLAGS=-DFOO' '--enable-build-inf o=Test<br>> > build' 'host_alias=i686-w64-mingw32' --enable-ltdl-convenience<br>> > <br>> > When I try to run it on windows 7 64, it gives a critical error at<br>> > start, below is the debug trace<br>> <snip><br>> <br>> <br>> > 2014/12/19 00:17:40.171| Address.cc(379) lookupHostIP: Given Non-IP<br>> > '127.0.0.1': No such host is known. 2014/12/19 00:17:40.171|<br>> > aclIpParseIpData: unknown first address in '127.0.0.1/3 2' <br>> > 2014/12/19 00:17:40.171| tools.cc(543) leave_suid: leave_suid: PID<br>> > 4792 called FATAL: Bungled Default Configuration line 6: acl<br>> > localhost src 127.0.0.1/32 ::1 Squid Cache (Version<br>> > 3.5.0.3-20141209-r13687): Terminated abnormally. CPU Usage: 0.000<br>> > seconds = 0.000 user + 0.000 sys Maximum Resident Size: 0 KB Page<br>> > faults with physical i/o: 0 Could you please advice what I'm doing<br>> > wrong or whether this is a bug? Thank you!-eAdd to Calendar<br>> > <br>> <br>> Thank you for testing this all out Eldar. It seems you have gotten a<br>> little further than I have with this (I diverted to working on native<br>> MinGW build issues).<br>> <br>> This is a bug. Though where it is coming from is still unknown. The<br>> operation being performed is that Squid is passing the IP text string<br>> to the system getaddrinfo() resolver API for conversion to a number.<br>> <br>> First thing to check is whether Squid is actually using the native OS<br>> API or the stub replacement bundled in compat/. The config.log file<br>> generated during build will have an entry indicating whether<br>> getaddrinfo() was found or not in the MinGW headers. If the detection<br>> failed there will be some debug info about what broke.<br>> <br>> Amos<br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v2.0.22 (MingW32)<br>> <br>> iQEcBAEBAgAGBQJUk5aTAAoJELJo5wb/XPRjiLkIAL0nS83JZLdTV7DfMFsDFqRJ<br>> yU7rFKWwqXp8P64K5Woedwga4JMpUrkxvbQ1t+wqS3mKWX3hJ72+M71juVeyt7pr<br>> pMZYGkoSZNXwhh/i73BxH2hVX7lysI8WKUw0NgBW7cZYe7KleLIODf8GWQhmXhJi<br>> vQh5uAfeYO6W/V+wwiRpY47H49yuU3UpypzsZ4P2i88+QvKZaef0T4ZJN8Wlresg<br>> ldc7vwBTqQ7p810s87dUrYAuCYZJKqYj/cQnUX86dEgkfxZSPwbDHS8qQdUxAvMb<br>> DqIZRp+H7hdO2DK1Sh1FCwyDEEbkuc0O/GurH6Nnw9IVpSAmWr4l8l82WdDXd4o=<br>> =4unG<br>> -----END PGP SIGNATURE-----<br>> _______________________________________________<br>> squid-users mailing list<br>> squid-users@lists.squid-cache.org<br>> http://lists.squid-cache.org/listinfo/squid-users<br></div></div>
                                          </div></body>
</html>