From fedemp@wanadoo.es Mon Sep 02 10:34:59 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lsI7-0001TB-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 10:34:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lsI0-0001Rm-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 10:34:58 -0400
Received: from [62.37.236.136] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17lsHz-0001Rh-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 10:34:51 -0400
Received: from risitas (62-36-190-163.dialup.uni2.es [62.36.190.163])
	by smtp.wanadoo.es (8.11.3/8.10.2) with ESMTP id g82EWQH00736;
	Mon, 2 Sep 2002 16:32:26 +0200 (MEST)
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17lsIy-0001kx-00; Mon, 02 Sep 2002 16:35:52 +0200
Date: Mon, 2 Sep 2002 16:35:52 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Genest <genest.david@wanadoo.fr>
Cc: bug-commoncpp@gnu.org
Subject: Re: URLStream::post
Message-ID: <20020902143552.GB6167@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: David Genest <genest.david@wanadoo.fr>,
	bug-commoncpp@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>Hi,
>
>I think there is a bug in the URLStream::post() method (CommonC++2,
>1.0.0 on Debian i386, g++ 2.95.4, also with Borland C++ 5.5.1). In fact,
>post() doesn't send arguments because a separator is written after
>"Content-Length:...". 
>

	Yes, we did not update this when changed from strstream to
ostringstream. Thanks for reporting that, it has been fixed for 1.0.1.

	Bye!




From triendl.kj@aon.at Mon Sep 02 17:22:21 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lyeK-0004md-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 17:22:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lyeI-0004lv-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 17:22:20 -0400
Received: from m279p008.adsl.highway.telekom.at ([62.47.202.200] helo=triendl.kj)
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17lyeH-0004kx-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 17:22:18 -0400
Received: (qmail 2958 invoked from network); 2 Sep 2002 21:22:14 -0000
Received: from localhost (HELO triendl.kj) (127.0.0.1)
  by localhost with SMTP; 2 Sep 2002 21:22:14 -0000
Date: Mon, 2 Sep 2002 23:22:13 +0200
From: triendl klaus <triendl.kj@aon.at>
To: bug-commoncpp@gnu.org
Message-Id: <20020902232213.3c277cb8.triendl.kj@aon.at>
X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-debian-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: (no subject)
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

hi everybody,

i have a question to Socket::isPending(enPending, timeout).

according to the signature of this method it should be possible to tell this method to end after a certain time period if no data comes in anymore even if data is expected to come.

i looked closely at the code of TCPStream::isPending() and Socket::isPending() but for me it doesn't work like this.
in my case, isPending(Socket::pendingInput) in the client application is always blocking forever if the server doesn't send anything (or enough), even if i give a timout value.

i tried it both on my linux machine and with windows but no success.
it's important of course because what to do if the server doesn't send the whole data but is supposed to do so?


here is what i wanna do:
i establish a connection to the server, send him a header for the length of the coming binary data. the server should do something with the data and send back a response - also in form of a header with the length and binary data.


the code snippet:
	
	TCPStream con..
	.
	.
	con.write..
	.
	.
	char szBuf[..];
	int nBytesReceived = 0;
	int nDataLen = 0;
	int nBytesAvail;
	int i = 0;
	while (con.isPending(Socket::pendingInput), 100) // this should exit after 100ms, or?
	{
		if (!nDataLen)
		{
			con.get(szBuf[i]);
			if (szBuf[i] == 0x00)
				nDataLen = atoi(szBuf);
			++i;
			continue;
		}
		nBytesAvail = con.readsome(szBuf, nDataLen);
		cerr.write(szBuf, nBytesAvail);
		nBytesReceived += nBytesAvail;
		if (nBytesReceived == nDataLen)
			break;
	}




thanks for every answer,

triendl klaus



From triendl.kj@aon.at Mon Sep 02 17:54:45 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lz9h-0005wB-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 17:54:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lz9f-0005te-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 17:54:44 -0400
Received: from m279p008.adsl.highway.telekom.at ([62.47.202.200] helo=triendl.kj)
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17lz9e-0005q1-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 17:54:42 -0400
Received: (qmail 3225 invoked from network); 2 Sep 2002 21:54:38 -0000
Received: from localhost (HELO triendl.kj) (127.0.0.1)
  by localhost with SMTP; 2 Sep 2002 21:54:38 -0000
Date: Mon, 2 Sep 2002 23:54:37 +0200
From: triendl klaus <triendl.kj@aon.at>
To: bug-commoncpp@gnu.org
Subject: Socket::isPending(pendingInput, timeout) is blocking
Message-Id: <20020902235437.167a48a7.triendl.kj@aon.at>
X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-debian-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

hi everybody,

i have a question to Socket::isPending(enPending, timeout).

according to the signature of this method it should be possible to tell this method to end after a certain time period if no data comes in anymore even if data is expected to come.

i looked closely at the code of TCPStream::isPending() and Socket::isPending() but for me it doesn't work like this.
in my case, isPending(Socket::pendingInput) in the client application is always blocking forever if the server doesn't send anything (or enough), even if i give a timout value.

i tried it both on my linux machine and with windows but no success.
it's important of course because what to do if the server doesn't send the whole data but is supposed to do so?


here is what i wanna do:
i establish a connection to the server, send him a header for the length of the coming binary data. the server should do something with the data and send back a response - also in form of a header with the length and binary data.


the code snippet:
	
	TCPStream con..
	.
	.
	con.write..
	.
	.
	char szBuf[..];
	int nBytesReceived = 0;
	int nDataLen = 0;
	int nBytesAvail;
	int i = 0;
	while (con.isPending(Socket::pendingInput), 100) // this should exit after 100ms, or?
	{
		if (!nDataLen)
		{
			con.get(szBuf[i]);
			if (szBuf[i] == 0x00)
				nDataLen = atoi(szBuf);
			++i;
			continue;
		}
		nBytesAvail = con.readsome(szBuf, nDataLen);
		cerr.write(szBuf, nBytesAvail);
		nBytesReceived += nBytesAvail;
		if (nBytesReceived == nDataLen)
			break;
	}




thanks for every answer,

triendl klaus




From fedemp@wanadoo.es Mon Sep 02 18:20:17 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lzYP-0001AL-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 18:20:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lzYI-00019B-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 18:20:16 -0400
Received: from [62.37.236.137] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17lzYH-000192-00
	for bug-commoncpp@gnu.org; Mon, 02 Sep 2002 18:20:09 -0400
Received: from risitas (62-36-190-163.dialup.uni2.es [62.36.190.163])
	by smtp.wanadoo.es (8.11.3/8.11.3) with ESMTP id g82MGHB01631;
	Tue, 3 Sep 2002 00:16:17 +0200 (MEST)
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17lzZG-0003J6-00; Tue, 03 Sep 2002 00:21:10 +0200
Date: Tue, 3 Sep 2002 00:21:10 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: triendl klaus <triendl.kj@aon.at>
Cc: bug-commoncpp@gnu.org
Subject: Re: Socket::isPending(pendingInput, timeout) is blocking
Message-ID: <20020902222110.GD6167@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: triendl klaus <triendl.kj@aon.at>, bug-commoncpp@gnu.org
References: <20020902235437.167a48a7.triendl.kj@aon.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020902235437.167a48a7.triendl.kj@aon.at>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Mon, Sep 02, 2002 at 11:54:37PM +0200, triendl klaus wrote:
> hi everybody,
> 
> i have a question to Socket::isPending(enPending, timeout).
>
>
>
> according to the signature of this method it should be possible to
>tell this method to end after a certain time period if no data comes
>in anymore even if data is expected to come.

	You are right, the second parameter of isPending is the
maximum time to wait for the kind of event given in the first
parameter. 

	It is weird that method does not work for you, since it is a
very widely used method and has been around for a lot of time. Try the
following simple test:

---
  TCPStream str("127.0.0.1",2401);    // put an accepting tcp port on 2401
  if ( str.isPending(Socket::pendingInput,5000) )
    cout << "true" << endl;
  else
    cout << "false" << endl;
---

	If it waits 5 and says "false", isPending works as
expected. If not, there must be something very weird on your system.

	There is also a 'tcpstream' class in CC++ that may interest
you.

	Bye!




From triendl.kj@aon.at Tue Sep 03 06:40:35 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17mB6o-00062C-00
	for bug-commoncpp@gnu.org; Tue, 03 Sep 2002 06:40:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17mB6g-0005yw-00
	for bug-commoncpp@gnu.org; Tue, 03 Sep 2002 06:40:32 -0400
Received: from chello080109135071.tirol.surfer.at ([80.109.135.71] helo=triendl.kj)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17mB6e-0005vv-00
	for bug-commoncpp@gnu.org; Tue, 03 Sep 2002 06:40:24 -0400
Received: from Spooler by triendl.kj (Mercury/32 v3.31) ID MO000007;
    3 Sep 02 12:35:34 +0200
Received: from spooler by triendl.kj (Mercury/32 v3.31); 3 Sep 02 12:35:23 +0200
Received: from dev1xp (127.0.0.1) by triendl.kj (Mercury/32 v3.31) ID MG000006;
   3 Sep 02 12:35:14 +0200
From: "Klaus Triendl" <triendl.kj@aon.at>
To: <bug-commoncpp@gnu.org>
Subject: exception in SampleSocketServiceServer::StopServer()
Date: Tue, 3 Sep 2002 12:35:14 +0200
Message-ID: <MNENKPHMOOKIHGCMGMEBOEJECBAA.triendl.kj@aon.at>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

hi everybody,

i tested the SampleSocketServiceServer with linux and windows. under windows
an exception is thrown in StopServer().
i traced the problem and figured out that WSAGetLastError() in
Socket::connectError() returns WSAEFAULT (=10014L).


	virtual void StopServer()
	{
		m_bQuitServer = true;

		InetHostAddress host;
		tpport_t port;
		host = getLocal(&port);

		//This is required so that CreateSocketPort can return.
		TCPStream strm(host, port);

		waitMutex.enterMutex();
		waitMutex.leaveMutex();
	}


if i change the code a little and the host is initialized with an address
other than 0, there is not such a problem.


	virtual void StopServer()
	{
		m_bQuitServer = true;

		InetHostAddress host("127.0.0.1");
		tpport_t port;
		getLocal(&port);

		//This is required so that CreateSocketPort can return.
		TCPStream strm(host, port);

		waitMutex.enterMutex();
		waitMutex.leaveMutex();
	}



on linux, this is not a problem either, but i didn't try it yet with my
revised code.
should the getLocal() method be changed?

--
triendl klaus




From dyfet@ostel.com Tue Sep 03 11:50:26 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17mFwg-0001iz-00
	for bug-commoncpp@gnu.org; Tue, 03 Sep 2002 11:50:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17mFwe-0001iH-00
	for bug-commoncpp@gnu.org; Tue, 03 Sep 2002 11:50:25 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17mFwa-0001fI-00; Tue, 03 Sep 2002 11:50:20 -0400
Received: from localhost (dyfet@localhost)
	by home.sys (8.11.6/8.11.6) with ESMTP id g83G5np28103;
	Tue, 3 Sep 2002 12:05:49 -0400
X-Authentication-Warning: home.sys: dyfet owned process doing -bs
Date: Tue, 3 Sep 2002 12:05:49 -0400 (EDT)
From: David Sugar <dyfet@ostel.com>
X-X-Sender: dyfet@home.sys
To: bayonne-devel@lists.sourceforge.net
cc: bug-commoncpp@gnu.org, <hangout@nylxs.com>, <ruben@mrbrklyn.com>,
   <simion.pruna@telemed.ro>, <greve@gnu.org>
Subject: This week I will be in Macedonia...
Message-ID: <Pine.LNX.4.44.0209031156100.27973-100000@home.sys>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This week I am going to be in Macedonia.  I am speaking this Saturday,
September 7th, at Expocom (http://www.expocenter.com.mk) being held at the
Tiffany Expo Center, in Skopje, Macedonia, starting at 14:00.  I will be
speaking primarily about "Software Literacy and the right to study".  
This event is open to the general public.  I will also be holding several
discussions with different groups and will be in Macedonia in total from
the 5th through the 9th of September.

David




From fedemp@wanadoo.es Fri Sep 06 11:30:24 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17nL3w-0000Xq-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 11:30:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17nL3p-0000XQ-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 11:30:24 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17nL3o-0000XM-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 11:30:16 -0400
Received: from risitas ([80.103.118.76])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g9MHQNi03842;
	Tue, 22 Oct 2002 19:26:24 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17nL50-00023G-00; Fri, 06 Sep 2002 17:31:30 +0200
Date: Fri, 6 Sep 2002 17:31:30 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Klaus Triendl <triendl.kj@aon.at>
Cc: bug-commoncpp@gnu.org
Subject: Re: exception in SampleSocketServiceServer::StopServer()
Message-ID: <20020906153130.GA5404@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: Klaus Triendl <triendl.kj@aon.at>, bug-commoncpp@gnu.org
References: <MNENKPHMOOKIHGCMGMEBOEJECBAA.triendl.kj@aon.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <MNENKPHMOOKIHGCMGMEBOEJECBAA.triendl.kj@aon.at>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Tue, Sep 03, 2002 at 12:35:14PM +0200, Klaus Triendl wrote:
> hi everybody,
> 
> i tested the SampleSocketServiceServer with linux and windows. under windows
> an exception is thrown in StopServer().
> i traced the problem and figured out that WSAGetLastError() in
> Socket::connectError() returns WSAEFAULT (=10014L).
> 
...
> 
> if i change the code a little and the host is initialized with an address
> other than 0, there is not such a problem.
> 
...
> on linux, this is not a problem either, but i didn't try it yet with my
> revised code.
> should the getLocal() method be changed?
> 

	From what I read in the demo sources, the reverser server is
listeing on INADDR_ANY; getLocal should return that value, could you
confirm it?

	When StopServer builds the TCPStream object, it tries to
connect to INADDR_ANY and this seems to be what fails on Win32. I am
not familiar with this problem, but the winsock reference says the
following about WSAEFAULT:

	"The name or the namelen parameter is not a valid part of the
user address space, the namelen parameter is too small, or the name
parameter contains incorrect address format for the associated address
family."

	I suppose that the win32 connect does not like INADDR_ANY and
crashes. 

	We could add a check in Socket::getLocal so that when in win32
and the address is null, 127.0.0.1 is returned, but I think we should
not, since we would lose the possibility to know that an InetAddress
object has the INADDR_ANY value.


> --
> triendl klaus
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From fedemp@wanadoo.es Fri Sep 06 13:37:15 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17nN2h-0005ce-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 13:37:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17nN2Z-0005bB-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 13:37:14 -0400
Received: from [62.37.236.142] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17nN2Z-0005b7-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 13:37:07 -0400
Received: from risitas (62-37-136-26.dialup.uni2.es [62.37.136.26])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g86Hb1j22092;
	Fri, 6 Sep 2002 19:37:01 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17nN3o-0002Fv-00; Fri, 06 Sep 2002 19:38:24 +0200
Date: Fri, 6 Sep 2002 19:38:24 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Klaus Triendl <triendl.kj@aon.at>
Cc: bug-commoncpp@gnu.org
Subject: Re: exception in SampleSocketServiceServer::StopServer()
Message-ID: <20020906173824.GA8642@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: Klaus Triendl <triendl.kj@aon.at>, bug-commoncpp@gnu.org
References: <20020906153130.GA5404@risitas> <MNENKPHMOOKIHGCMGMEBIEKICBAA.triendl.kj@aon.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <MNENKPHMOOKIHGCMGMEBIEKICBAA.triendl.kj@aon.at>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Fri, Sep 06, 2002 at 06:26:12PM +0200, Klaus Triendl wrote:
> hi,
> 
> i'm away for some time now. i'll take care when i'm back.
> 
> but if it is like you say, there should be done something anyway, because
> it's not a good idea to let the program die under windows if everything else
> is designed for windows too :)
> 

	We could add a check in the Win32 versions of the several
connect methods, so that when INADDR_ANY is specified as peer address,
it is changed into "127.0.0.1" before calling connect. That is a way
of getting the same behaviour as in posix systems and I think it would
not break old apps.

> 
> --
> triendl klaus
> 



From dyfet@ostel.com Fri Sep 06 14:56:26 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17nOHK-00089q-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 14:56:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17nOHH-00089D-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 14:56:25 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17nOHH-00088X-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 14:56:23 -0400
Received: from localhost (dyfet@localhost)
	by home.sys (8.11.6/8.11.6) with ESMTP id g86JBLg28666;
	Fri, 6 Sep 2002 15:11:21 -0400
X-Authentication-Warning: home.sys: dyfet owned process doing -bs
Date: Fri, 6 Sep 2002 15:11:21 -0400 (EDT)
From: David Sugar <dyfet@ostel.com>
X-X-Sender: dyfet@home.sys
To: Federico Montesino Pouzols <fedemp@altern.org>
cc: Klaus Triendl <triendl.kj@aon.at>, <bug-commoncpp@gnu.org>
Subject: Re: exception in SampleSocketServiceServer::StopServer()
In-Reply-To: <20020906173824.GA8642@risitas>
Message-ID: <Pine.LNX.4.44.0209061510240.28528-100000@home.sys>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I'm in Macedonia for the moment, but I do have email here.  Yes, I think 
what you suggest is harmless for older apps.

On Fri, 6 Sep 2002, Federico Montesino Pouzols wrote:

> On Fri, Sep 06, 2002 at 06:26:12PM +0200, Klaus Triendl wrote:
> > hi,
> > 
> > i'm away for some time now. i'll take care when i'm back.
> > 
> > but if it is like you say, there should be done something anyway, because
> > it's not a good idea to let the program die under windows if everything else
> > is designed for windows too :)
> > 
> 
> 	We could add a check in the Win32 versions of the several
> connect methods, so that when INADDR_ANY is specified as peer address,
> it is changed into "127.0.0.1" before calling connect. That is a way
> of getting the same behaviour as in posix systems and I think it would
> not break old apps.
> 
> > 
> > --
> > triendl klaus
> > 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 




From fedemp@wanadoo.es Sun Sep 08 11:28:18 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17o3z0-00020W-00
	for bug-commoncpp@gnu.org; Sun, 08 Sep 2002 11:28:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17o3ys-0001zd-00
	for bug-commoncpp@gnu.org; Sun, 08 Sep 2002 11:28:17 -0400
Received: from [62.37.236.138] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17o3ys-0001zZ-00
	for bug-commoncpp@gnu.org; Sun, 08 Sep 2002 11:28:10 -0400
