Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 30 May 2009 19:48:58 +1200

vollkommen_at_gmx.net wrote:
> -------- Original-Nachricht --------
>>> 1. DNS lookups fail completely. 204.127.198.4 is among a handful of
>>> external DNS servers I use, whether defined as dns_nameservers in
>>> squid.conf or picked by squid automatically from /etc/resolv.conf:
>>>
>>> 2009/05/20 21:44:49| comm_udp_sendto: FD 8, (family=2) 204.127.198.4:53:
>>> (22) Invalid argument
>>> 2009/05/20 21:44:49| idnsSendQuery: FD 8: sendto: (22) Invalid argument
>>> 2009/05/20 21:46:10| comm_set_tos: setsockopt(IP_TOS) on FD 7: (22)
>>> Invalid argument
>> Is IPv6 dual-stack enabled in your OS? it looks like the v6 sockets are
>> unable to do the v4-mapping they need to handle v4 traffic.
>> I find it a bit weird that setting TOS also fails, its one of the older
>> functionality and shared between both IP protocols.
>>
>
> I'd think so. I'm using 6to4, if that matters. Here's the snippet from config.log:t
>
> configure:25519: checking whether to enable IPv6
> configure:25534: result: yes
> configure:25548: checking if PF_INET6 is available
> configure:25583: g++ -o conftest -g -O2 -g conftest.cpp >&5
> configure:25587: $? = 0
> configure:25593: ./conftest
> configure:25597: $? = 0
> configure:25599: result: yes
> configure:25624: result:
> configure:25643: checking for IPv6 split-stack requirement
> configure:25666: result: no
> configure:25672: checking for sin6_len field in struct sockaddr_in6
> configure:25703: g++ -c -g -O2 conftest.cpp >&5
> configure:25710: $? = 0
> configure:25727: result: yes
> ...
> #define USE_IPV6 1
> #define IPV6_SPECIAL_V4MAPPED 1
> #define IPV6_SPECIAL_SPLITSTACK 0
>
> Here's cache.log with debug_options 0,5 78,9:
>
> 2009/05/20 23:36:23.570| idnsALookup: buf is 36 bytes for www.ipv6.sixxs.net, id = 0x7fca
> 2009/05/20 23:36:23.570| comm_udp_sendto: FD 7, (family=2) 18.70.0.160:53: (22) Invalid argument
> 2009/05/20 23:36:23.570| idnsSendQuery: FD 7: sendto: (22) Invalid argument

Hmmm, this is looking suspiciously like a problem we just hit on OpenBSD
as well, due to hybrid v4-mapping not being available. Squid does not
detect it very well.
Since we have a good tester who knows the fine details to look for
there. I'll fix that first then see if the same works for you.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
   Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1
Received on Sat May 30 2009 - 07:49:08 MDT

This archive was generated by hypermail 2.2.0 : Sat May 30 2009 - 12:00:04 MDT