From owner-freebsd-current@FreeBSD.ORG Mon Mar 15 07:30:41 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84AC216A4CF; Mon, 15 Mar 2004 07:30:41 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1496943D48; Mon, 15 Mar 2004 07:30:41 -0800 (PST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197]) by comcast.net (sccrmhc13) with ESMTP id <20040315153040016002she1e>; Mon, 15 Mar 2004 15:30:40 +0000 Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) i2FFUeLR072160; Mon, 15 Mar 2004 10:30:41 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.crodrigues.org (8.12.11/8.12.10/Submit) id i2FFUeVv072159; Mon, 15 Mar 2004 10:30:40 -0500 (EST) (envelope-from rodrigc) Date: Mon, 15 Mar 2004 10:30:40 -0500 From: Craig Rodrigues To: "Jacques A. Vidrine" , David Gilbert , freebsd-current@FreeBSD.org, freebsd-hackers@FreeBSD.org Message-ID: <20040315153040.GA72109@crodrigues.org> References: <16468.65270.123954.862565@canoe.dclg.ca> <20040315145951.GA10172@lum.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040315145951.GA10172@lum.celabo.org> User-Agent: Mutt/1.4.1i Subject: Re: GCC include files conundrum. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 15:30:41 -0000 On Mon, Mar 15, 2004 at 08:59:51AM -0600, Jacques A. Vidrine wrote: > FreeBSD stopped installing `strstream.h' in January. See rev 1.48 of > src/gnu/lib/libstdc++/Makefile. The commit log indicates it was removed > in (some release of) GCC 3.3. I wonder if this is correct though--- strstream.h was removed from the FSF GCC sources: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc%2b%2b-v3/include/backward/Attic/strstream.h FreeBSD's import of FSF GCC sources reflects this change. > compiler messages seem to contradict this. The compiler message in GCC could be wrong in this particular case for strstream.h. > It looks to me like tclmidi uses only class ostrstream. The easiest > solution to your problem would be to add a file named `strstream.h' with > the following contents: > > #include > using std::ostrstream; > > The longer term solution is to kill the port, or to port it to Standard > C++. Porting it to Standard C++ would probably entail rewriting uses of > and `ostrstream' to and `ostringstream'; and > rewriting uses of other C++ `.h' headers to the standard form without > .h; and adding `using namespace std;' liberally. I've fixed a few ports by doing exactly what you have outlined. Admittedly, it's grunt work, but......... :) -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org