Received: from risitas (62-36-190-166.dialup.uni2.es [62.36.190.166])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g88FRc103557;
	Sun, 8 Sep 2002 17:27:39 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17o3zo-0000bx-00; Sun, 08 Sep 2002 17:29:08 +0200
Date: Sun, 8 Sep 2002 17:29:07 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bayonne-devel@lists.sourceforge.net
Cc: Vitaly <kvv@sky.net.ua>, bug-commoncpp@gnu.org
Subject: Re: [Bayonne-devel]Compile error on commoncpp2-1.0.0
Message-ID: <20020908152907.GA724@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: bayonne-devel@lists.sourceforge.net,
	Vitaly <kvv@sky.net.ua>, bug-commoncpp@gnu.org
References: <001d01c256de$f2ac45e0$5234a8c0@V> <20020908021749.B81330@shaitan.lightconsulting.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020908021749.B81330@shaitan.lightconsulting.com>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Sun, Sep 08, 2002 at 02:17:49AM -0700, Jason Spence wrote:
> On Sun, Sep 08, 2002 at 05:23:49AM +0300, Vitaly wrote: 
> > Hi,
> > 
> > I am having trouble compiling commoncpp2-1.0.0 on Red Hat 6.2 (Kernel
> > 2.2.14-5.0).
> > I get to a point where I receive the following error:
> > 
> > /bin/sh ../libtool --mode=compile
> > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I/
> > usr/local/include -D_GNU_SOURCE -I../include -c socket.cpp
> > rm -f .libs/socket.lo
> > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I/u
> > sr/local/include -D_GNU_SOURCE -I../include -c socket.cpp   -fPIC -DPIC -o
> > .libs/socket.lo
> > socket.cpp:51: sstream: No such file or directory
> > make[1]: *** [socket.lo] Error 1
> > make[1]: Leaving directory `/root/Work/commoncpp2-1.0.0/src'
> > make: *** [all-recursive] Error 1
> 
> This is a bit different from the problem I'm having, but I do know
> that the commoncpp2 build is currently broken in at least one other
> way.  You must apply the attached patch to get it to work.  I've
> already sent it to David for application.
> 
> Unfortunately, David is stuck in some third world country with spotty
> Network access at the moment and hasn't seem to have applied it yet
> (http://savannah.gnu.org/cgi-bin/viewcvs/commoncpp/commoncpp2/include/cc%2B%2B/)

	Hi, this is now fixed in CVS. My apologies, since I introduced
this problem.

	However, this bug was introduced after 1.0.0 was released. The
make errors above complain that the sstream header is missing. I see
that Vitaly uses Red Hat 6.2, which probably comes with a gcc release
older than 2.9x that does not have the newer sstream C++ header.

	We are using sstream to follow the newer C++ standard and gcc
3.x releases. Perhaps we will have to add some configuration stuff to
keep compatibility with old systems.

> 
> -- 
>  - Jason
> 
> The economy depends about as much on economists as the weather does on
> weather forecasters.
> 		-- Jean-Paul Kauffmann




From dyfet@ostel.com Wed Sep 11 06:16:53 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17p4YH-0006CL-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 06:16:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17p4YF-0006C9-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 06:16:52 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17p4YE-0006C4-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 06:16:50 -0400
Received: from home.sys (IDENT:/0EvL0EBofouXDg9hnFHak2EFoQB9iQk@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g8BAXCs11940;
	Wed, 11 Sep 2002 06:33:12 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Jason Spence <jspence@lightconsulting.com>,
   bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
   bug-commoncpp@gnu.org
Subject: Re: [Bayonne-devel]Compile error on commoncpp2-1.0.0
Date: Wed, 11 Sep 2002 06:33:11 -0400
User-Agent: KMail/1.4.1
References: <001d01c256de$f2ac45e0$5234a8c0@V> <20020908152907.GA724@risitas> <20020909114939.I89382@shaitan.lightconsulting.com>
In-Reply-To: <20020909114939.I89382@shaitan.lightconsulting.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200209110633.11963.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Yes, we have to have a warning.  We may also need later to have a HAVE_SS=
TREAM=20
check that does either old or new style, which means a lot of conditional=
=20
code :)...This will be needed because we do sometimes need to target C++=20
compilers that do not have sstream yet...

On Monday 09 September 2002 14:49, Jason Spence wrote:
> On Sun, Sep 08, 2002 at 05:29:07PM +0200, Federico Montesino Pouzols wr=
ote:
> > On Sun, Sep 08, 2002 at 02:17:49AM -0700, Jason Spence wrote:
> > > On Sun, Sep 08, 2002 at 05:23:49AM +0300, Vitaly wrote:
> > > > Hi,
> > > >
> > > > I am having trouble compiling commoncpp2-1.0.0 on Red Hat 6.2 (Ke=
rnel
> > > > 2.2.14-5.0).
> > > > I get to a point where I receive the following error:
> > > >
> > > > /bin/sh ../libtool --mode=3Dcompile
> > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > -DCCXX_EXPORT_LIBRARY  -I/ usr/local/include -D_GNU_SOURCE
> > > > -I../include -c socket.cpp
> > > > rm -f .libs/socket.lo
> > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > -DCCXX_EXPORT_LIBRARY -I/u sr/local/include -D_GNU_SOURCE
> > > > -I../include -c socket.cpp   -fPIC -DPIC -o .libs/socket.lo
> > > > socket.cpp:51: sstream: No such file or directory
> > > > make[1]: *** [socket.lo] Error 1
> > > > make[1]: Leaving directory `/root/Work/commoncpp2-1.0.0/src'
> > > > make: *** [all-recursive] Error 1
> > >
> > > This is a bit different from the problem I'm having, but I do know
> > > that the commoncpp2 build is currently broken in at least one other
> > > way.  You must apply the attached patch to get it to work.  I've
> > > already sent it to David for application.
> > >
> > > Unfortunately, David is stuck in some third world country with spot=
ty
> > > Network access at the moment and hasn't seem to have applied it yet
> > > (http://savannah.gnu.org/cgi-bin/viewcvs/commoncpp/commoncpp2/inclu=
de/c
> > >c%2B%2B/)
> >
> > =09Hi, this is now fixed in CVS. My apologies, since I introduced
> > this problem.
> >
> > =09However, this bug was introduced after 1.0.0 was released. The
> > make errors above complain that the sstream header is missing. I see
> > that Vitaly uses Red Hat 6.2, which probably comes with a gcc release
> > older than 2.9x that does not have the newer sstream C++ header.
> >
> > =09We are using sstream to follow the newer C++ standard and gcc
> > 3.x releases. Perhaps we will have to add some configuration stuff to
> > keep compatibility with old systems.
>
> Do you think you could put a warning in configure.in if the check for
> sstream fails as well as instructions to the user on how to upgrade to
> 3.x if necessary?  I'm sure it would cut down on the "Common C++ is
> broken" posts to the list :)




From mad@brasmap.com.br Wed Sep 11 15:46:49 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pDRp-0001O1-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 15:46:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pDRk-0001Np-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 15:46:48 -0400
Received: from acate.com.br ([200.215.17.89])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17pDRh-0001Ls-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 15:46:43 -0400
Received: (qmail 19469 invoked from network); 11 Sep 2002 19:46:32 -0000
Received: from unknown (HELO cli004.brasmap) (192.168.1.13)
  by acate.com.br with SMTP; 11 Sep 2002 19:46:28 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (8.11.1/8.11.1) with ESMTP id g8BJoP521507
	for <bug-commoncpp@gnu.org>; Wed, 11 Sep 2002 16:50:27 -0300
Date: Wed, 11 Sep 2002 16:50:25 -0300 (BRT)
From: Marcelo Dalmas <mad@brasmap.com.br>
X-X-Sender: mad@cli004.brasmap
To: bug-commoncpp@gnu.org
Subject: mekeinfo unknowns command 'verbatim'
Message-ID: <Pine.LNX.4.40.0209111619160.18818-100000@cli004.brasmap>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi,

makeinfo unknowns command verbatim:

make[1]: Entering directory `/usr/local/src/commoncpp2/doc'
cd . \
  && makeinfo `echo commoncpp2.texi | sed 's,.*/,,'`
commoncpp2.texi:745: Unknown command `verbatim'.

I'm using Conectiva 7.0 and texinfo-4.0. What's wrong?

Thanks.

Marcelo Dalmas
BRASMAP Sistemas
www.brasmap.com.br
Fone/Fax: (48) 333-2218 ramal 2114






From fedemp@wanadoo.es Thu Sep 12 11:28:25 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pVtI-0003GE-00
	for bug-commoncpp@gnu.org; Thu, 12 Sep 2002 11:28:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pVtB-0003Fy-00
	for bug-commoncpp@gnu.org; Thu, 12 Sep 2002 11:28:24 -0400
Received: from [62.37.236.138] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17pVtB-0003Fu-00
	for bug-commoncpp@gnu.org; Thu, 12 Sep 2002 11:28:17 -0400
Received: from risitas (62-36-188-202.dialup.uni2.es [62.36.188.202])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g8CFSD116059
	for <bug-commoncpp@gnu.org>; Thu, 12 Sep 2002 17:28:13 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17pVup-0000hN-00
	for <bug-commoncpp@gnu.org>; Thu, 12 Sep 2002 17:29:59 +0200
Date: Thu, 12 Sep 2002 17:29:59 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bug-commoncpp@gnu.org
Subject: Re: mekeinfo unknowns command 'verbatim'
Message-ID: <20020912152959.GA2649@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: bug-commoncpp@gnu.org
References: <Pine.LNX.4.40.0209111619160.18818-100000@cli004.brasmap>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.40.0209111619160.18818-100000@cli004.brasmap>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	Hi, the problem is that @verbatim is defined starting from
texinfo 4.1. Here is a patch that fixes it:


Index: commoncpp2.texi
===================================================================
RCS file: /cvsroot/commoncpp/commoncpp2/doc/commoncpp2.texi,v
retrieving revision 1.3
diff -u -r1.3 commoncpp2.texi
--- commoncpp2.texi	30 Aug 2002 14:26:56 -0000	1.3
+++ commoncpp2.texi	12 Sep 2002 15:25:49 -0000
@@ -476,7 +476,7 @@
 @tindex InetAddress
 @tindex InetHostAddress
 @tindex InetMaskAddress
-@tindex InetBroadcastAddress
+@tindex BroadcastAddress
 The network name and address objects are all derived from a common
 InetAddress base class. Specific classes, such as InetHostAddress,
 InetMaskAddress, etc, are defined from InetAddress entirely so that
@@ -485,7 +485,7 @@
 misuse of the wrong address object.  For example, a "connection" to
 something that is declared as a "InetHostAddress" can be kept
 type-safe from a "connection" accidently being made to something that
-was declared a "InetBroadcastAddress".
+was declared a "BroadcastAddress".
 
 @tindex Socket
 @cindex QoS
@@ -742,25 +742,25 @@
 might define something like:
 
 @example
-@verbatim
+@cartouche
 class KeyPaths : public Keydata
-{
+@{
 public:
-	KeyPaths() : Keydata("/server/paths")
-	{
-		static KEYDEF *defvalues = {
-		{"datafiles", "/var/server"},
-		{NULL, NULL}};
-
-		// override with [paths] from "~/.serverrc" if avail.
-
-		Load("~server/paths");
-		Load(defvalues);
-	}
-};
+        KeyPaths() : Keydata("/server/paths")
+        @{
+                static KEYDEF *defvalues = @{
+                @{"datafiles", "/var/server"@},
+                @{NULL, NULL@}@};
+
+                // @r{override with [paths] from "~/.serverrc" if avail.}
+
+                Load("~server/paths");
+                Load(defvalues);
+        @}
+@};
 
 KeyPaths keypaths;
-@end verbatim
+@end cartouche
 @end example
 


On Wed, Sep 11, 2002 at 04:50:25PM -0300, Marcelo Dalmas wrote:
> 
> Hi,
> 
> makeinfo unknowns command verbatim:
> 
> make[1]: Entering directory `/usr/local/src/commoncpp2/doc'
> cd . \
>   && makeinfo `echo commoncpp2.texi | sed 's,.*/,,'`
> commoncpp2.texi:745: Unknown command `verbatim'.
> 
> I'm using Conectiva 7.0 and texinfo-4.0. What's wrong?
> 
> Thanks.
> 
> Marcelo Dalmas
> BRASMAP Sistemas
> www.brasmap.com.br
> Fone/Fax: (48) 333-2218 ramal 2114
> 
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From fedemp@wanadoo.es Fri Sep 13 14:29:20 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pvBw-0003G9-00
	for bug-commoncpp@gnu.org; Fri, 13 Sep 2002 14:29:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pvBp-0003Ft-00
	for bug-commoncpp@gnu.org; Fri, 13 Sep 2002 14:29:19 -0400
Received: from [62.37.236.136] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17pvBo-0003Fm-00
	for bug-commoncpp@gnu.org; Fri, 13 Sep 2002 14:29:12 -0400
Received: from risitas (62-37-136-52.dialup.uni2.es [62.37.136.52])
	by smtp.wanadoo.es (8.11.3/8.10.2) with ESMTP id g8DIPHH11527;
	Fri, 13 Sep 2002 20:25:18 +0200 (MEST)
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17pvCN-0000IU-00; Fri, 13 Sep 2002 20:29:47 +0200
Date: Fri, 13 Sep 2002 20:29:46 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Cc: Jason Spence <jspence@lightconsulting.com>,
   bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
   bug-commoncpp@gnu.org
Subject: Re: [Bayonne-devel]Compile error on commoncpp2-1.0.0
Message-ID: <20020913182946.GA637@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: David Sugar <dyfet@ostel.com>,
	Jason Spence <jspence@lightconsulting.com>,
	bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
	bug-commoncpp@gnu.org
References: <001d01c256de$f2ac45e0$5234a8c0@V> <20020908152907.GA724@risitas> <20020909114939.I89382@shaitan.lightconsulting.com> <200209110633.11963.dyfet@ostel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200209110633.11963.dyfet@ostel.com>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	Yes, HAVE_SSTREAM seems necessary. I think this only involves
modifying the XMLRPC class. The new sstream was incorporated not too
much ago, so adding #ifdef's right now is not too dificult. However,
it may become a maintenance headache in the future :)

	I have added this to the queue of fixes and additions that I
should incorporate soon. Let me know if there is a better solution.

On Wed, Sep 11, 2002 at 06:33:11AM -0400, David Sugar wrote:
> Yes, we have to have a warning.  We may also need later to have a HAVE_SSTREAM 
> check that does either old or new style, which means a lot of conditional 
> code :)...This will be needed because we do sometimes need to target C++ 
> compilers that do not have sstream yet...
> 
> On Monday 09 September 2002 14:49, Jason Spence wrote:
> > On Sun, Sep 08, 2002 at 05:29:07PM +0200, Federico Montesino Pouzols wrote:
> > > On Sun, Sep 08, 2002 at 02:17:49AM -0700, Jason Spence wrote:
> > > > On Sun, Sep 08, 2002 at 05:23:49AM +0300, Vitaly wrote:
> > > > > Hi,
> > > > >
> > > > > I am having trouble compiling commoncpp2-1.0.0 on Red Hat 6.2 (Kernel
> > > > > 2.2.14-5.0).
> > > > > I get to a point where I receive the following error:
> > > > >
> > > > > /bin/sh ../libtool --mode=compile
> > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > -DCCXX_EXPORT_LIBRARY  -I/ usr/local/include -D_GNU_SOURCE
> > > > > -I../include -c socket.cpp
> > > > > rm -f .libs/socket.lo
> > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > -DCCXX_EXPORT_LIBRARY -I/u sr/local/include -D_GNU_SOURCE
> > > > > -I../include -c socket.cpp   -fPIC -DPIC -o .libs/socket.lo
> > > > > socket.cpp:51: sstream: No such file or directory
> > > > > make[1]: *** [socket.lo] Error 1
> > > > > make[1]: Leaving directory `/root/Work/commoncpp2-1.0.0/src'
> > > > > make: *** [all-recursive] Error 1
> > > >
> > > > This is a bit different from the problem I'm having, but I do know
> > > > that the commoncpp2 build is currently broken in at least one other
> > > > way.  You must apply the attached patch to get it to work.  I've
> > > > already sent it to David for application.
> > > >
> > > > Unfortunately, David is stuck in some third world country with spotty
> > > > Network access at the moment and hasn't seem to have applied it yet
> > > > (http://savannah.gnu.org/cgi-bin/viewcvs/commoncpp/commoncpp2/include/c
> > > >c%2B%2B/)
> > >
> > > 	Hi, this is now fixed in CVS. My apologies, since I introduced
> > > this problem.
> > >
> > > 	However, this bug was introduced after 1.0.0 was released. The
> > > make errors above complain that the sstream header is missing. I see
> > > that Vitaly uses Red Hat 6.2, which probably comes with a gcc release
> > > older than 2.9x that does not have the newer sstream C++ header.
> > >
> > > 	We are using sstream to follow the newer C++ standard and gcc
> > > 3.x releases. Perhaps we will have to add some configuration stuff to
> > > keep compatibility with old systems.
> >
> > Do you think you could put a warning in configure.in if the check for
> > sstream fails as well as instructions to the user on how to upgrade to
> > 3.x if necessary?  I'm sure it would cut down on the "Common C++ is
> > broken" posts to the list :)
> 
> 
> 
> -------------------------------------------------------
> In remembrance
> www.osdn.com/911/
> _______________________________________________
> Bayonne-devel mailing list
> Bayonne-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bayonne-devel



From dyfet@ostel.com Sun Sep 15 06:54:44 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17qX36-0000Jv-00
	for bug-commoncpp@gnu.org; Sun, 15 Sep 2002 06:54:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17qX34-0000JQ-00
	for bug-commoncpp@gnu.org; Sun, 15 Sep 2002 06:54:43 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17qX33-0000J2-00
	for bug-commoncpp@gnu.org; Sun, 15 Sep 2002 06:54:41 -0400
Received: from home.sys (IDENT:iprWmBvUIwb/0SLs/JzV1ZUGIFVEsAsv@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g8FBBYs30072;
	Sun, 15 Sep 2002 07:11:35 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: [Bayonne-devel]Compile error on commoncpp2-1.0.0
Date: Sun, 15 Sep 2002 07:11:34 -0400
User-Agent: KMail/1.4.1
Cc: Jason Spence <jspence@lightconsulting.com>,
   bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
   bug-commoncpp@gnu.org
References: <001d01c256de$f2ac45e0$5234a8c0@V> <200209110633.11963.dyfet@ostel.com> <20020913182946.GA637@risitas>
In-Reply-To: <20020913182946.GA637@risitas>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200209150711.34312.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I think a lot of other Common C++ related things (in particular, Bayonne =
and=20
ccscript) still use strstream.  I will need to update these to work with=20
HAVE_SSTREAM also, but to enable use of sstream :).

On Friday 13 September 2002 14:29, Federico Montesino Pouzols wrote:
> Yes, HAVE_SSTREAM seems necessary. I think this only involves
> modifying the XMLRPC class. The new sstream was incorporated not too
> much ago, so adding #ifdef's right now is not too dificult. However,
> it may become a maintenance headache in the future :)
>
> =09I have added this to the queue of fixes and additions that I
> should incorporate soon. Let me know if there is a better solution.
>
> On Wed, Sep 11, 2002 at 06:33:11AM -0400, David Sugar wrote:
> > Yes, we have to have a warning.  We may also need later to have a
> > HAVE_SSTREAM check that does either old or new style, which means a l=
ot
> > of conditional code :)...This will be needed because we do sometimes =
need
> > to target C++ compilers that do not have sstream yet...
> >
> > On Monday 09 September 2002 14:49, Jason Spence wrote:
> > > On Sun, Sep 08, 2002 at 05:29:07PM +0200, Federico Montesino Pouzol=
s=20
wrote:
> > > > On Sun, Sep 08, 2002 at 02:17:49AM -0700, Jason Spence wrote:
> > > > > On Sun, Sep 08, 2002 at 05:23:49AM +0300, Vitaly wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I am having trouble compiling commoncpp2-1.0.0 on Red Hat 6.2
> > > > > > (Kernel 2.2.14-5.0).
> > > > > > I get to a point where I receive the following error:
> > > > > >
> > > > > > /bin/sh ../libtool --mode=3Dcompile
> > > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > > -DCCXX_EXPORT_LIBRARY  -I/ usr/local/include -D_GNU_SOURCE
> > > > > > -I../include -c socket.cpp
> > > > > > rm -f .libs/socket.lo
> > > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > > -DCCXX_EXPORT_LIBRARY -I/u sr/local/include -D_GNU_SOURCE
> > > > > > -I../include -c socket.cpp   -fPIC -DPIC -o .libs/socket.lo
> > > > > > socket.cpp:51: sstream: No such file or directory
> > > > > > make[1]: *** [socket.lo] Error 1
> > > > > > make[1]: Leaving directory `/root/Work/commoncpp2-1.0.0/src'
> > > > > > make: *** [all-recursive] Error 1
> > > > >
> > > > > This is a bit different from the problem I'm having, but I do k=
now
> > > > > that the commoncpp2 build is currently broken in at least one o=
ther
> > > > > way.  You must apply the attached patch to get it to work.  I'v=
e
> > > > > already sent it to David for application.
> > > > >
> > > > > Unfortunately, David is stuck in some third world country with
> > > > > spotty Network access at the moment and hasn't seem to have app=
lied
> > > > > it yet
> > > > > (http://savannah.gnu.org/cgi-bin/viewcvs/commoncpp/commoncpp2/i=
nclu
> > > > >de/c c%2B%2B/)
> > > >
> > > > =09Hi, this is now fixed in CVS. My apologies, since I introduced
> > > > this problem.
> > > >
> > > > =09However, this bug was introduced after 1.0.0 was released. The
> > > > make errors above complain that the sstream header is missing. I =
see
> > > > that Vitaly uses Red Hat 6.2, which probably comes with a gcc rel=
ease
> > > > older than 2.9x that does not have the newer sstream C++ header.
> > > >
> > > > =09We are using sstream to follow the newer C++ standard and gcc
> > > > 3.x releases. Perhaps we will have to add some configuration stuf=
f to
> > > > keep compatibility with old systems.
> > >
> > > Do you think you could put a warning in configure.in if the check f=
or
> > > sstream fails as well as instructions to the user on how to upgrade=
 to
