From owner-freebsd-current Wed Dec 29 7:40:56 1999 Delivered-To: freebsd-current@freebsd.org Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.188.244]) by hub.freebsd.org (Postfix) with ESMTP id 2F3A915596; Wed, 29 Dec 1999 07:40:50 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from localhost (localhost [127.0.0.1]) by backup.af.speednet.com.au (8.9.3/8.9.3) with ESMTP id CAA10513; Thu, 30 Dec 1999 02:40:47 +1100 (EST) (envelope-from andyf@speednet.com.au) Date: Thu, 30 Dec 1999 02:40:46 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.af.speednet.com.au To: "David O'Brien" Cc: current@FreeBSD.ORG Subject: Re: gcc compile error In-Reply-To: <19991228171415.B7516@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 28 Dec 1999, David O'Brien wrote: > > Perhaps a later snapshot of gcc will work . > > GCC 2.95.2 is a *RELEASED* version. We don't use snapshots as the base > compiler. What every the problem is 4.0 will live with it unless someone > narrows down the problem more. The latest Polygraph (ver 2.2.8) proxy-cache benchmarking source (Available at http://www.ircache.net/Polygraph/) does not compile on my very recent 4.0 system. (rebuilding world now...) I get this error, after dl'ing polygraph-2.2.8-src.tar.gz, running 'configure', then running 'make': ... c++ -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -Iinclude -Ixstd/include -Ipgl/include -Ixparser/include -I.. -DHAVE_CONFIG_H -c Connection.cc In file included from include/PortMgr.h:29, from Connection.cc:33: include/LevelStat.h:55: invalid type `const char[1]' for default argument to `const String &' *** Error code 1 Stop in /usr/home/andyf/src/polygraph/src. *** Error code 1 Stop in /usr/home/andyf/src/polygraph. The "offending" code looks like this: ostream &print(ostream &os, const String &pfx = "") const; When I did a 'touch Connection.o ; make' it compiled another source file that included PortMgr.h / LevelStat.h just fine, but bombed out elsewhere! > > -- > -- David (obrien@NUXI.com) > -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message