From owner-freebsd-hackers Wed Aug 29 7:23:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ywing.creative.net.au (ywing.creative.net.au [203.56.168.34]) by hub.freebsd.org (Postfix) with ESMTP id 0495037B401 for ; Wed, 29 Aug 2001 07:23:46 -0700 (PDT) (envelope-from freebsd@ywing.creative.net.au) Received: (from freebsd@localhost) by ywing.creative.net.au (8.11.4/8.9.3) id f7TENQO49561; Wed, 29 Aug 2001 16:23:26 +0200 (CEST) (envelope-from freebsd) Date: Wed, 29 Aug 2001 16:23:26 +0200 From: Adrian Chadd To: Julian Elischer Cc: Vladimir Terziev , freebsd-hackers@freebsd.org Subject: Re: Problems with Squid on 4.4-RC Message-ID: <20010829162326.A49535@ywing.creative.net.au> References: <3B8C9931.D400B8BD@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3B8C9931.D400B8BD@elischer.org>; from julian@elischer.org on Wed, Aug 29, 2001 at 12:26:41AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I really did not have time to investigate this but > the same problem occured with version 2.3 of Squid. The port > worked but the "off the shelf" version did not. The problem > was corrected for 2.3 and 2.4 but it seems it persists in the > source code available from the development site. > > I know I have no right to complain since I am too busy > to maintain any ports but I would like to encourage people > to submit corrections they make in the ports system to the > original maintainers. Hi, Ok. here's the problem in a nutshell. GCC is bad with optimisation levels above 0. Ok, here's the problem outside of the nutshell. There's some code in squid that triggers a gcc bug when using -O2 and sometimes with -O. There's some magic in the configure script to disable -Ox, but the gcc version in 4.4 (I think anything 4.3 and above really) wasn't put in the squid-2.4STABLE1 script. This is why when you run squid-2.4stable1 on your 4.4 box it barfs after one request - the DNS request is made, and the code pukes. The solution is just to use the port. All the package does is disable the -Ox when building. Oh, squid-2.4STABLE2 should know about the 4.4 GCC version. But I just suggest use the package or disable the optimisation yourself. :-) Adrian, not on -hackers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message