Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 1999 02:40:46 +1100 (EST)
From:      Andy Farkas <andyf@speednet.com.au>
To:        "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: gcc compile error
Message-ID:  <Pine.BSF.4.10.9912300206010.951-100000@backup.af.speednet.com.au>
In-Reply-To: <19991228171415.B7516@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912300206010.951-100000>