> > > 3.x if necessary?  I'm sure it would cut down on the "Common C++ is
> > > broken" posts to the list :)
> >
> > -------------------------------------------------------
> > In remembrance
> > www.osdn.com/911/
> > _______________________________________________
> > Bayonne-devel mailing list
> > Bayonne-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bayonne-devel
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From fedemp@wanadoo.es Tue Sep 17 17:42:17 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17rQ6r-0001q2-00
	for bug-commoncpp@gnu.org; Tue, 17 Sep 2002 17:42:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17rQ6k-0001pm-00
	for bug-commoncpp@gnu.org; Tue, 17 Sep 2002 17:42:16 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17rQ6j-0001ph-00
	for bug-commoncpp@gnu.org; Tue, 17 Sep 2002 17:42:09 -0400
Received: from risitas (62-37-139-116.dialup.uni2.es [62.37.139.116])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id gA2Nani02584;
	Sun, 3 Nov 2002 00:36:50 +0100
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17rQ7d-0006QJ-00; Tue, 17 Sep 2002 23:43:05 +0200
Date: Tue, 17 Sep 2002 23:43:04 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>,
   Jason Spence <jspence@lightconsulting.com>,
   bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
   bug-commoncpp@gnu.org
Subject: Re: [Bayonne-devel]Compile error on commoncpp2-1.0.0
Message-ID: <20020917214304.GA4732@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: David Sugar <dyfet@ostel.com>,
	Federico Montesino Pouzols <fedemp@altern.org>,
	Jason Spence <jspence@lightconsulting.com>,
	bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
	bug-commoncpp@gnu.org
References: <001d01c256de$f2ac45e0$5234a8c0@V> <200209110633.11963.dyfet@ostel.com> <20020913182946.GA637@risitas> <200209150711.34312.dyfet@ostel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200209150711.34312.dyfet@ostel.com>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	This is now fixed in CVS. I am afraid that there will be more
issues around HAVE_SSTREAM in the future...

	Both XMLRPC and URLStream have had to be modified.

