Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 332771

Summary: Squid-3.1.6: SSL does not work with USE-flag "ipv6" disabled
Product: Gentoo Linux Reporter: Guenther Brunthaler <gb_about_gnu>
Component: Current packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.spinics.net/lists/squid/msg49232.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Guenther Brunthaler 2010-08-14 19:09:42 UTC
When emerging >=squid-3.1.6 with USE="-ipv6", any attempt to access an SSL URL results in the error massage  and the access fails.

Reproducible: Always

Steps to Reproduce:
1.USE="-ipv6" emerge -av1 ">=net-proxy/squid-3.1.6"
2.Start it.
3.Try to open a https Website
Actual Results:  
The access (allowed by squid ACL configuration) fails. Error message "comm_open: socket failure: (97) Address family not supported by protocol" in "/var/log/squid/cache.log".

Expected Results:  
No such error message. Access should be granted or denied depending on squid configuration, but not just fail due to a socket error.

Some people "fixed" that bug by re-enabling ipv6 in the kernel.

However, this is a kludge rather than a fix. Also, enabling or disabling IPv6 is a system-wide issue with all sorts of consequences, such as modified Firewall configuration.

Squid has a --disable-ipv6 configure option, and it should honor it.

Note that this is clearly an upstream bug. Nevertheless, it affects the functionality of the USE flag, so we might consider adding a patch.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2010-08-16 06:33:15 UTC

*** This bug has been marked as a duplicate of bug 331965 ***