On Sun, Sep 15, 2002 at 07:11:34AM -0400, David Sugar wrote:
> I think a lot of other Common C++ related things (in particular, Bayonne and 
> ccscript) still use strstream.  I will need to update these to work with 
> HAVE_SSTREAM also, but to enable use of sstream :).
> 
> On Friday 13 September 2002 14:29, Federico Montesino Pouzols wrote:
> > Yes, HAVE_SSTREAM seems necessary. I think this only involves
> > modifying the XMLRPC class. The new sstream was incorporated not too
> > much ago, so adding #ifdef's right now is not too dificult. However,
> > it may become a maintenance headache in the future :)
> >
> > 	I have added this to the queue of fixes and additions that I
> > should incorporate soon. Let me know if there is a better solution.
> >
> > On Wed, Sep 11, 2002 at 06:33:11AM -0400, David Sugar wrote:
> > > Yes, we have to have a warning.  We may also need later to have a
> > > HAVE_SSTREAM check that does either old or new style, which means a lot
> > > of conditional code :)...This will be needed because we do sometimes need
> > > to target C++ compilers that do not have sstream yet...
> > >
> > > On Monday 09 September 2002 14:49, Jason Spence wrote:
> > > > On Sun, Sep 08, 2002 at 05:29:07PM +0200, Federico Montesino Pouzols 
> wrote:
> > > > > On Sun, Sep 08, 2002 at 02:17:49AM -0700, Jason Spence wrote:
> > > > > > On Sun, Sep 08, 2002 at 05:23:49AM +0300, Vitaly wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am having trouble compiling commoncpp2-1.0.0 on Red Hat 6.2
> > > > > > > (Kernel 2.2.14-5.0).
> > > > > > > I get to a point where I receive the following error:
> > > > > > >
> > > > > > > /bin/sh ../libtool --mode=compile
> > > > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > > > -DCCXX_EXPORT_LIBRARY  -I/ usr/local/include -D_GNU_SOURCE
> > > > > > > -I../include -c socket.cpp
> > > > > > > rm -f .libs/socket.lo
> > > > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > > > -DCCXX_EXPORT_LIBRARY -I/u sr/local/include -D_GNU_SOURCE
> > > > > > > -I../include -c socket.cpp   -fPIC -DPIC -o .libs/socket.lo
> > > > > > > socket.cpp:51: sstream: No such file or directory
> > > > > > > make[1]: *** [socket.lo] Error 1
> > > > > > > make[1]: Leaving directory `/root/Work/commoncpp2-1.0.0/src'
> > > > > > > make: *** [all-recursive] Error 1
> > > > > >
> > > > > > This is a bit different from the problem I'm having, but I do know
> > > > > > that the commoncpp2 build is currently broken in at least one other
> > > > > > way.  You must apply the attached patch to get it to work.  I've
> > > > > > already sent it to David for application.
> > > > > >
> > > > > > Unfortunately, David is stuck in some third world country with
> > > > > > spotty Network access at the moment and hasn't seem to have applied
> > > > > > it yet
> > > > > > (http://savannah.gnu.org/cgi-bin/viewcvs/commoncpp/commoncpp2/inclu
> > > > > >de/c c%2B%2B/)
> > > > >
> > > > > 	Hi, this is now fixed in CVS. My apologies, since I introduced
> > > > > this problem.
> > > > >
> > > > > 	However, this bug was introduced after 1.0.0 was released. The
> > > > > make errors above complain that the sstream header is missing. I see
> > > > > that Vitaly uses Red Hat 6.2, which probably comes with a gcc release
> > > > > older than 2.9x that does not have the newer sstream C++ header.
> > > > >
> > > > > 	We are using sstream to follow the newer C++ standard and gcc
> > > > > 3.x releases. Perhaps we will have to add some configuration stuff to
> > > > > keep compatibility with old systems.
> > > >
> > > > Do you think you could put a warning in configure.in if the check for
> > > > sstream fails as well as instructions to the user on how to upgrade to
> > > > 3.x if necessary?  I'm sure it would cut down on the "Common C++ is
> > > > broken" posts to the list :)



From apavloff@eason.com Wed Sep 18 18:26:41 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17rnHN-0001s9-00
	for bug-commoncpp@gnu.org; Wed, 18 Sep 2002 18:26:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17rnHL-0001rn-00
	for bug-commoncpp@gnu.org; Wed, 18 Sep 2002 18:26:40 -0400
Received: from b.smtp-out.sonic.net ([208.201.224.39])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17rnHL-0001ra-00
	for Bug-commoncpp@gnu.org; Wed, 18 Sep 2002 18:26:39 -0400
Received: (qmail 19011 invoked from network); 18 Sep 2002 22:26:38 -0000
Received: from sub.sonic.net (208.201.224.8)
  by b.smtp-out.sonic.net with SMTP; 18 Sep 2002 22:26:38 -0000
Received: from mailman.eason.com (adsl-209-204-139-80.sonic.net [209.204.139.80])
	by sub.sonic.net (8.11.6/8.8.5) with ESMTP id g8IMQb703318
	for <Bug-commoncpp@gnu.org>; Wed, 18 Sep 2002 15:26:38 -0700
X-envelope-info: <apavloff@eason.com>
Received: by mailman.eason.com with Internet Mail Service (5.5.2653.19)
	id <TF4LBZH7>; Wed, 18 Sep 2002 15:26:37 -0700
Message-ID: <D3AF5F134D627243993F2F2FC32EE4D20CE257@mailman.eason.com>
From: Alex Pavloff <apavloff@eason.com>
To: "'Bug-commoncpp@gnu.org'" <Bug-commoncpp@gnu.org>
Subject: detecting broken sockets
Date: Wed, 18 Sep 2002 15:26:36 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hello folks,

I've been using the UnixSocket class (which I wrote), and I'm trying to
figure out how to handle a certain situation.  I want to test to see if the
socket is broken in anyway, and if so, attempt a reconnect.  I'm using
UnixStream (like TCPStream), so the good() call just checks the failbits to
see if an error *did* occur.  

So whats the best way to do this?  Is there a std::stringbuf or some std
function that I can use?  Is there some ost::Socket function I can call?
(Doubt it, since the UnixSocket fits sort of strangely on top of Socket).
Or do I write a test function and add it directly to UnixSocket?

Thanks,

Alex Pavloff - apavloff@eason.com
Eason Technology -- www.eason.com
 



From fedemp@wanadoo.es Thu Sep 19 10:31:16 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17s2Kq-0000UM-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 10:31:16 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17s2Kj-0000Sm-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 10:31:15 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17s2Ki-0000SJ-00
	for Bug-commoncpp@gnu.org; Thu, 19 Sep 2002 10:31:08 -0400
Received: from risitas (62-37-75-10.dialup.uni2.es [62.37.75.10])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id gA4GQWi31970;
	Mon, 4 Nov 2002 17:26:33 +0100
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17s2MW-000707-00; Thu, 19 Sep 2002 16:33:00 +0200
Date: Thu, 19 Sep 2002 16:33:00 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Alex Pavloff <apavloff@eason.com>
Cc: "'Bug-commoncpp@gnu.org'" <Bug-commoncpp@gnu.org>
Subject: Re: detecting broken sockets
Message-ID: <20020919143300.GC1648@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: Alex Pavloff <apavloff@eason.com>,
	"'Bug-commoncpp@gnu.org'" <Bug-commoncpp@gnu.org>
References: <D3AF5F134D627243993F2F2FC32EE4D20CE257@mailman.eason.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <D3AF5F134D627243993F2F2FC32EE4D20CE257@mailman.eason.com>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	Hi,

	Well, I do not know if it is exactly what you are looking for,
but ost::Socket has several methods for handling socket errors:

	* setError, which enables/disables exception throwing

	* connectError, which checks the socket status and returns the
corresponding ost::Socket::Error (this is for checking after a
connect).

	* error, which, given a ost::Socket::Error throws an exception
or simply returns the error depending on what you have set with
setError().

On Wed, Sep 18, 2002 at 03:26:36PM -0700, Alex Pavloff wrote:
> 
> Hello folks,
> 
> I've been using the UnixSocket class (which I wrote), and I'm trying to
> figure out how to handle a certain situation.  I want to test to see if the
> socket is broken in anyway, and if so, attempt a reconnect.  I'm using
> UnixStream (like TCPStream), so the good() call just checks the failbits to
> see if an error *did* occur.  
> 
> So whats the best way to do this?  Is there a std::stringbuf or some std
> function that I can use?  Is there some ost::Socket function I can call?
> (Doubt it, since the UnixSocket fits sort of strangely on top of Socket).
> Or do I write a test function and add it directly to UnixSocket?
> 
> Thanks,
> 
> Alex Pavloff - apavloff@eason.com
> Eason Technology -- www.eason.com
>  
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From dyfet@ostel.com Thu Sep 19 11:10:35 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17s2wt-00010A-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 11:10:35 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17s2wq-0000yc-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 11:10:34 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17s2wq-0000xb-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 11:10:32 -0400
Received: from localhost (dyfet@localhost)
	by home.sys (8.11.6/8.11.6) with ESMTP id g8JFSEU29087;
	Thu, 19 Sep 2002 11:28:14 -0400
X-Authentication-Warning: home.sys: dyfet owned process doing -bs
Date: Thu, 19 Sep 2002 11:28:14 -0400 (EDT)
From: David Sugar <dyfet@ostel.com>
X-X-Sender: dyfet@home.sys
To: bayonne-devel@lists.sourceforge.net
cc: bug-commoncpp@gnu.org
Subject: Common C++ 1.0.2 out
Message-ID: <Pine.LNX.4.44.0209191125170.29075-100000@home.sys>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This release should have fixes allowing it's use on older stdc++ 
implimentations that do not have sstream.  It also has a number of other 
recent and noteworthy bug fixes which it looks like did not get correctly 
annotated in the changelog as being part of 1.0.2...






From mad@brasmap.com.br Thu Sep 19 14:08:10 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17s5ik-000173-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 14:08:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17s5ii-00016e-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 14:08:09 -0400
Received: from acate.com.br ([200.215.17.89])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17s5ii-00016Y-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 14:08:08 -0400
Received: (qmail 5458 invoked from network); 19 Sep 2002 18:08:04 -0000
Received: from unknown (HELO cli004.brasmap) (192.168.1.13)
  by acate.com.br with SMTP; 19 Sep 2002 18:08:00 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (8.11.1/8.11.1) with ESMTP id g8JICgT06644
	for <bug-commoncpp@gnu.org>; Thu, 19 Sep 2002 15:12:43 -0300
Date: Thu, 19 Sep 2002 15:12:42 -0300 (BRT)
From: Marcelo Dalmas <mad@brasmap.com.br>
X-X-Sender: mad@cli004.brasmap
To: bug-commoncpp@gnu.org
Subject: patch to build rpm.
Message-ID: <Pine.LNX.4.40.0209191510490.4125-200000@cli004.brasmap>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-1463809014-1628375274-1032459162=:4125"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1463809014-1628375274-1032459162=:4125
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hi,

A patch to build rpm packages.


Marcelo Dalmas
BRASMAP Sistemas
www.brasmap.com.br
Fone/Fax: (48) 333-2218 ramal 2114


---1463809014-1628375274-1032459162=:4125
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="commoncpp2.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.40.0209191512420.4125@cli004.brasmap>
Content-Description: 
Content-Disposition: attachment; filename="commoncpp2.patch"

ZGlmZiAtcnUgY29tbW9uY3BwMi1nbnUvTWFrZWZpbGUuYW0gY29tbW9uY3Bw
Mi9NYWtlZmlsZS5hbQ0KLS0tIGNvbW1vbmNwcDItZ251L01ha2VmaWxlLmFt
CU1vbiBTZXAgIDIgMTc6MTY6NTEgMjAwMg0KKysrIGNvbW1vbmNwcDIvTWFr
ZWZpbGUuYW0JVGh1IFNlcCAxOSAxMDo1NDo0NiAyMDAyDQpAQCAtMTMsNyAr
MTMsNyBAQA0KIEVYVFJBX0RJU1QgPSByZWNvbmZpZyBUT0RPIGNvbW1vbmNw
cDIuc3BlYyBjb21tb25jcHAyLnNwZWMuaW4gXA0KIAljb21tb25jcHAyLnBy
b3RvLmluIHBrZ2luZm8uaW4gY29tbW9uY3BwMi5sc20uaW4gXA0KIAljb25m
aWcvY29uZmlnLmd1ZXNzIGNvbmZpZy9jb25maWcuc3ViIGNvbmZpZy9pbnN0
YWxsLXNoIFwNCi0JY29uZmlnL2x0bWFpbi5zaCBjb25maWcvbWlzc2luZyBj
b25maWcvbWtpbnN0YWxsZGlycyBcDQorCWNvbmZpZy9sdGNvbmZpZyBjb25m
aWcvbHRtYWluLnNoIGNvbmZpZy9taXNzaW5nIGNvbmZpZy9ta2luc3RhbGxk
aXJzIFwNCiAJZnJlZWJzZC9NYWtlZmlsZS5pbiBmcmVlYnNkL3BrZyogTWFr
ZWZpbGUuYmNjIFwNCiAJQ09QWUlORy5hZGRlbmR1bSBJTlNUQUxMLndpbjMy
IFwNCiAJYWNjb25maWcuaCBjb21tb25jcHAyLmtkZXZwcmoNCmRpZmYgLXJ1
IGNvbW1vbmNwcDItZ251L2NvbW1vbmNwcDIuc3BlYy5pbiBjb21tb25jcHAy
L2NvbW1vbmNwcDIuc3BlYy5pbg0KLS0tIGNvbW1vbmNwcDItZ251L2NvbW1v
bmNwcDIuc3BlYy5pbglNb24gU2VwICAyIDEzOjQ0OjAyIDIwMDINCisrKyBj
b21tb25jcHAyL2NvbW1vbmNwcDIuc3BlYy5pbglUaHUgU2VwIDE5IDExOjEz
OjQ0IDIwMDINCkBAIC03MCw3ICs3MCw3IEBADQogDQogJWZpbGVzIGRldmVs
DQogJWRlZmF0dHIoLSxyb290LHJvb3QsMDc1NSkNCi0lZG9jIEFVVEhPUlMg
Q09QWUlORyBDT1BZSU5HLmFkZGVuZHVtIE5FV1MgUkVBRE1FIFRPRE8gT1ZF
UlZJRVcuVFhUIENoYW5nZUxvZw0KKyVkb2MgQVVUSE9SUyBDT1BZSU5HIENP
UFlJTkcuYWRkZW5kdW0gTkVXUyBSRUFETUUgVE9ETyBDaGFuZ2VMb2cNCiAl
e19wcmVmaXh9L2xpYi9saWJjYyphDQogJXtfcHJlZml4fS9pbmNsdWRlL2Nj
KysyDQogJXtfcHJlZml4fS9iaW4vY2NnbnUyLWNvbmZpZw0K
---1463809014-1628375274-1032459162=:4125--




From fedemp@wanadoo.es Thu Sep 19 14:19:16 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17s5tU-0003Og-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 14:19:16 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17s5tN-0003M5-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 14:19:15 -0400
Received: from [62.37.236.138] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17s5tM-0003LJ-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 14:19:08 -0400
Received: from risitas (62-37-75-10.dialup.uni2.es [62.37.75.10])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g8JIJ4130876
	for <bug-commoncpp@gnu.org>; Thu, 19 Sep 2002 20:19:04 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17s5vE-0007Ri-00
	for <bug-commoncpp@gnu.org>; Thu, 19 Sep 2002 20:21:04 +0200
Date: Thu, 19 Sep 2002 20:21:04 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bug-commoncpp@gnu.org
Subject: Re: patch to build rpm.
Message-ID: <20020919182103.GE1648@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: bug-commoncpp@gnu.org
References: <Pine.LNX.4.40.0209191510490.4125-200000@cli004.brasmap>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.40.0209191510490.4125-200000@cli004.brasmap>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	Thanks, it has been incorporated to CVS. CC++ 1.0.2 has been
just released, so it will be for 1.0.3 :).

On Thu, Sep 19, 2002 at 03:12:42PM -0300, Marcelo Dalmas wrote:
> 
> Hi,
> 
> A patch to build rpm packages.
> 
> 
> Marcelo Dalmas
> BRASMAP Sistemas
> www.brasmap.com.br
> Fone/Fax: (48) 333-2218 ramal 2114
> 



From apavloff@eason.com Thu Sep 19 16:30:12 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17s7wC-00065v-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 16:30:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17s7wA-00065d-00
	for bug-commoncpp@gnu.org; Thu, 19 Sep 2002 16:30:12 -0400
Received: from b.smtp-out.sonic.net ([208.201.224.39])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17s7wA-00065Y-00
	for Bug-commoncpp@gnu.org; Thu, 19 Sep 2002 16:30:10 -0400
Received: (qmail 6879 invoked from network); 19 Sep 2002 20:30:08 -0000
Received: from sub.sonic.net (208.201.224.8)
  by b.smtp-out.sonic.net with SMTP; 19 Sep 2002 20:30:08 -0000
Received: from mailman.eason.com (adsl-209-204-139-80.sonic.net [209.204.139.80])
	by sub.sonic.net (8.11.6/8.8.5) with ESMTP id g8JKU8510515
	for <Bug-commoncpp@gnu.org>; Thu, 19 Sep 2002 13:30:08 -0700
X-envelope-info: <apavloff@eason.com>
Received: by mailman.eason.com with Internet Mail Service (5.5.2653.19)
	id <TFYR78K6>; Thu, 19 Sep 2002 13:30:08 -0700
Message-ID: <D3AF5F134D627243993F2F2FC32EE4D20CE259@mailman.eason.com>
From: Alex Pavloff <apavloff@eason.com>
To: "'Bug-commoncpp@gnu.org'" <Bug-commoncpp@gnu.org>
Subject: Interesting article on LockingPointers...
Date: Thu, 19 Sep 2002 13:30:07 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Ran across this.

http://www.cuj.com/experts/1902/alexandr.htm?topic=experts

Think this could be used in CommonC++ some way?

Alex Pavloff - apavloff@eason.com
Eason Technology -- www.eason.com
 



From fedemp@wanadoo.es Fri Sep 20 09:54:35 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sOEs-0006Rv-00
	for bug-commoncpp@gnu.org; Fri, 20 Sep 2002 09:54:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sOEl-0006Qz-00
	for bug-commoncpp@gnu.org; Fri, 20 Sep 2002 09:54:33 -0400
Received: from [62.37.236.142] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17sOEk-0006Qv-00
	for Bug-commoncpp@gnu.org; Fri, 20 Sep 2002 09:54:26 -0400
Received: from risitas (62-36-191-56.dialup.uni2.es [62.36.191.56])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g8KDsMj14063
	for <Bug-commoncpp@gnu.org>; Fri, 20 Sep 2002 15:54:22 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17sOGg-0000dw-00
	for <Bug-commoncpp@gnu.org>; Fri, 20 Sep 2002 15:56:26 +0200
Date: Fri, 20 Sep 2002 15:56:25 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: "'Bug-commoncpp@gnu.org'" <Bug-commoncpp@gnu.org>
Subject: Re: Interesting article on LockingPointers...
Message-ID: <20020920135625.GA2422@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: "'Bug-commoncpp@gnu.org'" <Bug-commoncpp@gnu.org>
References: <D3AF5F134D627243993F2F2FC32EE4D20CE259@mailman.eason.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <D3AF5F134D627243993F2F2FC32EE4D20CE259@mailman.eason.com>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	If you wish to contribute a LockingPtr-like template, I think
it will fit well in the current template set of CC++, which already
has some pointers and locking related templates.

	Beware however that some of the ideas in this article are
wrong, as the author itself recognized in a later CUJ article (I
believe it is in an article one or two months later).

On Thu, Sep 19, 2002 at 01:30:07PM -0700, Alex Pavloff wrote:
> 
> Ran across this.
> 
> http://www.cuj.com/experts/1902/alexandr.htm?topic=experts
> 
> Think this could be used in CommonC++ some way?
> 
> Alex Pavloff - apavloff@eason.com
> Eason Technology -- www.eason.com



From baumannd@msoe.edu Thu Sep 26 07:20:50 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17uWhO-0001z0-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 07:20:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17uWhM-0001ym-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 07:20:49 -0400
Received: from mke-24-167-202-50.wi.rr.com ([24.167.202.50] helo=frell.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17uWhM-0001yh-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 07:20:48 -0400
Received: from obfuscation.dyndns.org ([192.168.1.2] ident=mail)
	by frell.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17uWhK-0000yP-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 06:20:46 -0500
Received: from localhost
	([127.0.0.1] helo=localhost.localdomain ident=danielb)
	by obfuscation.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17uWhJ-00081c-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 06:20:45 -0500
Subject: undefined symbols in piostreams lib
From: Daniel E Baumann <baumannd@msoe.edu>
To: bug-commoncpp@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 
Date: 26 Sep 2002 06:20:44 -0500
Message-Id: <1033039245.29382.5.camel@obfuscation>
Mime-Version: 1.0
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi, I am trying t compile my demo program that uses the piostreams but
now I keep getting undefined symbols for a few things which doesn't make
sense as this sutff compiled fine before. I am using:

g++ (GCC) 3.2.1 20020924 (Debian prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Here's what a simple make in the demo directory gives me now:

danielb@obfuscation:~/src/cvs/commoncpp2/demo$ make
/bin/sh ../libtool --mode=link g++  -g -O2 -D_GNU_SOURCE    -o serial 
serialmain.o serialecho.o ../src/libccext2.la -lxml2 -lz
../src/libccgnu2.la -pthread -ldl 
g++ -g -O2 -D_GNU_SOURCE -o .libs/serial serialmain.o serialecho.o
-pthread  ../src/.libs/libccext2.so /usr/lib/libxml2.so -lm -lz
../src/.libs/libccgnu2.so -ldl
serialmain.o: In function `__static_initialization_and_destruction_0':
/usr/include/c++/3.2/iostream:62: undefined reference to
`ost::Init::~Init [in-charge]()'
/usr/include/c++/3.2/iostream:62: undefined reference to
`ost::Init::Init[in-charge]()'
serialecho.o: In function `__static_initialization_and_destruction_0':
/usr/include/c++/3.2/iostream:62: undefined reference to
`ost::Init::~Init [in-charge]()'
/usr/include/c++/3.2/iostream:62: undefined reference to
`ost::Init::Init[in-charge]()'
collect2: ld returned 1 exit status
make: *** [serial] Error 1


Also trying to build pio.cpp it self gives me:

/bin/sh ../libtool --mode=link g++  -g -O2 -D_GNU_SOURCE    -o pio 
pio.o ../src/libccext2.la -lxml2 -lz ../src/libccgnu2.la -pthread -ldl 
g++ -g -O2 -D_GNU_SOURCE -o .libs/pio pio.o -pthread 
../src/.libs/libccext2.so /usr/lib/libxml2.so -lm -lz
../src/.libs/libccgnu2.so -ldl
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/pio.cpp:94: undefined reference to
`ost::pout'
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292:
undefined reference to `ost::pout'
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292:
undefined reference to `ost::pout'
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/postream:140:
undefined reference to `ost::pout'
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292:
undefined reference to `ost::pout'
pio.o:/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292: more undefined references to `ost::pout' follow
pio.o: In function `__static_initialization_and_destruction_0':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/piostream:70:
undefined reference to `ost::Init::Init[in-charge]()'
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/piostream:70:
undefined reference to `ost::Init::~Init [in-charge]()'
pio.o: In function `ost::basic_postream<char, std::char_traits<char> >&
ost::operator<< <std::char_traits<char> >(ost::basic_postream<char,
std::char_traits<char> >&, char const*)':
/home/danielb/src/cvs/commoncpp2/demo/pio.cpp:76: undefined reference to
`ost::Thread::getThreadID() const'
pio.o: In function `ost::basic_postream<char, std::char_traits<char> >&
ost::operator<< <char, std::char_traits<char>, std::allocator<char>
>(ost::basic_postream<char, std::char_traits<char> >&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/home/danielb/src/cvs/commoncpp2/demo/pio.cpp:76: undefined reference to
`ost::Thread::getThreadID() const'
collect2: ld returned 1 exit status
make: *** [pio] Error 1
/bin/sh ../libtool --mode=link g++  -g -O2 -D_GNU_SOURCE    -o pio 
pio.o ../src/libccext2.la -lxml2 -lz ../src/libccgnu2.la -pthread -ldl 
g++ -g -O2 -D_GNU_SOURCE -o .libs/pio pio.o -pthread 
../src/.libs/libccext2.so /usr/lib/libxml2.so -lm -lz
../src/.libs/libccgnu2.so -ldl
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/pio.cpp:94: undefined reference to
`ost::pout'
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292:
undefined reference to `ost::pout'
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292:
undefined reference to `ost::pout'
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/postream:140:
undefined reference to `ost::pout'
pio.o: In function `Thread1::run()':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292:
undefined reference to `ost::pout'
pio.o:/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/thread.h:292: more undefined references to `ost::pout' follow
pio.o: In function `__static_initialization_and_destruction_0':
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/piostream:70:
undefined reference to `ost::Init::Init[in-charge]()'
/home/danielb/src/cvs/commoncpp2/demo/../include/cc++/piostream:70:
undefined reference to `ost::Init::~Init [in-charge]()'
pio.o: In function `ost::basic_postream<char, std::char_traits<char> >&
ost::operator<< <std::char_traits<char> >(ost::basic_postream<char,
std::char_traits<char> >&, char const*)':
/home/danielb/src/cvs/commoncpp2/demo/pio.cpp:76: undefined reference to
`ost::Thread::getThreadID() const'
pio.o: In function `ost::basic_postream<char, std::char_traits<char> >&
ost::operator<< <char, std::char_traits<char>, std::allocator<char>
>(ost::basic_postream<char, std::char_traits<char> >&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/home/danielb/src/cvs/commoncpp2/demo/pio.cpp:76: undefined reference to
`ost::Thread::getThreadID() const'
collect2: ld returned 1 exit status
make: *** [pio] Error 1

I notied that when I used nm -s on pios.o and pio_globals.o from the src
dir that there are no symbols in these object files. I dunno what's up
with this, maybe my gcc is b0rked? This program used to link fine. I
can't see where it's not linking in the proper lib or anything like
that. Can anyone lend a hand? ;).

Dan
-- 
And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use
copyleft all the same.
      -- RMS




From fedemp@wanadoo.es Thu Sep 26 11:01:37 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ua93-000657-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 11:01:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ua8w-00063H-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 11:01:36 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ua8v-00063D-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 11:01:29 -0400
Received: from risitas (62-36-176-144.dialup.uni2.es [62.36.176.144])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id gABGuXA20584
	for <bug-commoncpp@gnu.org>; Mon, 11 Nov 2002 17:56:34 +0100
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17uaBD-0001yF-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 17:03:51 +0200
Date: Thu, 26 Sep 2002 17:03:50 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bug-commoncpp@gnu.org
Subject: Re: undefined symbols in piostreams lib
Message-ID: <20020926150350.GA623@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: bug-commoncpp@gnu.org
References: <1033039245.29382.5.camel@obfuscation>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1033039245.29382.5.camel@obfuscation>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	Yes, no symbols were compiled for pio_globals.cpp nor
pios.cpp. This is because of some silly bugs I introduced, and is now
fixed in CVS (changes in thread.h, pio_globals.cpp and
pios.cpp). config.h must be included before checking #ifdef
COMMON_PIOSTREAM_SUPPORT :). Also, getThreadID was wrongly declared as
inline.

	You may also find interesting that piostreams can be compiled
with the GCC 3.1 that comes with RedHat 7.3.

On Thu, Sep 26, 2002 at 06:20:44AM -0500, Daniel E Baumann wrote:
> Hi, I am trying t compile my demo program that uses the piostreams but
> now I keep getting undefined symbols for a few things which doesn't make
> sense as this sutff compiled fine before. I am using:
> 
> 
> I notied that when I used nm -s on pios.o and pio_globals.o from the src
> dir that there are no symbols in these object files. I dunno what's up
> with this, maybe my gcc is b0rked? This program used to link fine. I
> can't see where it's not linking in the proper lib or anything like
> that. Can anyone lend a hand? ;).
> 
> Dan
> -- 
> And if cynics ridicule freedom, ridicule community...if ``hard nosed 
> realists'' say that profit is the only ideal...just ignore them, and use
> copyleft all the same.
>       -- RMS
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From baumannd@msoe.edu Thu Sep 26 15:52:13 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17uegG-0007L3-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 15:52:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17uegD-0007KW-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 15:52:11 -0400
Received: from mke-24-167-202-50.wi.rr.com ([24.167.202.50] helo=frell.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17uegC-0007K1-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 15:52:09 -0400
Received: from obfuscation.dyndns.org ([192.168.1.2] ident=mail)
	by frell.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17uegC-0001H0-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 14:52:08 -0500
Received: from localhost
	([127.0.0.1] helo=localhost.localdomain ident=danielb)
	by obfuscation.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17ueg8-0000Hd-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 14:52:04 -0500
Subject: Re: undefined symbols in piostreams lib
From: Daniel E Baumann <baumannd@msoe.edu>
To: bug-commoncpp@gnu.org
In-Reply-To: <20020926150350.GA623@risitas>
References: <1033039245.29382.5.camel@obfuscation> 
	<20020926150350.GA623@risitas>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 
Date: 26 Sep 2002 14:52:03 -0500
Message-Id: <1033069924.29381.14.camel@obfuscation>
Mime-Version: 1.0
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Thu, 2002-09-26 at 10:03, Federico Montesino Pouzols wrote:
> 
> 	Yes, no symbols were compiled for pio_globals.cpp nor
> pios.cpp. This is because of some silly bugs I introduced, and is now
> fixed in CVS (changes in thread.h, pio_globals.cpp and
> pios.cpp). config.h must be included before checking #ifdef
> COMMON_PIOSTREAM_SUPPORT :). Also, getThreadID was wrongly declared as
> inline.

Woops :).

> 	You may also find interesting that piostreams can be compiled
> with the GCC 3.1 that comes with RedHat 7.3.

Cool. :).

> On Thu, Sep 26, 2002 at 06:20:44AM -0500, Daniel E Baumann wrote:
> > Hi, I am trying t compile my demo program that uses the piostreams but
> > now I keep getting undefined symbols for a few things which doesn't make
> > sense as this sutff compiled fine before. I am using:
> > 
> > 
> > I notied that when I used nm -s on pios.o and pio_globals.o from the src
> > dir that there are no symbols in these object files. I dunno what's up
> > with this, maybe my gcc is b0rked? This program used to link fine. I
> > can't see where it's not linking in the proper lib or anything like
> > that. Can anyone lend a hand? ;).
> > 
> > Dan
> > -- 
> > And if cynics ridicule freedom, ridicule community...if ``hard nosed 
> > realists'' say that profit is the only ideal...just ignore them, and use
> > copyleft all the same.
> >       -- RMS
> > 
> > 
> > 
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 
-- 
And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use
copyleft all the same.
      -- RMS




From baumannd@msoe.edu Thu Sep 26 17:37:34 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ugKE-0004Oy-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 17:37:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ugKB-0004KD-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 17:37:32 -0400
Received: from mke-24-167-202-50.wi.rr.com ([24.167.202.50] helo=frell.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ugKA-0004JH-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 17:37:31 -0400
Received: from obfuscation.dyndns.org ([192.168.1.2] ident=mail)
	by frell.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17ugKA-0001Ij-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 16:37:30 -0500
Received: from localhost
	([127.0.0.1] helo=localhost.localdomain ident=danielb)
	by obfuscation.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17ugK8-0001M5-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 16:37:28 -0500
Subject: Fix for serialecho demo
From: Daniel E Baumann <baumannd@msoe.edu>
To: "bug-commoncpp@gnu.org" <bug-commoncpp@gnu.org>
Content-Type: multipart/mixed; boundary="=-/SIJIRD0+Fq7dtPouJo8"
X-Mailer: Ximian Evolution 1.0.8 
Date: 26 Sep 2002 16:37:26 -0500
Message-Id: <1033076248.29381.21.camel@obfuscation>
Mime-Version: 1.0
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

--=-/SIJIRD0+Fq7dtPouJo8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Here's a small patch to fix an issue with getting the serialecho demo
program to compile.

Dan
-- 
And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use
copyleft all the same.
      -- RMS

Was I helpful?  Let others know: 
  http://svcs.affero.net/rm.php?r=chillywilly

--=-/SIJIRD0+Fq7dtPouJo8
Content-Description: 
Content-Disposition: attachment; filename=demo.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; charset=ANSI_X3.4-1968

Index: demo/serialecho.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/commoncpp/commoncpp2/demo/serialecho.cpp,v
retrieving revision 1.5
diff -u -3 -p -r1.5 serialecho.cpp
--- demo/serialecho.cpp	8 May 2002 23:18:30 -0000	1.5
+++ demo/serialecho.cpp	26 Sep 2002 20:19:30 -0000
@@ -78,7 +78,7 @@
 using namespace std;
=20
 SerialEcho::SerialEcho(const char *device,=20
-                       int priority =3D 0, int stacksize =3D 0) :
+                       int priority, int stacksize) :
   TTYSession( device, priority, stacksize ) {
=20
   cout << "Creating SerialEcho" << endl;
Index: demo/serialecho.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/commoncpp/commoncpp2/demo/serialecho.h,v
retrieving revision 1.5
diff -u -3 -p -r1.5 serialecho.h
--- demo/serialecho.h	8 May 2002 23:18:30 -0000	1.5
+++ demo/serialecho.h	26 Sep 2002 20:19:30 -0000
@@ -69,7 +69,7 @@ class SerialEcho : public TTYSession {
  public:
=20
   SerialEcho(const char *device, =20
-             int priority =3D 0, int priority =3D 0);
+             int priority =3D 0, int stacksize =3D 0);
=20
   // Exception classes
   class xError{}; // nebulous inexplicable error

--=-/SIJIRD0+Fq7dtPouJo8--




From fedemp@wanadoo.es Fri Sep 27 09:27:08 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17uv99-0001Y9-00
	for bug-commoncpp@gnu.org; Fri, 27 Sep 2002 09:27:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17uv91-0001Wf-00
	for bug-commoncpp@gnu.org; Fri, 27 Sep 2002 09:27:05 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17uv90-0001WW-00
	for bug-commoncpp@gnu.org; Fri, 27 Sep 2002 09:26:58 -0400
Received: from risitas (62-36-177-150.dialup.uni2.es [62.36.177.150])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id gACFM0A21984
	for <bug-commoncpp@gnu.org>; Tue, 12 Nov 2002 16:22:00 +0100
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17uvBM-0000Ay-00
	for <bug-commoncpp@gnu.org>; Fri, 27 Sep 2002 15:29:24 +0200
Date: Fri, 27 Sep 2002 15:29:23 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: "bug-commoncpp@gnu.org" <bug-commoncpp@gnu.org>
Subject: Re: Fix for serialecho demo
Message-ID: <20020927132923.GA630@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: "bug-commoncpp@gnu.org" <bug-commoncpp@gnu.org>
References: <1033076248.29381.21.camel@obfuscation>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1033076248.29381.21.camel@obfuscation>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	Fixed for both 1.1.0 and 1.0.x.

On Thu, Sep 26, 2002 at 04:37:26PM -0500, Daniel E Baumann wrote:
> Here's a small patch to fix an issue with getting the serialecho demo
> program to compile.
> 
> Dan
> -- 
> And if cynics ridicule freedom, ridicule community...if ``hard nosed 
> realists'' say that profit is the only ideal...just ignore them, and use
> copyleft all the same.
>       -- RMS
> 
> Was I helpful?  Let others know: 
>   http://svcs.affero.net/rm.php?r=chillywilly





From baumannd@msoe.edu Sat Sep 28 18:19:49 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17vPwC-0000vu-00
	for bug-commoncpp@gnu.org; Sat, 28 Sep 2002 18:19:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17vPw9-0000vi-00
	for bug-commoncpp@gnu.org; Sat, 28 Sep 2002 18:19:48 -0400
Received: from mke-24-167-202-50.wi.rr.com ([24.167.202.50] helo=frell.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17vPw9-0000ve-00
	for bug-commoncpp@gnu.org; Sat, 28 Sep 2002 18:19:45 -0400
Received: from obfuscation.dyndns.org ([192.168.1.2] ident=mail)
	by frell.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17vPw9-00029D-00
	for <bug-commoncpp@gnu.org>; Sat, 28 Sep 2002 17:19:45 -0500
Received: from localhost
	([127.0.0.1] helo=localhost.localdomain ident=danielb)
	by obfuscation.dyndns.org with esmtp (Exim 3.36 #1 (Debian))
	id 17vPw5-0002Kv-00
	for <bug-commoncpp@gnu.org>; Sat, 28 Sep 2002 17:19:41 -0500
Subject: I/O Manipulators for piostreams
From: Daniel E Baumann <baumannd@msoe.edu>
To: GNU Common C++ List <bug-commoncpp@gnu.org>
Content-Type: multipart/mixed; boundary="=-IiZsVwW29GahzcJVJ9/4"
X-Mailer: Ximian Evolution 1.0.8 
Date: 28 Sep 2002 17:19:39 -0500
Message-Id: <1033251581.8948.5.camel@obfuscation>
Mime-Version: 1.0
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

--=-IiZsVwW29GahzcJVJ9/4
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Yes, it is exactly what the topic says. I have implemented manipulators
for piostreams. Attached I have a patch for the pio.cpp demo program
that tests all the manipulators and the piomanp file which should go
into commoncpp2/include/cc++/. So in order to use them you do:

#include <cc++/piomanip>

then you can use nifty things like setiosflags(), setbase(), setw(),
setfill(), etc on pout, et. al.

Cheers,
Dan
-- 
And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use
copyleft all the same.
      -- RMS

Was I helpful?  Let others know: 
  http://svcs.affero.net/rm.php?r=chillywilly

--=-IiZsVwW29GahzcJVJ9/4
Content-Disposition: attachment; filename=pio.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=pio.diff; charset=ANSI_X3.4-1968

? pio.diff
? include/cc++/pfstream
? include/cc++/piomanip
Index: demo/pio.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/commoncpp/commoncpp2/demo/pio.cpp,v
retrieving revision 1.1
diff -u -3 -p -r1.1 pio.cpp
--- demo/pio.cpp	21 Sep 2002 18:26:57 -0000	1.1
+++ demo/pio.cpp	28 Sep 2002 22:13:38 -0000
@@ -43,8 +43,9 @@
 #ifdef  COMMON_PIOSTREAM_SUPPORT
=20
 #include <cc++/piostream>
+#include <cc++/piomanip>
 #include <cc++/thread.h>
-#include <cstdio>
+#include <cmath>
=20
 #ifdef	CCXX_NAMESPACES
 using namespace std;
@@ -54,95 +55,195 @@ using namespace ost;
 class Thread1: public Thread
 {
 public:
-  Thread1();
-  void run();
+  Thread1()
+  { }
+  void run()
+  {
+    string test("string test.");
+    int i =3D 0;
+
+    while(i !=3D 100)
+      {
+	pout << "a really long string to try and see if it will preempt in the mi=
ddle of it because if it does it will really suck a lot, but recursive lock=
ing is a PITA!!!" << endl;
+	pout << i << " " << "Test." << endl;
+	pout << i << " " << test << endl;
+	pout << i << " " << "Hello World!" << endl;
+     =20
+	i++;
+      }
+    //pout.seekp(0, ios_base::cur);
+  }
+  void final()
+  {
+    delete this;
+  }
 };
=20
 class Thread2: public Thread
 {
 public:
-  Thread2();
-  void run();
+  Thread2()
+  { }
+  void run()
+  {
+    int i =3D 0;
+
+    while(i !=3D 100)
+      {
+	pout << i << " " << "thread2 outputting some stuff" << endl;
+	pout << i << " " << "check, check, check" << endl;
+	pout << i << " " << "waaaaazzzzzzaaaaaapaaneeeeen!!!!" << endl;
+     =20
+	i++;
+      }
+  }   =20
+  void final()
+  {
+    delete this;
+  }
 };
=20
 class Thread3: public Thread
 {
 public:
-  Thread3();
-  void run();
-};
-
-Thread1::Thread1()
-{
-}
-
-Thread2::Thread2()
-{
-}
-
-Thread3::Thread3()
-{
-}
-
-void Thread1::run()
-{
-  string test("string test.");
-  int i =3D 0;
-
-  while(i !=3D 100)
-    {
-      pout << "a really long string to try and see if it will preempt in t=
he middle of it because if it does it will really suck a lot, but recursive=
 locking is a PITA!!!" << endl;
-      pout << i << " " << "Test." << endl;
-      pout << i << " " << test << endl;
-      pout << i << " " << "Hello World!" << endl;
-     =20
-      i++;
-    }
-  //pout.seekp(0, ios_base::cur);
-}
-
-void Thread2::run()
-{
-  int i =3D 0;
-
-  while(i !=3D 100)
-    {
-      pout << i << " " << "thread2 outputting some stuff" << endl;
-      pout << i << " " << "check, check, check" << endl;
-      pout << i << " " << "waaaaazzzzzzaaaaaapaaneeeeen!!!!" << endl;
-     =20
-      i++;
-    }
-}
-
-void Thread3::run()
-{
-  int i =3D 0;
+  Thread3()
+  { }
+  void run()
+  {
+    int i =3D 0;
  =20
-  while(i !=3D 100)
-    {
-      pout << i << " " << "thread 3 is in da hiiiiizzoooooouuuuseee!" << e=
ndl;
-      pout << i << " " << "test some stuff and stuff" << endl;
-      pout << i << " " << "chillywilly is so weird." << endl;
+    while(i !=3D 100)
+      {
+	pout << i << " " << "thread 3 is in da hiiiiizzoooooouuuuseee!" << endl;
+	pout << i << " " << "test some stuff and stuff" << endl;
+	pout << i << " " << "chillywilly is so weird." << endl;
      =20
-      i++;
-    }
-}
+	i++;
+      }
+  }   =20
+  void final()
+  {
+    delete this;
+  }
+};
=20
 int main(int argc, char* argv[])
 {
-  Thread1 thread1;
-  Thread2 thread2;
-  Thread3 thread3;
-
-  thread1.start();
-  thread2.start();
-  thread3.start();
-
-  pout << "Hit ctrl-c to end" << endl;
+  pout << "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D" << endl;
+  pout << "=3D Testing Interleaved I/O =3D" << endl;
+  pout << "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D" << endl;
+
+  Thread1 *thread1 =3D new Thread1();
+  Thread2 *thread2 =3D new Thread2();
+  Thread3 *thread3 =3D new Thread3();
+
+  thread1->start();
+  thread2->start();
+  thread3->start();
+
+  Thread::sleep(1000);
+
+  pout << endl;
+  pout << "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D" << endl;
+  pout << "=3D Testing I/O Manipulators =3D" << endl;
+  pout << "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D" << endl;
+  pout << endl;
+
+  pout << "[setw]: Setting width to 10:" << endl;
+  pout << setw(10) << "test" << endl;
+  pout << "[setw][setfill]: Setting width to 10 and fill char to '.':" << =
endl;
+  pout << setw(10) << setfill('.') << "test" << endl;
+  pout << "[setw][right]: Setting width to 10 adjusted to the right:" << e=
ndl;
+  pout << setw(10) << right << "test" << endl;
+  pout << "[setw][left]: Setting width to 10 adjusted to the left:" << end=
l;
+  pout << setw(10) << left << "test" << endl;
+  pout << "[setw][internal]: Setting width to 10 adjusted to internal:" <<=
 endl;
+  pout << "-20 =3D " << setw(10) << setfill(' ') << internal << -20 << end=
l;
+  pout << endl;
+
+  pout << "[setbase]: Setting base to hex:" << endl;
+  pout << "10 base 16 =3D " << setbase(16) << 10 << setbase(10) << endl;
+  pout << "[dec]: Setting base to decimal:" << endl;
+  pout << "10 base 10 =3D " << dec << 10 << endl;
+  pout << "[oct]: Setting base to octal:" << endl;
+  pout << "10 base 8 =3D " << oct << 10 << endl;
+  pout << "[hex]: Setting base to hexadecimal:" << endl;
+  pout << "10 base 16 =3D " << hex << 10 << dec << endl;
+  pout << endl;
+
+  pout << "[setiosflags]: Setting ios flags to ios_base::fixed:"
+       << setiosflags(ios_base::fixed) << endl;
+  pout << "12.456789 =3D " << 12.456789 << endl;
+  pout << "PI =3D " << M_PI << endl;
+  pout << "[resetiosflags]: Turning off ios_base::fixed:"=20
+       << resetiosflags(ios_base::fixed) << endl;
+  pout << "12.456789 =3D " << 12.456789 << endl;
+  pout << "PI =3D " << M_PI << endl << endl;
+
+  bool trueval =3D true;
+  bool falseval =3D false;
+
+  pout << "[boolalpha]:" << endl;
+  pout << "true =3D " << boolalpha << trueval << endl;
+  pout << "false =3D " << boolalpha << falseval << endl;
+  pout << "[noboolalpha]:" << endl;
+  pout << "true =3D " << noboolalpha << trueval << endl;
+  pout << "flase =3D " << noboolalpha << falseval << endl;
+  pout << endl;
+
+  pout << "[fixed]: Setting fixed point output:"
+       << fixed << endl;
+  pout << "12.456789 =3D " << 12.456789 << endl;
+  pout << "PI =3D " << M_PI << endl;
+  pout << "Turning off ios_base::fixed:" << endl;
+  pout << resetiosflags(ios_base::fixed);
+  pout << "12.456789 =3D " << 12.456789 << endl;
+  pout << "PI =3D " << M_PI << endl;
+  pout << endl;
+
+  pout << "[scientific]: Setting scientific notation" << endl;
+  pout << scientific << "100.0 =3D " << 100.0 << endl;
+  pout << "Turning off scientific notation:" << endl;
+  pout << resetiosflags(ios_base::scientific) << "100.0 =3D " << 100.0 << =
endl;
+  pout << endl;
+
+  pout << "[showbase]:" << endl;
+  pout << dec << showbase << "dec: 10 =3D " << 10 << endl;
+  pout << oct << showbase << "oct: 10 =3D " << 10 << endl;
+  pout << hex << showbase << "hex: 10 =3D " << 10 << endl;
+  pout << "[noshowbase]:" << endl;
+  pout << dec << noshowbase << "dec: 10 =3D " << 10 << endl;
+  pout << oct << noshowbase << "oct: 10 =3D " << 10 << endl;
+  pout << hex << noshowbase << "hex: 10 =3D " << 10 << dec << endl;
+  pout << endl;
+
+  pout << "[showpoint]: Setting showpoint" << endl;
+  pout << showpoint << "100.0 =3D " << 100.0 << endl;
+  pout << "[noshowpoint]: Turning off showpoint" << endl;
+  pout << noshowpoint << "100.0 =3D " << 100.0 << endl;
+  pout << endl;
+
+  pout << "[showpos]: Setting showpos" << endl;
+  pout << showpos << "10 =3D " << 10 << endl;
+  pout << "[noshowpos]: Turning off showpos" << endl;
+  pout << noshowpos << "10 =3D " << 10 << endl;
+  pout << endl;
+
+  pout << "[unitbuf]: Setting unitbuf" << endl;
+  pout << unitbuf << "test" << endl;
+  pout << "[nounitbuf]: Turning off unitbuf" << endl;
+  pout << nounitbuf << "test" << endl;
+  pout << endl;
+
+  pout << "[uppercase]: Setting uppercase" << endl;
+  pout << uppercase << hex << showbase << "0x3a =3D " << 0x3a << endl;
+  pout << "[nouppercase]: Turning off uppercase" << endl;
+  pout << nouppercase << hex << showbase << "0x3a =3D " << 0x3a << noshowb=
ase=20
+       << dec << endl;
+  pout << endl;
=20
-  for(;;)=20
-    { }
+  pout << "[flush]:" << endl;
+  pout << "Flushing buffer" << flush << endl;
 }
=20
 #else

--=-IiZsVwW29GahzcJVJ9/4
Content-Disposition: attachment; filename=piomanip
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=piomanip; charset=ANSI_X3.4-1968

// Copyright (C) 2002 Free Software Foundation, Inc.
// =20
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//=20
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//=20
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software=20
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US=
A.
//=20
// As a special exception to the GNU General Public License, permission is=20
// granted for additional uses of the text contained in its release=20
// of Common C++.
//=20
// The exception is that, if you link the Common C++ library with other
// files to produce an executable, this does not by itself cause the
// resulting executable to be covered by the GNU General Public License.
// Your use of that executable is in no way restricted on account of
// linking the Common C++ library code into it.
//
// This exception does not however invalidate any other reasons why
// the executable file might be covered by the GNU General Public License.
//=20
// This exception applies only to the code released under the=20
// name Common C++.  If you copy code from other releases into a copy of
// Common C++, as the General Public License permits, the exception does
// not apply to the code that you add in this way.  To avoid misleading
// anyone as to the status of such modified files, you must delete
// this exception notice from them.
//=20
// If you write modifications of your own for Common C++, it is your choice
// whether to permit this exception to apply to your modifications.
// If you do not wish that, delete this exception notice.

#ifndef	CCXX_PIOMANIP
#define	CCXX_PIOMANIP 1

#ifndef CCXX_CONFIG_H_
#include <cc++/config.h>
#endif

#include <cc++/pistream>
#include <functional>

#ifdef	CCXX_NAMESPACES
using namespace std;

namespace ost=20
{
#endif

  struct Resetiosflags { ios_base::fmtflags _mask; };

  inline Resetiosflags=20
  resetiosflags(ios_base::fmtflags mask)
  {=20
    Resetiosflags x;=20
    x._mask =3D mask;=20
    return x;=20
  }

  template<typename charT, typename Traits>
    inline basic_istream<charT,Traits>&=20
    operator>>(basic_pistream<charT,Traits>& pis, Resetiosflags f)
    {=20
      pis.setf(ios_base::fmtflags(0), f._mask);=20
      return pis;=20
    }

  template<typename charT, typename Traits>
    inline basic_postream<charT,Traits>&=20
    operator<<(basic_postream<charT,Traits>& pos, Resetiosflags f)
    {=20
      pos.setf(ios_base::fmtflags(0), f._mask);=20
      return pos;=20
    }


  struct Setiosflags { ios_base::fmtflags _mask; };

  inline Setiosflags=20
  setiosflags(ios_base::fmtflags mask)
  {=20
    Setiosflags x;=20
    x._mask =3D mask;=20
    return x;=20
  }

  template<typename charT, typename Traits>
    inline basic_pistream<charT,Traits>&=20
    operator>>(basic_pistream<charT,Traits>& pis, Setiosflags f)
    {=20
      pis.setf(f._mask);=20
      return pis;=20
    }

  template<typename charT, typename Traits>
    inline basic_postream<charT,Traits>&=20
    operator<<(basic_postream<charT,Traits>& pos, Setiosflags f)
    {=20
      pos.setf(f._mask);=20
      return pos;=20
    }


  struct Setbase { int _base; };

  inline Setbase=20
  setbase(int base)
  {=20
    Setbase x;=20
    x._base =3D base;=20
    return x;=20
  }

  template<typename charT, typename Traits>
    inline basic_pistream<charT,Traits>&=20
    operator>>(basic_istream<charT,Traits>& pis, Setbase f)
    {
      pis.setf(f._base =3D=3D  8 ? ios_base::oct :=20
	      f._M_base =3D=3D 10 ? ios_base::dec :=20
	      f._M_base =3D=3D 16 ? ios_base::hex :=20
	      ios_base::fmtflags(0), ios_base::basefield);
      return pis;=20
    }
 =20
  template<typename charT, typename Traits>
    inline basic_postream<charT,Traits>&=20
    operator<<(basic_postream<charT,Traits>& pos, Setbase f)
    {
      pos.setf(f._base =3D=3D  8 ? ios_base::oct :=20
		f._base =3D=3D 10 ? ios_base::dec :=20
		f._base =3D=3D 16 ? ios_base::hex :=20
		ios_base::fmtflags(0), ios_base::basefield);
      return pos;=20
    }
 =20

  template<typename charT>=20
    struct Setfill { charT _c; };

  template<typename charT>=20
    inline Setfill<charT>=20
    setfill(charT c)
    {=20
      Setfill<charT> x;=20
      x._c =3D c;=20
      return x;=20
    }

  template<typename charT, typename Traits>
    inline basic_pistream<charT,Traits>&=20
    operator>>(basic_pistream<charT,Traits>& pis, Setfill<charT> f)
    {=20
      pis.fill(f._c);=20
      return pis;=20
    }

  template<typename charT, typename Traits>
    inline basic_postream<charT,Traits>&=20
    operator<<(basic_postream<charT,Traits>& pos, Setfill<charT> f)
    {=20
      pos.fill(f._c);=20
      return pos;=20
    }


  struct Setprecision { int _n; };

  inline Setprecision=20
  setprecision(int n)
  {=20
    Setprecision x;=20
    x._n =3D n;=20
    return x;=20
  }

  template<typename charT, typename Traits>
    inline basic_pistream<charT,Traits>&=20
    operator>>(basic_pistream<charT,Traits>& pis, Setprecision f)
    {=20
      pis.precision(f._n);=20
      return pis;=20
    }

  template<typename charT, typename Traits>
    inline basic_postream<charT,Traits>&=20
    operator<<(basic_postream<charT,Traits>& pos, Setprecision f)
    {=20
      pos.precision(f._n);=20
      return pos;=20
    }


  struct Setw { int _n; };

  inline Setw=20
  setw(int n)
  {=20
    Setw x;=20
    x._n =3D n;=20
    return x;=20
  }

  template<typename charT, typename Traits>
    inline basic_pistream<charT,Traits>&=20
    operator>>(basic_pistream<charT,Traits>& pis, Setw f)
    {=20
      pis.width(f._n);=20
      return pis;=20
    }

  template<typename charT, typename Traits>
    inline basic_postream<charT,Traits>&=20
    operator<<(basic_postream<charT,Traits>& pos, Setw f)
    {=20
      pos.width(f._n);=20
      return pos;=20
    }

  // Inhibit implicit instantiations for required instantiations,
  // which are defined via explicit instantiations elsewhere. =20
  // NB:  This syntax is a GNU extension.
  /*
  extern template ostream& operator<<(ostream&, _Setfill<char>);
  extern template ostream& operator<<(ostream&, _Setiosflags);
  extern template ostream& operator<<(ostream&, _Resetiosflags);
  extern template ostream& operator<<(ostream&, _Setbase);
  extern template ostream& operator<<(ostream&, _Setprecision);
  extern template ostream& operator<<(ostream&, _Setw);
  extern template wostream& operator<<(wostream&, _Setfill<wchar_t>);
  extern template wostream& operator<<(wostream&, _Setiosflags);
  extern template wostream& operator<<(wostream&, _Resetiosflags);
  extern template wostream& operator<<(wostream&, _Setbase);
  extern template wostream& operator<<(wostream&, _Setprecision);
  extern template wostream& operator<<(wostream&, _Setw);

  extern template istream& operator>>(istream&, _Setfill<char>);
  extern template istream& operator>>(istream&, _Setiosflags);
  extern template istream& operator>>(istream&, _Resetiosflags);
  extern template istream& operator>>(istream&, _Setbase);
  extern template istream& operator>>(istream&, _Setprecision);
  extern template istream& operator>>(istream&, _Setw);
  extern template wistream& operator>>(wistream&, _Setfill<wchar_t>);
  extern template wistream& operator>>(wistream&, _Setiosflags);
  extern template wistream& operator>>(wistream&, _Resetiosflags);
  extern template wistream& operator>>(wistream&, _Setbase);
  extern template wistream& operator>>(wistream&, _Setprecision);
  extern template wistream& operator>>(wistream&, _Setw);
  */

#ifdef	CCXX_NAMESPACES
} // namespace ost
#endif

#endif /* CCXX_PIOMANIP */
/** EMACS **
 * Local variables:
 * mode: c++
 * c-basic-offset: 2
 * End:
 */

--=-IiZsVwW29GahzcJVJ9/4--




From fedemp@wanadoo.es Sun Sep 29 13:57:22 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17viJm-0008UW-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 13:57:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17viJf-0008U3-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 13:57:21 -0400
Received: from [62.37.236.135] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17viJf-0008Tq-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 13:57:15 -0400
Received: from risitas (62-36-178-172.dialup.uni2.es [62.36.178.172])
	by smtp.wanadoo.es (8.11.3/8.10.2) with ESMTP id g8THtXW07041
	for <bug-commoncpp@gnu.org>; Sun, 29 Sep 2002 19:55:33 +0200 (MEST)
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17viM8-0000OK-00
	for <bug-commoncpp@gnu.org>; Sun, 29 Sep 2002 19:59:48 +0200
Date: Sun, 29 Sep 2002 19:59:47 +0200
From: Federico Montesino Pouzols <fedemp@altern.org>
To: GNU Common C++ List <bug-commoncpp@gnu.org>
Subject: Re: I/O Manipulators for piostreams
Message-ID: <20020929175947.GA588@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
Mail-Followup-To: GNU Common C++ List <bug-commoncpp@gnu.org>
References: <1033251581.8948.5.camel@obfuscation>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1033251581.8948.5.camel@obfuscation>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Good! It has been incorporated to CVS. The updated demo works pretty well.

On Sat, Sep 28, 2002 at 05:19:39PM -0500, Daniel E Baumann wrote:
> Yes, it is exactly what the topic says. I have implemented manipulators
> for piostreams. Attached I have a patch for the pio.cpp demo program
> that tests all the manipulators and the piomanp file which should go
> into commoncpp2/include/cc++/. So in order to use them you do:
> 
> #include <cc++/piomanip>
> 
> then you can use nifty things like setiosflags(), setbase(), setw(),
> setfill(), etc on pout, et. al.
> 
> Cheers,
> Dan
> -- 
> And if cynics ridicule freedom, ridicule community...if ``hard nosed 
> realists'' say that profit is the only ideal...just ignore them, and use
> copyleft all the same.
>       -- RMS
> 
> Was I helpful?  Let others know: 
>   http://svcs.affero.net/rm.php?r=chillywilly



From ingpippa@mbservice.it Wed Sep 04 19:30:14 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17mjbB-00076C-00
	for bug-commoncpp@gnu.org; Wed, 04 Sep 2002 19:30:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17mjb9-00075T-00
	for bug-commoncpp@gnu.org; Wed, 04 Sep 2002 19:30:12 -0400
Received: from fr2.sis.it ([193.70.20.4])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17mjb8-00074q-00
	for bug-commoncpp@gnu.org; Wed, 04 Sep 2002 19:30:10 -0400
Received: from mbservice.it [217.72.33.107]  with esmtp 
	by fr2.sis.it with esmtp 
	(Smail-3.2.0.103 1998-Oct-9 #3 #3) id m17mmPH-000YAfC; Thu, 5 Sep 2002 01:30:07 -0100 (GMT+1)
Message-ID: <3D76967B.2D17EF50@mbservice.it>
Date: Thu, 05 Sep 2002 01:25:47 +0200
From: Andrea Pippa <ingpippa@mbservice.it>
X-Mailer: Mozilla 4.5 [it] (Win98; I)
X-Accept-Language: it
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: tcpstream bugs...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi! I'm using commonc++ 2 v 1.0.0 for a project, and I encountered some
bugs in the tcpstream class... simply, sometimes it just hangs ! It
happens in my code when I do something like that:

while (stream->getline(buffer,maxbuffer)) {

    .... do some things

    .... may need to reply, so:
       stream << "my-reply" << endl;

    .... ***

}

Well, it hangs if I provide to the input stream more than a line a time,
like:

line1\nline2\nline3\nline4\n

My cycle processes well the first line, then hangs just after having
sent the reply (where there is the ***).

I don't think it's a bug in my code, because if I change the stream, and
provide a stdio stream (console input/output), it works well...

Is that a known bug ? Or maybe you'd like me to make some more tests to
find out the problem ?

btw, I'm using redhat 7.3, so gcc 2.96 (yes, the bad one !:) and
commoncpp2 v 1.0.0.

Thanks for your help ! bye !

Pyper.




From ahlstromc@comcast.net Wed Sep 04 22:45:45 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17mmeP-0003Ry-00
	for bug-commoncpp@gnu.org; Wed, 04 Sep 2002 22:45:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17mmeN-0003Rm-00
	for bug-commoncpp@gnu.org; Wed, 04 Sep 2002 22:45:44 -0400
Received: from smtp.comcast.net ([24.153.64.2])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17mmeL-0003Ri-00
	for bug-commoncpp@gnu.org; Wed, 04 Sep 2002 22:45:41 -0400
Received: from mlsmoe (pcp01014407pcs.mplsnt01.sc.comcast.net [68.59.24.9])
 by mtaout04.icomcast.net
 (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002))
 with ESMTP id <0H1Y00ML12AHG0@mtaout04.icomcast.net> for
 bug-commoncpp@gnu.org; Wed, 04 Sep 2002 22:44:42 -0400 (EDT)
Date: Wed, 04 Sep 2002 22:44:14 -0400 (EDT)
From: Chris Ahlstrom <ahlstromc@comcast.net>
Subject: Linkage problem?
X-X-Sender: <ahlstromc@mlsmoe>
To: bug-commoncpp@gnu.org
Message-id: <Pine.LNX.4.33.0209042239280.28001-100000@mlsmoe>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I am building a project with a simple makefile (no
automake/libtool stuff).  The makefile compiles
my modules, then uses ld to link them to Common C++.
When I run the executable, I get this:

bash: ./tcptest: No such file or directory

and get a similar result using gdb and ldd.

Is this a linkage problem?  Where can I go to
learn how to fix this problem?

Thanks, even if you can't help me.

Chris (a linonut)

-- 
Hope your day is as good as mine!




From SCoffman@COVANSYS.com Fri Sep 06 12:20:24 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17nLqK-00057j-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 12:20:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17nLqI-00056L-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 12:20:24 -0400
Received: from fw1.covansys.com ([12.162.224.20] helo=fthsmtp01.cbsinc.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17nLqH-00054j-00
	for bug-commoncpp@gnu.org; Fri, 06 Sep 2002 12:20:22 -0400
Received: by fthsmtp01 with Internet Mail Service (5.5.2653.19)
	id <S2ZNVWHH>; Fri, 6 Sep 2002 12:15:42 -0400
Message-ID: <4EB41326BAB06F4398681348D8118C9C042EAE@fth-ex01.CVNS.corp.covansys.com>
From: COFFMAN Steven <SCoffman@COVANSYS.com>
To: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Subject: Problems compiling on Red Hat latest beta
Date: Fri, 6 Sep 2002 12:20:07 -0400 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi,

	My apologies if this problem has been dealt with before, but my
google skills failed to turn up anything similar.

	I had trouble compiling CommonC++ 1.9.7 on the latest Red Hat beta
(null) which means I use gcc 3.2, a modified 2.4.18 kernel, and automake
1.6.3. I "./configure" just fine. When I "make", I get everything fine until
this:

mutex.cpp: In member function `int ost::AtomicCounter::operator++()':
mutex.cpp:341: `atomic_inc' undeclared (first use this function)
mutex.cpp:341: (Each undeclared identifier is reported only once for each
function it appears in.)
mutex.cpp: In member function `int ost::AtomicCounter::operator--()':
mutex.cpp:347: `atomic_dec_and_test' undeclared (first use this function)
mutex.cpp: In member function `int ost::atomicCounter::operator-=(int)':
mutex.cpp:364: `atomic_sub' undeclared (first use this function)
make[1]: *** [mutex.o] Error 1
make[1]: Leaving directory `home/gears/building/CommonC++-1.9.7/src'
make: *** [all-recursive] Error 1

Since you use a kernel header in a userland program, I don't know if the
kernel version is not compatible with this release of CommonC++ or what. Is
there a patch or something obvious to change?

As an alternative, I attempted to install the Mandrake cooker Source RPM for
CommonC++ 1.6.0, but when I "rpmbuild -rebuild CommonC++-1.6.0-1mdk.src.rpm"
on the latest Red Hat beta, I get past the Patch #1 (libxml2 patch), to the 
Automake Makefile and get get:
Configure.in:19: your implementation of AM_INIT_AUTOMAKE comes from an old
Automake version. You should recreate aclocal.m4 with aclocal and run
automake again.

Since I have automake 1.6.3 installed, and I have no idea what the heck that
aclocal stuff is all about, that only confused me more.

I realize this is probably something incredibly simple I've missed, but I
would be very grateful to anyone who could help out. To further compound my
ignorance, I didn't notice where to subscribe to this list. Could you
possibly cc me with any replies?

-Steve



From laurent@c64.org Sat Sep 07 16:15:53 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17nlzl-0006i3-00
	for bug-commoncpp@gnu.org; Sat, 07 Sep 2002 16:15:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17nlzj-0006fe-00
	for bug-commoncpp@gnu.org; Sat, 07 Sep 2002 16:15:52 -0400
Received: from zola.noos.net ([212.198.2.76] helo=smtp.noos.fr)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17nlzi-0006fa-00
	for bug-commoncpp@gnu.org; Sat, 07 Sep 2002 16:15:50 -0400
Received: (qmail 68670684 invoked by uid 0); 7 Sep 2002 19:55:02 -0000
Received: from unknown (HELO sid6581) ([212.198.25.36]) (envelope-sender <laurent@c64.org>)
          by 212.198.2.76 (qmail-ldap-1.03) with SMTP
          for <bug-commoncpp@gnu.org>; 7 Sep 2002 19:55:02 -0000
Message-ID: <008301c256a9$56f47bc0$0200a8c0@sid6581>
From: "Laurent" <laurent@c64.org>
To: <bug-commoncpp@gnu.org>
Subject: Restarting a Thread under Win32
Date: Sat, 7 Sep 2002 22:01:21 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0080_01C256BA.19FA3910"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This is a multi-part message in MIME format.

------=_NextPart_000_0080_01C256BA.19FA3910
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm no sure this is a bug :
When i create a thread, start it, and when it exit from the run() =
method, i can't start() it again. Is it normal ?
the isRunning() method returns false, so i thought i could restart it.

Also, could you tell me where can i suscribe to this mailing list, as i =
don't think i'll be able to receive your answer.

Thank you,
Laurent

------=_NextPart_000_0080_01C256BA.19FA3910
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm no sure this is a bug =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When i create a thread, start it, and =
when it exit=20
from the run() method, i can't start() it again. Is it normal =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the isRunning() method returns false, =
so i thought=20
i could restart it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also, could you tell me where can i =
suscribe to=20
this mailing list, as i don't think i'll be able to receive your=20
answer.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Laurent</FONT></DIV></BODY></HTML>

------=_NextPart_000_0080_01C256BA.19FA3910--




From ingpippa@mbservice.it Sun Sep 08 10:31:15 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17o35n-00008f-00
	for bug-commoncpp@gnu.org; Sun, 08 Sep 2002 10:31:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17o35k-00006X-00
	for bug-commoncpp@gnu.org; Sun, 08 Sep 2002 10:31:14 -0400
Received: from fr1.sis.it ([193.70.20.3])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17o35k-000060-00
	for bug-commoncpp@gnu.org; Sun, 08 Sep 2002 10:31:12 -0400
Received: from mbservice.it [217.72.33.133]  with esmtp 
	by fr1.sis.it with esmtp 
	(Smail-3.2.0.103 1998-Oct-9 #3 #3) id m17o5to-000YHIC; Sun, 8 Sep 2002 16:31:04 -0100 (GMT+1)
Message-ID: <3D7B5E21.61786D89@mbservice.it>
Date: Sun, 08 Sep 2002 16:26:41 +0200
From: Andrea Pippa <ingpippa@mbservice.it>
X-Mailer: Mozilla 4.5 [it] (Win98; I)
X-Accept-Language: it
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: tcpstream bugreport (accurate, this time :)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi! I've done some tests, and I've some code that shows a problem (or a
misunderstood feature !? :) in the tcpstream class:

/** Server part **/

#include <cc++/socket.h>

using namespace ost;
using namespace std;

#include <stdlib.h>
#include <stdio.h>

int main(int argc,char **argv) {
 InetAddress local = "127.0.0.1";
 TCPSocket *sok = new TCPSocket(local,6969);
 tcpstream *_ios; int i = 0;
 while (1) {
  printf("%d:Waiting..\n",++i);
  if (sok->isPendingConnection()){
   _ios = new tcpstream(*sok);
   break;
  } else {
   sleep(1);
  }
 };
 while (1) {
  char buf[256];
  if (!_ios->eof()) {
   _ios->getline(buf,256);
   char rbuf[256]; i++;
   printf("%d:In:%s\n",i,buf);
   snprintf(rbuf,256,"Reply:%d",i);
   *_ios << rbuf << endl; // By removing this reply, everything works
well
  }
 };
}

/** Client part **/

#include <cc++/socket.h>

using namespace ost;
using namespace std;

#include <stdlib.h>
#include <stdio.h>

int main(int argc,char **argv) {
 tcpstream str; int i=0;
 str.open("127.0.0.1:6969");
 str << "line1\nline2\nline3\nline4\n";
 str.flush();
}

The problem is that the server does not receive all the 4 lines that the
client sends.
It just receive the first, then replies, and then does not receive
anything more.
The problem disappears if I remove the reply, so all the 4 lines are
received.

Is this a problem, or I'm supposed to use stream in a different way ?
maybe reading all lines, and replying only when the input buffer is
empty ? maybe flush flushes both the buffers (input/output), so replying
empties also the input buffer ?

I'm using gcc2.96 to compile, on a redhat 7.3, and commonc++2 v1.0.1
(also v1.0.0 anyway has this problem, so it's not a new bug).

Well, thanks for your help, bye ! :)

Pyper.






From thalakan@shaitan.lightconsulting.com Mon Sep 09 14:58:54 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17oTkM-0008OU-00
	for bug-commoncpp@gnu.org; Mon, 09 Sep 2002 14:58:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17oTkK-0008OI-00
	for bug-commoncpp@gnu.org; Mon, 09 Sep 2002 14:58:53 -0400
Received: from shaitan.lightconsulting.com ([209.81.42.254])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17oTkJ-0008Ng-00
	for bug-commoncpp@gnu.org; Mon, 09 Sep 2002 14:58:51 -0400
Received: from shaitan.lightconsulting.com (localhost [127.0.0.1])
	by shaitan.lightconsulting.com (8.12.4/8.12.4) with ESMTP id g89InhKC098459;
	Mon, 9 Sep 2002 11:49:43 -0700 (PDT)
	(envelope-from thalakan@shaitan.lightconsulting.com)
Received: (from thalakan@localhost)
	by shaitan.lightconsulting.com (8.12.4/8.12.4/Submit) id g89Indan098458;
	Mon, 9 Sep 2002 11:49:39 -0700 (PDT)
Date: Mon, 9 Sep 2002 11:49:39 -0700
From: Jason Spence <jspence@lightconsulting.com>
To: bayonne-devel@lists.sourceforge.net, Vitaly <kvv@sky.net.ua>,
   bug-commoncpp@gnu.org
Subject: Re: [Bayonne-devel]Compile error on commoncpp2-1.0.0
Message-ID: <20020909114939.I89382@shaitan.lightconsulting.com>
Mail-Followup-To: bayonne-devel@lists.sourceforge.net,
	Vitaly <kvv@sky.net.ua>, bug-commoncpp@gnu.org
References: <001d01c256de$f2ac45e0$5234a8c0@V> <20020908021749.B81330@shaitan.lightconsulting.com> <20020908152907.GA724@risitas>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20020908152907.GA724@risitas>; from fedemp@altern.org on Sun, Sep 08, 2002 at 05:29:07PM +0200
X-Operating-System: FreeBSD shaitan 4.6-STABLE FreeBSD 4.6-STABLE
X-Uptime: 4:06PM  up 70 days, 19:36, 2 users, load averages: 4.00, 4.02, 4.00
X-Url: http://lightconsulting.com/~thalakan/
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Sun, Sep 08, 2002 at 05:29:07PM +0200, Federico Montesino Pouzols wrote: 
> On Sun, Sep 08, 2002 at 02:17:49AM -0700, Jason Spence wrote:
> > On Sun, Sep 08, 2002 at 05:23:49AM +0300, Vitaly wrote: 
> > > Hi,
> > > 
> > > I am having trouble compiling commoncpp2-1.0.0 on Red Hat 6.2 (Kernel
> > > 2.2.14-5.0).
> > > I get to a point where I receive the following error:
> > > 
> > > /bin/sh ../libtool --mode=compile
> > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I/
> > > usr/local/include -D_GNU_SOURCE -I../include -c socket.cpp
> > > rm -f .libs/socket.lo
> > > c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I/u
> > > sr/local/include -D_GNU_SOURCE -I../include -c socket.cpp   -fPIC -DPIC -o
> > > .libs/socket.lo
> > > socket.cpp:51: sstream: No such file or directory
> > > make[1]: *** [socket.lo] Error 1
> > > make[1]: Leaving directory `/root/Work/commoncpp2-1.0.0/src'
> > > make: *** [all-recursive] Error 1
> > 
> > This is a bit different from the problem I'm having, but I do know
> > that the commoncpp2 build is currently broken in at least one other
> > way.  You must apply the attached patch to get it to work.  I've
> > already sent it to David for application.
> > 
> > Unfortunately, David is stuck in some third world country with spotty
> > Network access at the moment and hasn't seem to have applied it yet
> > (http://savannah.gnu.org/cgi-bin/viewcvs/commoncpp/commoncpp2/include/cc%2B%2B/)
> 
> 	Hi, this is now fixed in CVS. My apologies, since I introduced
> this problem.
> 
> 	However, this bug was introduced after 1.0.0 was released. The
> make errors above complain that the sstream header is missing. I see
> that Vitaly uses Red Hat 6.2, which probably comes with a gcc release
> older than 2.9x that does not have the newer sstream C++ header.
> 
> 	We are using sstream to follow the newer C++ standard and gcc
> 3.x releases. Perhaps we will have to add some configuration stuff to
> keep compatibility with old systems.

Do you think you could put a warning in configure.in if the check for
sstream fails as well as instructions to the user on how to upgrade to
3.x if necessary?  I'm sure it would cut down on the "Common C++ is
broken" posts to the list :)

-- 
 - Jason

The bureaucracy is expanding to meet the needs of an expanding
bureaucracy.



From leonardt@intelis-inc.com Wed Sep 11 14:31:58 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pCHO-0000kp-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 14:31:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pCHM-0000kR-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 14:31:58 -0400
Received: from mailrtr2.mailzone.edeltacom.com ([216.248.176.138])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17pCHM-0000kA-00
	for bug-commoncpp@gnu.org; Wed, 11 Sep 2002 14:31:56 -0400
Received: from phoenix.intelis-inc.com ([66.0.0.116])
	by mailrtr2.mailzone.edeltacom.com (Mirapoint Messaging Server MOS 3.1.0.54-GA)
	with ESMTP id AOS45569;
	Wed, 11 Sep 2002 14:31:53 -0400 (EDT)
Message-Id: <5.1.1.6.0.20020911142732.03b2cdc0@pop.business.earthlink.net>
X-Sender: leonardt@intelis-inc.com@pop.business.earthlink.net
X-Mailer: QUALCOMM Windows Eudora Version 5.1.1
Date: Wed, 11 Sep 2002 14:31:28 -0400
To: bug-commoncpp@gnu.org
From: Leonard Thornton <leonardt@intelis-inc.com>
Subject: Bug in Win32 yield()
Mime-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

<html>
<font face="Arial, Helvetica" color="#0000FF">void</font><font face="Arial, Helvetica"><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Thread::yield(</font><font face="Arial, Helvetica" color="#0000FF">void</font><font face="Arial, Helvetica">)<br>
{<br>
</font><font face="Arial, Helvetica" color="#0000FF">#ifdef</font><font face="Arial, Helvetica">
WIN32<br>
//<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Thread::sleep(0);<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&lt;=======Currently<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Thread::sleep(1);<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&lt;=======Should
be<br>
</font><font face="Arial, Helvetica" color="#0000FF">#else<br>
.<br>
.<br>
.<br><br>
This resolves a known problem in Win32 where all Sleep(0) is compiled to
a NOP rather than a processor yield.<br><br>
<br>
</font><x-sigsep><p></x-sigsep>
Leonard Thornton<br>
Intelis, Inc.<br>
770.825.0032<br>
leonardt@intelis-inc.com</html>





From porton@ex-code.com Sat Sep 14 00:04:58 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17q4B0-00036V-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 00:04:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17q4Ay-00035w-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 00:04:57 -0400
Received: from smtp.permonline.ru ([212.120.160.134] helo=smtp.permonine.ru)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17q4Ay-00035s-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 00:04:56 -0400
Received: from home.porton.narod.ru (171-249.dialup.permonline.ru [::ffff:212.120.171.249])
  (IDENT: mail)
  by smtp.permonine.ru with esmtp; Sat, 14 Sep 2002 10:04:52 +0600
Received: from localhost ([127.0.0.1] ident=porton)
	by home.porton.narod.ru with esmtp (Exim 3.12 #1 (Debian))
	id 17q41I-0002Qw-00
	for <bug-commoncpp@gnu.org>; Sat, 14 Sep 2002 09:54:56 +0600
X-Mailer: exmh version 2.1.1 10/15/1999 (debian)
To: bug-commoncpp@gnu.org
Subject: My patch
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="=_smtp.permonine.ru-12731-1031976296-0001-2"
Date: Sat, 14 Sep 2002 09:54:55 +0600
From: Victor Porton <porton@ex-code.com>
Message-Id: <E17q41I-0002Qw-00.porton-narod-ru@home.porton.narod.ru>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_smtp.permonine.ru-12731-1031976296-0001-2
Content-Type: text/plain; charset=us-ascii

As std::string::string(const char*) cannot be called with NULL argument 
(SIGSEGV for me), it should be patched. See the attachment.


--=_smtp.permonine.ru-12731-1031976296-0001-2
Content-Type: application/octet-stream; name="my.diff"
Content-Description: my.diff
Content-Disposition: attachment; filename="my.diff"

diff -Naur commonc++-1.9.7.orig/include/cc++/file.h commonc++-1.9.7/include/cc++/file.h
--- commonc++-1.9.7.orig/include/cc++/file.h	Wed Sep 11 03:49:50 2002
+++ commonc++-1.9.7/include/cc++/file.h	Sat Sep 14 09:49:44 2002
@@ -335,7 +335,7 @@
 	 * @param error code.
 	 * @param error message string.
 	 */
-	fileerror_t Error(fileerror_t errid, char *errstr = NULL);
+	fileerror_t Error(fileerror_t errid, char *errstr = "");
 	
 	/**
 	 * Post an extended string error message.
diff -Naur commonc++-1.9.7.orig/include/cc++/serial.h commonc++-1.9.7/include/cc++/serial.h
--- commonc++-1.9.7.orig/include/cc++/serial.h	Wed Sep 11 03:49:51 2002
+++ commonc++-1.9.7/include/cc++/serial.h	Sat Sep 14 09:49:52 2002
@@ -160,7 +160,7 @@
 	 * @param error defined serial error id.
 	 * @param errstr string or message to optionally pass.
 	 */
-	sioerror_t Error(sioerror_t error, char *errstr = NULL);
+	sioerror_t Error(sioerror_t error, char *errstr = "");
 
 	/**
 	 * This service is used to thow application defined serial
diff -Naur commonc++-1.9.7.orig/include/cc++/socket.h commonc++-1.9.7/include/cc++/socket.h
--- commonc++-1.9.7.orig/include/cc++/socket.h	Wed Sep 11 03:49:50 2002
+++ commonc++-1.9.7/include/cc++/socket.h	Sat Sep 14 09:49:49 2002
@@ -597,7 +597,7 @@
 	 * @param error defined socket error id.
 	 * @param errstr string or message to pass.
 	 */
-	sockerror_t Error(sockerror_t error, char *errstr = NULL) const;
+	sockerror_t Error(sockerror_t error, char *errstr = "") const;
 
 	/**
 	 * This service is used to throw application defined socket errors

--=_smtp.permonine.ru-12731-1031976296-0001-2
Content-Type: text/plain; charset=us-ascii

Victor Porton (porton@ex-code.com)
--=_smtp.permonine.ru-12731-1031976296-0001-2--



From porton@ex-code.com Sat Sep 14 02:31:34 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17q6Ss-0000gZ-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 02:31:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17q6Sq-0000gE-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 02:31:33 -0400
Received: from smtp.permonline.ru ([212.120.160.134] helo=smtp.permonine.ru)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17q6Sq-0000gA-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 02:31:32 -0400
Received: from home.porton.narod.ru (171-251.dialup.permonline.ru [::ffff:212.120.171.251])
  (IDENT: mail)
  by smtp.permonine.ru with esmtp; Sat, 14 Sep 2002 12:31:29 +0600
Received: from localhost ([127.0.0.1] ident=porton)
	by home.porton.narod.ru with esmtp (Exim 3.12 #1 (Debian))
	id 17q4Ds-0002iv-00
	for <bug-commoncpp@gnu.org>; Sat, 14 Sep 2002 10:07:56 +0600
X-Mailer: exmh version 2.1.1 10/15/1999 (debian)
To: bug-commoncpp@gnu.org
Subject: Re: My patch 
In-Reply-To: Message from Victor Porton <porton@localhost> 
   of "Sat, 14 Sep 2002 09:54:55 +0600."
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 14 Sep 2002 10:07:56 +0600
From: Victor Porton <porton@ex-code.com>
Message-Id: <E17q4Ds-0002iv-00.porton-narod-ru@home.porton.narod.ru>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

> As std::string::string(const char*) cannot be called with NULL argument 
> (SIGSEGV for me), it should be patched. See the attachment.

Well, this should be applied not only to include/cc++, but also to src dir. 
Why, you have copies of the same files in two places? Please distribute your 
.tar.gz with symlinks, not with copies of *.h files.

P.S. I'm not subscribed to the list.
-- 
Victor Porton (porton@ex-code.com)


-- 
Victor Porton (porton@ex-code.com)




From porton@ex-code.com Sat Sep 14 02:31:35 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17q6St-0000gm-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 02:31:35 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17q6Sr-0000gP-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 02:31:34 -0400
Received: from smtp.permonline.ru ([212.120.160.134] helo=smtp.permonine.ru)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17q6Sr-0000gJ-00
	for bug-commoncpp@gnu.org; Sat, 14 Sep 2002 02:31:33 -0400
Received: from home.porton.narod.ru (171-251.dialup.permonline.ru [::ffff:212.120.171.251])
  (IDENT: mail)
  by smtp.permonine.ru with esmtp; Sat, 14 Sep 2002 12:31:31 +0600
Received: from localhost ([127.0.0.1] ident=porton)
	by home.porton.narod.ru with esmtp (Exim 3.12 #1 (Debian))
	id 17q6Ir-0004U8-00
	for <bug-commoncpp@gnu.org>; Sat, 14 Sep 2002 12:21:13 +0600
X-Mailer: exmh version 2.1.1 10/15/1999 (debian)
To: bug-commoncpp@gnu.org
Subject: Seems to be a bug in TCPSession
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 14 Sep 2002 12:21:11 +0600
From: Victor Porton <porton@ex-code.com>
Message-Id: <E17q6Ir-0004U8-00.porton-narod-ru@home.porton.narod.ru>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Please one send me a (well-written) example which would have a class derived 
from TCPSession with OnAccept always returning false.

This example should hear for connections in an infinite loop (and always deny).

Anything what I do causes such things as SIGSEGV or throwing strange (not 
derived nor from std::exception not from ost::Socket) exceptions (tested on 
Linux). Try it!

The bug is that it is too hard with current TCPSession even after applying my 
patch (I sent two letters ago).

P.S. I'm not subscribed to the list
-- 
Victor Porton (porton@ex-code.com)




From emde@ocegr.fr Fri Sep 20 12:36:09 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sQlF-0005oe-00
	for bug-commoncpp@gnu.org; Fri, 20 Sep 2002 12:36:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sQlB-0005n7-00
	for bug-commoncpp@gnu.org; Fri, 20 Sep 2002 12:36:08 -0400
Received: from smtp2av.net.oleane.net ([195.25.12.12])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17sQlB-0005my-00
	for bug-commoncpp@gnu.org; Fri, 20 Sep 2002 12:36:05 -0400
Received: from VirusWall by smtp2av.net.oleane.net with ESMTP id g8KGa2wY026200
	for <bug-commoncpp@gnu.org>;
	Fri, 20 Sep 2002 18:36:03 +0200
Received: from janus.ocegr.fr (janus.ocegr.fr [194.3.183.34])
	by smtp2av.net.oleane.net (8.12.5/8.12.0/8.12-FT) with SMTP id g8KGa1rA026193
	for <bug-commoncpp@gnu.org>; Fri, 20 Sep 2002 18:36:01 +0200
Received: (qmail 23324 invoked from network); 20 Sep 2002 16:25:18 -0000
Received: from hydra.ocegr.fr (HELO ocegr.fr) (134.188.135.3)
  by janus.ocegr.fr with SMTP; 20 Sep 2002 16:25:18 -0000
Received: from ocegr.fr (tauste.ocegr.fr [134.188.137.61])
	by ocegr.fr (8.8.8+Sun/8.8.8) with ESMTP id SAA16920
	for <bug-commoncpp@gnu.org>; Fri, 20 Sep 2002 18:35:59 +0200 (MET DST)
Message-ID: <3D8B4E95.9010904@ocegr.fr>
Date: Fri, 20 Sep 2002 18:36:37 +0200
From: Emmanuel Debanne <emde@ocegr.fr>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1b) Gecko/20020721
X-Accept-Language: en-us, fr-fr
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: install of commomc++-1.0.2 on cygwin
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi all,

I'm installing commonc++-1.0.2 on cygwin.
I've got the following error:
thread.cpp:357: invalid use of undefined type `struct ost::PosixThread'

Here is the whole output.

Emmanuel Debanne

$ make
Making all in include
make[1]: Entering directory `/home/emde/commoncpp2-1.0.2/include'
make[2]: Entering directory `/home/emde/commoncpp2-1.0.2/include'
cd .. \
   && CONFIG_FILES= CONFIG_HEADERS=include/config.h \
      /bin/bash ./config.status
config.status: creating include/config.h
config.status: executing default-1 commands
make[2]: Leaving directory `/home/emde/commoncpp2-1.0.2/include'
make  all-recursive
make[2]: Entering directory `/home/emde/commoncpp2-1.0.2/include'
Making all in cc++
make[3]: Entering directory `/home/emde/commoncpp2-1.0.2/include/cc++'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/emde/commoncpp2-1.0.2/include/cc++'
make[3]: Entering directory `/home/emde/commoncpp2-1.0.2/include'
make[3]: Leaving directory `/home/emde/commoncpp2-1.0.2/include'
make[2]: Leaving directory `/home/emde/commoncpp2-1.0.2/include'
make[1]: Leaving directory `/home/emde/commoncpp2-1.0.2/include'
Making all in src
make[1]: Entering directory `/home/emde/commoncpp2-1.0.2/src'
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include
  -I../src -DCCXX_EXPORT_LIBRARY  -g -O2 -D_GNU_SOURCE 
-I/usr/include/libxml2/li
bxml -I/usr/include/libxml2 -I../include -c thread.cpp
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY 
-g -O2 -
D_GNU_SOURCE -I/usr/include/libxml2/libxml -I/usr/include/libxml2 
-I../include -
c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.lo
thread.cpp:357: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:357: assignment (not initialization) in declaration
thread.cpp:358: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp: In static member function `static void
    ost::ThreadImpl::PosixThreadSigHandler(int)':
thread.cpp:1202: cannot dynamic_cast `t' (of type `class ost::Thread*') 
to type

    `struct ost::PosixThread*' (target is not pointer or reference to 
complete
    type)
thread.cpp:1209: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1213: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1217: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1221: incomplete type `ost::PosixThread' does not have member `
    _timer'
thread.cpp:1223: incomplete type `ost::PosixThread' does not have member `
    _timer'
thread.cpp:1224: incomplete type `ost::PosixThread' does not have member `
    _timer'
thread.cpp:1229: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1237: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1241: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp: At global scope:
thread.cpp:1249: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp: In constructor `ost::PosixThread::PosixThread(int, unsigned 
int)':
thread.cpp:1250: type `class ost::Thread' is not a direct base of `
    ost::PosixThread'
thread.cpp:1252: `_alarm' undeclared (first use this function)
thread.cpp:1252: (Each undeclared identifier is reported only once for each
    function it appears in.)
thread.cpp: At global scope:
thread.cpp:1256: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp: In member function `void ost::PosixThread::setTimer(long 
unsigned
    int)':
thread.cpp:1270: `_arm' undeclared (first use this function)
thread.cpp:1271: `_timer' undeclared (first use this function)
thread.cpp: At global scope:
thread.cpp:1285: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1305: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1330: `signo_t' was not declared in this scope
thread.cpp:1330: parse error before `)' token
thread.cpp:1331: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp: In member function `void ost::PosixThread::waitSignal(...)':
thread.cpp:1335: `signo' undeclared (first use this function)
thread.cpp:1339: `sigwait' undeclared (first use this function)
thread.cpp: At global scope:
thread.cpp:1344: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp:1356: type specifier omitted for parameter `signo_t'
thread.cpp:1356: parse error before `)' token
thread.cpp:1357: invalid use of undefined type `struct ost::PosixThread'
../include/cc++/thread.h:1055: forward declaration of `struct 
ost::PosixThread'
thread.cpp: In member function `void ost::PosixThread::signalThread(...)':
thread.cpp:1358: `th' undeclared (first use this function)
make[1]: *** [thread.lo] Error 1
make[1]: Leaving directory `/home/emde/commoncpp2-1.0.2/src'
make: *** [all-recursive] Error 1

emde@TAUSTE ~/commoncpp2-1.0.2
$ g++ -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure 
--enable-languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib 
--enable-nls --with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions 
--disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux 
--host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr 
--exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include 
--libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)




From mark@purcell.homeip.net Sat Sep 21 23:46:41 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sxhh-0004mf-00
	for bug-commoncpp@gnu.org; Sat, 21 Sep 2002 23:46:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sxhf-0004mT-00
	for bug-commoncpp@gnu.org; Sat, 21 Sep 2002 23:46:40 -0400
Received: from cpe-203-51-26-119.nsw.bigpond.net.au ([203.51.26.119] helo=purcell.homeip.net)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17sxhd-0004kO-00
	for bug-commoncpp@gnu.org; Sat, 21 Sep 2002 23:46:38 -0400
Received: from [192.168.2.128] (helo=htpc.purcell.homeip.net ident=mail)
	by purcell.homeip.net with esmtp (Exim 3.35 #1 (Debian))
	id 17sxhN-0000S3-00; Sun, 22 Sep 2002 13:46:21 +1000
Received: from msp by htpc.purcell.homeip.net with local (Exim 3.36 #1 (Debian))
	id 17sxhP-0007pQ-00; Sun, 22 Sep 2002 13:46:23 +1000
Date: Sun, 22 Sep 2002 13:46:23 +1000
From: Mark Purcell <msp@debian.org>
To: bug-commoncpp@gnu.org
Cc: 154911-forwarded@bugs.debian.org
Subject: [owner@bugs.debian.org: Bug#154911: marked as done (commoncpp2: FTBFS: including <asm/atomic.h> is not legal in user space)]
Message-ID: <20020922034622.GA26277@htpc.purcell.homeip.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o"
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-Operating-System: Linux/2.4.19 (i686)
X-Uptime: 13:24:59 up  1:15,  5 users,  load average: 0.22, 0.15, 0.35
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

David (and others),

I have received this bug report about the commoncpp2 libraries. This patch=
=20
has been included in the Debian GNU/Linux commoncpp2 package, but you=20
might also like to include it with your upstream source.

Mark


----- Forwarded message from Debian Bug Tracking System <owner@bugs.debian.=
org> -----

From: LaMont Jones <lamont@smallone.fc.hp.com>
Subject: commoncpp2: FTBFS: including <asm/atomic.h> is not legal in user s=
pace
Date: Tue, 30 Jul 2002 23:17:46 -0600 (MDT)

Package: commoncpp2
Version: 0.99.6-2
Severity: serious

"The kernel is not in the business of providing headers that userspace can
include."

Most notably, the asm/atomic.h header file is broken in linux 2.4, for any
g++ file including it, since it uses a variable named 'new'.

The following patch fixes the problem.  Since this is blocking several
packages on ia64, I'll plan on doing an NMU shortly.

lamont
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux smallone.fc.hp.com 2.4.17-64 #1 Sat Mar 16 17:31:44 M=
ST 2002 parisc64 unknown unknown GNU/Linux

diff -ur t/commoncpp2-0.99.6/acconfig.h commoncpp2-0.99.6/acconfig.h
--- t/commoncpp2-0.99.6/acconfig.h	Fri Jun 28 06:20:49 2002
+++ commoncpp2-0.99.6/acconfig.h	Tue Jul 30 23:04:50 2002
@@ -289,11 +289,6 @@
 #ifdef HAVE_WORKING_SYS_ATOMIC_H
 #include <sys/atomic.h>
 #define HAVE_ATOMIC
-#else
-#ifdef HAVE_ASM_ATOMIC_H
-#include <asm/atomic.h>
-#define HAVE_ATOMIC
-#endif
 #endif
=20
 #if defined(HAVE_PTHREAD_H) && ( defined(_THREAD_SAFE) || defined(_REENTRA=
NT) )
diff -ur t/commoncpp2-0.99.6/aclocal.m4 commoncpp2-0.99.6/aclocal.m4
--- t/commoncpp2-0.99.6/aclocal.m4	Tue Jul 30 23:05:05 2002
+++ commoncpp2-0.99.6/aclocal.m4	Tue Jul 30 23:03:13 2002
@@ -4550,26 +4550,6 @@
 		AC_DEFINE(HAVE_WORKING_SYS_ATOMIC_H)],
 		[ost_cv_posix_atomic=3Dno])
 	AC_MSG_RESULT($ost_cv_posix_atomic)
-  elif test $ost_cv_posix_atomic =3D no ; then
-	AC_MSG_CHECKING([for atomic operations])
-	AC_TRY_LINK([#include <asm/atomic.h>],
-		[
-		atomic_t at; at.counter =3D 1;
-		atomic_dec_and_test(&at);
-		atomic_sub(4, &at);
-		atomic_inc(&at);
-		atomic_add(3, &at);
-		],
-		[ost_cv_posix_atomic=3Dyes
-		 AC_DEFINE(HAVE_ASM_ATOMIC_H)],
-		[AC_TRY_LINK([#include <asm/atomic.h>],
-			[atomic at; at =3D 1;],
-			[ost_cv_posix_atomic=3Dyes
-			 AC_DEFINE(HAVE_ASM_ATOMIC_H)=20
-			AC_DEFINE(HAVE_ASM_ATOMIC_NOSTRUCT_BUTINT)]
-		)]
-	)
-	AC_MSG_RESULT($ost_cv_posix_atomic)
   fi
=20
   if test "$target" =3D NONE ; then
@@ -4827,11 +4807,6 @@
 dnl #ifdef HAVE_WORKING_SYS_ATOMIC_H
 dnl #include <sys/atomic.h>
 dnl #define HAVE_ATOMIC
-dnl #else
-dnl #ifdef HAVE_ASM_ATOMIC_H
-dnl #include <asm/atomic.h>
-dnl #define HAVE_ATOMIC
-dnl #endif
 dnl #endif
 dnl=20
 dnl #if defined(HAVE_PTHREAD_H) && ( defined(_THREAD_SAFE) || defined(_REE=
NTRANT) )
diff -ur t/commoncpp2-0.99.6/configure commoncpp2-0.99.6/configure
--- t/commoncpp2-0.99.6/configure	Tue Jul 30 23:05:05 2002
+++ commoncpp2-0.99.6/configure	Tue Jul 30 23:04:39 2002
@@ -7001,63 +7001,6 @@
 fi
 rm -f conftest*
 	echo "$ac_t""$ost_cv_posix_atomic" 1>&6
-  elif test $ost_cv_posix_atomic =3D no ; then
-	echo $ac_n "checking for atomic operations""... $ac_c" 1>&6
-echo "configure:7007: checking for atomic operations" >&5
-	cat > conftest.$ac_ext <<EOF
-#line 7009 "configure"
-#include "confdefs.h"
-#include <asm/atomic.h>
-int main() {
-
-		atomic_t at; at.counter =3D 1;
-		atomic_dec_and_test(&at);
-		atomic_sub(4, &at);
-		atomic_inc(&at);
-		atomic_add(3, &at);
-	=09
-; return 0; }
-EOF
-if { (eval echo configure:7022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; =
} && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  ost_cv_posix_atomic=3Dyes
-		 cat >> confdefs.h <<\EOF
-#define HAVE_ASM_ATOMIC_H 1
-EOF
-
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  cat > conftest.$ac_ext <<EOF
-#line 7034 "configure"
-#include "confdefs.h"
-#include <asm/atomic.h>
-int main() {
-atomic at; at =3D 1;
-; return 0; }
-EOF
-if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; =
} && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  ost_cv_posix_atomic=3Dyes
-			 cat >> confdefs.h <<\EOF
-#define HAVE_ASM_ATOMIC_H 1
-EOF
-=20
-			cat >> confdefs.h <<\EOF
-#define HAVE_ASM_ATOMIC_NOSTRUCT_BUTINT 1
-EOF
-
-	=09
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-=09
-fi
-rm -f conftest*
-	echo "$ac_t""$ost_cv_posix_atomic" 1>&6
   fi
=20
   if test "$target" =3D NONE ; then

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9jT0OoCzanz0IthIRAkYrAJ4u88gtF6157ZbAaBmCiwsL8YBmVgCbBt2k
ddw/IFLjlEBflPf4NUnZJh8=
=QGH4
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--



From damien.vincent@enst-bretagne.fr Thu Sep 26 12:23:02 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ubPq-0004L2-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 12:23:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ubPo-0004KU-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 12:23:01 -0400
Received: from laposte.enst-bretagne.fr ([192.108.115.3])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ubPn-0004Jj-00
	for bug-commoncpp@gnu.org; Thu, 26 Sep 2002 12:22:59 -0400
Received: from resel.enst-bretagne.fr (UNKNOWN@maisel-gw.enst-bretagne.fr [192.44.76.8])
	by laposte.enst-bretagne.fr (8.11.6/8.11.6) with ESMTP id g8QGMsk14094
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 18:22:54 +0200
Received: from vincentsd (mail@pcvincent.maisel.enst-bretagne.fr [172.16.20.113])
	by resel.enst-bretagne.fr (8.12.3/8.12.3/Debian -4) with ESMTP id g8QGMtbi002480
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 18:22:55 +0200
Received: from damien by vincentsd with local (Exim 3.35 #1 (Debian))
	id 17ubPj-0000PZ-00
	for <bug-commoncpp@gnu.org>; Thu, 26 Sep 2002 18:22:55 +0200
Date: Thu, 26 Sep 2002 18:22:55 +0200
From: Damien Vincent <damien.vincent@enst-bretagne.fr>
To: bug-commoncpp@gnu.org
Subject: Explanations on MappedFile
Message-ID: <20020926162255.GA1570@vincentsd>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
X-Virus-Scanned: by amavisd-milter (http://amavis.org/) at enst-bretagne.fr
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

  Hi,

I'd like to know why all types (Mapping, Access, ...) are in the protected section of the class "File". With this design, you can't make a MappedFile object since in the constructor of this class, you need to specify an access mode (-> MappedFile (const char *fname, Access mode) ).
So, the only way to create a mapped file is to make a class which derives from MappedFile.
With the version 1.6.4 of the library, you can make an instance of the MappedFile class.

  Thanks,

Damien



From byrial@image.dk Sun Sep 29 04:54:28 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17vZqO-0001PL-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 04:54:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17vZqK-0001P9-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 04:54:27 -0400
Received: from smtp010.tiscali.dk ([212.54.64.103])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17vZqJ-0001Ox-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 04:54:24 -0400
Received: from cpmail.dk.tiscali.com (mail.tiscali.dk [212.54.64.159])
	by smtp010.tiscali.dk (8.12.5/8.12.5) with ESMTP id g8T8sAnW026021
	for <bug-commoncpp@gnu.org>; Sun, 29 Sep 2002 10:54:22 +0200 (MEST)
Received: from ask.ask (212.54.85.244) by cpmail.dk.tiscali.com (6.0.053)
        id 3D4115C6007B6377 for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 10:54:20 +0200
Received: (qmail 8599 invoked by uid 500); 29 Sep 2002 08:52:39 -0000
Date: Sun, 29 Sep 2002 10:52:39 +0200
From: Byrial Jensen <byrial@image.dk>
To: bug-commoncpp@gnu.org
Subject: SocketService and SocketPort
Message-ID: <20020929085239.GA893@ask.ask>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi,

I have tried to use Commonn C++ to make a simple tcp proxy server,
and modelled my program over the tcpservice.cpp demo program.

However, my result is unstable, and I am trying to find out why.

It seems that the virtual callback functions of the SocketPort
class (expired, pending, output) should never delete the current
SocketPort object (*this) because SocketService::run will still
use a pointer (SocketPort *port) to the object /after/ the return
of these callback functions and thus use deallocated memory.

The tcpservice.cpp demo program have this problem for its
ChatterSession::expired and ChatterSession::pending functions.

I suggest that SocketService::run is rewritten to avoid to refer
to a SocketPort object if any of the callback functions deletes
the object. Or alternatively that the current restraints on the
functions is documented, and the demo program is rewritten to be
correct.

Another thing: I would like to use a SocketService to handle the
client end of tcp connections (because my proxy progam makes one
outgoing client connection for each incomming server connection),
but there is currently no way to create SocketPorts for this kind
of connections. I would like to suggest a new SocketPort
constructor which connects its socket a tcp server or throws an
execption if it cannot do that.

Best regards,
Byrial



From vsinkko@cc.helsinki.fi Sun Sep 29 09:54:41 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17veWv-00025Q-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 09:54:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17veWt-00025D-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 09:54:40 -0400
Received: from vesuri.helsinki.fi ([128.214.205.10])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17veWt-000259-00
	for bug-commoncpp@gnu.org; Sun, 29 Sep 2002 09:54:39 -0400
Received: from localhost (vsinkko@localhost)
	by vesuri.Helsinki.FI (8.11.6/8.11.4) with ESMTP id g8TDsbl12314
	for <bug-commoncpp@gnu.org>; Sun, 29 Sep 2002 16:54:37 +0300 (EET DST)
X-Authentication-Warning: vesuri.Helsinki.FI: vsinkko owned process doing -bs
Date: Sun, 29 Sep 2002 16:54:37 +0300 (EET DST)
From: Ville V Sinkko <vsinkko@cc.helsinki.fi>
To: <bug-commoncpp@gnu.org>
Subject: Threadlock class causing a compile error; make gripe
Message-ID: <Pine.OSF.4.30.0209291640330.12040-100000@vesuri.Helsinki.FI>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

First:

gcc 2.95.4, commoncpp-1.0.2. Compiling a first test program which includes
cc++/thread.h. Error:

	/usr/local/include/cc++/thread.h:313: syntax error before `;'

Ie. the first effective line of the declaration of class ThreadLock. My
system does have pthread_rwlock_t (defined in bits/pthreadtypes.h, it seems).



Second:

'Make install' puts all the header files in <wherever>/cc++2/cc++/, but
all the headers look for each other in just <wherever>/cc++/, so you need
to move the header directory by hand after installing it if you want the
headers to function.








