From MAILER-DAEMON Mon Dec 01 08:15:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQnjB-0002fB-PF
	for mharc-bug-commoncpp@gnu.org; Mon, 01 Dec 2003 08:04:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQnYx-0001Ni-J5
	for bug-commoncpp@gnu.org; Mon, 01 Dec 2003 07:54:03 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQnNz-0000Jb-Mv
	for bug-commoncpp@gnu.org; Mon, 01 Dec 2003 07:43:14 -0500
Received: from [150.214.7.5] (helo=mx.imse.cnm.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQnNx-0000FD-0l
	for bug-commoncpp@gnu.org; Mon, 01 Dec 2003 07:42:41 -0500
Received: from pcutec.imse.cnm.es (mail@pcutec [150.214.7.153])
	by mx.imse.cnm.es (8.12.10/8.12.3) with ESMTP id hB1Be9Wu005727;
	Mon, 1 Dec 2003 12:40:25 +0100 (MET)
Received: from fedemp by pcutec.imse.cnm.es with local (Exim 3.35 #1 (Debian))
	id 1AQmPD-0005tU-00; Mon, 01 Dec 2003 12:39:55 +0100
Date: Mon, 1 Dec 2003 12:39:55 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Message-ID: <20031201113955.GA22614@pcutec>
Mail-Followup-To: David Sugar <dyfet@ostel.com>, bc76@midmaine.com,
	bug-commoncpp@gnu.org
References: <20031126202255.24280.qmail@mail.midmaine.com>
	<20031129123641.GB2083@paraguas>
	<1231.207.93.155.249.1070119407.squirrel@bayonne.dyndns.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1231.207.93.155.249.1070119407.squirrel@bayonne.dyndns.org>
User-Agent: Mutt/1.3.28i
Sender: Federico Montesino Pouzols <fedemp@imse.cnm.es>
Cc: bug-commoncpp@gnu.org, bc76@midmaine.com
Subject: Re: ost::Digest class Re: protected initDigest() method
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Dec 2003 13:04:37 -0000


	Ok, the change is done in CVS for both 1.0.14 and testing.

On Sat, Nov 29, 2003 at 10:23:27AM -0500, David Sugar wrote:
> Yes, it was originally meant as a method to be used in other derived
> classes.  But I see no issues with changing it either, so long as any
> changes like this one are also tracked in the "testing" branch.
> 
> David
> 
> Federico Montesino Pouzols said:
> >
> > 	Hi,
> >
> > On Wed, Nov 26, 2003 at 03:22:55PM -0500, bc76@nospam.midmaine.com
> > wrote:
> >> The ost::MD5Digest/ost::SHA1Digest/ost::SHA256Digest classes all
> >> inherit  from the abstract ost::Digest class.daThe ost::Digest class
> >> lists a  protected abstract method, initDigest().daThe digest classes
> >> that inherit  from ost::Digest make their initDigest() methods
> >> public.daI want to use the  ost::Digest class as an interface to
> >> multiple digests.  That way I can have  a function that takes a
> >> ost::Digest* and uses it for it's digest computing  needs.
> >
> > 	It seems that initDigest was originally intended to be used
> > only internally by derived classes, but I think the idea you propose is
> > quite interesting. I see no reason why initDigest cannot be public.
> > Should we make it public?
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 
> 
> 



From MAILER-DAEMON Wed Dec 03 04:52:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARTgG-0005wh-Gl
	for mharc-bug-commoncpp@gnu.org; Wed, 03 Dec 2003 04:52:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARTgA-0005qE-Q2
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 04:52:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARTeV-0005D2-Hv
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 04:51:06 -0500
Received: from [64.235.234.100] (helo=orion.lunarpages.com)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARTeU-0005BS-Ga
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 04:50:34 -0500
Received: from cpanel by orion.lunarpages.com with local (Exim 4.24)
	id 1ARSh5-0001ay-9A
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 00:49:11 -0800
Received: from dial-148-240-164-99.zone-1.dial.net.mx
	(dial-148-240-164-99.zone-1.dial.net.mx [148.240.164.99]) 
	by orion.lunarpages.com (IMP) with HTTP 
	for <edgar@presentame.com@localhost>; Wed,  3 Dec 2003 00:49:11 -0800
Message-ID: <1070441351.3fcda3873f7c7@orion.lunarpages.com>
Date: Wed,  3 Dec 2003 00:49:11 -0800
From: edgar@presentame.com
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.2.1
X-Originating-IP: 148.240.164.99
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - orion.lunarpages.com
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [32001 502] / [47 12]
X-AntiAbuse: Sender Address Domain - presentame.com
Subject: Lockin for professional Support
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Dec 2003 09:52:22 -0000


Hello. 

 I still and still and still
having a Segmentation fault, and crash.... in my multithread transaccional 
server using Common C++ and Postgress... this happen specialli when I try to 
do many transaccions, using many threads. Each transaction is a Thread....

 I has proved All... the program is complex... but I use Desgin Patterns, 
Programming Patterns... and additionally Idioms from your example code.

  Can I have a help from another place... some people can help me ?

  I need to deploy my transaccional server the next 5 DEC 2003.

  the problem seems like a race condition, appear only when many threads are 
active and interacting.

  Any can bring professional support to me ?




From MAILER-DAEMON Wed Dec 03 08:47:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARXLJ-0002s0-1g
	for mharc-bug-commoncpp@gnu.org; Wed, 03 Dec 2003 08:47:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARUE8-0000V6-7j
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 05:27:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARUDb-0000NO-Lz
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 05:27:22 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARUDb-0000Mf-CA
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 05:26:51 -0500
Received: from [213.143.52.64] (helo=MXFUSV28)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1ARTFw-0001Dv-UG
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 04:25:13 -0500
Received: from blinux.red.isotrol.com ([172.22.190.34])
	by SMTP2-sva.amenate.com
	(iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003))
	with ESMTPA id <0HPB00M2LB6NRH@SMTP2-sva.amenate.com> for
	bug-commoncpp@gnu.org; Wed, 03 Dec 2003 10:18:24 +0100 (MET)
Date: Wed, 03 Dec 2003 10:17:47 +0100
From: Borja Pacheco <borja.pacheco@amena.com>
To: bug-commoncpp@gnu.org
Message-id: <1070443067.1716.42.camel@blinux.red.isotrol.com>
MIME-version: 1.0
X-Mailer: Ximian Evolution 1.4.5
Content-type: multipart/alternative;
	boundary="Boundary_(ID_9bwqld5YVnsJTf93IiyzWg)"
X-Mailman-Approved-At: Wed, 03 Dec 2003 08:46:58 -0500
Subject: Threads trouble
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Dec 2003 10:27:25 -0000


--Boundary_(ID_9bwqld5YVnsJTf93IiyzWg)
Content-type: text/plain
Content-transfer-encoding: 7BIT

Dear all,

I've made an applicaction using your Thread and TCP stream and socket
classes. All seemed to works fine, but one made the put on production,
the program deads after 2 hours. An exception is catched, but no one
line of this code can produce any exception (refering to CommonC++'s API
reference), what could be going on?

The application tries to be (  :(  ), a multithreading server. This
server acts in the following manner:
a) Create server sockets
b) Become waiting for new incoming connections.
c) Creates a new thread to serve de request
d) Starts the thred.

The code is the following one....


void AListeningThread::run() {

....

try {
		serverSocket = new TCPSocket (*ip, portTCP);
}
catch(Socket *socket) {
	    	tpport_t port;
	    	InetAddress saddr = (InetAddress)socket->getPeer(&port);
		    printf ("FATAL - an error message\n",getTime());
		    if(socket->getErrorNumber() == Socket::errResourceFailure) {			   
    			    logger->registraFallo("Another error Message");
		    }
		    if(socket->getErrorNumber() == Socket::errBindingFailed) {
            logger->registraFallo("Another error Message");
		    }
}

try {
		    while (serverSocket->isPendingConnection()) {
			           service = new ServiceThread (serverSocket);
              service -> detach();
    		}
}
catch (...) {
    		logger->registraFallo("Unexpeted exception produced!!!");
	}
	
}

As I told you, the unexpected exception is produced every two hours, and
I don't have any idea of why (it's strange because I've implemented a
watchdog using netcat and the cron, which request an ARE_YOU_ALIVE frame
every two minutes, and these are always the ones which hang-off the
server...)

Best Regards

--Boundary_(ID_9bwqld5YVnsJTf93IiyzWg)
Content-type: text/html; charset=utf-8
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Dear all,<BR>
<BR>
I've made an applicaction using your Thread and TCP stream and socket classes. All seemed to works fine, but one made the put on production, the program deads after 2 hours. An exception is catched, but no one line of this code can produce any exception (refering to CommonC++'s API reference), what could be going on?<BR>
<BR>
The application tries to be (&nbsp; :(&nbsp; ), a multithreading server. This server acts in the following manner:<BR>
a) Create server sockets<BR>
b) Become waiting for new incoming connections.<BR>
c) Creates a new thread to serve de request<BR>
d) Starts the thred.<BR>
<BR>
The code is the following one....<BR>
<BR>
<BR>
void AListeningThread::run() {<BR>
<BR>
....<BR>
<BR>
try {<BR>
		serverSocket = new TCPSocket (*ip, portTCP);<BR>
}<BR>
catch(Socket *socket) {<BR>
	&nbsp;&nbsp;&nbsp; 	tpport_t port;<BR>
	&nbsp;&nbsp;&nbsp; 	InetAddress saddr = (InetAddress)socket-&gt;getPeer(&amp;port);<BR>
		&nbsp;&nbsp;&nbsp; printf (&quot;FATAL - an error message\n&quot;,getTime());<BR>
		&nbsp;&nbsp;&nbsp; if(socket-&gt;getErrorNumber() == Socket::errResourceFailure) {			&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp; 			&nbsp;&nbsp;&nbsp; logger-&gt;registraFallo(&quot;Another error Message&quot;);<BR>
		&nbsp;&nbsp;&nbsp; }<BR>
		&nbsp;&nbsp;&nbsp; if(socket-&gt;getErrorNumber() == Socket::errBindingFailed) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logger-&gt;registraFallo(&quot;Another error Message&quot;);<BR>
		&nbsp;&nbsp;&nbsp; }<BR>
}<BR>
<BR>
try {<BR>
		&nbsp;&nbsp;&nbsp; while (serverSocket-&gt;isPendingConnection()) {<BR>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service = new ServiceThread (serverSocket);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service -&gt; detach();<BR>
&nbsp;&nbsp;&nbsp; 		}<BR>
}<BR>
catch (...) {<BR>
&nbsp;&nbsp;&nbsp; 		logger-&gt;registraFallo(&quot;Unexpeted exception produced!!!&quot;);<BR>
	}<BR>
	<BR>
}<BR>
<BR>
As I told you, the unexpected exception is produced every two hours, and I don't have any idea of why (it's strange because I've implemented a watchdog using netcat and the cron, which request an ARE_YOU_ALIVE frame every two minutes, and these are always the ones which hang-off the server...)<BR>
<BR>
Best Regards
</BODY>
</HTML>

--Boundary_(ID_9bwqld5YVnsJTf93IiyzWg)--



From MAILER-DAEMON Wed Dec 03 20:26:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARiFq-0007AT-UY
	for mharc-bug-commoncpp@gnu.org; Wed, 03 Dec 2003 20:26:06 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARiFo-00079V-Ds
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 20:26:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARiFI-0006yM-Hv
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 20:26:03 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARiFI-0006wD-AE
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 20:25:32 -0500
Received: from [64.235.234.100] (helo=orion.lunarpages.com)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1ARhGu-0006Bg-IE
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 19:23:08 -0500
Received: from cpanel by orion.lunarpages.com with local (Exim 4.24)
	id 1ARhH1-0005km-Gy
	for bug-commoncpp@gnu.org; Wed, 03 Dec 2003 16:23:15 -0800
Received: from dial-148-243-91-168.zone-1.dial.net.mx
	(dial-148-243-91-168.zone-1.dial.net.mx [148.243.91.168]) 
	by orion.lunarpages.com (IMP) with HTTP 
	for <edgar@presentame.com@localhost>; Wed,  3 Dec 2003 16:23:15 -0800
Message-ID: <1070497395.3fce7e7375325@orion.lunarpages.com>
Date: Wed,  3 Dec 2003 16:23:15 -0800
From: edgar@presentame.com
To: bug-commoncpp@gnu.org
References: <1070441351.3fcda3873f7c7@orion.lunarpages.com>
In-Reply-To: <1070441351.3fcda3873f7c7@orion.lunarpages.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) 3.2.1
X-Originating-IP: 148.243.91.168
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - orion.lunarpages.com
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [32001 502] / [47 12]
X-AntiAbuse: Sender Address Domain - presentame.com
Subject: Mailing Download
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Dec 2003 01:26:05 -0000

Hello!

 How can I download all the bug-commoncpp archive ?



From MAILER-DAEMON Thu Dec 04 12:22:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARxBK-0006U2-Lr
	for mharc-bug-commoncpp@gnu.org; Thu, 04 Dec 2003 12:22:26 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARxBC-0006Rw-DD
	for bug-commoncpp@gnu.org; Thu, 04 Dec 2003 12:22:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARxAe-0006GF-V2
	for bug-commoncpp@gnu.org; Thu, 04 Dec 2003 12:22:16 -0500
Received: from [150.214.7.5] (helo=mx.imse.cnm.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARxAe-00069s-4b
	for bug-commoncpp@gnu.org; Thu, 04 Dec 2003 12:21:44 -0500
Received: from pcutec.imse.cnm.es (mail@pcutec [150.214.7.153])
	by mx.imse.cnm.es (8.12.10/8.12.3) with ESMTP id hB4GJqWu002972;
	Thu, 4 Dec 2003 17:19:53 +0100 (MET)
Received: from fedemp by pcutec.imse.cnm.es with local (Exim 3.35 #1 (Debian))
	id 1ARwE8-0001I8-00; Thu, 04 Dec 2003 17:21:16 +0100
Date: Thu, 4 Dec 2003 17:21:16 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: edgar@presentame.com
Message-ID: <20031204162116.GA4955@pcutec>
Mail-Followup-To: edgar@presentame.com, bug-commoncpp@gnu.org
References: <1070441351.3fcda3873f7c7@orion.lunarpages.com>
	<1070497395.3fce7e7375325@orion.lunarpages.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1070497395.3fce7e7375325@orion.lunarpages.com>
User-Agent: Mutt/1.3.28i
Sender: Federico Montesino Pouzols <fedemp@imse.cnm.es>
Cc: bug-commoncpp@gnu.org
Subject: Re: Mailing Download
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Dec 2003 17:22:24 -0000


	At http://mail.gnu.org/archive/html/bug-commoncpp/ you can
search through the archive. I see no way to download the whole
archive, though.

On Wed, Dec 03, 2003 at 04:23:15PM -0800, edgar@presentame.com wrote:
> Hello!
> 
>  How can I download all the bug-commoncpp archive ?
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Mon Dec 08 13:43:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATQLo-0007fS-ID
	for mharc-bug-commoncpp@gnu.org; Mon, 08 Dec 2003 13:43:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATQLi-0007a5-Tv
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 13:43:14 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATQL9-0006jh-BB
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 13:43:11 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1ATQL6-0006et-VU
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 13:42:37 -0500
Received: (qmail 24196 invoked by uid 0); 8 Dec 2003 17:41:09 -0000
Received: from 143.52.203.59 by www5.gmx.net with HTTP;
	Mon, 8 Dec 2003 18:41:09 +0100 (MET)
Date: Mon, 8 Dec 2003 18:41:09 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <6861.1070905269@www5.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Dec 2003 18:43:19 -0000

Hi, 
This may be the wrong mailinglist, but I couldnt find another on the 
CommonC++ website. 
 
I am interested in adding a hardware API to the CommonC++ library. I have 
started such a project and the code is in CVS here: 
http://www.arklinux.org/cgi-bin/cvsweb.cgi/OSKit/HardwareKit/ 
 
The name OSKit is misleading and has nothing to do with the OSKit from the 
universty of utah. The hardware library is for device detection and 
read/write from userspace. It depends only on libstdc++ and is not a 
wrapper for libpci or such. Currently a PCI,USB,PCMCIA,PS2,Serial Device 
API is in development and read/write to a device interface is planned to be 
implemented as streams. 
 
The two main features are: 
- Obtaining Device Information. Device objects can be constructed from the 
system id. In case of PCI it is the bus/device/function value as seen 
in /proc or the registry. After contruction the device information can be 
accessed 
 
- Read/write to a device interface. A stream can be constructed from a 
device interface and read/write operations can be performed.  
 
Is there a place for this in CommonC++? 
 
regards, 
Marc 
 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Mon Dec 08 15:46:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATSGl-00011U-Jj
	for mharc-bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:46:15 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATSGi-0000ze-6n
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:46:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATSGA-0000dN-SR
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:46:10 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ATSG9-0000bu-GM
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:45:37 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hB8Li1Fp018633; Mon, 8 Dec 2003 16:44:01 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Mon, 8 Dec 2003 14:59:41 -0500
User-Agent: KMail/1.5.3
References: <6861.1070905269@www5.gmx.net>
In-Reply-To: <6861.1070905269@www5.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312081459.41682.dyfet@ostel.com>
Cc: 
Subject: Re: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Dec 2003 20:46:13 -0000

I think it would be very interesting, and I could see several places and=20
possible projects I would use something like this already, so yes, I think =
it=20
could be a very good addition.  How portable is this?  Is it very specific=
=20
GNU/Linux, or can it be used/easily adapted for use with other operating=20
systems and kernels, such FreeBSD for example? =20

On Monday 08 December 2003 12:41 pm, Marc Boris D=FCrner wrote:
> Hi,
> This may be the wrong mailinglist, but I couldnt find another on the
> CommonC++ website.
>
> I am interested in adding a hardware API to the CommonC++ library. I have
> started such a project and the code is in CVS here:
> http://www.arklinux.org/cgi-bin/cvsweb.cgi/OSKit/HardwareKit/
>
> The name OSKit is misleading and has nothing to do with the OSKit from the
> universty of utah. The hardware library is for device detection and
> read/write from userspace. It depends only on libstdc++ and is not a
> wrapper for libpci or such. Currently a PCI,USB,PCMCIA,PS2,Serial Device
> API is in development and read/write to a device interface is planned to =
be
> implemented as streams.
>
> The two main features are:
> - Obtaining Device Information. Device objects can be constructed from the
> system id. In case of PCI it is the bus/device/function value as seen
> in /proc or the registry. After contruction the device information can be
> accessed
>
> - Read/write to a device interface. A stream can be constructed from a
> device interface and read/write operations can be performed.
>
> Is there a place for this in CommonC++?
>
> regards,
> Marc




From MAILER-DAEMON Mon Dec 08 16:09:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATSdA-0003xS-TB
	for mharc-bug-commoncpp@gnu.org; Mon, 08 Dec 2003 16:09:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATSd8-0003ws-Ms
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 16:09:22 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATScc-0003np-8o
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 16:09:21 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1ATScb-0003nS-RG
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 16:08:49 -0500
Received: (qmail 12290 invoked by uid 0); 8 Dec 2003 20:07:23 -0000
Received: from 143.52.203.59 by www57.gmx.net with HTTP;
	Mon, 8 Dec 2003 21:07:23 +0100 (MET)
Date: Mon, 8 Dec 2003 21:07:23 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <4824.1070914043@www57.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Re: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Dec 2003 21:09:23 -0000

On Monday 08 December 2003 20:59, you wrote: 
> I think it would be very interesting, and I could see several places and 
> possible projects I would use something like this already, so yes, I think

> it could be a very good addition.  How portable is this?  Is it very 
> specific GNU/Linux, or can it be used/easily adapted for use with other 
> operating systems and kernels, such FreeBSD for example? 
 
I see it as a backend for freedesktop.org's HAL, which has to get away from
ugly C  ;) 
 
It should be fairly portable. The PCI and USB stuff comes with its own
parser for the 
configuration registers for example, so in theory all you have to do is
point them to 
wherever the registers reside. Sometimes you may get them with an ioctl() or
from a FS 
like procfs. I am going to write a parser for pcmcia too, but the specs seem
not to be 
openly accessible. I could only get the usb and pci specs for free. however
there is parsing 
code from the linux kernel I have seen and could modify. It might even be
portable 
without a pcmcia parser since the most Unix-like OS`es are similar in how to
get the data 
from the pcmcia configuration space. 
 
As for implementing the iostreams it will be as difficult as say libusb,
which wraps up the 
different API`s. I (we) have to make a descision how to implement them. I
was a bit 
reluctant to use too many C++ features in the beginning, as I dreamt of
having it in 
EmbeddedC++ and maybe include driver/kernel stuff one day, but I have given
up on this 
dream, since the current political situtation, at least in the linux world,
will prevent any nice 
C++ interfaces in the kernel in the foreseeable future. 
 
Its not meant to be GNU/Linux specific. I would certainly appreciate help
from the BSD and 
Hurd people and I try as hard as I can to stay away from any linux-isms. 
 
Are there any other modules planned for CommonC++? I have never heard of it
before, 
even though it packages a lot of very useful stuff. What are the other plany
for the future? 
Modularisation maybe? 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Mon Dec 08 16:28:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATSvh-0006VY-Is
	for mharc-bug-commoncpp@gnu.org; Mon, 08 Dec 2003 16:28:33 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATSRF-0000LT-0W
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:57:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATSQQ-0007X4-Cv
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:56:46 -0500
Received: from [159.53.238.161] (helo=smtpohi2.bankone.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATSQO-0007Rh-Gr
	for bug-commoncpp@gnu.org; Mon, 08 Dec 2003 15:56:12 -0500
Received: from ino1s005.svr.bankone.net ([155.180.132.184])
	by smtpohi2.bankone.com (8.12.10/8.12.9) with ESMTP id hB8Jsjfd003812
	for <bug-commoncpp@gnu.org>; Mon, 8 Dec 2003 19:54:45 GMT
Received: from swilnts860.wil.fusa.com ([168.118.4.171])
	by ino1s005.svr.bankone.net (8.12.10/8.12.10) with ESMTP id
	hB8JsgJM022800
	for <bug-commoncpp@gnu.org>; Mon, 8 Dec 2003 14:54:43 -0500 (EST)
Received: from swilnts807.wil.fusa.com (unverified) by 
	swilnts860.wil.fusa.com (Content Technologies SMTPRS 4.3.10) with ESMTP
	id <T6662bdfd2ea87604ab968@swilnts860.wil.fusa.com> for 
	<bug-commoncpp@gnu.org>; Mon, 8 Dec 2003 14:54:42 -0500
Received: from swilnts806.wil.fusa.com ([168.118.4.46]) by 
	swilnts807.wil.fusa.com with Microsoft SMTPSVC (5.0.2195.6713); Mon, 8 
	Dec 2003 14:54:42 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 8 Dec 2003 14:54:42 -0500
Message-ID: <1137E790161CC949B0E37FD37C7783BF271EF0@swilnts806.wil.fusa.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Thread1 Regression tests fails on AIX (5.2 64 Bit)
Thread-Index: AcO9xR7dGrledwZsS/q31JbSmtuk3Q==
From: <Ronald_Horrell@bankone.com>
To: <bug-commoncpp@gnu.org>
X-OriginalArrivalTime: 08 Dec 2003 19:54:42.0253 (UTC) 
	FILETIME=[1EFBC7D0:01C3BDC5]
X-Mailman-Approved-At: Mon, 08 Dec 2003 16:28:31 -0500
Subject: Thread1 Regression tests fails on AIX (5.2 64 Bit)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Dec 2003 20:57:15 -0000

The following error occurs when running regression tests on AIX 5.2 64Bit: =
(Built in both 64 and 32 bit object mode)
.../commoncpp2-1.0.13-64/tests$./test.sh  <
Executing all tests... please wait...
bug1 test...
bug2 test...
thread1 test...
digest test...
tcpstr1 test...
url1 test...
testout.txt output.txt differ: char 439, line 22
Test failed :(
Compare testout.txt (wrong) and output.txt (correct) for more information

***********************************************
* Testing class Thread without syncronization *
***********************************************
Testing thread creation

- thread should set n to 1...ok

Testing thread is working

- thread should change n...ok
- thread should change n...ok

Testing suspend & resume

- thread should not change n...ko
Exit with error from thread1


Ronald G. Horrell
Decision Science / Marketing
Ronald_Horrell@BankOne.com
302-282-3204



**********************************************************************
This transmission may contain information that is privileged, confidential =
and/or exempt from disclosure under applicable law. If you are not the inte=
nded recipient, you are hereby notified that any disclosure, copying, distr=
ibution, or use of the information contained herein (including any reliance=
 thereon) is STRICTLY PROHIBITED. If you received this transmission in erro=
r, please immediately contact the sender and destroy the material in its en=
tirety, whether in electronic or hard copy format. Thank you
**********************************************************************




From MAILER-DAEMON Tue Dec 09 13:13:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATmMK-0002Kl-PK
	for mharc-bug-commoncpp@gnu.org; Tue, 09 Dec 2003 13:13:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATdst-0006hN-Cg
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 04:10:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATdsN-00060W-M1
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 04:10:22 -0500
Received: from [195.110.126.72] (helo=mail.supereva.it)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1ATdsN-0005y2-39
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 04:09:51 -0500
Received: (qmail 22770 invoked by uid 320); 9 Dec 2003 08:08:20 -0000
Date: 9 Dec 2003 08:08:20 -0000
Message-ID: <20031209080820.22767.qmail@mail.supereva.it>
Received: from 62.94.208.139,10.10.10.148 (fedagostino@supereva.it) by
	mail.supereva.it with HTTP; Tue Dec  9 09:08:20 2003
X-Originating-IP: [62.94.208.139,10.10.10.148]
From: fedagostino@supereva.it
To: bug-commoncpp@gnu.org
X-Priority: 1
X-MSMail-Priority: High
Importance: High
X-Mailman-Approved-At: Tue, 09 Dec 2003 13:13:18 -0500
Subject: bug on getTimeout()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: fedagostino@supereva.it
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Dec 2003 09:10:23 -0000


I'm using common cpp on dec alpha processor with unix system.

Mi application go up to 100% of cpu usage and i found that event::wait does not work correctly.



timespec *getTimeout(struct timespec *spec, timeout_t timer)

{

	static	struct timespec myspec;



	if(spec == NULL)

		spec = &myspec;



#ifdef	PTHREAD_GET_EXPIRATION_NP

	struct timespec offset;



	offset.tv_sec = timer / 1000;

	offset.tv_nsec = (timer % 1000) * 1000000;

	pthread_get_expiration_np(&offset, sec);

#else

	struct timeval current;



	gettimeofday(&current, NULL);

	spec->tv_sec = current.tv_sec + timer / 1000;

	spec->tv_nsec = (current.tv_usec + (timer % 1000) * 1000) * 1000;

#endif

	return spec;

}	



changhe it to 





timespec *getTimeout(struct timespec *spec, timeout_t timer)

{

	static	struct timespec myspec;



	if(spec == NULL)

		spec = &myspec;



#ifdef	PTHREAD_GET_EXPIRATION_NP

	struct timespec offset;



	offset.tv_sec = timer / 1000;

	offset.tv_nsec = (timer % 1000) * 1000000;

	pthread_get_expiration_np(&offset, sec);

#else

	struct timeval current;



	gettimeofday(&current, NULL);

	spec->tv_sec = current.tv_sec + timer / 1000;

	spec->tv_nsec = (current.tv_usec + (timer % 1000) * 1000) * 1000;

  while (spec->tv_nsec >=1000000000)

    {

     spec->tv_nsec  -= 1000000000;

     spec->tv_sec  += 1;

    }

#endif

	return spec;

}	

 

i have added while loop this prevent pthread_cond_timedwait function to exit with EINVAL value.



thanks for attention and excuse me for my english.

---------------------------------------------------------
Stanco dello spam nella tua email? Prova GRATIS
il nuovo servizio ANTISPAM di superEva:
http://webmail.supereva.it/spam.html
---------------------------------------------------------





From MAILER-DAEMON Tue Dec 09 13:57:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATn3B-0001rC-2Y
	for mharc-bug-commoncpp@gnu.org; Tue, 09 Dec 2003 13:57:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATn38-0001r1-TK
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 13:57:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATn2b-0001in-3H
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 13:57:32 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ATn2a-0001ib-Lc
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 13:57:00 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hB9JttFp010211; Tue, 9 Dec 2003 14:55:56 -0500
From: David Sugar <dyfet@ostel.com>
To: fedagostino@supereva.it, bug-commoncpp@gnu.org
Date: Tue, 9 Dec 2003 13:11:36 -0500
User-Agent: KMail/1.5.3
References: <20031209080820.22767.qmail@mail.supereva.it>
In-Reply-To: <20031209080820.22767.qmail@mail.supereva.it>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312091311.36556.dyfet@ostel.com>
Cc: 
Subject: Re: bug on getTimeout()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Dec 2003 18:57:35 -0000

Actually, I think the key part should be more like:

	spec->tv_sec = current.tv_sec + ((timer + current.tv_usec) / 1000);
	spec->tv_nsec = ((current.tv_usec + timer) % 1000) * 1000000;


On Tuesday 09 December 2003 03:08 am, fedagostino@supereva.it wrote:
> I'm using common cpp on dec alpha processor with unix system.
>
> Mi application go up to 100% of cpu usage and i found that event::wait does
> not work correctly.
>
>
>
> timespec *getTimeout(struct timespec *spec, timeout_t timer)
>
> {
>
> 	static	struct timespec myspec;
>
>
>
> 	if(spec == NULL)
>
> 		spec = &myspec;
>
>
>
> #ifdef	PTHREAD_GET_EXPIRATION_NP
>
> 	struct timespec offset;
>
>
>
> 	offset.tv_sec = timer / 1000;
>
> 	offset.tv_nsec = (timer % 1000) * 1000000;
>
> 	pthread_get_expiration_np(&offset, sec);
>
> #else
>
> 	struct timeval current;
>
>
>
> 	gettimeofday(&current, NULL);
>
> 	spec->tv_sec = current.tv_sec + timer / 1000;
>
> 	spec->tv_nsec = (current.tv_usec + (timer % 1000) * 1000) * 1000;
>
> #endif
>
> 	return spec;
>
> }
>
>
>
> changhe it to
>
>
>
>
>
> timespec *getTimeout(struct timespec *spec, timeout_t timer)
>
> {
>
> 	static	struct timespec myspec;
>
>
>
> 	if(spec == NULL)
>
> 		spec = &myspec;
>
>
>
> #ifdef	PTHREAD_GET_EXPIRATION_NP
>
> 	struct timespec offset;
>
>
>
> 	offset.tv_sec = timer / 1000;
>
> 	offset.tv_nsec = (timer % 1000) * 1000000;
>
> 	pthread_get_expiration_np(&offset, sec);
>
> #else
>
> 	struct timeval current;
>
>
>
> 	gettimeofday(&current, NULL);
>
> 	spec->tv_sec = current.tv_sec + timer / 1000;
>
> 	spec->tv_nsec = (current.tv_usec + (timer % 1000) * 1000) * 1000;
>
>   while (spec->tv_nsec >=1000000000)
>
>     {
>
>      spec->tv_nsec  -= 1000000000;
>
>      spec->tv_sec  += 1;
>
>     }
>
> #endif
>
> 	return spec;
>
> }
>
>
>
> i have added while loop this prevent pthread_cond_timedwait function to
> exit with EINVAL value.
>
>
>
> thanks for attention and excuse me for my english.
>
> ---------------------------------------------------------
> Stanco dello spam nella tua email? Prova GRATIS
> il nuovo servizio ANTISPAM di superEva:
> http://webmail.supereva.it/spam.html
> ---------------------------------------------------------
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Tue Dec 09 14:09:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATnEp-0004IZ-Sn
	for mharc-bug-commoncpp@gnu.org; Tue, 09 Dec 2003 14:09:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATnEn-0004I9-HP
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 14:09:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATnEH-0004EB-G1
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 14:09:36 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ATnEG-0004Dp-Q3
	for bug-commoncpp@gnu.org; Tue, 09 Dec 2003 14:09:05 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hB9K80Fp010319; Tue, 9 Dec 2003 15:08:00 -0500
From: David Sugar <dyfet@ostel.com>
To: fedagostino@supereva.it, bug-commoncpp@gnu.org
Date: Tue, 9 Dec 2003 13:23:41 -0500
User-Agent: KMail/1.5.3
References: <20031209080820.22767.qmail@mail.supereva.it>
In-Reply-To: <20031209080820.22767.qmail@mail.supereva.it>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312091323.41127.dyfet@ostel.com>
Cc: 
Subject: Re: bug on getTimeout()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Dec 2003 19:09:38 -0000

Strangly enough I am testing this particular code right now...in fact, I stand 
slightly corrected:

	gettimeofday(&current, NULL);
	spec->tv_sec = current.tv_sec + ((timer + current.tv_usec / 1000) / 1000);
	spec->tv_nsec = ((current.tv_usec / 1000 + timer) % 1000) * 1000000;

tod is microseconds, not milli :)

On Tuesday 09 December 2003 03:08 am, fedagostino@supereva.it wrote:
> I'm using common cpp on dec alpha processor with unix system.
>
> Mi application go up to 100% of cpu usage and i found that event::wait does
> not work correctly.
>
>
>
> timespec *getTimeout(struct timespec *spec, timeout_t timer)
>
> {
>
> 	static	struct timespec myspec;
>
>
>
> 	if(spec == NULL)
>
> 		spec = &myspec;
>
>
>
> #ifdef	PTHREAD_GET_EXPIRATION_NP
>
> 	struct timespec offset;
>
>
>
> 	offset.tv_sec = timer / 1000;
>
> 	offset.tv_nsec = (timer % 1000) * 1000000;
>
> 	pthread_get_expiration_np(&offset, sec);
>
> #else
>
> 	struct timeval current;
>
>
>
> 	gettimeofday(&current, NULL);
>
> 	spec->tv_sec = current.tv_sec + timer / 1000;
>
> 	spec->tv_nsec = (current.tv_usec + (timer % 1000) * 1000) * 1000;
>
> #endif
>
> 	return spec;
>
> }
>
>
>
> changhe it to
>
>
>
>
>
> timespec *getTimeout(struct timespec *spec, timeout_t timer)
>
> {
>
> 	static	struct timespec myspec;
>
>
>
> 	if(spec == NULL)
>
> 		spec = &myspec;
>
>
>
> #ifdef	PTHREAD_GET_EXPIRATION_NP
>
> 	struct timespec offset;
>
>
>
> 	offset.tv_sec = timer / 1000;
>
> 	offset.tv_nsec = (timer % 1000) * 1000000;
>
> 	pthread_get_expiration_np(&offset, sec);
>
> #else
>
> 	struct timeval current;
>
>
>
> 	gettimeofday(&current, NULL);
>
> 	spec->tv_sec = current.tv_sec + timer / 1000;
>
> 	spec->tv_nsec = (current.tv_usec + (timer % 1000) * 1000) * 1000;
>
>   while (spec->tv_nsec >=1000000000)
>
>     {
>
>      spec->tv_nsec  -= 1000000000;
>
>      spec->tv_sec  += 1;
>
>     }
>
> #endif
>
> 	return spec;
>
> }
>
>
>
> i have added while loop this prevent pthread_cond_timedwait function to
> exit with EINVAL value.
>
>
>
> thanks for attention and excuse me for my english.
>
> ---------------------------------------------------------
> Stanco dello spam nella tua email? Prova GRATIS
> il nuovo servizio ANTISPAM di superEva:
> http://webmail.supereva.it/spam.html
> ---------------------------------------------------------
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Wed Dec 10 07:57:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AU3tr-0005KP-5y
	for mharc-bug-commoncpp@gnu.org; Wed, 10 Dec 2003 07:57:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AU3to-0005KC-Mr
	for bug-commoncpp@gnu.org; Wed, 10 Dec 2003 07:57:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AU3tI-0005Ew-18
	for bug-commoncpp@gnu.org; Wed, 10 Dec 2003 07:57:03 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AU3tH-0005Bz-N6
	for bug-commoncpp@gnu.org; Wed, 10 Dec 2003 07:56:31 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1) id 1AU2x5-000LZ0-00
	for bug-commoncpp@gnu.org; Wed, 10 Dec 2003 12:56:23 +0100
Message-ID: <3FD7096C.50003@profzone.ch>
Date: Wed, 10 Dec 2003 12:54:20 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-GPGrelay-Relayed: GPGrelay Version 0.93 (Win32)
Subject: Missing CCXX_CLASS_EXPORT on some classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Dec 2003 12:57:05 -0000

Hello

I miss CCXX_CLASS_EXPORT on several classes like CommandOption and friends.

regards
Tobias



From MAILER-DAEMON Thu Dec 11 07:09:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUPal-0001tx-MW
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:06:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUPZf-0000Eb-Dl
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:05:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUPYw-0007tD-62
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:05:29 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUPXf-00077r-DG
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:03:39 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBD2lFp022690; Thu, 11 Dec 2003 08:02:48 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>, bug-commoncpp@gnu.org
Date: Thu, 11 Dec 2003 06:18:28 -0500
User-Agent: KMail/1.5.3
References: <3FD7096C.50003@profzone.ch>
In-Reply-To: <3FD7096C.50003@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312110618.28743.dyfet@ostel.com>
Cc: 
Subject: Re: Missing CCXX_CLASS_EXPORT on some classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 12:06:13 -0000

I think this set of classes was dropped in the upcoming 1.1 release, which 
does feature a lot of general cleanup of the Common C++ code.  Unfortunately, 
cvs is down at the moment, otherwise I would suggest accessing the "testing" 
branch to confirm this issue.

David

On Wednesday 10 December 2003 06:54 am, Tobias Erbsland wrote:
> Hello
>
> I miss CCXX_CLASS_EXPORT on several classes like CommandOption and friends.
>
> regards
> Tobias
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Dec 11 07:27:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUPuQ-0002pN-RW
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:27:10 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUPuN-0002nP-JJ
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:27:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUPu7-0002hQ-Vy
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:27:06 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUPu6-0002ek-7m
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:26:50 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBDPtFp022815; Thu, 11 Dec 2003 08:25:55 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Thu, 11 Dec 2003 06:41:36 -0500
User-Agent: KMail/1.5.3
References: <4824.1070914043@www57.gmx.net>
In-Reply-To: <4824.1070914043@www57.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312110641.36723.dyfet@ostel.com>
Cc: 
Subject: Re: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 12:27:08 -0000

This seems generally useful then.  Yes, I think we can fit it in somewhere =
for=20
a future release, once cvs comes back alive.

On Monday 08 December 2003 03:07 pm, Marc Boris D=FCrner wrote:
> On Monday 08 December 2003 20:59, you wrote:
> > I think it would be very interesting, and I could see several places and
> > possible projects I would use something like this already, so yes, I
> > think
> >
> > it could be a very good addition.  How portable is this?  Is it very
> > specific GNU/Linux, or can it be used/easily adapted for use with other
> > operating systems and kernels, such FreeBSD for example?
>
> I see it as a backend for freedesktop.org's HAL, which has to get away fr=
om
> ugly C  ;)
>
> It should be fairly portable. The PCI and USB stuff comes with its own
> parser for the
> configuration registers for example, so in theory all you have to do is
> point them to
> wherever the registers reside. Sometimes you may get them with an ioctl()
> or from a FS
> like procfs. I am going to write a parser for pcmcia too, but the specs
> seem not to be
> openly accessible. I could only get the usb and pci specs for free. howev=
er
> there is parsing
> code from the linux kernel I have seen and could modify. It might even be
> portable
> without a pcmcia parser since the most Unix-like OS`es are similar in how
> to get the data
> from the pcmcia configuration space.
>
> As for implementing the iostreams it will be as difficult as say libusb,
> which wraps up the
> different API`s. I (we) have to make a descision how to implement them. I
> was a bit
> reluctant to use too many C++ features in the beginning, as I dreamt of
> having it in
> EmbeddedC++ and maybe include driver/kernel stuff one day, but I have giv=
en
> up on this
> dream, since the current political situtation, at least in the linux worl=
d,
> will prevent any nice
> C++ interfaces in the kernel in the foreseeable future.
>
> Its not meant to be GNU/Linux specific. I would certainly appreciate help
> from the BSD and
> Hurd people and I try as hard as I can to stay away from any linux-isms.
>
> Are there any other modules planned for CommonC++? I have never heard of =
it
> before,
> even though it packages a lot of very useful stuff. What are the other
> plany for the future?
> Modularisation maybe?
>
> regards,
> Marc




From MAILER-DAEMON Thu Dec 11 07:28:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUPv5-00038L-3p
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:27:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUPuq-00032R-Sa
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:27:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUPst-00029T-J2
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:26:06 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUPss-000299-Sf
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 07:25:35 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBDOgFp022806; Thu, 11 Dec 2003 08:24:43 -0500
From: David Sugar <dyfet@ostel.com>
To: <Ronald_Horrell@bankone.com>, <bug-commoncpp@gnu.org>
Date: Thu, 11 Dec 2003 06:40:23 -0500
User-Agent: KMail/1.5.3
References: <1137E790161CC949B0E37FD37C7783BF271EF0@swilnts806.wil.fusa.com>
In-Reply-To: <1137E790161CC949B0E37FD37C7783BF271EF0@swilnts806.wil.fusa.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312110640.23962.dyfet@ostel.com>
Cc: 
Subject: Re: Thread1 Regression tests fails on AIX (5.2 64 Bit)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 12:27:40 -0000

I assume that AIX does not have a means to suspend/resume threads?  Actually, 
this issue also appears in the nptl stuff for newer GNU/Linux distributions.   
If you run the tests manually, do any other ones fail?

On Monday 08 December 2003 02:54 pm, Ronald_Horrell@bankone.com wrote:
> The following error occurs when running regression tests on AIX 5.2 64Bit:
> (Built in both 64 and 32 bit object mode)
> .../commoncpp2-1.0.13-64/tests$./test.sh  <
> Executing all tests... please wait...
> bug1 test...
> bug2 test...
> thread1 test...
> digest test...
> tcpstr1 test...
> url1 test...
> testout.txt output.txt differ: char 439, line 22
> Test failed :(
> Compare testout.txt (wrong) and output.txt (correct) for more information
>
> ***********************************************
> * Testing class Thread without syncronization *
> ***********************************************
> Testing thread creation
>
> - thread should set n to 1...ok
>
> Testing thread is working
>
> - thread should change n...ok
> - thread should change n...ok
>
> Testing suspend & resume
>
> - thread should not change n...ko
> Exit with error from thread1
>
>
> Ronald G. Horrell
> Decision Science / Marketing
> Ronald_Horrell@BankOne.com
> 302-282-3204
>
>
>
> **********************************************************************
> This transmission may contain information that is privileged, confidential
> and/or exempt from disclosure under applicable law. If you are not the
> intended recipient, you are hereby notified that any disclosure, copying,
> distribution, or use of the information contained herein (including any
> reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
> in error, please immediately contact the sender and destroy the material in
> its entirety, whether in electronic or hard copy format. Thank you
> **********************************************************************
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Dec 11 09:05:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AURPA-000374-SO
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:03:00 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AURNq-0002fl-Tq
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:01:38 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AURN9-0002KA-P1
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:01:27 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AURMz-0002He-8l
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:00:45 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1)
	id 1AUQR3-000OU0-00; Thu, 11 Dec 2003 14:00:53 +0100
Message-ID: <3FD86A0E.1000508@profzone.ch>
Date: Thu, 11 Dec 2003 13:58:54 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Sugar <dyfet@ostel.com>,  bug-commoncpp@gnu.org
References: <3FD7096C.50003@profzone.ch> <200312110618.28743.dyfet@ostel.com>
In-Reply-To: <200312110618.28743.dyfet@ostel.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-GPGrelay-Relayed: GPGrelay Version 0.93 (Win32)
Cc: 
Subject: Re: Missing CCXX_CLASS_EXPORT on some classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 14:02:59 -0000

> I think this set of classes was dropped in the upcoming 1.1 release, which 
> does feature a lot of general cleanup of the Common C++ code.  Unfortunately, 
> cvs is down at the moment, otherwise I would suggest accessing the "testing" 
> branch to confirm this issue.

<panic>Dropped?</panic> I use them in many projects. I hope that's a joke...

regards
Tobias



From MAILER-DAEMON Thu Dec 11 09:16:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AURcO-0006Ie-RX
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:16:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AURcK-0006Gk-IO
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:16:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AURbl-000688-1n
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:16:32 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AURbc-00066g-KD
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:15:52 -0500
Received: (qmail 3354 invoked by uid 0); 11 Dec 2003 13:14:25 -0000
Received: from 143.52.203.59 by www27.gmx.net with HTTP;
	Thu, 11 Dec 2003 14:14:25 +0100 (MET)
Date: Thu, 11 Dec 2003 14:14:25 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <20887.1071148465@www27.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Re: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 14:16:38 -0000

Hi, 
Maybe we should start preparing it as an add-on first like ccAudio. 
 
ccHardware? 
 
Thanks, 
Marc 
 
 
>This seems generally useful then.  Yes, I think we can fit it in somewhere
for  
>a future release, once cvs comes back alive. 
 
> > I think it would be very interesting, and I could see several places and

> > possible projects I would use something like this already, so yes, I 
> > think 
> > 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Thu Dec 11 09:50:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUS8i-00025a-4B
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:50:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUS8K-0001Mv-7q
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:49:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUS7Z-00086W-Bh
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:49:25 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUS7Q-0007r1-Kq
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:48:44 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBFlrFp023545; Thu, 11 Dec 2003 10:47:53 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Thu, 11 Dec 2003 09:03:33 -0500
User-Agent: KMail/1.5.3
References: <20887.1071148465@www27.gmx.net>
In-Reply-To: <20887.1071148465@www27.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312110903.33969.dyfet@ostel.com>
Cc: 
Subject: Re: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 14:50:02 -0000

Yes, the ccAudio library can be used as a template for how to do this, and=
=20
ccHardware sounds fine.  Or ccDevices?

David

On Thursday 11 December 2003 08:14 am, Marc Boris D=FCrner wrote:
> Hi,
> Maybe we should start preparing it as an add-on first like ccAudio.
>
> ccHardware?
>
> Thanks,
> Marc
>
> >This seems generally useful then.  Yes, I think we can fit it in somewhe=
re
>
> for
>
> >a future release, once cvs comes back alive.
> >
> > > I think it would be very interesting, and I could see several places
> > > and
> > >
> > > possible projects I would use something like this already, so yes, I
> > > think




From MAILER-DAEMON Thu Dec 11 09:53:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUSCK-0007QV-Kx
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:53:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUSBz-00074V-Bv
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:53:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUSB1-0005YB-By
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:52:59 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUSAq-0005Bw-U1
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 09:52:17 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBFpRFp023558; Thu, 11 Dec 2003 10:51:27 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>, bug-commoncpp@gnu.org
Date: Thu, 11 Dec 2003 09:07:08 -0500
User-Agent: KMail/1.5.3
References: <3FD7096C.50003@profzone.ch> <200312110618.28743.dyfet@ostel.com>
	<3FD86A0E.1000508@profzone.ch>
In-Reply-To: <3FD86A0E.1000508@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312110907.08101.dyfet@ostel.com>
Cc: 
Subject: Re: Missing CCXX_CLASS_EXPORT on some classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 14:53:46 -0000

You mean it's in active use?!  I actually thought it was not!  But it is very 
easy to add it back in; 1.1/testing is not in any meaningful way structurally 
different than 1.0.  But it will have to wait until cvs is again available to 
get that corrected.

On Thursday 11 December 2003 07:58 am, Tobias Erbsland wrote:
> > I think this set of classes was dropped in the upcoming 1.1 release,
> > which does feature a lot of general cleanup of the Common C++ code. 
> > Unfortunately, cvs is down at the moment, otherwise I would suggest
> > accessing the "testing" branch to confirm this issue.
>
> <panic>Dropped?</panic> I use them in many projects. I hope that's a
> joke...
>
> regards
> Tobias
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Dec 11 10:07:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUSPD-0004t9-VR
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 10:07:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUSPA-0004rU-5A
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 10:07:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUSOd-0004gA-Od
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 10:07:02 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUSOd-0004g3-9b
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 10:06:31 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1)
	id 1AURSl-000Oeg-00; Thu, 11 Dec 2003 15:06:43 +0100
Message-ID: <3FD8797B.7000306@profzone.ch>
Date: Thu, 11 Dec 2003 15:04:43 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Sugar <dyfet@ostel.com>,  bug-commoncpp@gnu.org
References: <3FD7096C.50003@profzone.ch> <200312110618.28743.dyfet@ostel.com>
	<3FD86A0E.1000508@profzone.ch> <200312110907.08101.dyfet@ostel.com>
In-Reply-To: <200312110907.08101.dyfet@ostel.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-GPGrelay-Relayed: GPGrelay Version 0.93 (Win32)
Cc: 
Subject: Re: Missing CCXX_CLASS_EXPORT on some classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 15:07:06 -0000

>>>I think this set of classes was dropped in the upcoming 1.1 release,
>>>which does feature a lot of general cleanup of the Common C++ code. 
>>>Unfortunately, cvs is down at the moment, otherwise I would suggest
>>>accessing the "testing" branch to confirm this issue.
>><panic>Dropped?</panic> I use them in many projects. I hope that's a
>>joke...
> You mean it's in active use?!  I actually thought it was not!  But it is very 
> easy to add it back in; 1.1/testing is not in any meaningful way structurally 
> different than 1.0.  But it will have to wait until cvs is again available to 
> get that corrected.

I'd created at least two bigger opensource projects with CommonC++2 and 
with the command line parsing classes. The classes are in the API 
Documentation, and not marked as out-dated. There is also an example in 
the Documentation how to use these classes.

http://smtpspamproxy.sourceforge.net/
http://rapidozelot.sourceforge.net/ <- it's not finaly moved

regards
Tobias








From MAILER-DAEMON Thu Dec 11 11:19:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUTWp-00054C-56
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:19:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUTW4-0004gu-AG
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:18:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUTV1-0004Pv-Kc
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:17:42 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUTUX-0004Es-SF
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:16:42 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBHFqFp023972; Thu, 11 Dec 2003 12:15:52 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>, bug-commoncpp@gnu.org
Date: Thu, 11 Dec 2003 10:31:33 -0500
User-Agent: KMail/1.5.3
References: <3FD7096C.50003@profzone.ch> <200312110907.08101.dyfet@ostel.com>
	<3FD8797B.7000306@profzone.ch>
In-Reply-To: <3FD8797B.7000306@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312111031.33245.dyfet@ostel.com>
Cc: 
Subject: Re: Missing CCXX_CLASS_EXPORT on some classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 16:19:01 -0000

I think the original problem was with a frustrating time adapting it to the 
new String class...but if you want to work on that, it would be very helpful!

On Thursday 11 December 2003 09:04 am, Tobias Erbsland wrote:
> >>>I think this set of classes was dropped in the upcoming 1.1 release,
> >>>which does feature a lot of general cleanup of the Common C++ code.
> >>>Unfortunately, cvs is down at the moment, otherwise I would suggest
> >>>accessing the "testing" branch to confirm this issue.
> >>
> >><panic>Dropped?</panic> I use them in many projects. I hope that's a
> >>joke...
> >
> > You mean it's in active use?!  I actually thought it was not!  But it is
> > very easy to add it back in; 1.1/testing is not in any meaningful way
> > structurally different than 1.0.  But it will have to wait until cvs is
> > again available to get that corrected.
>
> I'd created at least two bigger opensource projects with CommonC++2 and
> with the command line parsing classes. The classes are in the API
> Documentation, and not marked as out-dated. There is also an example in
> the Documentation how to use these classes.
>
> http://smtpspamproxy.sourceforge.net/
> http://rapidozelot.sourceforge.net/ <- it's not finaly moved
>
> regards
> Tobias
>
>
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Dec 11 11:53:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUU3g-0002gb-O5
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:53:00 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUU3b-0002aZ-1n
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:52:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUU22-000253-Eo
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:51:49 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AUU20-00023t-Fx
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 11:51:16 -0500
Received: (qmail 11253 invoked by uid 0); 11 Dec 2003 15:49:34 -0000
Received: from 143.52.203.59 by www62.gmx.net with HTTP;
	Thu, 11 Dec 2003 16:49:35 +0100 (MET)
Date: Thu, 11 Dec 2003 16:49:35 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <27540.1071157775@www62.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Signals and Slots
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 16:52:59 -0000

Hi, 
Are there any plans to include signals and slots or Events into CommonC++?
There is 
some stuff on www.boost.org which could be included.  
It might be interesting for some classes in CommonC++ to use this. 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Thu Dec 11 13:01:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUV7Z-0003JS-6Q
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:01:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUV7F-0003Bm-SJ
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:00:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUV6e-0002tJ-Su
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:00:41 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUV6d-0002si-4E
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:00:07 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBBIwkFp024419; Thu, 11 Dec 2003 13:58:46 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Thu, 11 Dec 2003 12:14:27 -0500
User-Agent: KMail/1.5.3
References: <27540.1071157775@www62.gmx.net>
In-Reply-To: <27540.1071157775@www62.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312111214.27436.dyfet@ostel.com>
Cc: 
Subject: Re: Signals and Slots
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 18:00:49 -0000

I recently rewrote the buffer class so it could do "timed" message passing.=
 =20
But I would like to see other facilities like these added as well.  If you=
=20
would like to work on a patch/file to add these, that would be very helpful.

David

On Thursday 11 December 2003 10:49 am, Marc Boris D=FCrner wrote:
> Hi,
> Are there any plans to include signals and slots or Events into CommonC++?
> There is
> some stuff on www.boost.org which could be included.
> It might be interesting for some classes in CommonC++ to use this.
>
> regards,
> Marc




From MAILER-DAEMON Thu Dec 11 13:07:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUVDd-0000kf-CR
	for mharc-bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:07:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUVDa-0000im-MF
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:07:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUVDE-0000Qa-G0
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:07:13 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AUVD8-0000Nk-02
	for bug-commoncpp@gnu.org; Thu, 11 Dec 2003 13:06:50 -0500
Received: (qmail 32409 invoked by uid 0); 11 Dec 2003 17:05:23 -0000
Received: from 143.52.203.59 by www61.gmx.net with HTTP;
	Thu, 11 Dec 2003 18:05:23 +0100 (MET)
Date: Thu, 11 Dec 2003 18:05:23 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <28657.1071162323@www61.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Re: Signals and Slots
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Dec 2003 18:07:19 -0000

I will look into it after adapting the HardwareKit. What is the situation
with the servers and 
CVS? 
 
regards, 
Marc 
 
On Thursday 11 December 2003 18:14, you wrote: 
> I recently rewrote the buffer class so it could do "timed" message
passing. 
> But I would like to see other facilities like these added as well.  If you

> would like to work on a patch/file to add these, that would be very 
> helpful. 
> 
> David 
> 
> On Thursday 11 December 2003 10:49 am, Marc Boris Dürner wrote: 
> > Hi, 
> > Are there any plans to include signals and slots or Events into 
> > CommonC++? There is 
> > some stuff on www.boost.org which could be included. 
> > It might be interesting for some classes in CommonC++ to use this. 
> > 
> > regards, 
> > Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Dec 12 12:27:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUr4l-0005ED-F2
	for mharc-bug-commoncpp@gnu.org; Fri, 12 Dec 2003 12:27:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUr4g-0005B7-8E
	for bug-commoncpp@gnu.org; Fri, 12 Dec 2003 12:27:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUr48-0004yu-N1
	for bug-commoncpp@gnu.org; Fri, 12 Dec 2003 12:27:31 -0500
Received: from [195.41.178.3] (helo=proinfo.dk)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUr47-0004xZ-VR
	for bug-commoncpp@gnu.org; Fri, 12 Dec 2003 12:27:00 -0500
Received: from mars.prointra.dk ([148.170.19.5]) by gate1.proinfo.dk with
	ESMTP id <334146>; Fri, 12 Dec 2003 17:37:45 +0100
Received: by mars.prointra.dk with Internet Mail Service (5.5.2650.21)
	id <YV8WXJJG>; Fri, 12 Dec 2003 17:25:24 +0100
Message-ID: <CC2F8BD52F20D41184D40040C77A41A10157EC9A@mars.prointra.dk>
From: Byrial Jensen <bje@prosafe.as>
To: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Date: Fri, 12 Dec 2003 17:25:23 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C3C0CC.8B31AEBA"
Subject: Bugs in SocketPort constructors
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Dec 2003 17:27:37 -0000

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C3C0CC.8B31AEBA
Content-Type: text/plain;
	charset="iso-8859-1"

SocketPort::SocketPort(SocketService *svc, const InetAddress &ia,
                       tpport_t port)
doesn't define detect_pending, detect_output and detect_disconnect.

SocketPort::SocketPort(SocketService *svc, const InetHostAddress &ih,
                       tpport_t port)
doesn't define detect_pending and detect_disconnect, and uses
detect_output before definition (by calling setDetectOutput()).

This is fixed in the attached patch against commoncpp2 1.0.13.

Best regards,
Byrial Jensen


------_=_NextPart_000_01C3C0CC.8B31AEBA
Content-Type: application/octet-stream;
	name="port.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="port.diff"

Index: port.cpp=0A=
=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=0A=
RCS file: /home/cvs/repo/commoncpp2/src/port.cpp,v=0A=
retrieving revision 1.2=0A=
diff -u -p -r1.2 port.cpp=0A=
--- port.cpp	10 Dec 2003 16:18:15 -0000	1.2=0A=
+++ port.cpp	12 Dec 2003 16:13:07 -0000=0A=
@@ -207,7 +207,10 @@ SocketPort::SocketPort(SocketService *sv=0A=
 =0A=
 SocketPort::SocketPort(SocketService *svc, const InetAddress &ia, =0A=
 		       tpport_t port) :=0A=
-Socket(AF_INET, SOCK_DGRAM, 0)=0A=
+	Socket(AF_INET, SOCK_DGRAM, 0),=0A=
+	detect_pending(true),=0A=
+	detect_output(false),=0A=
+	detect_disconnect(true)=0A=
 {=0A=
 #ifdef WIN32=0A=
 	// FIXME: error handling=0A=
@@ -235,7 +238,9 @@ Socket(AF_INET, SOCK_DGRAM, 0)=0A=
 =0A=
 SocketPort::SocketPort(SocketService *svc, const InetHostAddress &ih, =
=0A=
 		       tpport_t port) :=0A=
-Socket(AF_INET, SOCK_STREAM, 0)=0A=
+	Socket(AF_INET, SOCK_STREAM, 0),=0A=
+	detect_pending(true),=0A=
+	detect_disconnect(true)=0A=
 {=0A=
 #ifdef WIN32=0A=
 	// FIXME: error handling=0A=
@@ -290,10 +295,9 @@ Socket(AF_INET, SOCK_STREAM, 0)=0A=
 #endif=0A=
 =0A=
 	setError(false);=0A=
+	detect_output =3D state =3D=3D CONNECTING;=0A=
 	if(svc)=0A=
 		svc->attach(this);=0A=
-        if(state =3D=3D CONNECTING)=0A=
-                setDetectOutput(true);=0A=
 }=0A=
 =0A=
 SocketPort::~SocketPort()=0A=

------_=_NextPart_000_01C3C0CC.8B31AEBA--



From MAILER-DAEMON Mon Dec 15 08:26:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVsdh-0007gF-Gy
	for mharc-bug-commoncpp@gnu.org; Mon, 15 Dec 2003 08:19:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVric-00055V-EV
	for bug-commoncpp@gnu.org; Mon, 15 Dec 2003 07:20:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVri5-0004jD-Eo
	for bug-commoncpp@gnu.org; Mon, 15 Dec 2003 07:20:57 -0500
Received: from [62.81.186.18] (helo=smtp08.retemail.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVrh1-0004Jr-Cn
	for bug-commoncpp@gnu.org; Mon, 15 Dec 2003 07:19:19 -0500
Received: from blinux.red.isotrol.com ([80.224.16.2]) by smtp08.retemail.es
	(InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP
	id <20031215111749.ENIJ9384.smtp08.retemail.es@blinux.red.isotrol.com>
	for <bug-commoncpp@gnu.org>; Mon, 15 Dec 2003 12:17:49 +0100
From: Borja Pacheco <bpacheco@acisa.es>
To: bug-commoncpp@gnu.org
Content-Type: multipart/alternative; boundary="=-6CLc4WQIMoNAd+ytzUR8"
Message-Id: <1071487052.2269.21.camel@blinux.red.isotrol.com>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Mon, 15 Dec 2003 12:17:33 +0100
X-Mailman-Approved-At: Mon, 15 Dec 2003 08:19:55 -0500
Subject: tcpstream lock
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Dec 2003 12:20:59 -0000


--=-6CLc4WQIMoNAd+ytzUR8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Dear all,

I've been using your classes to develop a server that interacts with
different elements. Main objects are based on CommonC++ classes, and
they uses Threads, tcpstream, Mutex to implement the funcionality.

This server runs severad threads to manage different resources that
could be available or unavailabe, when one of these resources changes
their state, I have to send a notification, through a TCP/IP message, to
another console program. So, I had one thread that periodically query to
these resources, and when somethig is changed, it used a tcpstream to
send a the notification. The procedure for this is something like
this...

// ---- Start C++ code ----

char * frame;

tcp = new tcpstream (<an string with ip + tcp port>); // TROUBLES
HERE!!!!
tcp->setTimeout(200);
tcp->setCompletion(false);
tcp->sync();

<Init the frame...>

if (tcp&&tcp->isConnected()) {
			tcp->write(frame,28);
			tcp->flush();
			tcp->close();
   delete tcp;
}

delete[] frame;

// ---- End C++ code ----

I've noticed that when this process is repeated for two hours (in my
case, I suppose it really depends on the number of notifications, but
I'm sorry because I don't know how many), the thread is locked (it stops
and don't go away with its normal execution) when it tries to create a
new tcpstream object. After this, another thread that don't have any
point of coincidence with this other, catch an exception when tries to
create another tcpstream, and then the programs dies.

I'm absolutely sure that the problem is inside the constructor of the
tcpstream, because I've redisigned thes thread to avoid creating and
destroying tcpstream objects, instead of it now I use open an close
only, and it works perfectly.

Best Regards,

Borja Pacheco
-- 


--=-6CLc4WQIMoNAd+ytzUR8
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Dear all,<BR>
<BR>
I've been using your classes to develop a server that interacts with different elements. Main objects are based on CommonC++ classes, and they uses Threads, tcpstream, Mutex to implement the funcionality.<BR>
<BR>
This server runs severad threads to manage different resources that could be available or unavailabe, when one of these resources changes their state, I have to send a notification, through a TCP/IP message, to another console program. So, I had one thread that periodically query to these resources, and when somethig is changed, it used a tcpstream to send a the notification. The procedure for this is something like this...<BR>
<BR>
// ---- Start C++ code ----<BR>
<BR>
char * frame;<BR>
<BR>
tcp = new tcpstream (&lt;an string with ip + tcp port&gt;); // TROUBLES HERE!!!!<BR>
tcp-&gt;setTimeout(200);<BR>
tcp-&gt;setCompletion(false);<BR>
tcp-&gt;sync();<BR>
<BR>
&lt;Init the frame...&gt;<BR>
<BR>
if (tcp&amp;&amp;tcp-&gt;isConnected()) {<BR>
			tcp-&gt;write(frame,28);<BR>
			tcp-&gt;flush();<BR>
			tcp-&gt;close();<BR>
&nbsp;&nbsp; delete tcp;<BR>
}<BR>
<BR>
delete[] frame;<BR>
<BR>
// ---- End C++ code ----<BR>
<BR>
I've noticed that when this process is repeated for two hours (in my case, I suppose it really depends on the number of notifications, but I'm sorry because I don't know how many), the thread is locked (it stops and don't go away with its normal execution) when it tries to create a new tcpstream object. After this, another thread that don't have any point of coincidence with this other, catch an exception when tries to create another tcpstream, and then the programs dies.<BR>
<BR>
I'm absolutely sure that the problem is inside the constructor of the tcpstream, because I've redisigned thes thread to avoid creating and destroying tcpstream objects, instead of it now I use open an close only, and it works perfectly.<BR>
<BR>
Best Regards,<BR>
<BR>
Borja Pacheco<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>-- 
</PRE>
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-6CLc4WQIMoNAd+ytzUR8--




From MAILER-DAEMON Mon Dec 15 19:04:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AW2hZ-0002YI-8b
	for mharc-bug-commoncpp@gnu.org; Mon, 15 Dec 2003 19:04:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AW1qx-0008Lp-J6
	for bug-commoncpp@gnu.org; Mon, 15 Dec 2003 18:10:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AW1qP-0007jA-Cu
	for bug-commoncpp@gnu.org; Mon, 15 Dec 2003 18:10:12 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AW1py-0007RC-Bs
	for bug-commoncpp@gnu.org; Mon, 15 Dec 2003 18:09:14 -0500
Received: from sonne.kosmos.all (212-62-83-203.teleos-web.de [212.62.83.203])
	by sally.dts-online.net (Postfix) with ESMTP id C5535466AC3
	for <bug-commoncpp@gnu.org>; Mon, 15 Dec 2003 23:07:46 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 367D47AE11
	for <bug-commoncpp@gnu.org>; Mon, 15 Dec 2003 23:03:23 +0100 (CET)
From: Merandos <merandos@yahoo.de>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Mon, 15 Dec 2003 23:03:22 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Disposition: inline
Message-Id: <200312152303.22137.merandos@yahoo.de>
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Mon, 15 Dec 2003 19:04:35 -0500
Subject: Exceptionhandling in socket.cpp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Dec 2003 23:10:17 -0000

Hello,

i just started working with the CommonC++ framework under the Debian unst=
able=20
distro. i used apt-get install to install the package and can successfull=
=20
compile the demo apps.

However when i started my own first app that uses sockets, i have problem=
s=20
catching any exception.=20

for example, when i am reading data from a a tcpsocket server socket that=
 is=20
no longer connected, i thought this socket would throw an exception.
"ispending(Socket::pendingInput)" does not work for this case, because it=
=20
returns true even when a client disconnects (which matches the behaviour =
of=20
select() ).

try {
//reading and writing to a tcpsocket based connection.
//*tcp() << myOutData;
//*tcp() >> myInData;
}

//does not shop up
catch(Socket *socket) {
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0cerr << "socket exception=
 in servertread! - EXIT this thread
\n";
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0::exit(-1); //quick and d=
irty for testing only=20
}

//does not shop up
catch( ... ) {
=A0=A0=A0=A0=A0=A0=A0=A0cerr << "unkown exception in servertread! - EXIT =
this thread\n";
=A0=A0=A0=A0=A0=A0=A0=A0::exit(-1); //quick and dirty for testing only
}

can anyone advise what i need to do to get exceptions.?

Thx in advance

Wolfgang




From MAILER-DAEMON Tue Dec 16 08:22:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWF9f-0004zb-Mo
	for mharc-bug-commoncpp@gnu.org; Tue, 16 Dec 2003 08:22:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWF8h-0004S4-KI
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 08:21:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWF7Z-0003ql-JY
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 08:20:49 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWF7R-0003i2-3f
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 08:20:09 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBGEJsFp029228; Tue, 16 Dec 2003 09:19:54 -0500
From: David Sugar <dyfet@ostel.com>
To: "CommonC++ Mailinglist" <bug-commoncpp@gnu.org>
Date: Tue, 16 Dec 2003 07:35:35 -0500
User-Agent: KMail/1.5.3
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312160735.35179.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Temporary cvs setup for testing new 1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Dec 2003 13:22:26 -0000

I have setup temporary cvs at Sourceforge for testing what will be the 1.1 
release of GNU Common C++.  While there should be no major issues (and yes 
cmdoptns is back in), everyone does need to check existing code for 
compatibility when building with the new 1.1 release.

The major changes are that Common C++ now hosts it's own memory allocation 
(and thread) optimized String class which is used in the library throughout 
in place of std::string, and there is now a default built in xml parser that 
is used when libxml2 is not available.  Other changes include more correct 
and complete use of const's in accessor methods, and this often introduces 
typecast issues, and a number of classes (such as Dir) are now extended and 
far more complete.  Also, all features found in posix are now implemented in 
native w32 build targets, including Common C++ mapped files classes.  Oh, and 
the slog class now has some additional member functions for convenience.

cvs access can be found at:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus login 
 
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus co 
commoncpp2

I will temporary put up cvs access there for ccaudio updated for Common C++ 
1.1 shortly (and hopefully there will only be very small changes for Federico 
to make sure ccrtp builds correctly as well).








From MAILER-DAEMON Tue Dec 16 11:58:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWIWo-0001RN-Qz
	for mharc-bug-commoncpp@gnu.org; Tue, 16 Dec 2003 11:58:34 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWIUe-0000cd-EF
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 11:56:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWITS-00008j-Jo
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 11:55:37 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWITJ-0008S6-6p
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 11:54:57 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBGHrXFp030248; Tue, 16 Dec 2003 12:53:33 -0500
From: David Sugar <dyfet@ostel.com>
To: "CommonC++ Mailinglist" <bug-commoncpp@gnu.org>
Date: Tue, 16 Dec 2003 11:09:14 -0500
User-Agent: KMail/1.5.3
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312161109.14707.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Preliminary cvs checkin for ccrtp at sf repository completed
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Dec 2003 16:58:33 -0000

I have completed a preliminary checkin of ccrtp into sourceforge (use module 
ccrtp from the Common C++ area).  I only made those changes needed to make 
the build consistent with other Common C++ 1.1 packages.  At some point 
shortly I will redo/update the .spec and .list files for building binaries 
based on what was recently done for Common C++.  The w32 build and "make 
dist" may or may not still be broken at this point, but it compiles and 
installs and these other things will also get fixed shortly.  The effective 
revision for this is "1.0.3" for when it is eventually released.




From MAILER-DAEMON Tue Dec 16 17:33:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWNkf-0002zw-Mi
	for mharc-bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:33:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWNka-0002xZ-Oz
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:33:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWNk2-0002hl-IX
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:33:06 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWNk1-0002hW-Ou
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:32:33 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBGNWMFp031895; Tue, 16 Dec 2003 18:32:22 -0500
From: David Sugar <dyfet@ostel.com>
To: "Alex Pavloff" <apavloff@esatechnology.com>,
	"CommonC++ Mailinglist" <bug-commoncpp@gnu.org>
Date: Tue, 16 Dec 2003 16:48:03 -0500
User-Agent: KMail/1.5.3
References: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
In-Reply-To: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312161648.03946.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: Temporary cvs setup for testing new 1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Dec 2003 22:33:10 -0000

Yes, the tests (and demos) are compiled -pedonic for this very reason :).  The 
first issue I should solve by stripping /usr/xxx/include paths when they are 
/usr or /usr/local based.   The second one suggests a typecast should be used 
in sleep to unsigned...

On Tuesday 16 December 2003 04:12 pm, Alex Pavloff wrote:
> > -----Original Message-----
> > From: David Sugar [mailto:dyfet@ostel.com]
> > Sent: Tuesday, December 16, 2003 4:36 AM
> > To: CommonC++ Mailinglist
> > Cc: Federico Montesino Pouzols
> > Subject: Temporary cvs setup for testing new 1.1 release
> >
> >
> > I have setup temporary cvs at Sourceforge for testing what
> > will be the 1.1 release of GNU Common C++.  While there should be no
>
> major
>
> > issues (and yes cmdoptns is back in), everyone does need to check
>
> existing code for
>
> > compatibility when building with the new 1.1 release.
>
> I get build warnings when I build anything.
>
> cc1plus: warning: changing search order for system directory
> "/usr/local/include"
> cc1plus: warning:   as it has already been specified as a non-system
> directory
>
> I get the warning
>
> thread3.cpp: In member function `virtual void myThread::run()':
> thread3.cpp:32: warning: passing negative value `-1' for argument 1 of
> `static
>    void ost::Thread::sleep(long unsigned int)'
>
> When doing a make in the tests directory.  The tests execute just fine
> though.  Red Hat 8.0, with gcc 3.2 20020903.
>
> Minor things.
>
> Alex Pavloff - apavloff@esatechnology.com
> ESA Technology ---- www.esatechnology.com
> ------- Linux-based industrial HMI ------
> -------- www.esatechnology.com/5k -------




From MAILER-DAEMON Tue Dec 16 17:48:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWNza-0001Yv-OL
	for mharc-bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:48:38 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWNSV-0004wF-Ov
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:14:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWNRz-0004kS-I7
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:14:26 -0500
Received: from [64.142.19.4] (helo=eth0.b.smtp.sonic.net)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWNRz-0004jW-41
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 17:13:55 -0500
Received: from tiber.internal.esatechnology.com (adsl-64-142-52-112.sonic.net
	[64.142.52.112])
	by eth0.b.smtp.sonic.net (8.12.10/8.12.7) with ESMTP id hBGLCOdL018651; 
	Tue, 16 Dec 2003 13:12:24 -0800
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Date: Tue, 16 Dec 2003 13:12:24 -0800
Message-ID: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Temporary cvs setup for testing new 1.1 release
Thread-Index: AcPDz6f7pdGTVrCuRxu2uYOmlwvKVgASTT/w
From: "Alex Pavloff" <apavloff@esatechnology.com>
To: "David Sugar" <dyfet@ostel.com>,
	"CommonC++ Mailinglist" <bug-commoncpp@gnu.org>
X-Mailman-Approved-At: Tue, 16 Dec 2003 17:48:35 -0500
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: RE: Temporary cvs setup for testing new 1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Dec 2003 22:14:28 -0000



> -----Original Message-----
> From: David Sugar [mailto:dyfet@ostel.com]=20
> Sent: Tuesday, December 16, 2003 4:36 AM
> To: CommonC++ Mailinglist
> Cc: Federico Montesino Pouzols
> Subject: Temporary cvs setup for testing new 1.1 release
>=20
>=20
> I have setup temporary cvs at Sourceforge for testing what=20
> will be the 1.1 release of GNU Common C++.  While there should be no
major=20
> issues (and yes cmdoptns is back in), everyone does need to check
existing code for=20
> compatibility when building with the new 1.1 release.

I get build warnings when I build anything.

cc1plus: warning: changing search order for system directory
"/usr/local/include"
cc1plus: warning:   as it has already been specified as a non-system
directory

I get the warning=20

thread3.cpp: In member function `virtual void myThread::run()':
thread3.cpp:32: warning: passing negative value `-1' for argument 1 of
`static
   void ost::Thread::sleep(long unsigned int)'

When doing a make in the tests directory.  The tests execute just fine
though.  Red Hat 8.0, with gcc 3.2 20020903.

Minor things.

Alex Pavloff - apavloff@esatechnology.com
ESA Technology ---- www.esatechnology.com
------- Linux-based industrial HMI ------
-------- www.esatechnology.com/5k -------



From MAILER-DAEMON Tue Dec 16 20:49:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWQoZ-0004HG-4H
	for mharc-bug-commoncpp@gnu.org; Tue, 16 Dec 2003 20:49:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWQoW-0004GP-8V
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 20:49:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWQnx-000477-U5
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 20:49:22 -0500
Received: from [141.153.196.174] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWQnw-00046P-Ns
	for bug-commoncpp@gnu.org; Tue, 16 Dec 2003 20:48:48 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBH2mbFp000400; Tue, 16 Dec 2003 21:48:37 -0500
From: David Sugar <dyfet@ostel.com>
To: "Alex Pavloff" <apavloff@esatechnology.com>,
	"CommonC++ Mailinglist" <bug-commoncpp@gnu.org>
Date: Tue, 16 Dec 2003 20:04:18 -0500
User-Agent: KMail/1.5.3
References: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
In-Reply-To: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312162004.18391.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: Temporary cvs setup for testing new 1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Dec 2003 01:49:25 -0000

Both these issues should now be closed if you do a cvs update and run 
./reconfig.  I have changed configure.in to only add /usr/local/include by 
default when gcc is NOT the c/c++ compiler being used.  /usr/local/include 
(and /usr/local/lib) was originally necessary to pass to the compiler for 
unix systems that did not build with gcc (there probably are still some 
around :) and hence did not automatically include /usr/local stuff (which is 
the default installation prefix for most autoconf/automake generated 
packages...).  I think this originally pertained to finding local installs of 
libxml2 (in /usr/local) on such systems through the standard autoconf macros.
If a /usr/local install of libxml2 fails to be detected, one can still 
explicitly use --prefix=/usr/local with commoncpp configure, and it will add 
the /usr/local paths to the compile and link options again regardless of 
compiler used.

On Tuesday 16 December 2003 04:12 pm, Alex Pavloff wrote:
> > -----Original Message-----
> > From: David Sugar [mailto:dyfet@ostel.com]
> > Sent: Tuesday, December 16, 2003 4:36 AM
> > To: CommonC++ Mailinglist
> > Cc: Federico Montesino Pouzols
> > Subject: Temporary cvs setup for testing new 1.1 release
> >
> >
> > I have setup temporary cvs at Sourceforge for testing what
> > will be the 1.1 release of GNU Common C++.  While there should be no
>
> major
>
> > issues (and yes cmdoptns is back in), everyone does need to check
>
> existing code for
>
> > compatibility when building with the new 1.1 release.
>
> I get build warnings when I build anything.
>
> cc1plus: warning: changing search order for system directory
> "/usr/local/include"
> cc1plus: warning:   as it has already been specified as a non-system
> directory
>
> I get the warning
>
> thread3.cpp: In member function `virtual void myThread::run()':
> thread3.cpp:32: warning: passing negative value `-1' for argument 1 of
> `static
>    void ost::Thread::sleep(long unsigned int)'
>
> When doing a make in the tests directory.  The tests execute just fine
> though.  Red Hat 8.0, with gcc 3.2 20020903.
>
> Minor things.
>
> Alex Pavloff - apavloff@esatechnology.com
> ESA Technology ---- www.esatechnology.com
> ------- Linux-based industrial HMI ------
> -------- www.esatechnology.com/5k -------
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Dec 18 04:43:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWuga-000533-C9
	for mharc-bug-commoncpp@gnu.org; Thu, 18 Dec 2003 04:43:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWugX-00052y-W7
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 04:43:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWug0-0004fk-P1
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 04:43:08 -0500
Received: from [150.214.7.5] (helo=mx.imse.cnm.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWug0-0004SD-3Z
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 04:42:36 -0500
Received: from pcutec.imse.cnm.es (mail@pcutec [150.214.7.153])
	by mx.imse.cnm.es (8.12.10/8.12.3) with ESMTP id hBI8eYWu017114;
	Thu, 18 Dec 2003 09:40:45 +0100 (MET)
Received: from fedemp by pcutec.imse.cnm.es with local (Exim 3.35 #1 (Debian))
	id 1AWthw-0001EQ-00; Thu, 18 Dec 2003 09:40:32 +0100
Date: Thu, 18 Dec 2003 09:40:32 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Message-ID: <20031218084032.GA4707@pcutec>
Mail-Followup-To: David Sugar <dyfet@ostel.com>,
	Alex Pavloff <apavloff@esatechnology.com>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
References: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
	<200312162004.18391.dyfet@ostel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200312162004.18391.dyfet@ostel.com>
User-Agent: Mutt/1.3.28i
Sender: Federico Montesino Pouzols <fedemp@imse.cnm.es>
Cc: Alex Pavloff <apavloff@esatechnology.com>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: Re: Temporary cvs setup for testing new 1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Dec 2003 09:43:10 -0000


	With gcc 2.95.4 (at least in Debian stable), you get:


/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    -I../src -DCCXX_EXPORT_LIBRARY           -I../include -g -O2 -D_GNU_SOURCE -c mutex.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../include -g -O2 -D_GNU_SOURCE -Wp,-MD,.deps/mutex.pp -c mutex.cpp  -fPIC -DPIC -o .libs/mutex.o
mutex.cpp: In method `bool ost::Conditional::wait(long unsigned int = 0, bool = false)':
mutex.cpp:167: `ETIMEDOUT' undeclared (first use this function)
mutex.cpp:167: (Each undeclared identifier is reported only once
mutex.cpp:167: for each function it appears in.)
make[1]: *** [mutex.lo] Error 1


	which can be solved by adding '#include <cerrno>' to mutex.cpp




From MAILER-DAEMON Thu Dec 18 06:07:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWw0K-0007Yy-Vu
	for mharc-bug-commoncpp@gnu.org; Thu, 18 Dec 2003 06:07:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWw0G-0007YE-Tj
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 06:07:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWvzb-0007BP-1k
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 06:07:27 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWvza-00079v-BD
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 06:06:54 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBIC6tFp012018; Thu, 18 Dec 2003 07:06:55 -0500
From: David Sugar <dyfet@ostel.com>
To: Federico Montesino Pouzols <fedemp@altern.org>
Date: Thu, 18 Dec 2003 05:22:36 -0500
User-Agent: KMail/1.5.3
References: <662C51BFF387D9459C4281CD9A3F9D630A3E79@tiber.internal.esatechnology.com>
	<200312162004.18391.dyfet@ostel.com> <20031218084032.GA4707@pcutec>
In-Reply-To: <20031218084032.GA4707@pcutec>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312180522.36320.dyfet@ostel.com>
Cc: Alex Pavloff <apavloff@esatechnology.com>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: Re: Temporary cvs setup for testing new 1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Dec 2003 11:07:39 -0000

Okay...yes, a lot was done very recently timed conditionals (to support things 
like the Buffer class), and they hide in mutex.cpp :).  I should have 
cross-checked those late changes on the reference stable boxes.  There is 
also a demo/test program called "buffer" that makes use of this and tests 
that they actually work correctly in an interactive manner.

On Thursday 18 December 2003 03:40 am, Federico Montesino Pouzols wrote:
> 	With gcc 2.95.4 (at least in Debian stable), you get:
>
>
> /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include 
>   -I../src -DCCXX_EXPORT_LIBRARY           -I../include -g -O2
> -D_GNU_SOURCE -c mutex.cpp g++ -DHAVE_CONFIG_H -I. -I. -I../include
> -I../src -DCCXX_EXPORT_LIBRARY -I../include -g -O2 -D_GNU_SOURCE
> -Wp,-MD,.deps/mutex.pp -c mutex.cpp  -fPIC -DPIC -o .libs/mutex.o
> mutex.cpp: In method `bool ost::Conditional::wait(long unsigned int = 0,
> bool = false)': mutex.cpp:167: `ETIMEDOUT' undeclared (first use this
> function)
> mutex.cpp:167: (Each undeclared identifier is reported only once
> mutex.cpp:167: for each function it appears in.)
> make[1]: *** [mutex.lo] Error 1
>
>
> 	which can be solved by adding '#include <cerrno>' to mutex.cpp
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Dec 18 20:24:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AX9NK-00018Z-IJ
	for mharc-bug-commoncpp@gnu.org; Thu, 18 Dec 2003 20:24:18 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AX9NI-00017W-CA
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 20:24:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AX9Mm-0000q3-Dm
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 20:24:15 -0500
Received: from [144.140.71.20] (helo=gizmo10ps.bigpond.com)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AX9Ml-0000lm-HO
	for bug-commoncpp@gnu.org; Thu, 18 Dec 2003 20:23:43 -0500
Received: (qmail 2426 invoked from network); 19 Dec 2003 00:10:35 -0000
Received: from unknown (HELO psmam11.bigpond.com) (144.135.25.100)
	by gizmo10ps.bigpond.com with SMTP; 19 Dec 2003 00:10:35 -0000
Received: from cpe-203-51-179-107.vic.bigpond.net.au ([203.51.179.107]) by
	psmam11.bigpond.com(MAM REL_3_4_2 225/4931345) with SMTP id
	4931345; Fri, 19 Dec 2003 10:22:03 +1000
From: "Julie Russell" <julie.russell@throughput.com.au>
To: "Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Date: Fri, 19 Dec 2003 11:21:50 +1100
Message-ID: <CAEDLLCOCGBPMAAFIFOCCENICAAA.julie.russell@throughput.com.au>
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)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Subject: Sleep
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 01:24:17 -0000

Hi Everyone,

I am programming in c++ and xlib using common c++ threads. I want to sleep a
thread (which I have initiated as detached). During that process I want to
recieve events from the xlib event loop and if triggered, interrupt the
sleeping thread. The problem is, while that thread is asleep, for some
reason, my event loop appears to be blocked. How can I sleep a thread so
that the loop doesn't block and then interrupt it cleanly. My event loop is
in a separate class implemented as a singleton.

Cheers,
Julie.





From MAILER-DAEMON Fri Dec 19 02:20:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXEvv-0006nI-Dw
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:20:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXEve-0006LK-Jj
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:20:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXEuy-0004xf-Fk
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:19:56 -0500
Received: from [194.7.105.68] (helo=smtp1.agfa.be)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXEuq-0004nD-Lo
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:19:16 -0500
Received: from agbi0037.agfa.be (bemordsmt01.agfa.be [10.232.8.46])
	by smtp1.agfa.be (8.11.7p1+Sun/8.11.7) with ESMTP id hBJ6HlT29127
	for <bug-commoncpp@gnu.org>; Fri, 19 Dec 2003 07:17:47 +0100 (MET)
Sensitivity: 
To: "bug-commoncpp" <bug-commoncpp@gnu.org>
From: "Keith Thornton" <keith.thornton@agfa.com>
Date: Fri, 19 Dec 2003 07:17:45 +0100
Message-ID: <OF810B0793.DB1A80DD-ONC1256E01.0021EEFA@agfa.be>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Subject: bug in TCPStream::overflow
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 07:20:20 -0000

Commoncpp2-1.0.13 file socket.cpp line 1438
I think that the line memmove(pbuf, pptr() + rlen, req);
should read memmove(pbuf, pbuf + rlen, req);

TCPStream::overflow() is called because the buffer is full and data needs
to be written to the device. I.e. pptr() == epptr.
therefore,  reading from pptr() + rlen reads from past the end of the
buffer causing a segmentation violation. We really want to move the data
which could not be written to the device (pbase + rlen) to the start of the
buffer.
Best wishes
Keith Thornton





From MAILER-DAEMON Fri Dec 19 02:44:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXFIW-0000Jr-Hi
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:43:44 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXFI5-000853-C1
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:43:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXFH8-0006zT-IZ
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:42:50 -0500
Received: from [144.140.71.23] (helo=gizmo13ps.bigpond.com)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AXFH6-0006xb-Pb
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 02:42:17 -0500
Received: (qmail 15337 invoked from network); 19 Dec 2003 06:38:40 -0000
Received: from unknown (HELO psmam11.bigpond.com) (144.135.25.100)
	by gizmo13ps.bigpond.com with SMTP; 19 Dec 2003 06:38:40 -0000
Received: from cpe-203-51-179-107.vic.bigpond.net.au ([203.51.179.107]) by
	psmam11.bigpond.com(MAM REL_3_4_2 225/5166094) with SMTP id
	5166094; Fri, 19 Dec 2003 16:40:47 +1000
From: "Julie Russell" <julie.russell@throughput.com.au>
To: "Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Date: Fri, 19 Dec 2003 17:40:34 +1100
Message-ID: <CAEDLLCOCGBPMAAFIFOCMENJCAAA.julie.russell@throughput.com.au>
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)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Subject: Interrupt
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 07:43:41 -0000

Hi there,

I want to interrupt a thread from it's sleeping process, yet I can't seem to
see an interrupt method in the documentation. Is there one, and if I use it,
does it stop sleeping and resume the next line of execution, or how does it
work?

Thanks in advance,
Julie.





From MAILER-DAEMON Fri Dec 19 09:21:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXLVa-0005I5-SP
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:21:38 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXLVT-0005Gm-SS
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:21:31 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXLRl-0003yg-OX
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:18:12 -0500
Received: from [194.67.66.158] (helo=stalker.mephi.ru)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXLRl-0003c6-0p
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:17:41 -0500
Received: from mind.zone (unknown [192.168.13.200])
	by stalker.mephi.ru (Postfix) with ESMTP
	id 0F9073BB; Fri, 19 Dec 2003 19:49:04 +0300 (MSK)
Date: Fri, 19 Dec 2003 16:13:48 +0300
From: Andrey Kulikov <ilfis@dezcom.mephi.ru>
X-Mailer: The Bat! (v2.00)
X-Priority: 3 (Normal)
Message-ID: <25343946796.20031219161348@dezcom.mephi.ru>
To: David Sugar <dyfet@ostel.com>
In-Reply-To: <200312160735.35179.dyfet@ostel.com>
References: <200312160735.35179.dyfet@ostel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: CommonC++ Mailinglist <bug-commoncpp@gnu.org>,
	Federico Montesino Pouzols <fedemp@altern.org>
Subject: Compiller error (Win32) Re: Temporary cvs setup for testing new 1.1
	release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 14:21:32 -0000


DS> I have setup temporary cvs at Sourceforge for testing what will be the 1.1
DS> release of GNU Common C++.  While there should be no major issues (and yes
DS> cmdoptns is back in), everyone does need to check existing code for
DS> compatibility when building with the new 1.1 release.

DS> cvs
DS> -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus login 
 
DS> cvs -z3
DS> -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus co 
DS> commoncpp2


I have try to compile these sources under Windows, and have some
compiler error.
Enviroment: WindowsXP, Visual Studio 2003

Errors:
====================================================================================
Compiling...
file.cpp
\commoncpp2\src\file.cpp(1545) : error C2057: expected constant expression
\commoncpp2\src\file.cpp(1545) : error C2466: cannot allocate an array of constant size 0
\commoncpp2\src\file.cpp(1545) : error C2133: 'left' : unknown size
\commoncpp2\src\file.cpp(1583) : error C2057: expected constant expression
\commoncpp2\src\file.cpp(1583) : error C2466: cannot allocate an array of constant size 0
\commoncpp2\src\file.cpp(1583) : error C2133: 'next_token' : unknown size

ccgnu2d.dll - 6 error(s), 0 warning(s)
====================================================================================

All this error in 2 lines looks like.

void func(int size){
        char left[size]; // Error there
}

I think in this lines needs dynamic memory allocation?

====================================================================================
network.cpp
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(1136) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const ost::NetworkDeviceInfo' (or there is no acceptable conversion)
        d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(862) : see reference to function template instantiation 'void std::fill<std::vector<_Ty>::_Tptr,_Ty>(_FwdIt,_FwdIt,const _Ty &)' being compiled
        with
        [
            _Ty=ost::NetworkDeviceInfo,
            _FwdIt=std::vector<ost::NetworkDeviceInfo>::_Tptr
        ]
        d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(809) : while compiling class-template member function 'void std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::size_type,const _Ty &)'
        with
        [
            _Ty=ost::NetworkDeviceInfo
        ]
        d:\Work\develop\ccpp_1.1.0\commoncpp2\src\network.cpp(84) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
        with
        [
            _Ty=ost::NetworkDeviceInfo
        ]
====================================================================================

-- 
Best regards,
 Andrey                            mailto:ilfis@dezcom.mephi.ru




From MAILER-DAEMON Fri Dec 19 09:39:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXLnI-00037a-BK
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:39:56 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXLnD-000346-LV
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:39:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXLiQ-0000OH-Oy
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:35:26 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AXLiM-0000EX-CK
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:34:50 -0500
Received: (qmail 10532 invoked by uid 0); 19 Dec 2003 13:33:19 -0000
Received: from 143.52.199.241 by www42.gmx.net with HTTP;
	Fri, 19 Dec 2003 14:33:19 +0100 (MET)
Date: Fri, 19 Dec 2003 14:33:19 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <30448.1071840799@www42.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 14:39:54 -0000

Hi, 
This is kind of a progress report. A common API for hardware access can be
found here: 
 
http://www.arklinux.org/cgi-bin/cvsweb.cgi/HardwareKit/libhwkit/ 
 
Issues: 
 
- It is not integrated very much with the CommonC++ base, but I am looking
at that 
now. This process may have an effect on CommonC++ base itself. 
 
- Streams not yet implemented as std:iostream. I suppose this would be the
preferred 
way to do it for CommonC++? Or is anybody working on IOSteam classes? 
 
- I have no access to win32 or BSD atm, so I can only test on Linux. Help
appreciated! 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Dec 19 09:49:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXLw9-0000hc-JH
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:49:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXLw6-0000cO-0b
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:49:02 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXLvR-0008FN-GD
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:48:52 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXLvQ-0008Dw-T0
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:48:21 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBJFlwFp022715; Fri, 19 Dec 2003 10:47:58 -0500
From: David Sugar <dyfet@ostel.com>
To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
Date: Fri, 19 Dec 2003 09:03:39 -0500
User-Agent: KMail/1.5.3
References: <200312160735.35179.dyfet@ostel.com>
	<25343946796.20031219161348@dezcom.mephi.ru>
In-Reply-To: <25343946796.20031219161348@dezcom.mephi.ru>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312190903.40017.dyfet@ostel.com>
Cc: CommonC++ Mailinglist <bug-commoncpp@gnu.org>,
	Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: Compiller error (Win32) Re: Temporary cvs setup for testing new
	1.1 release
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 14:49:03 -0000

I gather from this that the VS2003 C++ compiler also does not handle 
dynamically sized arrays on the local heap (stack).  There is a #ifdef before 
there:

#if !defined(_MSC_VER) || _MSC_VER >= 1300
 
Appearently the check for _MSC_VER >= 1300 should be dropped...


On Friday 19 December 2003 08:13 am, Andrey Kulikov wrote:
> DS> I have setup temporary cvs at Sourceforge for testing what will be the
> 1.1 DS> release of GNU Common C++.  While there should be no major issues
> (and yes DS> cmdoptns is back in), everyone does need to check existing
> code for DS> compatibility when building with the new 1.1 release.
>
> DS> cvs
> DS> -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus login
>
> DS> cvs -z3
> DS> -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus co
> DS> commoncpp2
>
>
> I have try to compile these sources under Windows, and have some
> compiler error.
> Enviroment: WindowsXP, Visual Studio 2003
>
> Errors:
> ===========================================================================
>========= Compiling...
> file.cpp
> \commoncpp2\src\file.cpp(1545) : error C2057: expected constant expression
> \commoncpp2\src\file.cpp(1545) : error C2466: cannot allocate an array of
> constant size 0 \commoncpp2\src\file.cpp(1545) : error C2133: 'left' :
> unknown size \commoncpp2\src\file.cpp(1583) : error C2057: expected
> constant expression \commoncpp2\src\file.cpp(1583) : error C2466: cannot
> allocate an array of constant size 0 \commoncpp2\src\file.cpp(1583) : error
> C2133: 'next_token' : unknown size
>
> ccgnu2d.dll - 6 error(s), 0 warning(s)
> ===========================================================================
>=========
>
> All this error in 2 lines looks like.
>
> void func(int size){
>         char left[size]; // Error there
> }
>
> I think in this lines needs dynamic memory allocation?
>
> ===========================================================================
>========= network.cpp
> d:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\include\xutility(1136) : error C2679: binary '=' : no operator
> found which takes a right-hand operand of type 'const
> ost::NetworkDeviceInfo' (or there is no acceptable conversion) d:\Program
> Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(862) : see
> reference to function template instantiation 'void
> std::fill<std::vector<_Ty>::_Tptr,_Ty>(_FwdIt,_FwdIt,const _Ty &)' being
> compiled with
>         [
>             _Ty=ost::NetworkDeviceInfo,
>             _FwdIt=std::vector<ost::NetworkDeviceInfo>::_Tptr
>         ]
>         d:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\include\vector(809) : while compiling class-template member
> function 'void
> std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::si
>ze_type,const _Ty &)' with
>         [
>             _Ty=ost::NetworkDeviceInfo
>         ]
>         d:\Work\develop\ccpp_1.1.0\commoncpp2\src\network.cpp(84) : see
> reference to class template instantiation 'std::vector<_Ty>' being compiled
> with
>         [
>             _Ty=ost::NetworkDeviceInfo
>         ]
> ===========================================================================
>=========




From MAILER-DAEMON Fri Dec 19 09:57:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXM46-0002Os-Bj
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:57:18 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXM43-0002O7-IL
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:57:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXM3V-0002H0-Um
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:57:13 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXM3V-0002GM-Ci
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 09:56:41 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1) id 1AXL7c-000H9C-00
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 14:56:56 +0100
Message-ID: <3FE30327.4000603@profzone.ch>
Date: Fri, 19 Dec 2003 14:54:47 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=_iCmu_1VeR4mxddvWwi2RWdia4SG_Fe"
Content-Disposition: inline
X-Signed-With-GnuPG-Using: GPGrelay Version 0.93 (Win32)
To: CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: fatal bug in class Thread, thread.cpp line~ 858
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 14:57:16 -0000


--=_iCmu_1VeR4mxddvWwi2RWdia4SG_Fe
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


Hello

The Thread class has a fatal bug:

==== thread.cpp ==== Line 848 ====
	// final can call destructor (that call Terminate)
	final();

	// test if this class have been deleted
#ifdef WIN32
	if (_self.getKey() == this)
#else
	if (ThreadImpl::_self.getKey() == this)
#endif
	{
		if(priv)
			priv->_tid = 0;
		joinSem.post();
	}
====================================

The API documentation suggest to place a "delete this" in the final()
method to delete the thread on exit. This implementation is found for
example in the TCPSession class.

After the final() method, the object could be deleted, so each access to
a member of the object is invalid.

The C++ compiler from the new .NET edition of the MS Visual Studio
(Version 7.0) fills each deleted memory segment with the "word" 0xfeee
in debug mode (i don't know why, but that's the fact).

The line "if(priv)" is true in this case, and the assignment "priv->_tid
= 0" results in an access violation (unix: core dump).

IMHO, instead this strange test, there should be a hook in the virtual
destructor of the Thread class.

regards
Tobias



--=_iCmu_1VeR4mxddvWwi2RWdia4SG_Fe
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - GPGrelay v0.93

iD8DBQA/4wMsaKldzkRy8jsRAnyqAKCZMGIerBh2Ky0sdiQogiurP1tTWQCfZzsw
N6SIqEnYSOxCoYJjyDjuBFA=
=2vi4
-----END PGP SIGNATURE-----

--=_iCmu_1VeR4mxddvWwi2RWdia4SG_Fe--




From MAILER-DAEMON Fri Dec 19 10:16:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXMMf-0008Q9-AZ
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:16:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXMMc-0008OK-E4
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:16:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXMCp-00056s-6Q
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:06:51 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXMCo-00056c-LM
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:06:18 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1) id 1AXLGw-000HAZ-00
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 15:06:34 +0100
Message-ID: <3FE30569.9050509@profzone.ch>
Date: Fri, 19 Dec 2003 15:04:25 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=_kLmu_1nR3r.7vGi2VIIPXvjBC.NgsT"
Content-Disposition: inline
X-Signed-With-GnuPG-Using: GPGrelay Version 0.93 (Win32)
To: CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: Compile Error with Visual C++ .NET (7.0)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 15:16:27 -0000


--=_kLmu_1nR3r.7vGi2VIIPXvjBC.NgsT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


I got some compile errors with Visual C++ .NET (7.0):
(latest CVS checkout)

urlstring.cpp
d:\commoncpp2\src\urlstring.cpp(266) : error C2057: expected constant
expression
d:\commoncpp2\src\urlstring.cpp(266) : error C2466: cannot allocate an
array of constant size 0
d:\commoncpp2\src\urlstring.cpp(266) : error C2133: 'buffer' : unknown size
d:\commoncpp2\src\urlstring.cpp(284) : error C2057: expected constant
expression
d:\commoncpp2\src\urlstring.cpp(284) : error C2466: cannot allocate an
array of constant size 0
d:\commoncpp2\src\urlstring.cpp(284) : error C2133: 'buffer' : unknown size
d:\commoncpp2\src\urlstring.cpp(301) : error C2057: expected constant
expression
d:\commoncpp2\src\urlstring.cpp(301) : error C2466: cannot allocate an
array of constant size 0
d:\commoncpp2\src\urlstring.cpp(301) : error C2133: 'buffer' : unknown size

All functions in this kind:

CCXX_EXPORT(String) b64Encode(const String& src)
{
   size_t limit = (src.length()+2)/3*4+1;  // size + null must be included
   char buffer[limit];

   unsigned size = b64Encode((const unsigned char *)src.c_str(),
src.length(), buffer, limit);
   buffer[size] = '\0';

   return String(buffer);
}

must replaced by:

CCXX_EXPORT(String) b64Encode(const String& src)
{
   size_t limit = (src.length()+2)/3*4+1;  // size + null must be included
   char* buffer = new char[limit];

   unsigned size = b64Encode((const unsigned char *)src.c_str(),
src.length(), buffer, limit);
   buffer[size] = '\0';

   String str(buffer);
   delete[] buffer;

   return str;
}

regards
Tobias


--=_kLmu_1nR3r.7vGi2VIIPXvjBC.NgsT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - GPGrelay v0.93

iD8DBQA/4wVuaKldzkRy8jsRAqXJAJ9mT0Q7AYxJHs+2iJRhz10je7G4nACbB93N
oClSXYDsr41QtFh99FoUNOU=
=70+4
-----END PGP SIGNATURE-----

--=_kLmu_1nR3r.7vGi2VIIPXvjBC.NgsT--




From MAILER-DAEMON Fri Dec 19 10:20:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXMQO-0002N3-En
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:20:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXMQK-0002Lv-Ps
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:20:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXMPo-000242-HO
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:20:15 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXMPm-000236-6F
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:19:42 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1)
	id 1AXLTu-000HCE-00; Fri, 19 Dec 2003 15:19:57 +0100
Message-ID: <3FE3088D.8080801@profzone.ch>
Date: Fri, 19 Dec 2003 15:17:49 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=_HYmu_1kySO6qepbRb0mK.jtEay5pXW"
Content-Disposition: inline
X-Signed-With-GnuPG-Using: GPGrelay Version 0.93 (Win32)
To: CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Cc: Christian Prochnow <cproch@seculogix.de>
Subject: More compiler errors: class NetworkDeviceInfo has no operator=
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 15:20:17 -0000


--=_HYmu_1kySO6qepbRb0mK.jtEay5pXW
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


Hello

A compiler error by MS Visual C++ .NET (7.0):

network.cpp
c:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\xutility(1136) : error C2679: binary '=' : no operator
found which takes a right-hand operand of type 'const
ost::NetworkDeviceInfo' (or there is no acceptable conversion)
         c:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\vector(862) : see reference to function template
instantiation 'void
std::fill<std::vector<_Ty>::_Tptr,_Ty>(_FwdIt,_FwdIt,const _Ty &)' being
compiled
         with
         [
             _Ty=ost::NetworkDeviceInfo,
             _FwdIt=std::vector<ost::NetworkDeviceInfo>::_Tptr
         ]
         c:\Programme\Microsoft Visual Studio .NET
2003\Vc7\include\vector(809) : while compiling class-template member
function 'void
std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::size_type,const
_Ty &)'
         with
         [
             _Ty=ost::NetworkDeviceInfo
         ]
         d:\commoncpp2\src\network.cpp(84) : see reference to class
template instantiation 'std::vector<_Ty>' being compiled
         with
         [
             _Ty=ost::NetworkDeviceInfo
         ]

because the class NetworkDeviceInfo has a copy constructor, but no
overloaded assign operator.

Solution: overload the assign operator, or remove all assignments to the
std::vector<NetworkDeviceInfo> ...

regards
Tobias





--=_HYmu_1kySO6qepbRb0mK.jtEay5pXW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - GPGrelay v0.93

iD8DBQA/4wiRaKldzkRy8jsRAilZAJ0QWA1kFz6+U2sxJ/DptzLoVx2ywgCfdEud
N+P3WlDvNisNOvu5o7SLwk4=
=UZuw
-----END PGP SIGNATURE-----

--=_HYmu_1kySO6qepbRb0mK.jtEay5pXW--




From MAILER-DAEMON Fri Dec 19 10:27:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXMXh-0005f4-Ct
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:27:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXMXd-0005ZT-O4
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:27:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXMX4-0004qQ-Ub
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:27:46 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXMWm-0004IY-TD
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:26:57 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1) id 1AXLau-000HDE-00
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 15:27:12 +0100
Message-ID: <3FE30A3B.2080303@profzone.ch>
Date: Fri, 19 Dec 2003 15:24:59 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=_5fmu_1Mm3gnwAgGBeLEi4MjIlvJjZR"
Content-Disposition: inline
X-Signed-With-GnuPG-Using: GPGrelay Version 0.93 (Win32)
To: CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: More Compiler Errors: Visual C++ .NET (7.0)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 15:27:51 -0000


--=_5fmu_1Mm3gnwAgGBeLEi4MjIlvJjZR
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


More compile errors here:

file.cpp
d:\commoncpp2\src\file.cpp(1545) : error C2057: expected constant expression
d:\commoncpp2\src\file.cpp(1545) : error C2466: cannot allocate an array
of constant size 0
d:\commoncpp2\src\file.cpp(1545) : error C2133: 'left' : unknown size
d:\commoncpp2\src\file.cpp(1583) : error C2057: expected constant expression
d:\commoncpp2\src\file.cpp(1583) : error C2466: cannot allocate an array
of constant size 0
d:\commoncpp2\src\file.cpp(1583) : error C2133: 'next_token' : unknown size

The expression:

char foo[<size>];

should replaced by char* foo = new char[<size>];

on each "return", a delete foo!


regards
Tobias



--=_5fmu_1Mm3gnwAgGBeLEi4MjIlvJjZR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - GPGrelay v0.93

iD8DBQA/4wpEaKldzkRy8jsRAnBTAJ0Ru/llmExJhcJGIPVbr2GvS6rNWACcCkol
Jmx5ozS8Jo+EeAK3oHZYu5g=
=3HW9
-----END PGP SIGNATURE-----

--=_5fmu_1Mm3gnwAgGBeLEi4MjIlvJjZR--




From MAILER-DAEMON Fri Dec 19 10:41:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXMkT-0007zd-O3
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:41:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXMkJ-0007dP-GZ
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:40:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXMjf-0006wF-Iy
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:40:46 -0500
Received: from [212.101.6.245] (helo=mail.profzone.ch)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXMje-0006vj-Tm
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:40:15 -0500
Received: from [217.193.172.30] (helo=profzone.ch)
	by mail.profzone.ch with esmtp (Exim 3.36 #1) id 1AXLnn-000HFD-00
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 15:40:30 +0100
Message-ID: <3FE30D5D.3010803@profzone.ch>
Date: Fri, 19 Dec 2003 15:38:21 +0100
From: Tobias Erbsland <te@profzone.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=_Yrmu_1G0RXYjoa2GlUiE.OdjPniGoa"
Content-Disposition: inline
X-Signed-With-GnuPG-Using: GPGrelay Version 0.93 (Win32)
To: CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: Bugs in class Thread. The Pointer to a deleted resource must be set
 to 0
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 15:41:01 -0000


--=_Yrmu_1G0RXYjoa2GlUiE.OdjPniGoa
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


Hello

There are some bugs the the class Thread. I found the first example in
DummyThread. Code snipplet:

void DummyThread::CheckDelete()
{
	Thread *th = (Thread*)_self.getKey();
	if (!th) return;

	// delete if dummy thread
	if (th->priv->_type == threadTypeDummy)
		delete th;
}

I could be that the dummy thread is deleted multible times.
The function should be:

void DummyThread::CheckDelete()
{
	Thread *th = (Thread*)_self.getKey();
	if (!th) return;

	// delete if dummy thread
	if (th->priv->_type == threadTypeDummy)
	{
		delete th;
		th = 0; // <---------- !!!
	}
}

The same fault in the function "terminate()":

void Thread::terminate(void)
{
#ifdef WIN32
	if(!priv)
		return;

	if (!priv->_tid || isThread())
		return;
// (....)
	delete priv;
}

first call of terminate deletes the resouce pointed by priv. Second call
crashes, because the pointer sill points to the deleted resource:

	delete priv;
	priv = 0; // <---!!!
}

solves this problem.
Same Problem again:

// delete Thread class created for no CommonC++ thread
inline void ThreadImpl::ThreadDestructor(Thread* th)
{
	if (!th || th == DUMMY_INVALID_THREAD)
		return;
	if (th->priv->_type == threadTypeDummy)
		delete th;
}

Same problems in the class Poller also.

regards
Tobias





--=_Yrmu_1G0RXYjoa2GlUiE.OdjPniGoa
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - GPGrelay v0.93

iD8DBQA/4w1iaKldzkRy8jsRAkNUAKCYgHatHfUuqHvJmuPxmK46OTFbtQCfeQrA
TJLM+7DHT4Z397eKVtqdrSQ=
=aIoP
-----END PGP SIGNATURE-----

--=_Yrmu_1G0RXYjoa2GlUiE.OdjPniGoa--




From MAILER-DAEMON Fri Dec 19 11:00:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXN36-0004EE-Of
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:00:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXN34-0004CO-1q
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:00:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXN2M-0003Uh-Qs
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:00:07 -0500
Received: from [194.67.66.158] (helo=stalker.mephi.ru)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXN2L-0003Rc-1r
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 10:59:33 -0500
Received: from mind.zone (unknown [192.168.13.200])
	by stalker.mephi.ru (Postfix) with ESMTP
	id 5828B3BB; Fri, 19 Dec 2003 21:31:17 +0300 (MSK)
Date: Fri, 19 Dec 2003 17:55:42 +0300
From: Andrey Kulikov <ilfis@dezcom.mephi.ru>
X-Mailer: The Bat! (v2.00)
X-Priority: 3 (Normal)
Message-ID: <120350061015.20031219175542@dezcom.mephi.ru>
To: Tobias Erbsland <te@profzone.ch>
In-Reply-To: <3FE3088D.8080801@profzone.ch>
References: <3FE3088D.8080801@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: CommonC++ Mailinglist <bug-commoncpp@gnu.org>,
	Christian Prochnow <cproch@seculogix.de>
Subject: More compiler errors (Borland): class Datetime has incorrect
	operator=
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 16:00:19 -0000

Hi!

Enviroment: Borland C++ Builder 6.0 Update 4

It's imposible now to add Datetime object to STL containers.
(Under Visual Studio 2003 everething is ok,
but with borland's STL - no)
For example:

        vector<ost::Datetime> rr;
        ost::Datetime dt;
        rr.push_back(dt); // Error here

Now operator=() declared as:
Datetime& operator=(Datetime datetime);
        
Solution:
declare operator=() as:

Datetime& operator=(const Datetime& datetime);



-- 
Best regards,
 Andrey                            mailto:ilfis@dezcom.mephi.ru




From MAILER-DAEMON Fri Dec 19 11:38:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXNdc-0007jc-9b
	for mharc-bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:38:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXNdZ-0007hT-Bc
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:38:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXNd0-0007Mu-KR
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:37:58 -0500
Received: from [194.7.105.68] (helo=smtp1.agfa.be)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXNcz-0007K9-6g
	for bug-commoncpp@gnu.org; Fri, 19 Dec 2003 11:37:25 -0500
Received: from agbi0037.agfa.be (bemordsmt01.agfa.be [10.232.8.46])
	by smtp1.agfa.be (8.11.7p1+Sun/8.11.7) with ESMTP id hBJFZuT15458
	for <bug-commoncpp@gnu.org>; Fri, 19 Dec 2003 16:35:57 +0100 (MET)
Sensitivity: 
To: "bug-commoncpp" <bug-commoncpp@gnu.org>
From: "Keith Thornton" <keith.thornton@agfa.com>
Date: Fri, 19 Dec 2003 16:35:55 +0100
Message-ID: <OF33F4C103.00CDB751-ONC1256E01.00548D52@agfa.be>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Subject: thread handle leak under windows.
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Dec 2003 16:38:02 -0000

commoncpp2-1.0.13

The thread class leaks threads under windows.

in thread.cpp, in void Thread::terminate(void)

 currently reads

if (!priv->_tid || isThread())
      return;

should read
if (!priv->_tid || isThread())
{
      if( priv->_hThread)
      {
            BOOL b = ::CloseHandle( priv->_hThread);
            priv->_hThread = NULL;
      }
      return;
}

best wishes





From MAILER-DAEMON Sat Dec 20 07:03:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXfp6-0003nA-9K
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:03:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXfp2-0003mg-Mk
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:03:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXfoR-0003bi-1u
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:02:59 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXfoP-0003aP-TM
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:02:26 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKD2CFp028955; Sat, 20 Dec 2003 08:02:12 -0500
From: David Sugar <dyfet@ostel.com>
To: Andrey Kulikov <ilfis@dezcom.mephi.ru>, Tobias Erbsland <te@profzone.ch>
Date: Sat, 20 Dec 2003 06:17:52 -0500
User-Agent: KMail/1.5.3
References: <3FE3088D.8080801@profzone.ch>
	<120350061015.20031219175542@dezcom.mephi.ru>
In-Reply-To: <120350061015.20031219175542@dezcom.mephi.ru>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200617.52860.dyfet@ostel.com>
Cc: CommonC++ Mailinglist <bug-commoncpp@gnu.org>,
	Christian Prochnow <cproch@seculogix.de>
Subject: Re: More compiler errors (Borland): class Datetime has incorrect
	operator=
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:03:06 -0000

I had updated this in sf cvs for 1.1 and found some additional operators which 
should also be cast/performed with const...

On Friday 19 December 2003 09:55 am, Andrey Kulikov wrote:
> Hi!
>
> Enviroment: Borland C++ Builder 6.0 Update 4
>
> It's imposible now to add Datetime object to STL containers.
> (Under Visual Studio 2003 everething is ok,
> but with borland's STL - no)
> For example:
>
>         vector<ost::Datetime> rr;
>         ost::Datetime dt;
>         rr.push_back(dt); // Error here
>
> Now operator=() declared as:
> Datetime& operator=(Datetime datetime);
>
> Solution:
> declare operator=() as:
>
> Datetime& operator=(const Datetime& datetime);




From MAILER-DAEMON Sat Dec 20 07:05:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXfr7-00046e-9V
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:05:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXfr1-00045c-EZ
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:05:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXfoy-0003lg-VQ
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:03:33 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXfox-0003kP-HE
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:02:59 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKD3EFp028959; Sat, 20 Dec 2003 08:03:15 -0500
From: David Sugar <dyfet@ostel.com>
To: "Keith Thornton" <keith.thornton@agfa.com>,
	"bug-commoncpp" <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:18:56 -0500
User-Agent: KMail/1.5.3
References: <OF33F4C103.00CDB751-ONC1256E01.00548D52@agfa.be>
In-Reply-To: <OF33F4C103.00CDB751-ONC1256E01.00548D52@agfa.be>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200618.56272.dyfet@ostel.com>
Cc: 
Subject: Re: thread handle leak under windows.
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:05:11 -0000

This one is a bit strange, but I am experimenting with this in 1.1 sf cvs...

On Friday 19 December 2003 10:35 am, Keith Thornton wrote:
> commoncpp2-1.0.13
>
> The thread class leaks threads under windows.
>
> in thread.cpp, in void Thread::terminate(void)
>
>  currently reads
>
> if (!priv->_tid || isThread())
>       return;
>
> should read
> if (!priv->_tid || isThread())
> {
>       if( priv->_hThread)
>       {
>             BOOL b = ::CloseHandle( priv->_hThread);
>             priv->_hThread = NULL;
>       }
>       return;
> }
>
> best wishes
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sat Dec 20 07:05:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXfrW-0004Bq-PA
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:05:38 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXfrT-0004AO-Me
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:05:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXfqv-00043O-UI
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:05:33 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXfqv-00042c-9I
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:05:01 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKD5LFp028969; Sat, 20 Dec 2003 08:05:22 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:21:03 -0500
User-Agent: KMail/1.5.3
References: <3FE30D5D.3010803@profzone.ch>
In-Reply-To: <3FE30D5D.3010803@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200621.03308.dyfet@ostel.com>
Cc: 
Subject: Re: Bugs in class Thread. The Pointer to a deleted resource must be
	set to 0
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:05:36 -0000

The case of delete priv, yes, priv must be set to NULL after it is deleted!  
This was fixed in 1.1 sf cvs last night.  The other two cases involve 
pointers held/copied into temporary local variables, so it's irrelivent if 
the temporary local copies of the pointer are NULL'd right before the return.

On Friday 19 December 2003 09:38 am, Tobias Erbsland wrote:
> Hello
>
> There are some bugs the the class Thread. I found the first example in
> DummyThread. Code snipplet:
>
> void DummyThread::CheckDelete()
> {
> 	Thread *th = (Thread*)_self.getKey();
> 	if (!th) return;
>
> 	// delete if dummy thread
> 	if (th->priv->_type == threadTypeDummy)
> 		delete th;
> }
>
> I could be that the dummy thread is deleted multible times.
> The function should be:
>
> void DummyThread::CheckDelete()
> {
> 	Thread *th = (Thread*)_self.getKey();
> 	if (!th) return;
>
> 	// delete if dummy thread
> 	if (th->priv->_type == threadTypeDummy)
> 	{
> 		delete th;
> 		th = 0; // <---------- !!!
> 	}
> }
>
> The same fault in the function "terminate()":
>
> void Thread::terminate(void)
> {
> #ifdef WIN32
> 	if(!priv)
> 		return;
>
> 	if (!priv->_tid || isThread())
> 		return;
> // (....)
> 	delete priv;
> }
>
> first call of terminate deletes the resouce pointed by priv. Second call
> crashes, because the pointer sill points to the deleted resource:
>
> 	delete priv;
> 	priv = 0; // <---!!!
> }
>
> solves this problem.
> Same Problem again:
>
> // delete Thread class created for no CommonC++ thread
> inline void ThreadImpl::ThreadDestructor(Thread* th)
> {
> 	if (!th || th == DUMMY_INVALID_THREAD)
> 		return;
> 	if (th->priv->_type == threadTypeDummy)
> 		delete th;
> }
>
> Same problems in the class Poller also.
>
> regards
> Tobias




From MAILER-DAEMON Sat Dec 20 07:11:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXfwz-0006kA-Qn
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:11:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXfww-0006ec-CD
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:11:14 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXfwN-0006Ik-FA
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:11:10 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXfwM-0006GB-FN
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:10:38 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDAxFp028983; Sat, 20 Dec 2003 08:10:59 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:26:40 -0500
User-Agent: KMail/1.5.3
References: <3FE30A3B.2080303@profzone.ch>
In-Reply-To: <3FE30A3B.2080303@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200626.40540.dyfet@ostel.com>
Cc: 
Subject: Re: More Compiler Errors: Visual C++ .NET (7.0)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:11:15 -0000

Originally I assumed later VS compilers (7.0, net, etc) would correctly 
support dynamic sized local heap arrays.  There is a controlling #if that 
checked the _MSC_VER to see if it was newer than 6.0 for this.  Appearently 
that is not the case.  I eventually replaced this with a new config symbol, 
DYNAMIC_LOCAL_ARRAYS, which is tested for, and which is NOT defined in the 
w32/config.h header.  Eventually I will make an autoconf case for testing for 
this on posix systems that are not using gcc , based on try_compile.  In any 
case, this is all updated in sf cvs for 1.1.

On Friday 19 December 2003 09:24 am, Tobias Erbsland wrote:
> More compile errors here:
>
> file.cpp
> d:\commoncpp2\src\file.cpp(1545) : error C2057: expected constant
> expression d:\commoncpp2\src\file.cpp(1545) : error C2466: cannot allocate
> an array of constant size 0
> d:\commoncpp2\src\file.cpp(1545) : error C2133: 'left' : unknown size
> d:\commoncpp2\src\file.cpp(1583) : error C2057: expected constant
> expression d:\commoncpp2\src\file.cpp(1583) : error C2466: cannot allocate
> an array of constant size 0
> d:\commoncpp2\src\file.cpp(1583) : error C2133: 'next_token' : unknown size
>
> The expression:
>
> char foo[<size>];
>
> should replaced by char* foo = new char[<size>];
>
> on each "return", a delete foo!
>
>
> regards
> Tobias




From MAILER-DAEMON Sat Dec 20 07:12:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXfxv-0007JN-Mh
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:12:15 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXfxr-0007JD-1B
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:12:11 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXfxK-0006z7-1G
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:12:09 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXfxJ-0006xg-98
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:11:37 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDBtFp028987; Sat, 20 Dec 2003 08:11:56 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:27:37 -0500
User-Agent: KMail/1.5.3
References: <3FE3088D.8080801@profzone.ch>
In-Reply-To: <3FE3088D.8080801@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200627.37328.dyfet@ostel.com>
Cc: Christian Prochnow <cproch@seculogix.de>
Subject: Re: More compiler errors: class NetworkDeviceInfo has no operator=
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:12:11 -0000

This one I have not determined which approach would be better to do yet.  But 
if you would like to submit a quick patch, I will look at that...

On Friday 19 December 2003 09:17 am, Tobias Erbsland wrote:
> Hello
>
> A compiler error by MS Visual C++ .NET (7.0):
>
> network.cpp
> c:\Programme\Microsoft Visual Studio .NET
> 2003\Vc7\include\xutility(1136) : error C2679: binary '=' : no operator
> found which takes a right-hand operand of type 'const
> ost::NetworkDeviceInfo' (or there is no acceptable conversion)
>          c:\Programme\Microsoft Visual Studio .NET
> 2003\Vc7\include\vector(862) : see reference to function template
> instantiation 'void
> std::fill<std::vector<_Ty>::_Tptr,_Ty>(_FwdIt,_FwdIt,const _Ty &)' being
> compiled
>          with
>          [
>              _Ty=ost::NetworkDeviceInfo,
>              _FwdIt=std::vector<ost::NetworkDeviceInfo>::_Tptr
>          ]
>          c:\Programme\Microsoft Visual Studio .NET
> 2003\Vc7\include\vector(809) : while compiling class-template member
> function 'void
> std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::si
>ze_type,const _Ty &)'
>          with
>          [
>              _Ty=ost::NetworkDeviceInfo
>          ]
>          d:\commoncpp2\src\network.cpp(84) : see reference to class
> template instantiation 'std::vector<_Ty>' being compiled
>          with
>          [
>              _Ty=ost::NetworkDeviceInfo
>          ]
>
> because the class NetworkDeviceInfo has a copy constructor, but no
> overloaded assign operator.
>
> Solution: overload the assign operator, or remove all assignments to the
> std::vector<NetworkDeviceInfo> ...
>
> regards
> Tobias




From MAILER-DAEMON Sat Dec 20 07:15:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXg13-0000kv-3g
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:15:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXg10-0000ke-AU
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:15:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXg0T-0000YB-GV
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:15:24 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXg0S-0000Y7-VU
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:14:53 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDFDFp028998; Sat, 20 Dec 2003 08:15:13 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:30:55 -0500
User-Agent: KMail/1.5.3
References: <3FE30327.4000603@profzone.ch>
In-Reply-To: <3FE30327.4000603@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200630.55078.dyfet@ostel.com>
Cc: 
Subject: Re: fatal bug in class Thread, thread.cpp line~ 858
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:15:27 -0000

In theory, when the thread is deleted, the key values held for the thread by 
getKey() should also be cleared.  In practice, I gather this does not happen 
in w32 targets.  Hmm, perhaps the thread delete needs to explicitly reset 
_self.getKey() to NULL for w32.

On Friday 19 December 2003 08:54 am, Tobias Erbsland wrote:
> Hello
>
> The Thread class has a fatal bug:
>
> ==== thread.cpp ==== Line 848 ====
> 	// final can call destructor (that call Terminate)
> 	final();
>
> 	// test if this class have been deleted
> #ifdef WIN32
> 	if (_self.getKey() == this)
> #else
> 	if (ThreadImpl::_self.getKey() == this)
> #endif
> 	{
> 		if(priv)
> 			priv->_tid = 0;
> 		joinSem.post();
> 	}
> ====================================
>
> The API documentation suggest to place a "delete this" in the final()
> method to delete the thread on exit. This implementation is found for
> example in the TCPSession class.
>
> After the final() method, the object could be deleted, so each access to
> a member of the object is invalid.
>
> The C++ compiler from the new .NET edition of the MS Visual Studio
> (Version 7.0) fills each deleted memory segment with the "word" 0xfeee
> in debug mode (i don't know why, but that's the fact).
>
> The line "if(priv)" is true in this case, and the assignment "priv->_tid
> = 0" results in an access violation (unix: core dump).
>
> IMHO, instead this strange test, there should be a hook in the virtual
> destructor of the Thread class.
>
> regards
> Tobias




From MAILER-DAEMON Sat Dec 20 07:19:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXg5A-0001gC-3p
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:19:44 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXg56-0001fE-6w
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:19:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXg4O-0001Up-JB
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:19:27 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXg4N-0001UU-Ov
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:18:55 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDJGFp029081; Sat, 20 Dec 2003 08:19:16 -0500
From: David Sugar <dyfet@ostel.com>
To: Tobias Erbsland <te@profzone.ch>,
	CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:34:57 -0500
User-Agent: KMail/1.5.3
References: <3FE30327.4000603@profzone.ch>
In-Reply-To: <3FE30327.4000603@profzone.ch>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200634.57810.dyfet@ostel.com>
Cc: 
Subject: Re: fatal bug in class Thread, thread.cpp line~ 858
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:19:41 -0000

Actually thats not correct either, since _self is part of the current "Thread" 
object.  What would be better, as a temporary solution, is to change "final" 
so that it can return a bool, and have it return true when final has deleted 
the current object...that way any further processing could be bypassed if 
final is true.  Let me think more on this....

On Friday 19 December 2003 08:54 am, Tobias Erbsland wrote:
> Hello
>
> The Thread class has a fatal bug:
>
> ==== thread.cpp ==== Line 848 ====
> 	// final can call destructor (that call Terminate)
> 	final();
>
> 	// test if this class have been deleted
> #ifdef WIN32
> 	if (_self.getKey() == this)
> #else
> 	if (ThreadImpl::_self.getKey() == this)
> #endif
> 	{
> 		if(priv)
> 			priv->_tid = 0;
> 		joinSem.post();
> 	}
> ====================================
>
> The API documentation suggest to place a "delete this" in the final()
> method to delete the thread on exit. This implementation is found for
> example in the TCPSession class.
>
> After the final() method, the object could be deleted, so each access to
> a member of the object is invalid.
>
> The C++ compiler from the new .NET edition of the MS Visual Studio
> (Version 7.0) fills each deleted memory segment with the "word" 0xfeee
> in debug mode (i don't know why, but that's the fact).
>
> The line "if(priv)" is true in this case, and the assignment "priv->_tid
> = 0" results in an access violation (unix: core dump).
>
> IMHO, instead this strange test, there should be a hook in the virtual
> destructor of the Thread class.
>
> regards
> Tobias




From MAILER-DAEMON Sat Dec 20 07:20:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXg66-0001r6-Au
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:20:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXg5s-0001pU-M2
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:20:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXg5b-0001ji-75
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:20:27 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXg5a-0001ik-18
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:20:10 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDKJFp029090; Sat, 20 Dec 2003 08:20:19 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Sat, 20 Dec 2003 06:36:00 -0500
User-Agent: KMail/1.5.3
References: <30448.1071840799@www42.gmx.net>
In-Reply-To: <30448.1071840799@www42.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312200636.00929.dyfet@ostel.com>
Cc: 
Subject: Re: Hardware API for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:20:29 -0000

On Friday 19 December 2003 08:33 am, Marc Boris D=FCrner wrote:
> Hi,
> This is kind of a progress report. A common API for hardware access can be
> found here:
>
> http://www.arklinux.org/cgi-bin/cvsweb.cgi/HardwareKit/libhwkit/
>
> Issues:
>
> - It is not integrated very much with the CommonC++ base, but I am looking
> at that
> now. This process may have an effect on CommonC++ base itself.

What base classes are you thinking might need to be changed?

> - Streams not yet implemented as std:iostream. I suppose this would be the
> preferred
> way to do it for CommonC++? Or is anybody working on IOSteam classes?

=46or the moment, yes, we generally use std::iostream :)....

> - I have no access to win32 or BSD atm, so I can only test on Linux. Help
> appreciated!
>
> regards,
> Marc




From MAILER-DAEMON Sat Dec 20 07:24:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXg9U-0003Uw-5g
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:24:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXg9P-0003Qi-Tm
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:24:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXg8q-00039b-7Y
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:24:04 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXg8b-0002tB-EV
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:23:17 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDNbFp029098; Sat, 20 Dec 2003 08:23:38 -0500
From: David Sugar <dyfet@ostel.com>
To: "Julie Russell" <julie.russell@throughput.com.au>,
	"Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:39:19 -0500
User-Agent: KMail/1.5.3
References: <CAEDLLCOCGBPMAAFIFOCMENJCAAA.julie.russell@throughput.com.au>
In-Reply-To: <CAEDLLCOCGBPMAAFIFOCMENJCAAA.julie.russell@throughput.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200639.19003.dyfet@ostel.com>
Cc: 
Subject: Re: Interrupt
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:24:09 -0000

One way to do this is to sleep the thread on a "conditional", and then use a 
signal to "wake" it early.  This of course only works on pthread/posix 
systems.  The nearest equiv. in w32 is to use a timed semaphore wait, but 
that is not supported in pthreads :).  I suppose we could construct an 
alrernate sleep object that uses one or the other method based on the target, 
like was done for the Buffer class....

On Friday 19 December 2003 01:40 am, Julie Russell wrote:
> Hi there,
>
> I want to interrupt a thread from it's sleeping process, yet I can't seem
> to see an interrupt method in the documentation. Is there one, and if I use
> it, does it stop sleeping and resume the next line of execution, or how
> does it work?
>
> Thanks in advance,
> Julie.
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sat Dec 20 07:24:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXgA7-0003hY-Bc
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:24:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXg9w-0003fC-4B
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:24:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXg9N-0003Ok-Ce
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:24:36 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXg9E-0003DR-4o
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:23:56 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDO4Fp029101; Sat, 20 Dec 2003 08:24:04 -0500
From: David Sugar <dyfet@ostel.com>
To: "Keith Thornton" <keith.thornton@agfa.com>,
	"bug-commoncpp" <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:39:46 -0500
User-Agent: KMail/1.5.3
References: <OF810B0793.DB1A80DD-ONC1256E01.0021EEFA@agfa.be>
In-Reply-To: <OF810B0793.DB1A80DD-ONC1256E01.0021EEFA@agfa.be>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200639.46223.dyfet@ostel.com>
Cc: 
Subject: Re: bug in TCPStream::overflow
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:24:41 -0000

I presume the same issue exists in the Serial stuff...

On Friday 19 December 2003 01:17 am, Keith Thornton wrote:
> Commoncpp2-1.0.13 file socket.cpp line 1438
> I think that the line memmove(pbuf, pptr() + rlen, req);
> should read memmove(pbuf, pbuf + rlen, req);
>
> TCPStream::overflow() is called because the buffer is full and data needs
> to be written to the device. I.e. pptr() == epptr.
> therefore,  reading from pptr() + rlen reads from past the end of the
> buffer causing a segmentation violation. We really want to move the data
> which could not be written to the device (pbase + rlen) to the start of the
> buffer.
> Best wishes
> Keith Thornton
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sat Dec 20 07:29:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXgEt-0006d6-Jy
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:29:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXgEq-0006cv-8b
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:29:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXgED-00063r-Ka
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:29:36 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXgED-00063o-3v
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 07:29:05 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBKDTPFp029117; Sat, 20 Dec 2003 08:29:26 -0500
From: David Sugar <dyfet@ostel.com>
To: "Julie Russell" <julie.russell@throughput.com.au>,
	"Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 06:45:07 -0500
User-Agent: KMail/1.5.3
References: <CAEDLLCOCGBPMAAFIFOCCENICAAA.julie.russell@throughput.com.au>
In-Reply-To: <CAEDLLCOCGBPMAAFIFOCCENICAAA.julie.russell@throughput.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312200645.07322.dyfet@ostel.com>
Cc: 
Subject: Re: Sleep
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 12:29:45 -0000

You need a seperate thread to read/receive the xlib events.  You can then pass 
the events to your sleeping thread through the buffer class, which would then 
wake it up when buffered events exist.

On Thursday 18 December 2003 07:21 pm, Julie Russell wrote:
> Hi Everyone,
>
> I am programming in c++ and xlib using common c++ threads. I want to sleep
> a thread (which I have initiated as detached). During that process I want
> to recieve events from the xlib event loop and if triggered, interrupt the
> sleeping thread. The problem is, while that thread is asleep, for some
> reason, my event loop appears to be blocked. How can I sleep a thread so
> that the loop doesn't block and then interrupt it cleanly. My event loop is
> in a separate class implemented as a singleton.
>
> Cheers,
> Julie.
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sat Dec 20 16:35:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXolJ-0003ws-GB
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 16:35:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXolH-0003wX-OG
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 16:35:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXokl-0003s9-Lt
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 16:35:46 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXokl-0003rl-04
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 16:35:15 -0500
Received: from sonne.kosmos.all (212-62-86-35.teleos-web.de [212.62.86.35])
	by sally.dts-online.net (Postfix) with ESMTP id D37B0471C58
	for <bug-commoncpp@gnu.org>; Sat, 20 Dec 2003 21:33:45 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 57ABD7B01B
	for <bug-commoncpp@gnu.org>; Sat, 20 Dec 2003 21:29:03 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Sat, 20 Dec 2003 21:29:01 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Disposition: inline
Message-Id: <200312202129.01958.wolfgang@alper-online.com>
Content-Transfer-Encoding: quoted-printable
Subject: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 21:35:48 -0000

i tried the last days to compile commonc++ for win32, but without success
with linux, i do not have a problem.

my environment:
commonc++: commoncpp2-1.0.13
linux: debian unstable with gcc/g++ and i586-mingw32msvc-c++ installed.
win32: native windows with dev-cpp (including mingw/gcc/g++) latest versi=
on.

on linux, i run ./configure in my own directory "mybins/" trying to use t=
he=20
VPATH function to create bins/libs for all platforms. i still got the lin=
ux=20
files compiled, and a Makefile in my win32/ subdir. but no win32 files.
then i cd'ed into mybins/ and ran make explicit, but got only "nothing to=
=20
do...." the makefile itself did not reference mingw at all.

on windows, i used the import function of dev-cpp on the src tree of comm=
onc++=20
importing the VC project files, without haveing run configure before (bec=
ause=20
i do not know how to run configure within w2k).
in general that worked ok, but some files didn't compile (serial.cpp,=20
slog.cpp, socket.cpp, digest.cpp,  and some more).

i.e sockets.cpp=20
i guess this warning:
(ost::Socket::writeData(const  void*, unsigned int, long unsigned int)':.=
./
src/socket.cpp:286: warning: comparison of unsigned expression < 0 is alw=
ays=20
false )
makes sense, but i do not understand the reasons for all the other errors=
.=20
(See an example at the end iof this mail)


I believe i do something really wrong, but i haven't used mingw or gcc be=
fore=20
on win32, so can anyone give me a hint of how to get  commonc++ compiled =
for=20
win32?
(using mingw or gcc )

Thx in advance ;-)

Wolfgang


=3D=3D=3D=3D=3Dcompiler output using Dev-Cpp with  mingw on win32=3D=3D=3D=
=3D

Compiler: Default compiler
Building Makefile: "D:\APPS\DEVEL\Dev-Cpp\Myprojects\commoncpp2-1.0.13\wi=
n32
\Makefile.win"
F=FChrt  make... aus
make.exe -f "D:\APPS\DEVEL\Dev-Cpp\Myprojects\commoncpp2-1.0.13\win32
\Makefile.win" ../src/socket.o
g++.exe -c ../src/socket.cpp -o ../src/socket.o -I"D:/APPS/DEVEL/Dev-Cpp/
include/c++"  -I"D:/APPS/DEVEL/Dev-Cpp/include/c++/mingw32"  -I"D:/APPS/
DEVEL/Dev-Cpp/include/c++/backward"  -I"D:/APPS/DEVEL/Dev-Cpp/include" =20
-I"D:/APPS/DEVEL/Dev-Cpp/include/cc++"  -I"../win32"  -I"../include"=20
-D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL=20
-DCCGNU2_EXPORTS ../src/socket.cpp: In member function `virtual int=20
ost::Socket::writeData(const=20
   void*, unsigned int, long unsigned int)':../src/socket.cpp:286: warnin=
g:=20
comparison of unsigned expression < 0 is always=20
   false../src/socket.cpp: In constructor=20
`ost::TCPStream::TCPStream(ost::TCPSocket&,    int, bool, long unsigned=20
int)':
../src/socket.cpp:1064: no matching function for call to `  =20
std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:/A=
PPS/
DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
   std::basic_iostream<char, std::char_traits<char> >::basic_iostream(con=
st=20
   std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-=
Cpp/
include/c++/istream:280:                =20
   std::basic_iostream<_CharT,=20
   _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with=
=20
   _CharT =3D char, _Traits =3D std::char_traits<char>]../src/socket.cpp:=
 In=20
constructor `ost::TCPStream::TCPStream(const=20
   ost::InetHostAddress&, short unsigned int, int, bool, long unsigned in=
t)':
../src/socket.cpp:1095: no matching function for call to `  =20
std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:/A=
PPS/
DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
   std::basic_iostream<char, std::char_traits<char> >::basic_iostream(con=
st=20
   std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-=
Cpp/
include/c++/istream:280:                =20
   std::basic_iostream<_CharT,=20
   _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with=
=20
   _CharT =3D char, _Traits =3D std::char_traits<char>]../src/socket.cpp:=
 In=20
constructor `ost::TCPStream::TCPStream(bool)':
../src/socket.cpp:1183: no matching function for call to `
   std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D=
:/
APPS/DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
   std::basic_iostream<char, std::char_traits<char> >::basic_iostream(con=
st=20
   std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-=
Cpp/
include/c++/istream:280:                =20
   std::basic_iostream<_CharT,=20
   _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with=
=20
   _CharT =3D char, _Traits =3D std::char_traits<char>]../src/socket.cpp:=
 In copy=20
constructor `ost::TCPStream::TCPStream(const=20
   ost::TCPStream&)':
../src/socket.cpp:1197: no matching function for call to `
   std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D=
:/
APPS/DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
   std::basic_iostream<char, std::char_traits<char> >::basic_iostream(con=
st=20
   std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-=
Cpp/
include/c++/istream:280:                =20
   std::basic_iostream<_CharT,=20
   _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with=
=20
   _CharT =3D char, _Traits =3D std::char_traits<char>]make.exe: *** [../=
src/
socket.o] Error 1Ausf=FChrung beendet




From MAILER-DAEMON Sat Dec 20 18:41:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXqil-00058W-FU
	for mharc-bug-commoncpp@gnu.org; Sat, 20 Dec 2003 18:41:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXqii-000587-9W
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 18:41:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXqiC-0004w5-Mo
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 18:41:15 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXqiA-0004vw-GJ
	for bug-commoncpp@gnu.org; Sat, 20 Dec 2003 18:40:42 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBKMdCGH029875;
	Sat, 20 Dec 2003 23:39:12 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP7B1>; Sat, 20 Dec 2003 23:39:06 +0100
Received: from wige-data.de (lpzg-d9b84726.pool.mediaWays.net [217.184.71.38])
	by mailserver.wige-data.de with SMTP (Microsoft Exchange
	Internet Mail Service Version 5.5.2653.13)
	id YVLJP7BD; Sat, 20 Dec 2003 23:39:01 +0100
From: taraben.a@wige-data.de
To: wolfgang@alper-online.com, bug-commoncpp@gnu.org
Message-ID: <3FE4D035.50400@wige-data.de>
Date: Sat, 20 Dec 2003 23:41:57 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <200312202129.01958.wolfgang@alper-online.com>
In-Reply-To: <200312202129.01958.wolfgang@alper-online.com>
Content-Type: multipart/mixed; boundary="------------030400080301080907090803"
Cc: 
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Dec 2003 23:41:17 -0000

This is a multi-part message in MIME format.
--------------030400080301080907090803
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by bns1.envia-tel.net id
	hBKMdCGH029875

Hi Wolfgang,

I also have problems to configure commoncpp on mingw/msys.
I have latest mingw/msys.
Try the makefile in the distro.
make -f Makefile.gcc
You need to modify some path settings and you have to shift some files=20
from one packet to the other because of dependency. Attached the=20
makefile that is working for me. Tell me if this is not working for you.

Best wishes,

Adib.


Wolfgang wrote:

> i tried the last days to compile commonc++ for win32, but without succe=
ss
> with linux, i do not have a problem.
>=20
> my environment:
> commonc++: commoncpp2-1.0.13
> linux: debian unstable with gcc/g++ and i586-mingw32msvc-c++ installed.
> win32: native windows with dev-cpp (including mingw/gcc/g++) latest ver=
sion.
>=20
> on linux, i run ./configure in my own directory "mybins/" trying to use=
 the=20
> VPATH function to create bins/libs for all platforms. i still got the l=
inux=20
> files compiled, and a Makefile in my win32/ subdir. but no win32 files.
> then i cd'ed into mybins/ and ran make explicit, but got only "nothing =
to=20
> do...." the makefile itself did not reference mingw at all.
>=20
> on windows, i used the import function of dev-cpp on the src tree of co=
mmonc++=20
> importing the VC project files, without haveing run configure before (b=
ecause=20
> i do not know how to run configure within w2k).
> in general that worked ok, but some files didn't compile (serial.cpp,=20
> slog.cpp, socket.cpp, digest.cpp,  and some more).
>=20
> i.e sockets.cpp=20
> i guess this warning:
> (ost::Socket::writeData(const  void*, unsigned int, long unsigned int)'=
:../
> src/socket.cpp:286: warning: comparison of unsigned expression < 0 is a=
lways=20
> false )
> makes sense, but i do not understand the reasons for all the other erro=
rs.=20
> (See an example at the end iof this mail)
>=20
>=20
> I believe i do something really wrong, but i haven't used mingw or gcc =
before=20
> on win32, so can anyone give me a hint of how to get  commonc++ compile=
d for=20
> win32?
> (using mingw or gcc )
>=20
> Thx in advance ;-)
>=20
> Wolfgang
>=20
>=20
> =3D=3D=3D=3D=3Dcompiler output using Dev-Cpp with  mingw on win32=3D=3D=
=3D=3D
>=20
> Compiler: Default compiler
> Building Makefile: "D:\APPS\DEVEL\Dev-Cpp\Myprojects\commoncpp2-1.0.13\=
win32
> \Makefile.win"
> F=FChrt  make... aus
> make.exe -f "D:\APPS\DEVEL\Dev-Cpp\Myprojects\commoncpp2-1.0.13\win32
> \Makefile.win" ../src/socket.o
> g++.exe -c ../src/socket.cpp -o ../src/socket.o -I"D:/APPS/DEVEL/Dev-Cp=
p/
> include/c++"  -I"D:/APPS/DEVEL/Dev-Cpp/include/c++/mingw32"  -I"D:/APPS=
/
> DEVEL/Dev-Cpp/include/c++/backward"  -I"D:/APPS/DEVEL/Dev-Cpp/include" =
=20
> -I"D:/APPS/DEVEL/Dev-Cpp/include/cc++"  -I"../win32"  -I"../include"=20
> -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL=20
> -DCCGNU2_EXPORTS ../src/socket.cpp: In member function `virtual int=20
> ost::Socket::writeData(const=20
>    void*, unsigned int, long unsigned int)':../src/socket.cpp:286: warn=
ing:=20
> comparison of unsigned expression < 0 is always=20
>    false../src/socket.cpp: In constructor=20
> `ost::TCPStream::TCPStream(ost::TCPSocket&,    int, bool, long unsigned=
=20
> int)':
> ../src/socket.cpp:1064: no matching function for call to `  =20
> std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:=
/APPS/
> DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
>    std::basic_iostream<char, std::char_traits<char> >::basic_iostream(c=
onst=20
>    std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/De=
v-Cpp/
> include/c++/istream:280:                =20
>    std::basic_iostream<_CharT,=20
>    _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [wi=
th=20
>    _CharT =3D char, _Traits =3D std::char_traits<char>]../src/socket.cp=
p: In=20
> constructor `ost::TCPStream::TCPStream(const=20
>    ost::InetHostAddress&, short unsigned int, int, bool, long unsigned =
int)':
> ../src/socket.cpp:1095: no matching function for call to `  =20
> std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:=
/APPS/
> DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
>    std::basic_iostream<char, std::char_traits<char> >::basic_iostream(c=
onst=20
>    std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/De=
v-Cpp/
> include/c++/istream:280:                =20
>    std::basic_iostream<_CharT,=20
>    _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [wi=
th=20
>    _CharT =3D char, _Traits =3D std::char_traits<char>]../src/socket.cp=
p: In=20
> constructor `ost::TCPStream::TCPStream(bool)':
> ../src/socket.cpp:1183: no matching function for call to `
>    std::basic_iostream<char, std::char_traits<char> >::basic_iostream()=
'D:/
> APPS/DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
>    std::basic_iostream<char, std::char_traits<char> >::basic_iostream(c=
onst=20
>    std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/De=
v-Cpp/
> include/c++/istream:280:                =20
>    std::basic_iostream<_CharT,=20
>    _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [wi=
th=20
>    _CharT =3D char, _Traits =3D std::char_traits<char>]../src/socket.cp=
p: In copy=20
> constructor `ost::TCPStream::TCPStream(const=20
>    ost::TCPStream&)':
> ../src/socket.cpp:1197: no matching function for call to `
>    std::basic_iostream<char, std::char_traits<char> >::basic_iostream()=
'D:/
> APPS/DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:=20
>    std::basic_iostream<char, std::char_traits<char> >::basic_iostream(c=
onst=20
>    std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/De=
v-Cpp/
> include/c++/istream:280:                =20
>    std::basic_iostream<_CharT,=20
>    _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [wi=
th=20
>    _CharT =3D char, _Traits =3D std::char_traits<char>]make.exe: *** [.=
./src/
> socket.o] Error 1Ausf=FChrung beendet
>=20
>=20
>=20
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>=20


--------------030400080301080907090803
Content-Type: text/plain;
 name="Makefile.gcc"
Content-Disposition: inline;
 filename="Makefile.gcc"
Content-Transfer-Encoding: 7bit

# Copyright (C) 2002 Open Source Telecom Corporation.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# A makefile to do a mingw32 cross compile build of dll's.

HAVE = -I$(prefix)/include
VPATH = ../win32:../src:../demo:../tests
OPATH = ../win32
ARCH =
prefix = c:/usr

CXX = $(ARCH)c++
AS = $(ARCH)as
DLLTOOL = $(ARCH)dlltool
DLLWRAP = $(ARCH)dllwrap
WINDRES = $(ARCH)windres
STRIP = $(ARCH)strip
exeext = .exe
dllext = .dll

CPPFLAGS = -I. -I../include $(HAVE) -DHAVE_CONFIG_H -D_GNU_SOURCE
CXXFLAGS = -include ../win32/cc++/config.h -g -O2 -mthreads
LDFLAGS = -L$(prefix)/dll -lccgnu2 -lccext2 -lws2_32
CCGNU2_LDFLAGS = -L$(prefix)/dll -lws2_32
CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lws2_32 -lwsock32
#LDEXEC = -L$(OPATH) -lccgnu2 $(LDFLAGS)

CCGNU2_DLL_NAME = ccgnu2.dll
CCEXT2_DLL_NAME = ccext2.dll

CCGNU2_DLL_LIB = libccgnu2.a
CCEXT2_DLL_LIB = libccext2.a

CCGNU2_DLL_DEF = ccgnu2.def
CCEXT2_DLL_DEF = ccext2.def

# PROGS = tcp.exe tcpthread.exe tcpservice.exe \
PROGS = urlfetch.exe xmlfetch.exe SampleSocketPort.exe crc32.exe shadigest.exe
# cmdlineopt will not compile on non-posix systems!

#SERIAL_PROG: serial.exe
#serial.exe:
#	$(CXX) $(CPPFLAGS) $(CXXFLAGS) serialmain.o serialecho.o -L. -lccgnu2 $(LDFLAGS) -o	serialmain.exe
# serial uses "/dev/modem"

TESTS = bug1.exe bug2.exe thread1.exe thread2.exe tcpstr1.exe url1.exe

all:	$(CCGNU2_DLL_NAME) $(CCEXT2_DLL_NAME) $(PROGS) $(SERIAL_PROG) $(TESTS)

SHDRS = thread.h socket.h exception.h cmdoptns.h digest.h export.h file.h \
	groups.h misc.h numbers.h persist.h slog.h url.h urlstring.h xml.h \
	serial.h strchar.h

HDRS = cc++/config.h $(addprefix ../include/cc++/, $(SHDRS))

CCGNU2_OBJS = thread.o mutex.o semaphore.o threadkey.o \
	friends.o event.o slog.o dir.o file.o inaddr.o \
	peer.o port.o socket.o network.o serial.o \
	mempager.o keydata.o dso.o exception.o \
	process.o urlstring.o url.o groups.o

CCEXT2_OBJS = buffer.o fifo.o pipe.o numbers.o \
	cmdoptns.o xml.o persist.o engine.o digest.o sha.o \
	date.o md5.o unix.o ftp.o

CCGNU2_DLLWRAP_FLAGS = --export-all --output-def $(CCGNU2_DLL_DEF) \
        --implib $(CCGNU2_DLL_LIB) --driver-name $(CXX)

CCEXT2_DLLWRAP_FLAGS = --export-all --output-def $(CCEXT2_DLL_DEF) \
        --implib $(CCEXT2_DLL_LIB) --driver-name $(CXX)

$(CCGNU2_DLL_NAME) $(CCGNU2_DLL_DEF) $(CCGNU2_DLL_LIB): $(addprefix $(OPATH)/, $(CCGNU2_OBJS)) libgnu2.o
	$(DLLWRAP) $(CCGNU2_DLLWRAP_FLAGS) -o $(CCGNU2_DLL_NAME) \
	$(CCGNU2_OBJS) libgnu2.o $(CCGNU2_LDFLAGS)

$(CCEXT2_DLL_NAME) $(CCEXT2_DLL_DEF) $(CCEXT2_DLL_LIB): $(addprefix $(OPATH)/, $(CCEXT2_OBJS)) libgnu2.o
	$(DLLWRAP) $(CCEXT2_DLLWRAP_FLAGS) -o $(CCEXT2_DLL_NAME) \
	$(CCEXT2_OBJS) libgnu2.o $(CCEXT2_LDFLAGS)

libgnu2.o:	CCXX2.rc
	$(WINDRES) -o libgnu2.o CCXX2.rc

$(OPATH)/%.o: %.cpp
	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $(OPATH)/$(basename $@).o $<

%.exe: %.cpp
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -L. $(LDFLAGS) -o $@

hello.exe: hello.cpp
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -L. -lccgnu2 $(LDFLAGS) -o $@

clean:
	rm -f $(CCGNU2_OBJS) $(CCEXT2_OBJS) \
	$(CCGNU2_DLL_NAME) $(CCEXT2_DLL_NAME) \
	$(CCGNU2_DLL_LIB) $(CCEXT2_DLL_LIB) \
	$(CCGNU2_DLL_DEF) $(CCEXT2_DLL_DEF) \
	$(PROGS)

install:
	-mkdir $(prefix)/include/cc++
	-mkdir $(prefix)/dll
	cp -af $(HDRS) $(prefix)/include/cc++
	cp -af $(CCGNU2_DLL_LIB) $(CCGNU2_DLL_NAME) $(CCEXT2_DLL_LIB) $(CCEXT2_DLL_NAME) $(prefix)/dll
	cp -af $(CCGNU2_DLL_LIB) $(prefix)/lib/libccgnu2dll.a
	cp -af $(CCEXT2_DLL_LIB) $(prefix)/lib/libccext2dll.a
	$(STRIP) $(prefix)/dll/$(CCGNU2_DLL_NAME) $(prefix)/dll/$(CCEXT2_DLL_NAME)
	ar -rs $(prefix)/lib/$(CCGNU2_DLL_LIB) $(CCGNU2_OBJS)
	ar -rs $(prefix)/lib/$(CCEXT2_DLL_LIB) $(CCEXT2_OBJS)


--------------030400080301080907090803--



From MAILER-DAEMON Sun Dec 21 11:56:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AY6sA-0006No-Qc
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 11:56:06 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AY6s8-0006NZ-9C
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 11:56:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AY6rc-0006Ih-H5
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 11:56:03 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AY6rb-0006IG-FN
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 11:55:31 -0500
Received: from sonne.kosmos.all (213-182-116-85.teleos-web.de [213.182.116.85])
	by sally.dts-online.net (Postfix) with ESMTP id 016C94720C8
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 16:54:03 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 835167AD9E
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 16:49:17 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Sun, 21 Dec 2003 16:49:15 +0100
User-Agent: KMail/1.5.4
References: <200312202129.01958.wolfgang@alper-online.com>
	<3FE4D035.50400@wige-data.de>
In-Reply-To: <3FE4D035.50400@wige-data.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312211649.16045.wolfgang@alper-online.com>
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Dec 2003 16:56:04 -0000

Hello,

i still have problems to build commonc++ for the win32 platform. 

pls let me appologize in advance, if i did not follow the etiquette of this 
mailinglist by attaching so much compiler output. the reason is simply that i 
hope that someone can fingerpoint to what i am doing wrong.

for my last attempt to crosscompile  i used the makefile that Adib provided in 
the recent mail (Thank your for that!) and changed only the reference to 
minggw.
here the output of my attempt to compile for win32 on my linux box (debiin 
unstable):

=======snip====
/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
In file included from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
i586-mingw32msvc/bits/c++io.h:35,
                 from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
bits/fpos.h:44,
                 from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
bits/char_traits.h:46,
                 from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
string:47,
                 from ../include/cc++/strchar.h:49,
                 from ../include/cc++/exception.h:54,
                 from ../include/cc++/thread.h:58,
                 from ../src/thread.cpp:43:
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
   snprintf' not declared
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
   snprintf' not declared
make: *** [../win32/thread.o] Fehler 1

=========snap===========
It seems this is because the redefiinition of snprintf for a mingw32 
compile ,that i saw in one of the header files, did not apply.
(and therefore some other minggw specific defines will not have applied as 
well).  but why?

so i tried again to compile on a native windows system using the following 
versions of mingw and msys: (fresh install)
mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
msys: 1.0.10.rc3


i extracted the commonc++ archive in its own directory below the msys homedir 
und ran ./configure
=======snip configure on win32 using mingw/msys===============

Wolfgang@SATURN ~/commoncpp2-1.0.13
$ ./configure 
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for strerror in -lcposix... no
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for MSC environment... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU ld... 
yes
checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload object 
files... -r
checking for BSD-compatible nm... /mingw/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic ^x86 archive 
import|^x86 DLL
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 8192
checking command to parse /mingw/bin/nm output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -DDLL_EXPORT
checking if gcc PIC flag -DDLL_EXPORT works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) 
supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU ld... 
yes
checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) 
supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT
checking if g++ PIC flag -DDLL_EXPORT works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) 
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -DDLL_EXPORT
checking if g77 PIC flag -DDLL_EXPORT works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) 
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking for ranlib... (cached) ranlib
checking for genorated automake files... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Win32 gnu environment... yes
checking whether system meets Posix.1... no
checking for unistd.h... (cached) yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking for sys/types.h... (cached) yes
checking for sigaction... no
checking for setitimer... no
checking for sigwait... no
checking bsd/signal.h usability... no
checking bsd/signal.h presence... no
checking for bsd/signal.h... no
checking return type of signal handlers... void
checking whether sigwait has 2 arguments... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for snprintf... yes
checking for memmove... yes
checking for strings.h... (cached) yes
checking for getopt... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long in -lgnugetopt... no
checking for getopt_long... yes
checking for dlfcn.h... (cached) no
checking for shl_load in -ldld... no
checking for dlopen in -ldl... no
checking for dlopen in -lc... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking features.h usability... no
checking features.h presence... no
checking for features.h... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
checking sys/atomic.h usability... no
checking sys/atomic.h presence... no
checking for sys/atomic.h... no
checking thread.h usability... no
checking thread.h presence... no
checking for thread.h... no
checking for setenv... no
checking for localtime_r in -lc_r... no
checking for strtok_r in -lc... no
checking for localtime_r in -lc... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking winsock.h usability... yes
checking winsock.h presence... yes
checking for winsock.h... yes
checking for socket in -lsocket... no
checking sys/libcsys.h usability... no
checking sys/libcsys.h presence... no
checking for sys/libcsys.h... no
checking for inet_aton in -lc... no
checking for socklen_t defined... no
checking poll.h usability... no
checking poll.h presence... no
checking for poll.h... no
checking sys/poll.h usability... no
checking sys/poll.h presence... no
checking for sys/poll.h... no
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking for poll... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking for xml2-config... no
checking for xml-config... no
checking for valid libxml2... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/lockf.h usability... no
checking sys/lockf.h presence... no
checking for sys/lockf.h... no
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking posix_evlog.h usability... no
checking posix_evlog.h presence... no
checking for posix_evlog.h... no
checking ss.h usability... no
checking ss.h presence... no
checking for ss.h... no
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ has built-in bool type... yes
checking whether g++ supports -fhandle-exceptions... no
checking whether g++ supports exception handling... yes
checking exception usability... yes
checking exception presence... yes
checking for exception... yes
checking whether g++ supports mutable... yes
checking whether g++ supports namespace... yes
checking wheather old style iostreams... no
checking whether g++ has new(size_t,void*)... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking for debugging... no
checking for profiling... no
configure: creating ./config.status
config.status: creating src/ccgnu2-config
config.status: creating src/Makefile
config.status: creating win32/Makefile
config.status: creating m4/Makefile
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating demo/Makefile
config.status: creating include/Makefile
config.status: creating include/cc++/Makefile
config.status: creating Makefile
config.status: creating template/Makefile
config.status: creating commoncpp2.spec
config.status: creating tests/Makefile
config.status: creating commoncpp2.proto
config.status: creating freebsd/Makefile
config.status: creating freebsd/pkg-plist
config.status: creating pkginfo
config.status: creating win32/CCXX2.rc
config.status: creating include/config.h
config.status: executing depfiles commands

Wolfgang@SATURN ~/commoncpp2-1.0.13


=======snap configure on win32 using mingw/msys===============
i guess that is ok!?



then i tried make:
===========snip make in msys/mingw ================

Wolfgang@SATURN ~/commoncpp2-1.0.13
$ make
Making all in include
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make  all-recursive
make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
Making all in cc++
make[3]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include/cc++'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include/cc++'
make[3]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
Making all in win32
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
Making all in template
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/template'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
Making all in doc
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'

Wolfgang@SATURN ~/commoncpp2-1.0.13

===========snap make in msys/mingw ================

well i was surpised that make returned with "nothing to do ...." so i cd'ed 
int src/ and tried make within the src/ dir since no object files had been 
created before...


===========snip make in src/ dir using msys/mingw ================

Wolfgang@SATURN ~/commoncpp2-1.0.13/src
$ make
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT thread.lo 
-MD -MP -MF ".deps/thread.Tpo" \
  -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
else rm -f ".deps/thread.Tpo"; exit 1; \
fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF .deps/thread.Tpo -c 
thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF .deps/thread.Tpo -c 
thread.cpp -o thread.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo 
-MD -MP -MF ".deps/mutex.Tpo" \
  -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
else rm -f ".deps/mutex.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo -c 
mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo -c 
mutex.cpp -o mutex.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT 
semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
  -c -o semaphore.lo `test -f 'semaphore.cpp' || echo './'`semaphore.cpp; \
then mv -f ".deps/semaphore.Tpo" ".deps/semaphore.Plo"; \
else rm -f ".deps/semaphore.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF .deps/semaphore.Tpo 
-c semaphore.cpp  -DDLL_EXPORT -DPIC -o .libs/semaphore.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF .deps/semaphore.Tpo 
-c semaphore.cpp -o semaphore.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT 
threadkey.lo -MD -MP -MF ".deps/threadkey.Tpo" \
  -c -o threadkey.lo `test -f 'threadkey.cpp' || echo './'`threadkey.cpp; \
then mv -f ".deps/threadkey.Tpo" ".deps/threadkey.Plo"; \
else rm -f ".deps/threadkey.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF .deps/threadkey.Tpo 
-c threadkey.cpp  -DDLL_EXPORT -DPIC -o .libs/threadkey.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF .deps/threadkey.Tpo 
-c threadkey.cpp -o threadkey.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT 
friends.lo -MD -MP -MF ".deps/friends.Tpo" \
  -c -o friends.lo `test -f 'friends.cpp' || echo './'`friends.cpp; \
then mv -f ".deps/friends.Tpo" ".deps/friends.Plo"; \
else rm -f ".deps/friends.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF .deps/friends.Tpo -c 
friends.cpp  -DDLL_EXPORT -DPIC -o .libs/friends.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF .deps/friends.Tpo -c 
friends.cpp -o friends.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT event.lo 
-MD -MP -MF ".deps/event.Tpo" \
  -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
else rm -f ".deps/event.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo -c 
event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo -c 
event.cpp -o event.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT slog.lo 
-MD -MP -MF ".deps/slog.Tpo" \
  -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
else rm -f ".deps/slog.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo -c slog.cpp  
-DDLL_EXPORT -DPIC -o .libs/slog.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo -c slog.cpp 
-o slog.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT dir.lo 
-MD -MP -MF ".deps/dir.Tpo" \
  -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
else rm -f ".deps/dir.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c dir.cpp  
-DDLL_EXPORT -DPIC -o .libs/dir.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c dir.cpp -o 
dir.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT file.lo 
-MD -MP -MF ".deps/file.Tpo" \
  -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
else rm -f ".deps/file.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.cpp  
-DDLL_EXPORT -DPIC -o .libs/file.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.cpp 
-o file.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include    
-I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo 
-MD -MP -MF ".deps/inaddr.Tpo" \
  -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
else rm -f ".deps/inaddr.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I../
win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF .deps/inaddr.Tpo -c 
inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
In file included from inaddr.cpp:43:
../include/cc++/socket.h:762: parse error before `*' token
../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t' with no 
   type
../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
../include/cc++/socket.h:775: parse error before `(' token
../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t' with no 
   type
../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
../include/cc++/socket.h:785: declaration of `int ost::Socket::ssize_t'
../include/cc++/socket.h:775: conflicts with previous declaration `int 
   ost::Socket::ssize_t'
../include/cc++/socket.h:785: parse error before `(' token
../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
make: *** [inaddr.lo] Error 1

===========snap make in src/ dir using msys/mingw ================
that looked first promising, but the  i got some errors in socket.h.


thx in advance to all those having read this!!! 

any comments on why i fail to to build the commonc++ libs/dll's using a 
crosscompile on my linux box or a compile within windows using mingw/msys are 
welcome.

Wolfgang




Am Samstag, 20. Dezember 2003 23:41 schrieb taraben.a@wige-data.de:
> Hi Wolfgang,
>
> I also have problems to configure commoncpp on mingw/msys.
> I have latest mingw/msys.
> Try the makefile in the distro.
> make -f Makefile.gcc
> You need to modify some path settings and you have to shift some files
> from one packet to the other because of dependency. Attached the
> makefile that is working for me. Tell me if this is not working for you.
>
> Best wishes,
>
> Adib.
>




From MAILER-DAEMON Sun Dec 21 13:53:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AY8i3-00080F-Tl
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:53:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AY8i1-000806-AX
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:53:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AY8hV-0007w2-C0
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:53:44 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AY8hU-0007ux-Pd
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:53:12 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBLHpiGH009259
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 18:51:44 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP7PT>; Sun, 21 Dec 2003 18:51:39 +0100
Received: from wige-data.de (c-180-208-95.cvx-l.dial.de.ignite.net
	[62.180.208.95]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJP7PR; Sun, 21 Dec 2003 18:51:29 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FE5DE56.9010108@wige-data.de>
Date: Sun, 21 Dec 2003 18:54:30 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: win32 Serial::isPending, timeout has no effect
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Dec 2003 18:53:45 -0000

Hi,
porting my small linux app to win32. I found that in function
bool Serial::isPending(Pending pending, timeout_t timeout)
the parameter timeout has no effect but on nonWin32.

Best wishes,

Adib.



From MAILER-DAEMON Sun Dec 21 13:57:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AY8lb-0000oq-38
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:57:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AY8lZ-0000oc-31
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:57:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AY8l2-0000dL-4R
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:57:24 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AY8l1-0000dB-JA
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 13:56:51 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBLHtOGH009293
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 18:55:24 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP7PX>; Sun, 21 Dec 2003 18:55:18 +0100
Received: from wige-data.de (c-180-208-95.cvx-l.dial.de.ignite.net
	[62.180.208.95]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJP7PW; Sun, 21 Dec 2003 18:55:08 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FE5DF31.7030902@wige-data.de>
Date: Sun, 21 Dec 2003 18:58:09 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Dec 2003 18:57:25 -0000

Hi Wolfgang,

ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
#include <stdio.h>
directly after the
#ifndef CCXX_CONFIG_H_
#define CCXX_CONFIG_H_
statements.

HTH,

Adib.

Wolfgang wrote:
> Hello,
> 
> i still have problems to build commonc++ for the win32 platform. 
> 
> pls let me appologize in advance, if i did not follow the etiquette of this 
> mailinglist by attaching so much compiler output. the reason is simply that i 
> hope that someone can fingerpoint to what i am doing wrong.
> 
> for my last attempt to crosscompile  i used the makefile that Adib provided in 
> the recent mail (Thank your for that!) and changed only the reference to 
> minggw.
> here the output of my attempt to compile for win32 on my linux box (debiin 
> unstable):
> 
> =======snip====
> /common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
> In file included from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> i586-mingw32msvc/bits/c++io.h:35,
>                  from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> bits/fpos.h:44,
>                  from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> bits/char_traits.h:46,
>                  from /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> string:47,
>                  from ../include/cc++/strchar.h:49,
>                  from ../include/cc++/exception.h:54,
>                  from ../include/cc++/thread.h:58,
>                  from ../src/thread.cpp:43:
> /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
>    snprintf' not declared
> /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
>    snprintf' not declared
> make: *** [../win32/thread.o] Fehler 1
...



From MAILER-DAEMON Sun Dec 21 15:46:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYATY-000533-7M
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:46:56 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYATV-00052v-3h
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:46:53 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYASy-0004zF-5h
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:46:52 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYASx-0004zC-8u
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:46:19 -0500
Received: from sonne.kosmos.all (213-182-116-85.teleos-web.de [213.182.116.85])
	by sally.dts-online.net (Postfix) with ESMTP id B33882933CB
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 20:44:50 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id A63707B32E
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 20:40:04 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Sun, 21 Dec 2003 20:40:03 +0100
User-Agent: KMail/1.5.4
References: <200312202129.01958.wolfgang@alper-online.com>
	<200312211649.16045.wolfgang@alper-online.com>
	<3FE5DD53.9010600@wige-data.de>
In-Reply-To: <3FE5DD53.9010600@wige-data.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312212040.03495.wolfgang@alper-online.com>
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Dec 2003 20:46:53 -0000


Hello Adib,

i added   #include <stdio.h>  to win32/config.h and got a bit further. (see 
attached log). however there are still some probs left.

again, any hints and ideas are welcome ;-)

thx 

Wolfgang


=======snip crosscompile on debian with modified config.h =========

wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/mutex.o ../src/mutex.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/semaphore.o ../src/semaphore.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/threadkey.o ../src/threadkey.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/friends.o ../src/friends.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/event.o ../src/event.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/slog.o ../src/slog.cpp
../src/slog.cpp: In constructor `ost::Slog::Slog()':
../src/slog.cpp:70: error: no matching function for call to `
   std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
   <anonymous>**)'
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/iosfwd:64: error: 
candidates
   are: std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
   std::basic_ostream<char, std::char_traits<char> >&)
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ostream:106: error:
           std::basic_ostream<_CharT,
   _Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with 
_CharT
   = char, _Traits = std::char_traits<char>]
make: *** [../win32/slog.o] Fehler 1
wolfgang@sonne:~/common-c++/common

=======snap crosscompile on debian with modified config.h =========





Am Sonntag, 21. Dezember 2003 18:50 schrieb taraben.a@wige-data.de:
> Hi Wolfgang,
>
> ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
> #include <stdio.h>
> directly after the
> #ifndef CCXX_CONFIG_H_
> #define CCXX_CONFIG_H_
> statements.
>
> HTH,
>
> Adib.
>
> Wolfgang wrote:
> > Hello,
> >
> > i still have problems to build commonc++ for the win32 platform.
> >
> > pls let me appologize in advance, if i did not follow the etiquette of
> > this mailinglist by attaching so much compiler output. the reason is
> > simply that i hope that someone can fingerpoint to what i am doing wrong.
> >
> > for my last attempt to crosscompile  i used the makefile that Adib
> > provided in the recent mail (Thank your for that!) and changed only the
> > reference to minggw.
> > here the output of my attempt to compile for win32 on my linux box
> > (debiin unstable):
> >
> > =======snip====
> > /common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
> > In file included from
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> > i586-mingw32msvc/bits/c++io.h:35,
> >                  from
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ bits/fpos.h:44,
> >                  from
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> > bits/char_traits.h:46,
> >                  from
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ string:47,
> >                  from ../include/cc++/strchar.h:49,
> >                  from ../include/cc++/exception.h:54,
> >                  from ../include/cc++/thread.h:58,
> >                  from ../src/thread.cpp:43:
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
> >    snprintf' not declared
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
> >    snprintf' not declared
> > make: *** [../win32/thread.o] Fehler 1
> >
> > =========snap===========
> > It seems this is because the redefiinition of snprintf for a mingw32
> > compile ,that i saw in one of the header files, did not apply.
> > (and therefore some other minggw specific defines will not have applied
> > as well).  but why?
> >
> > so i tried again to compile on a native windows system using the
> > following versions of mingw and msys: (fresh install)
> > mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
> > msys: 1.0.10.rc3
> >
> >
> > i extracted the commonc++ archive in its own directory below the msys
> > homedir und ran ./configure
> > =======snip configure on win32 using mingw/msys===============
> >
> > Wolfgang@SATURN ~/commoncpp2-1.0.13
> > $ ./configure
> > checking build system type... i686-pc-mingw32
> > checking host system type... i686-pc-mingw32
> > checking target system type... i686-pc-mingw32
> > checking for gcc... gcc
> > checking for C compiler default output... a.exe
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables... .exe
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ANSI C... none needed
> > checking for egrep... grep -E
> > checking for ANSI C header files... no
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking for gcc... (cached) gcc
> > checking whether we are using the GNU C compiler... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking for gcc option to accept ANSI C... (cached) none needed
> > checking how to run the C preprocessor... gcc -E
> > checking for strerror in -lcposix... no
> > checking minix/config.h usability... no
> > checking minix/config.h presence... no
> > checking for minix/config.h... no
> > checking for MSC environment... no
> > checking for a sed that does not truncate output... /bin/sed
> > checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
> > checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
> > ld... yes
> > checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload
> > object files... -r
> > checking for BSD-compatible nm... /mingw/bin/nm
> > checking whether ln -s works... yes
> > checking how to recognise dependent libraries... file_magic ^x86 archive
> > import|^x86 DLL
> > checking dlfcn.h usability... no
> > checking dlfcn.h presence... no
> > checking for dlfcn.h... no
> > checking for g++... g++
> > checking whether we are using the GNU C++ compiler... yes
> > checking whether g++ accepts -g... yes
> > checking how to run the C++ preprocessor... g++ -E
> > checking for g77... g77
> > checking whether we are using the GNU Fortran 77 compiler... yes
> > checking whether g77 accepts -g... yes
> > checking the maximum length of command line arguments... 8192
> > checking command to parse /mingw/bin/nm output from gcc object... ok
> > checking for objdir... .libs
> > checking for ar... ar
> > checking for ranlib... ranlib
> > checking for strip... strip
> > checking if gcc static flag  works... yes
> > checking if gcc supports -fno-rtti -fno-exceptions... yes
> > checking for gcc option to produce PIC... -DDLL_EXPORT
> > checking if gcc PIC flag -DDLL_EXPORT works... yes
> > checking if gcc supports -c -o file.o... yes
> > checking whether the gcc linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> > supports shared libraries... yes
> > checking whether -lc should be explicitly linked in... yes
> > checking how to hardcode library paths into programs... immediate
> > checking whether stripping libraries is possible... yes
> > checking dynamic linker characteristics... Win32 ld.exe
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... yes
> > configure: creating libtool
> > appending configuration tag "CXX" to libtool
> > checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
> > checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
> > ld... yes
> > checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> > supports shared libraries... yes
> > checking for g++ option to produce PIC... -DDLL_EXPORT
> > checking if g++ PIC flag -DDLL_EXPORT works... yes
> > checking if g++ supports -c -o file.o... yes
> > checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> > supports shared libraries... yes
> > checking how to hardcode library paths into programs... immediate
> > checking whether stripping libraries is possible... yes
> > checking dynamic linker characteristics... Win32 ld.exe
> > appending configuration tag "F77" to libtool
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... yes
> > checking for g77 option to produce PIC... -DDLL_EXPORT
> > checking if g77 PIC flag -DDLL_EXPORT works... yes
> > checking if g77 supports -c -o file.o... yes
> > checking whether the g77 linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> > supports shared libraries... yes
> > checking how to hardcode library paths into programs... immediate
> > checking whether stripping libraries is possible... yes
> > checking dynamic linker characteristics... Win32 ld.exe
> > checking for a BSD-compatible install... /bin/install -c
> > checking whether build environment is sane... yes
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking for style of include used by make... GNU
> > checking dependency style of gcc... gcc3
> > checking dependency style of g++... gcc3
> > checking for ranlib... (cached) ranlib
> > checking for genorated automake files... found
> > checking whether to enable maintainer-specific portions of Makefiles...
> > no checking for Win32 gnu environment... yes
> > checking whether system meets Posix.1... no
> > checking for unistd.h... (cached) yes
> > checking endian.h usability... no
> > checking endian.h presence... no
> > checking for endian.h... no
> > checking fcntl.h usability... yes
> > checking fcntl.h presence... yes
> > checking for fcntl.h... yes
> > checking sys/fcntl.h usability... yes
> > checking sys/fcntl.h presence... yes
> > checking for sys/fcntl.h... yes
> > checking for sys/types.h... (cached) yes
> > checking for sigaction... no
> > checking for setitimer... no
> > checking for sigwait... no
> > checking bsd/signal.h usability... no
> > checking bsd/signal.h presence... no
> > checking for bsd/signal.h... no
> > checking return type of signal handlers... void
> > checking whether sigwait has 2 arguments... yes
> > checking for strcasecmp... yes
> > checking for strdup... yes
> > checking for snprintf... yes
> > checking for memmove... yes
> > checking for strings.h... (cached) yes
> > checking for getopt... yes
> > checking getopt.h usability... yes
> > checking getopt.h presence... yes
> > checking for getopt.h... yes
> > checking for getopt_long in -lgnugetopt... no
> > checking for getopt_long... yes
> > checking for dlfcn.h... (cached) no
> > checking for shl_load in -ldld... no
> > checking for dlopen in -ldl... no
> > checking for dlopen in -lc... no
> > checking mach-o/dyld.h usability... no
> > checking mach-o/dyld.h presence... no
> > checking for mach-o/dyld.h... no
> > checking whether time.h and sys/time.h may both be included... yes
> > checking sys/time.h usability... yes
> > checking sys/time.h presence... yes
> > checking for sys/time.h... yes
> > checking features.h usability... no
> > checking features.h presence... no
> > checking for features.h... no
> > checking pthread.h usability... no
> > checking pthread.h presence... no
> > checking for pthread.h... no
> > checking sys/atomic.h usability... no
> > checking sys/atomic.h presence... no
> > checking for sys/atomic.h... no
> > checking thread.h usability... no
> > checking thread.h presence... no
> > checking for thread.h... no
> > checking for setenv... no
> > checking for localtime_r in -lc_r... no
> > checking for strtok_r in -lc... no
> > checking for localtime_r in -lc... no
> > checking sys/socket.h usability... no
> > checking sys/socket.h presence... no
> > checking for sys/socket.h... no
> > checking winsock.h usability... yes
> > checking winsock.h presence... yes
> > checking for winsock.h... yes
> > checking for socket in -lsocket... no
> > checking sys/libcsys.h usability... no
> > checking sys/libcsys.h presence... no
> > checking for sys/libcsys.h... no
> > checking for inet_aton in -lc... no
> > checking for socklen_t defined... no
> > checking poll.h usability... no
> > checking poll.h presence... no
> > checking for poll.h... no
> > checking sys/poll.h usability... no
> > checking sys/poll.h presence... no
> > checking for sys/poll.h... no
> > checking sys/stream.h usability... no
> > checking sys/stream.h presence... no
> > checking for sys/stream.h... no
> > checking for poll... no
> > checking zlib.h usability... no
> > checking zlib.h presence... no
> > checking for zlib.h... no
> > checking for xml2-config... no
> > checking for xml-config... no
> > checking for valid libxml2... no
> > checking sys/file.h usability... yes
> > checking sys/file.h presence... yes
> > checking for sys/file.h... yes
> > checking sys/lockf.h usability... no
> > checking sys/lockf.h presence... no
> > checking for sys/lockf.h... no
> > checking syslog.h usability... no
> > checking syslog.h presence... no
> > checking for syslog.h... no
> > checking posix_evlog.h usability... no
> > checking posix_evlog.h presence... no
> > checking for posix_evlog.h... no
> > checking ss.h usability... no
> > checking ss.h presence... no
> > checking for ss.h... no
> > checking how to run the C preprocessor... gcc -E
> > checking whether we are using the GNU C++ compiler... (cached) yes
> > checking whether g++ accepts -g... (cached) yes
> > checking how to run the C++ preprocessor... g++ -E
> > checking whether g++ has built-in bool type... yes
> > checking whether g++ supports -fhandle-exceptions... no
> > checking whether g++ supports exception handling... yes
> > checking exception usability... yes
> > checking exception presence... yes
> > checking for exception... yes
> > checking whether g++ supports mutable... yes
> > checking whether g++ supports namespace... yes
> > checking wheather old style iostreams... no
> > checking whether g++ has new(size_t,void*)... yes
> > checking sstream usability... yes
> > checking sstream presence... yes
> > checking for sstream... yes
> > checking for debugging... no
> > checking for profiling... no
> > configure: creating ./config.status
> > config.status: creating src/ccgnu2-config
> > config.status: creating src/Makefile
> > config.status: creating win32/Makefile
> > config.status: creating m4/Makefile
> > config.status: creating config/Makefile
> > config.status: creating doc/Makefile
> > config.status: creating demo/Makefile
> > config.status: creating include/Makefile
> > config.status: creating include/cc++/Makefile
> > config.status: creating Makefile
> > config.status: creating template/Makefile
> > config.status: creating commoncpp2.spec
> > config.status: creating tests/Makefile
> > config.status: creating commoncpp2.proto
> > config.status: creating freebsd/Makefile
> > config.status: creating freebsd/pkg-plist
> > config.status: creating pkginfo
> > config.status: creating win32/CCXX2.rc
> > config.status: creating include/config.h
> > config.status: executing depfiles commands
> >
> > Wolfgang@SATURN ~/commoncpp2-1.0.13
> >
> >
> > =======snap configure on win32 using mingw/msys===============
> > i guess that is ok!?
> >
> >
> >
> > then i tried make:
> > ===========snip make in msys/mingw ================
> >
> > Wolfgang@SATURN ~/commoncpp2-1.0.13
> > $ make
> > Making all in include
> > make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> > make  all-recursive
> > make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> > Making all in cc++
> > make[3]: Entering directory
> > `/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Nothing to be
> > done for `all'.
> > make[3]: Leaving directory
> > `/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Entering
> > directory `/home/Wolfgang/commoncpp2-1.0.13/include' make[3]: Nothing to
> > be done for `all-am'.
> > make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> > make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> > make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> > Making all in win32
> > make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
> > Making all in template
> > make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/template'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
> > Making all in doc
> > make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
> > make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
> > make[1]: Nothing to be done for `all-am'.
> > make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'
> >
> > Wolfgang@SATURN ~/commoncpp2-1.0.13
> >
> > ===========snap make in msys/mingw ================
> >
> > well i was surpised that make returned with "nothing to do ...." so i
> > cd'ed int src/ and tried make within the src/ dir since no object files
> > had been created before...
> >
> >
> > ===========snip make in src/ dir using msys/mingw ================
> >
> > Wolfgang@SATURN ~/commoncpp2-1.0.13/src
> > $ make
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
> >   -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
> > then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
> > else rm -f ".deps/thread.Tpo"; exit 1; \
> > fi
> > mkdir .libs
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
> > .deps/thread.Tpo -c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
> > .deps/thread.Tpo -c thread.cpp -o thread.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF ".deps/mutex.Tpo" \
> >   -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
> > then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
> > else rm -f ".deps/mutex.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo
> > -c mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo
> > -c mutex.cpp -o mutex.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
> >   -c -o semaphore.lo `test -f 'semaphore.cpp' || echo './'`semaphore.cpp;
> > \ then mv -f ".deps/semaphore.Tpo" ".deps/semaphore.Plo"; \
> > else rm -f ".deps/semaphore.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
> > .deps/semaphore.Tpo -c semaphore.cpp  -DDLL_EXPORT -DPIC -o
> > .libs/semaphore.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
> > .deps/semaphore.Tpo -c semaphore.cpp -o semaphore.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF ".deps/threadkey.Tpo" \
> >   -c -o threadkey.lo `test -f 'threadkey.cpp' || echo './'`threadkey.cpp;
> > \ then mv -f ".deps/threadkey.Tpo" ".deps/threadkey.Plo"; \
> > else rm -f ".deps/threadkey.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
> > .deps/threadkey.Tpo -c threadkey.cpp  -DDLL_EXPORT -DPIC -o
> > .libs/threadkey.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
> > .deps/threadkey.Tpo -c threadkey.cpp -o threadkey.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT friends.lo -MD -MP -MF ".deps/friends.Tpo" \
> >   -c -o friends.lo `test -f 'friends.cpp' || echo './'`friends.cpp; \
> > then mv -f ".deps/friends.Tpo" ".deps/friends.Plo"; \
> > else rm -f ".deps/friends.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
> > .deps/friends.Tpo -c friends.cpp  -DDLL_EXPORT -DPIC -o .libs/friends.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
> > .deps/friends.Tpo -c friends.cpp -o friends.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT event.lo -MD -MP -MF ".deps/event.Tpo" \
> >   -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
> > then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
> > else rm -f ".deps/event.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo
> > -c event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo
> > -c event.cpp -o event.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT slog.lo -MD -MP -MF ".deps/slog.Tpo" \
> >   -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
> > then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
> > else rm -f ".deps/slog.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
> > -c slog.cpp -DDLL_EXPORT -DPIC -o .libs/slog.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
> > -c slog.cpp -o slog.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT dir.lo -MD -MP -MF ".deps/dir.Tpo" \
> >   -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
> > then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
> > else rm -f ".deps/dir.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
> > dir.cpp -DDLL_EXPORT -DPIC -o .libs/dir.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
> > dir.cpp -o dir.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT file.lo -MD -MP -MF ".deps/file.Tpo" \
> >   -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
> > then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
> > else rm -f ".deps/file.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
> > -c file.cpp -DDLL_EXPORT -DPIC -o .libs/file.o
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
> > -c file.cpp -o file.o >/dev/null 2>&1
> > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> > -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF ".deps/inaddr.Tpo" \
> >   -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
> > then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
> > else rm -f ".deps/inaddr.Tpo"; exit 1; \
> > fi
> >  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > -I../ win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF
> > .deps/inaddr.Tpo -c inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
> > In file included from inaddr.cpp:43:
> > ../include/cc++/socket.h:762: parse error before `*' token
> > ../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t'
> > with no type
> > ../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
> > ../include/cc++/socket.h:775: parse error before `(' token
> > ../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t'
> > with no type
> > ../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
> > ../include/cc++/socket.h:785: declaration of `int ost::Socket::ssize_t'
> > ../include/cc++/socket.h:775: conflicts with previous declaration `int
> >    ost::Socket::ssize_t'
> > ../include/cc++/socket.h:785: parse error before `(' token
> > ../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
> > make: *** [inaddr.lo] Error 1
> >
> > ===========snap make in src/ dir using msys/mingw ================
> > that looked first promising, but the  i got some errors in socket.h.
> >
> >
> > thx in advance to all those having read this!!!
> >
> > any comments on why i fail to to build the commonc++ libs/dll's using a
> > crosscompile on my linux box or a compile within windows using mingw/msys
> > are welcome.
> >
> > Wolfgang
> >
> > Am Samstag, 20. Dezember 2003 23:41 schrieb taraben.a@wige-data.de:
> >>Hi Wolfgang,
> >>
> >>I also have problems to configure commoncpp on mingw/msys.
> >>I have latest mingw/msys.
> >>Try the makefile in the distro.
> >>make -f Makefile.gcc
> >>You need to modify some path settings and you have to shift some files
> >>from one packet to the other because of dependency. Attached the
> >>makefile that is working for me. Tell me if this is not working for you.
> >>
> >>Best wishes,
> >>
> >>Adib.
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sun Dec 21 15:57:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYAdi-0007hH-LV
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:57:26 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYAdg-0007hA-2E
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:57:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYAd9-0007el-QE
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:57:23 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYAd8-0007eJ-Qw
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 15:56:51 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBLJtIGH010450;
	Sun, 21 Dec 2003 20:55:18 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP7Q6>; Sun, 21 Dec 2003 20:55:13 +0100
Received: from wige-data.de (c-180-169-115.l.dial.de.ignite.net
	[62.180.169.115]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJP7Q5; Sun, 21 Dec 2003 20:55:02 +0100
From: taraben.a@wige-data.de
To: wolfgang@alper-online.com
Message-ID: <3FE5FB4B.2060000@wige-data.de>
Date: Sun, 21 Dec 2003 20:58:03 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <200312202129.01958.wolfgang@alper-online.com>	<200312211649.16045.wolfgang@alper-online.com>	<3FE5DD53.9010600@wige-data.de>
	<200312212040.03495.wolfgang@alper-online.com>
In-Reply-To: <200312212040.03495.wolfgang@alper-online.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: bug-commoncpp@gnu.org
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Dec 2003 20:57:25 -0000

Wolgang,

sorry, forgot to tell you that I made an other change
undefine the HAVE_OLD_IOSTREAM in win32/c++/config.h

//#define	HAVE_OLD_IOSTREAM

I swear that was the last change until success ;-) (hope you have libxml 
in place?)

Adib.


Wolfgang wrote:

> Hello Adib,
> 
> i added   #include <stdio.h>  to win32/config.h and got a bit further. (see 
> attached log). however there are still some probs left.
> 
> again, any hints and ideas are welcome ;-)
> 
> thx 
> 
> Wolfgang
> 
> 
> =======snip crosscompile on debian with modified config.h =========
> 
> wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/mutex.o ../src/mutex.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/semaphore.o ../src/semaphore.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/threadkey.o ../src/threadkey.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/friends.o ../src/friends.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/event.o ../src/event.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/slog.o ../src/slog.cpp
> ../src/slog.cpp: In constructor `ost::Slog::Slog()':
> ../src/slog.cpp:70: error: no matching function for call to `
>    std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
>    <anonymous>**)'
> /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/iosfwd:64: error: 
> candidates
>    are: std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
>    std::basic_ostream<char, std::char_traits<char> >&)
> /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ostream:106: error:
>            std::basic_ostream<_CharT,
>    _Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with 
> _CharT
>    = char, _Traits = std::char_traits<char>]
> make: *** [../win32/slog.o] Fehler 1
> wolfgang@sonne:~/common-c++/common
> 
> =======snap crosscompile on debian with modified config.h =========
> 
> 
> 
> 
> 
> Am Sonntag, 21. Dezember 2003 18:50 schrieb taraben.a@wige-data.de:
> 
>>Hi Wolfgang,
>>
>>ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
>>#include <stdio.h>
>>directly after the
>>#ifndef CCXX_CONFIG_H_
>>#define CCXX_CONFIG_H_
>>statements.
>>
>>HTH,
>>
>>Adib.
>>
>>Wolfgang wrote:
>>
>>>Hello,
>>>
>>>i still have problems to build commonc++ for the win32 platform.
>>>
>>>pls let me appologize in advance, if i did not follow the etiquette of
>>>this mailinglist by attaching so much compiler output. the reason is
>>>simply that i hope that someone can fingerpoint to what i am doing wrong.
>>>
>>>for my last attempt to crosscompile  i used the makefile that Adib
>>>provided in the recent mail (Thank your for that!) and changed only the
>>>reference to minggw.
>>>here the output of my attempt to compile for win32 on my linux box
>>>(debiin unstable):
>>>
>>>=======snip====
>>>/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
>>>In file included from
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
>>>i586-mingw32msvc/bits/c++io.h:35,
>>>                 from
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ bits/fpos.h:44,
>>>                 from
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
>>>bits/char_traits.h:46,
>>>                 from
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ string:47,
>>>                 from ../include/cc++/strchar.h:49,
>>>                 from ../include/cc++/exception.h:54,
>>>                 from ../include/cc++/thread.h:58,
>>>                 from ../src/thread.cpp:43:
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
>>>   snprintf' not declared
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
>>>   snprintf' not declared
>>>make: *** [../win32/thread.o] Fehler 1
>>>
>>>=========snap===========
>>>It seems this is because the redefiinition of snprintf for a mingw32
>>>compile ,that i saw in one of the header files, did not apply.
>>>(and therefore some other minggw specific defines will not have applied
>>>as well).  but why?
>>>
>>>so i tried again to compile on a native windows system using the
>>>following versions of mingw and msys: (fresh install)
>>>mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
>>>msys: 1.0.10.rc3
>>>
>>>
>>>i extracted the commonc++ archive in its own directory below the msys
>>>homedir und ran ./configure
>>>=======snip configure on win32 using mingw/msys===============
>>>
>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>$ ./configure
>>>checking build system type... i686-pc-mingw32
>>>checking host system type... i686-pc-mingw32
>>>checking target system type... i686-pc-mingw32
>>>checking for gcc... gcc
>>>checking for C compiler default output... a.exe
>>>checking whether the C compiler works... yes
>>>checking whether we are cross compiling... no
>>>checking for suffix of executables... .exe
>>>checking for suffix of object files... o
>>>checking whether we are using the GNU C compiler... yes
>>>checking whether gcc accepts -g... yes
>>>checking for gcc option to accept ANSI C... none needed
>>>checking for egrep... grep -E
>>>checking for ANSI C header files... no
>>>checking for sys/types.h... yes
>>>checking for sys/stat.h... yes
>>>checking for stdlib.h... yes
>>>checking for string.h... yes
>>>checking for memory.h... yes
>>>checking for strings.h... yes
>>>checking for inttypes.h... yes
>>>checking for stdint.h... yes
>>>checking for unistd.h... yes
>>>checking for gcc... (cached) gcc
>>>checking whether we are using the GNU C compiler... (cached) yes
>>>checking whether gcc accepts -g... (cached) yes
>>>checking for gcc option to accept ANSI C... (cached) none needed
>>>checking how to run the C preprocessor... gcc -E
>>>checking for strerror in -lcposix... no
>>>checking minix/config.h usability... no
>>>checking minix/config.h presence... no
>>>checking for minix/config.h... no
>>>checking for MSC environment... no
>>>checking for a sed that does not truncate output... /bin/sed
>>>checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
>>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
>>>ld... yes
>>>checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload
>>>object files... -r
>>>checking for BSD-compatible nm... /mingw/bin/nm
>>>checking whether ln -s works... yes
>>>checking how to recognise dependent libraries... file_magic ^x86 archive
>>>import|^x86 DLL
>>>checking dlfcn.h usability... no
>>>checking dlfcn.h presence... no
>>>checking for dlfcn.h... no
>>>checking for g++... g++
>>>checking whether we are using the GNU C++ compiler... yes
>>>checking whether g++ accepts -g... yes
>>>checking how to run the C++ preprocessor... g++ -E
>>>checking for g77... g77
>>>checking whether we are using the GNU Fortran 77 compiler... yes
>>>checking whether g77 accepts -g... yes
>>>checking the maximum length of command line arguments... 8192
>>>checking command to parse /mingw/bin/nm output from gcc object... ok
>>>checking for objdir... .libs
>>>checking for ar... ar
>>>checking for ranlib... ranlib
>>>checking for strip... strip
>>>checking if gcc static flag  works... yes
>>>checking if gcc supports -fno-rtti -fno-exceptions... yes
>>>checking for gcc option to produce PIC... -DDLL_EXPORT
>>>checking if gcc PIC flag -DDLL_EXPORT works... yes
>>>checking if gcc supports -c -o file.o... yes
>>>checking whether the gcc linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>supports shared libraries... yes
>>>checking whether -lc should be explicitly linked in... yes
>>>checking how to hardcode library paths into programs... immediate
>>>checking whether stripping libraries is possible... yes
>>>checking dynamic linker characteristics... Win32 ld.exe
>>>checking if libtool supports shared libraries... yes
>>>checking whether to build shared libraries... yes
>>>checking whether to build static libraries... yes
>>>configure: creating libtool
>>>appending configuration tag "CXX" to libtool
>>>checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
>>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
>>>ld... yes
>>>checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>supports shared libraries... yes
>>>checking for g++ option to produce PIC... -DDLL_EXPORT
>>>checking if g++ PIC flag -DDLL_EXPORT works... yes
>>>checking if g++ supports -c -o file.o... yes
>>>checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>supports shared libraries... yes
>>>checking how to hardcode library paths into programs... immediate
>>>checking whether stripping libraries is possible... yes
>>>checking dynamic linker characteristics... Win32 ld.exe
>>>appending configuration tag "F77" to libtool
>>>checking if libtool supports shared libraries... yes
>>>checking whether to build shared libraries... yes
>>>checking whether to build static libraries... yes
>>>checking for g77 option to produce PIC... -DDLL_EXPORT
>>>checking if g77 PIC flag -DDLL_EXPORT works... yes
>>>checking if g77 supports -c -o file.o... yes
>>>checking whether the g77 linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>supports shared libraries... yes
>>>checking how to hardcode library paths into programs... immediate
>>>checking whether stripping libraries is possible... yes
>>>checking dynamic linker characteristics... Win32 ld.exe
>>>checking for a BSD-compatible install... /bin/install -c
>>>checking whether build environment is sane... yes
>>>checking for gawk... gawk
>>>checking whether make sets $(MAKE)... yes
>>>checking for style of include used by make... GNU
>>>checking dependency style of gcc... gcc3
>>>checking dependency style of g++... gcc3
>>>checking for ranlib... (cached) ranlib
>>>checking for genorated automake files... found
>>>checking whether to enable maintainer-specific portions of Makefiles...
>>>no checking for Win32 gnu environment... yes
>>>checking whether system meets Posix.1... no
>>>checking for unistd.h... (cached) yes
>>>checking endian.h usability... no
>>>checking endian.h presence... no
>>>checking for endian.h... no
>>>checking fcntl.h usability... yes
>>>checking fcntl.h presence... yes
>>>checking for fcntl.h... yes
>>>checking sys/fcntl.h usability... yes
>>>checking sys/fcntl.h presence... yes
>>>checking for sys/fcntl.h... yes
>>>checking for sys/types.h... (cached) yes
>>>checking for sigaction... no
>>>checking for setitimer... no
>>>checking for sigwait... no
>>>checking bsd/signal.h usability... no
>>>checking bsd/signal.h presence... no
>>>checking for bsd/signal.h... no
>>>checking return type of signal handlers... void
>>>checking whether sigwait has 2 arguments... yes
>>>checking for strcasecmp... yes
>>>checking for strdup... yes
>>>checking for snprintf... yes
>>>checking for memmove... yes
>>>checking for strings.h... (cached) yes
>>>checking for getopt... yes
>>>checking getopt.h usability... yes
>>>checking getopt.h presence... yes
>>>checking for getopt.h... yes
>>>checking for getopt_long in -lgnugetopt... no
>>>checking for getopt_long... yes
>>>checking for dlfcn.h... (cached) no
>>>checking for shl_load in -ldld... no
>>>checking for dlopen in -ldl... no
>>>checking for dlopen in -lc... no
>>>checking mach-o/dyld.h usability... no
>>>checking mach-o/dyld.h presence... no
>>>checking for mach-o/dyld.h... no
>>>checking whether time.h and sys/time.h may both be included... yes
>>>checking sys/time.h usability... yes
>>>checking sys/time.h presence... yes
>>>checking for sys/time.h... yes
>>>checking features.h usability... no
>>>checking features.h presence... no
>>>checking for features.h... no
>>>checking pthread.h usability... no
>>>checking pthread.h presence... no
>>>checking for pthread.h... no
>>>checking sys/atomic.h usability... no
>>>checking sys/atomic.h presence... no
>>>checking for sys/atomic.h... no
>>>checking thread.h usability... no
>>>checking thread.h presence... no
>>>checking for thread.h... no
>>>checking for setenv... no
>>>checking for localtime_r in -lc_r... no
>>>checking for strtok_r in -lc... no
>>>checking for localtime_r in -lc... no
>>>checking sys/socket.h usability... no
>>>checking sys/socket.h presence... no
>>>checking for sys/socket.h... no
>>>checking winsock.h usability... yes
>>>checking winsock.h presence... yes
>>>checking for winsock.h... yes
>>>checking for socket in -lsocket... no
>>>checking sys/libcsys.h usability... no
>>>checking sys/libcsys.h presence... no
>>>checking for sys/libcsys.h... no
>>>checking for inet_aton in -lc... no
>>>checking for socklen_t defined... no
>>>checking poll.h usability... no
>>>checking poll.h presence... no
>>>checking for poll.h... no
>>>checking sys/poll.h usability... no
>>>checking sys/poll.h presence... no
>>>checking for sys/poll.h... no
>>>checking sys/stream.h usability... no
>>>checking sys/stream.h presence... no
>>>checking for sys/stream.h... no
>>>checking for poll... no
>>>checking zlib.h usability... no
>>>checking zlib.h presence... no
>>>checking for zlib.h... no
>>>checking for xml2-config... no
>>>checking for xml-config... no
>>>checking for valid libxml2... no
>>>checking sys/file.h usability... yes
>>>checking sys/file.h presence... yes
>>>checking for sys/file.h... yes
>>>checking sys/lockf.h usability... no
>>>checking sys/lockf.h presence... no
>>>checking for sys/lockf.h... no
>>>checking syslog.h usability... no
>>>checking syslog.h presence... no
>>>checking for syslog.h... no
>>>checking posix_evlog.h usability... no
>>>checking posix_evlog.h presence... no
>>>checking for posix_evlog.h... no
>>>checking ss.h usability... no
>>>checking ss.h presence... no
>>>checking for ss.h... no
>>>checking how to run the C preprocessor... gcc -E
>>>checking whether we are using the GNU C++ compiler... (cached) yes
>>>checking whether g++ accepts -g... (cached) yes
>>>checking how to run the C++ preprocessor... g++ -E
>>>checking whether g++ has built-in bool type... yes
>>>checking whether g++ supports -fhandle-exceptions... no
>>>checking whether g++ supports exception handling... yes
>>>checking exception usability... yes
>>>checking exception presence... yes
>>>checking for exception... yes
>>>checking whether g++ supports mutable... yes
>>>checking whether g++ supports namespace... yes
>>>checking wheather old style iostreams... no
>>>checking whether g++ has new(size_t,void*)... yes
>>>checking sstream usability... yes
>>>checking sstream presence... yes
>>>checking for sstream... yes
>>>checking for debugging... no
>>>checking for profiling... no
>>>configure: creating ./config.status
>>>config.status: creating src/ccgnu2-config
>>>config.status: creating src/Makefile
>>>config.status: creating win32/Makefile
>>>config.status: creating m4/Makefile
>>>config.status: creating config/Makefile
>>>config.status: creating doc/Makefile
>>>config.status: creating demo/Makefile
>>>config.status: creating include/Makefile
>>>config.status: creating include/cc++/Makefile
>>>config.status: creating Makefile
>>>config.status: creating template/Makefile
>>>config.status: creating commoncpp2.spec
>>>config.status: creating tests/Makefile
>>>config.status: creating commoncpp2.proto
>>>config.status: creating freebsd/Makefile
>>>config.status: creating freebsd/pkg-plist
>>>config.status: creating pkginfo
>>>config.status: creating win32/CCXX2.rc
>>>config.status: creating include/config.h
>>>config.status: executing depfiles commands
>>>
>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>
>>>
>>>=======snap configure on win32 using mingw/msys===============
>>>i guess that is ok!?
>>>
>>>
>>>
>>>then i tried make:
>>>===========snip make in msys/mingw ================
>>>
>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>$ make
>>>Making all in include
>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>make  all-recursive
>>>make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>Making all in cc++
>>>make[3]: Entering directory
>>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Nothing to be
>>>done for `all'.
>>>make[3]: Leaving directory
>>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Entering
>>>directory `/home/Wolfgang/commoncpp2-1.0.13/include' make[3]: Nothing to
>>>be done for `all-am'.
>>>make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>Making all in win32
>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
>>>make[1]: Nothing to be done for `all'.
>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
>>>Making all in template
>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/template'
>>>make[1]: Nothing to be done for `all'.
>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
>>>Making all in doc
>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
>>>make[1]: Nothing to be done for `all'.
>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
>>>make[1]: Nothing to be done for `all-am'.
>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'
>>>
>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>
>>>===========snap make in msys/mingw ================
>>>
>>>well i was surpised that make returned with "nothing to do ...." so i
>>>cd'ed int src/ and tried make within the src/ dir since no object files
>>>had been created before...
>>>
>>>
>>>===========snip make in src/ dir using msys/mingw ================
>>>
>>>Wolfgang@SATURN ~/commoncpp2-1.0.13/src
>>>$ make
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
>>>  -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
>>>then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
>>>else rm -f ".deps/thread.Tpo"; exit 1; \
>>>fi
>>>mkdir .libs
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
>>>.deps/thread.Tpo -c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
>>>.deps/thread.Tpo -c thread.cpp -o thread.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT mutex.lo -MD -MP -MF ".deps/mutex.Tpo" \
>>>  -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
>>>then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
>>>else rm -f ".deps/mutex.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo
>>>-c mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo
>>>-c mutex.cpp -o mutex.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
>>>  -c -o semaphore.lo `test -f 'semaphore.cpp' || echo './'`semaphore.cpp;
>>>\ then mv -f ".deps/semaphore.Tpo" ".deps/semaphore.Plo"; \
>>>else rm -f ".deps/semaphore.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
>>>.deps/semaphore.Tpo -c semaphore.cpp  -DDLL_EXPORT -DPIC -o
>>>.libs/semaphore.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
>>>.deps/semaphore.Tpo -c semaphore.cpp -o semaphore.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF ".deps/threadkey.Tpo" \
>>>  -c -o threadkey.lo `test -f 'threadkey.cpp' || echo './'`threadkey.cpp;
>>>\ then mv -f ".deps/threadkey.Tpo" ".deps/threadkey.Plo"; \
>>>else rm -f ".deps/threadkey.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
>>>.deps/threadkey.Tpo -c threadkey.cpp  -DDLL_EXPORT -DPIC -o
>>>.libs/threadkey.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
>>>.deps/threadkey.Tpo -c threadkey.cpp -o threadkey.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT friends.lo -MD -MP -MF ".deps/friends.Tpo" \
>>>  -c -o friends.lo `test -f 'friends.cpp' || echo './'`friends.cpp; \
>>>then mv -f ".deps/friends.Tpo" ".deps/friends.Plo"; \
>>>else rm -f ".deps/friends.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
>>>.deps/friends.Tpo -c friends.cpp  -DDLL_EXPORT -DPIC -o .libs/friends.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
>>>.deps/friends.Tpo -c friends.cpp -o friends.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT event.lo -MD -MP -MF ".deps/event.Tpo" \
>>>  -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
>>>then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
>>>else rm -f ".deps/event.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo
>>>-c event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo
>>>-c event.cpp -o event.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT slog.lo -MD -MP -MF ".deps/slog.Tpo" \
>>>  -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
>>>then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
>>>else rm -f ".deps/slog.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
>>>-c slog.cpp -DDLL_EXPORT -DPIC -o .libs/slog.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
>>>-c slog.cpp -o slog.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT dir.lo -MD -MP -MF ".deps/dir.Tpo" \
>>>  -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
>>>then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
>>>else rm -f ".deps/dir.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
>>>dir.cpp -DDLL_EXPORT -DPIC -o .libs/dir.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
>>>dir.cpp -o dir.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT file.lo -MD -MP -MF ".deps/file.Tpo" \
>>>  -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
>>>then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
>>>else rm -f ".deps/file.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
>>>-c file.cpp -DDLL_EXPORT -DPIC -o .libs/file.o
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
>>>-c file.cpp -o file.o >/dev/null 2>&1
>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>-D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF ".deps/inaddr.Tpo" \
>>>  -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
>>>then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
>>>else rm -f ".deps/inaddr.Tpo"; exit 1; \
>>>fi
>>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF
>>>.deps/inaddr.Tpo -c inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
>>>In file included from inaddr.cpp:43:
>>>../include/cc++/socket.h:762: parse error before `*' token
>>>../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t'
>>>with no type
>>>../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
>>>../include/cc++/socket.h:775: parse error before `(' token
>>>../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t'
>>>with no type
>>>../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
>>>../include/cc++/socket.h:785: declaration of `int ost::Socket::ssize_t'
>>>../include/cc++/socket.h:775: conflicts with previous declaration `int
>>>   ost::Socket::ssize_t'
>>>../include/cc++/socket.h:785: parse error before `(' token
>>>../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
>>>make: *** [inaddr.lo] Error 1
>>>
>>>===========snap make in src/ dir using msys/mingw ================
>>>that looked first promising, but the  i got some errors in socket.h.
>>>
>>>
>>>thx in advance to all those having read this!!!
>>>
>>>any comments on why i fail to to build the commonc++ libs/dll's using a
>>>crosscompile on my linux box or a compile within windows using mingw/msys
>>>are welcome.
>>>
>>>Wolfgang
>>>
>>>Am Samstag, 20. Dezember 2003 23:41 schrieb taraben.a@wige-data.de:
>>>
>>>>Hi Wolfgang,
>>>>
>>>>I also have problems to configure commoncpp on mingw/msys.
>>>>I have latest mingw/msys.
>>>>Try the makefile in the distro.
>>>>make -f Makefile.gcc
>>>>You need to modify some path settings and you have to shift some files
>>>
>>>>from one packet to the other because of dependency. Attached the
>>>
>>>>makefile that is working for me. Tell me if this is not working for you.
>>>>
>>>>Best wishes,
>>>>
>>>>Adib.
>>>
>>>_______________________________________________
>>>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
> 



From MAILER-DAEMON Sun Dec 21 16:01:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYAhq-00009F-UV
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 16:01:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYAho-00008N-Ky
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 16:01:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYAhG-0008NQ-FK
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 16:01:37 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYAhF-0008Mn-Jj
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 16:01:05 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBLJxcGH010473
	for <bug-commoncpp@gnu.org>; Sun, 21 Dec 2003 20:59:38 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP7Q9>; Sun, 21 Dec 2003 20:59:32 +0100
Received: from wige-data.de (c-180-169-115.l.dial.de.ignite.net
	[62.180.169.115]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJP7Q8; Sun, 21 Dec 2003 20:59:27 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FE5FC54.4080306@wige-data.de>
Date: Sun, 21 Dec 2003 21:02:28 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <3FE5DE56.9010108@wige-data.de>
In-Reply-To: <3FE5DE56.9010108@wige-data.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: win32 Serial::isPending, timeout has no effect
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Dec 2003 21:01:41 -0000

Hi all,

browsing the Win32 SDK I found that waiting (a defined time) for serial 
port is only possible if this was opened using the  FILE_FLAG_OVERLAPPED 
flag.
Doing this all reading/writing/testing functions have to be touched.

Was there any reason not to use this flag???

Thanks,

Adib.



taraben.a@wige-data.de wrote:

> Hi,
> porting my small linux app to win32. I found that in function
> bool Serial::isPending(Pending pending, timeout_t timeout)
> the parameter timeout has no effect but on nonWin32.
> 
> Best wishes,
> 
> Adib.
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 



From MAILER-DAEMON Sun Dec 21 22:06:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYGOq-0001dj-Lu
	for mharc-bug-commoncpp@gnu.org; Sun, 21 Dec 2003 22:06:28 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYGOp-0001dc-4M
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 22:06:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYGOJ-0001cI-Dg
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 22:06:26 -0500
Received: from [144.140.71.13] (helo=gizmo03ps.bigpond.com)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AYGOI-0001c5-Ha
	for bug-commoncpp@gnu.org; Sun, 21 Dec 2003 22:05:54 -0500
Received: (qmail 18753 invoked from network); 22 Dec 2003 02:02:33 -0000
Received: from unknown (HELO psmam11.bigpond.com) (144.135.25.100)
	by gizmo03ps.bigpond.com with SMTP; 22 Dec 2003 02:02:33 -0000
Received: from cpe-203-51-179-107.vic.bigpond.net.au ([203.51.179.107]) by
	psmam11.bigpond.com(MAM REL_3_4_2 225/6727602) with SMTP id
	6727602; Mon, 22 Dec 2003 12:04:15 +1000
From: "Julie Russell" <julie.russell@throughput.com.au>
To: "David Sugar" <dyfet@ostel.com>
Date: Mon, 22 Dec 2003 13:04:01 +1100
Message-ID: <CAEDLLCOCGBPMAAFIFOCGENOCAAA.julie.russell@throughput.com.au>
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)
In-Reply-To: <200312200639.19003.dyfet@ostel.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Cc: "Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Subject: RE: Interrupt
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Dec 2003 03:06:27 -0000

Hi David,

Thanks for your reply. I have now tried to implement a Conditional, however
I can't find an example of this anywhere. I tried doing this:

mutex->enterMutex();
conditional->wait(20000); (timeout in 20 secs)
mutex->leaveMutex();

however it doesn't appear to wait 20 seconds... Can you post a basic example
of how this conditional is implemented. That would help a lot. I passed the
conditional from the class that calls the signal, saw an example of a wait
that did that.

Regards,
Julie.

> -----Original Message-----
> From: David Sugar [mailto:dyfet@ostel.com]
> Sent: Saturday, 20 December 2003 10:39 PM
> To: Julie Russell; Bug-Commoncpp@Gnu. Org
> Subject: Re: Interrupt
>
>
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> One way to do this is to sleep the thread on a "conditional", and
> then use a
> signal to "wake" it early.  This of course only works on pthread/posix
> systems.  The nearest equiv. in w32 is to use a timed semaphore wait, but
> that is not supported in pthreads :).  I suppose we could construct an
> alrernate sleep object that uses one or the other method based on
> the target,
> like was done for the Buffer class....
>
> On Friday 19 December 2003 01:40 am, Julie Russell wrote:
> > Hi there,
> >
> > I want to interrupt a thread from it's sleeping process, yet I
> can't seem
> > to see an interrupt method in the documentation. Is there one,
> and if I use
> > it, does it stop sleeping and resume the next line of execution, or how
> > does it work?
> >
> > Thanks in advance,
> > Julie.
> >
> >
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
>





From MAILER-DAEMON Mon Dec 22 03:14:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYLCT-0000Q1-Ap
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 03:14:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYLCQ-0000Nw-0j
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 03:13:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYLBr-0000Ay-Ua
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 03:13:56 -0500
Received: from [194.7.105.76] (helo=smtp2.agfa.be)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYLBp-00007y-0w
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 03:13:21 -0500
Received: from agbi0037.agfa.be (bemordsmt01.agfa.be [10.232.8.46])
	by smtp2.agfa.be (8.11.7p1+Sun/8.11.7) with ESMTP id hBM7BgZ12283
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 08:11:45 +0100 (MET)
Sensitivity: 
To: "bug-commoncpp" <bug-commoncpp@gnu.org>
From: "Keith Thornton" <keith.thornton@agfa.com>
Date: Mon, 22 Dec 2003 08:11:40 +0100
Message-ID: <OF4F452C6F.51A44979-ONC1256E04.00275F79@agfa.be>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Subject: Release date commoncpp2-1.1
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Dec 2003 08:13:59 -0000

Is there a planned date for the release of commoncpp2-1.1 ?
regards





From MAILER-DAEMON Mon Dec 22 11:42:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYT8h-0007u0-KE
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 11:42:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYT8e-0007t6-69
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 11:42:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYT83-0007i7-96
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 11:42:30 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYT7x-0007gV-Vb
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 11:41:54 -0500
Received: from sonne.kosmos.all (213-182-115-117.teleos-web.de
	[213.182.115.117])
	by sally.dts-online.net (Postfix) with ESMTP id 84F8B33A73C
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 16:40:23 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id E35607B32E
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 16:35:33 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Mon, 22 Dec 2003 16:35:31 +0100
User-Agent: KMail/1.5.4
References: <200312202129.01958.wolfgang@alper-online.com>
	<200312212040.03495.wolfgang@alper-online.com>
	<3FE5FB4B.2060000@wige-data.de>
In-Reply-To: <3FE5FB4B.2060000@wige-data.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312221635.32029.wolfgang@alper-online.com>
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Dec 2003 16:42:37 -0000

Hello Adib,

again i moved a bit further - thx for your support. 
for libxml2 i downloaded the following precompiled win32 bin's:
iconv-1.9.1.win32.zip  
libxml2-2.6.3.win32.zip
and placed them in my /usr/i586-mingw32msvc dir:
lib/ 
include/ 
dll/
on my linux machine. (respectivly include/libxml).

i had also copied over CCXX2.rc to one dir.
so far i could compile, but still not create the dll's. pls find attached a 
truncated log. 

see in particular:
"i586-mingw32msvc-dllwrap: no export definition file provided.
Creating one, but that may not be what you want"

Again any advise is very much appreciated.

Regards

Wolfgang



=======snip mingw32 compile on linux========
wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
...
...
...
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/xml.o ../src/xml.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/persist.o ../src/persist.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/engine.o ../src/engine.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/digest.o ../src/digest.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/sha.o ../src/sha.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/date.o ../src/date.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/md5.o ../src/md5.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/unix.o ../src/unix.cpp
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -o ../win32/../win32/ftp.o ../src/ftp.cpp
i586-mingw32msvc-dllwrap --export-all --output-def ccext2.def --implib 
libccext2.a --driver-name i586-mingw32msvc-c++ -o ccext2.dll \
buffer.o fifo.o pipe.o numbers.o cmdoptns.o xml.o persist.o engine.o digest.o 
sha.o date.o md5.o unix.o ftp.o libgnu2.o -L. -L/usr/i586-mingw32msvc/dll 
-lccgnu2 -lws2_32 -lwsock32
i586-mingw32msvc-dllwrap: no export definition file provided.
Creating one, but that may not be what you want
xml.o(.text+0x178): In function `ZN3ost9XMLStream5parseEPKc':
/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/xml.cpp:157: 
undefined reference to `xmlCreatePushParserCtxt'
xml.o(.text+0x1bc):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/
xml.cpp:164: undefined reference to `xmlParseChunk'
xml.o(.text+0x1da):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/
xml.cpp:165: undefined reference to `xmlParseChunk'
xml.o(.text+0x1f6):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/
xml.cpp:171: undefined reference to `xmlFreeParserCtxt'
i586-mingw32msvc-dllwrap: i586-mingw32msvc-c++ exited with status 1
make: *** [ccext2.dll] Fehler 1
wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$

=======snap mingw32 compile on linux========



Am Sonntag, 21. Dezember 2003 20:58 schrieb taraben.a@wige-data.de:
> Wolgang,
>
> sorry, forgot to tell you that I made an other change
> undefine the HAVE_OLD_IOSTREAM in win32/c++/config.h
>
> //#define	HAVE_OLD_IOSTREAM
>
> I swear that was the last change until success ;-) (hope you have libxml
> in place?)
>
> Adib.
>
> Wolfgang wrote:
> > Hello Adib,
> >
> > i added   #include <stdio.h>  to win32/config.h and got a bit further.
> > (see attached log). however there are still some probs left.
> >
> > again, any hints and ideas are welcome ;-)
> >
> > thx
> >
> > Wolfgang
> >
> >
> > =======snip crosscompile on debian with modified config.h =========
> >
> > wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/mutex.o ../src/mutex.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/semaphore.o ../src/semaphore.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/threadkey.o ../src/threadkey.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/friends.o ../src/friends.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/event.o ../src/event.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/slog.o ../src/slog.cpp
> > ../src/slog.cpp: In constructor `ost::Slog::Slog()':
> > ../src/slog.cpp:70: error: no matching function for call to `
> >    std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
> >    <anonymous>**)'
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/iosfwd:64: error:
> > candidates
> >    are: std::basic_ostream<char, std::char_traits<char>
> > >::basic_ostream(const std::basic_ostream<char, std::char_traits<char>
> > >&)
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ostream:106: error:
> >            std::basic_ostream<_CharT,
> >    _Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with
> > _CharT
> >    = char, _Traits = std::char_traits<char>]
> > make: *** [../win32/slog.o] Fehler 1
> > wolfgang@sonne:~/common-c++/common
> >
> > =======snap crosscompile on debian with modified config.h =========
> >
> > Am Sonntag, 21. Dezember 2003 18:50 schrieb taraben.a@wige-data.de:
> >>Hi Wolfgang,
> >>
> >>ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
> >>#include <stdio.h>
> >>directly after the
> >>#ifndef CCXX_CONFIG_H_
> >>#define CCXX_CONFIG_H_
> >>statements.
> >>
> >>HTH,
> >>
> >>Adib.
> >>
> >>Wolfgang wrote:
> >>>Hello,
> >>>
> >>>i still have problems to build commonc++ for the win32 platform.
> >>>
> >>>pls let me appologize in advance, if i did not follow the etiquette of
> >>>this mailinglist by attaching so much compiler output. the reason is
> >>>simply that i hope that someone can fingerpoint to what i am doing
> >>> wrong.
> >>>
> >>>for my last attempt to crosscompile  i used the makefile that Adib
> >>>provided in the recent mail (Thank your for that!) and changed only the
> >>>reference to minggw.
> >>>here the output of my attempt to compile for win32 on my linux box
> >>>(debiin unstable):
> >>>
> >>>=======snip====
> >>>/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
> >>>In file included from
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> >>>i586-mingw32msvc/bits/c++io.h:35,
> >>>                 from
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ bits/fpos.h:44,
> >>>                 from
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> >>>bits/char_traits.h:46,
> >>>                 from
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ string:47,
> >>>                 from ../include/cc++/strchar.h:49,
> >>>                 from ../include/cc++/exception.h:54,
> >>>                 from ../include/cc++/thread.h:58,
> >>>                 from ../src/thread.cpp:43:
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
> >>>   snprintf' not declared
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
> >>>   snprintf' not declared
> >>>make: *** [../win32/thread.o] Fehler 1
> >>>
> >>>=========snap===========
> >>>It seems this is because the redefiinition of snprintf for a mingw32
> >>>compile ,that i saw in one of the header files, did not apply.
> >>>(and therefore some other minggw specific defines will not have applied
> >>>as well).  but why?
> >>>
> >>>so i tried again to compile on a native windows system using the
> >>>following versions of mingw and msys: (fresh install)
> >>>mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
> >>>msys: 1.0.10.rc3
> >>>
> >>>
> >>>i extracted the commonc++ archive in its own directory below the msys
> >>>homedir und ran ./configure
> >>>=======snip configure on win32 using mingw/msys===============
> >>>
> >>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>$ ./configure
> >>>checking build system type... i686-pc-mingw32
> >>>checking host system type... i686-pc-mingw32
> >>>checking target system type... i686-pc-mingw32
> >>>checking for gcc... gcc
> >>>checking for C compiler default output... a.exe
> >>>checking whether the C compiler works... yes
> >>>checking whether we are cross compiling... no
> >>>checking for suffix of executables... .exe
> >>>checking for suffix of object files... o
> >>>checking whether we are using the GNU C compiler... yes
> >>>checking whether gcc accepts -g... yes
> >>>checking for gcc option to accept ANSI C... none needed
> >>>checking for egrep... grep -E
> >>>checking for ANSI C header files... no
> >>>checking for sys/types.h... yes
> >>>checking for sys/stat.h... yes
> >>>checking for stdlib.h... yes
> >>>checking for string.h... yes
> >>>checking for memory.h... yes
> >>>checking for strings.h... yes
> >>>checking for inttypes.h... yes
> >>>checking for stdint.h... yes
> >>>checking for unistd.h... yes
> >>>checking for gcc... (cached) gcc
> >>>checking whether we are using the GNU C compiler... (cached) yes
> >>>checking whether gcc accepts -g... (cached) yes
> >>>checking for gcc option to accept ANSI C... (cached) none needed
> >>>checking how to run the C preprocessor... gcc -E
> >>>checking for strerror in -lcposix... no
> >>>checking minix/config.h usability... no
> >>>checking minix/config.h presence... no
> >>>checking for minix/config.h... no
> >>>checking for MSC environment... no
> >>>checking for a sed that does not truncate output... /bin/sed
> >>>checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
> >>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
> >>>ld... yes
> >>>checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload
> >>>object files... -r
> >>>checking for BSD-compatible nm... /mingw/bin/nm
> >>>checking whether ln -s works... yes
> >>>checking how to recognise dependent libraries... file_magic ^x86 archive
> >>>import|^x86 DLL
> >>>checking dlfcn.h usability... no
> >>>checking dlfcn.h presence... no
> >>>checking for dlfcn.h... no
> >>>checking for g++... g++
> >>>checking whether we are using the GNU C++ compiler... yes
> >>>checking whether g++ accepts -g... yes
> >>>checking how to run the C++ preprocessor... g++ -E
> >>>checking for g77... g77
> >>>checking whether we are using the GNU Fortran 77 compiler... yes
> >>>checking whether g77 accepts -g... yes
> >>>checking the maximum length of command line arguments... 8192
> >>>checking command to parse /mingw/bin/nm output from gcc object... ok
> >>>checking for objdir... .libs
> >>>checking for ar... ar
> >>>checking for ranlib... ranlib
> >>>checking for strip... strip
> >>>checking if gcc static flag  works... yes
> >>>checking if gcc supports -fno-rtti -fno-exceptions... yes
> >>>checking for gcc option to produce PIC... -DDLL_EXPORT
> >>>checking if gcc PIC flag -DDLL_EXPORT works... yes
> >>>checking if gcc supports -c -o file.o... yes
> >>>checking whether the gcc linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> >>>supports shared libraries... yes
> >>>checking whether -lc should be explicitly linked in... yes
> >>>checking how to hardcode library paths into programs... immediate
> >>>checking whether stripping libraries is possible... yes
> >>>checking dynamic linker characteristics... Win32 ld.exe
> >>>checking if libtool supports shared libraries... yes
> >>>checking whether to build shared libraries... yes
> >>>checking whether to build static libraries... yes
> >>>configure: creating libtool
> >>>appending configuration tag "CXX" to libtool
> >>>checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
> >>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
> >>>ld... yes
> >>>checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> >>>supports shared libraries... yes
> >>>checking for g++ option to produce PIC... -DDLL_EXPORT
> >>>checking if g++ PIC flag -DDLL_EXPORT works... yes
> >>>checking if g++ supports -c -o file.o... yes
> >>>checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> >>>supports shared libraries... yes
> >>>checking how to hardcode library paths into programs... immediate
> >>>checking whether stripping libraries is possible... yes
> >>>checking dynamic linker characteristics... Win32 ld.exe
> >>>appending configuration tag "F77" to libtool
> >>>checking if libtool supports shared libraries... yes
> >>>checking whether to build shared libraries... yes
> >>>checking whether to build static libraries... yes
> >>>checking for g77 option to produce PIC... -DDLL_EXPORT
> >>>checking if g77 PIC flag -DDLL_EXPORT works... yes
> >>>checking if g77 supports -c -o file.o... yes
> >>>checking whether the g77 linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
> >>>supports shared libraries... yes
> >>>checking how to hardcode library paths into programs... immediate
> >>>checking whether stripping libraries is possible... yes
> >>>checking dynamic linker characteristics... Win32 ld.exe
> >>>checking for a BSD-compatible install... /bin/install -c
> >>>checking whether build environment is sane... yes
> >>>checking for gawk... gawk
> >>>checking whether make sets $(MAKE)... yes
> >>>checking for style of include used by make... GNU
> >>>checking dependency style of gcc... gcc3
> >>>checking dependency style of g++... gcc3
> >>>checking for ranlib... (cached) ranlib
> >>>checking for genorated automake files... found
> >>>checking whether to enable maintainer-specific portions of Makefiles...
> >>>no checking for Win32 gnu environment... yes
> >>>checking whether system meets Posix.1... no
> >>>checking for unistd.h... (cached) yes
> >>>checking endian.h usability... no
> >>>checking endian.h presence... no
> >>>checking for endian.h... no
> >>>checking fcntl.h usability... yes
> >>>checking fcntl.h presence... yes
> >>>checking for fcntl.h... yes
> >>>checking sys/fcntl.h usability... yes
> >>>checking sys/fcntl.h presence... yes
> >>>checking for sys/fcntl.h... yes
> >>>checking for sys/types.h... (cached) yes
> >>>checking for sigaction... no
> >>>checking for setitimer... no
> >>>checking for sigwait... no
> >>>checking bsd/signal.h usability... no
> >>>checking bsd/signal.h presence... no
> >>>checking for bsd/signal.h... no
> >>>checking return type of signal handlers... void
> >>>checking whether sigwait has 2 arguments... yes
> >>>checking for strcasecmp... yes
> >>>checking for strdup... yes
> >>>checking for snprintf... yes
> >>>checking for memmove... yes
> >>>checking for strings.h... (cached) yes
> >>>checking for getopt... yes
> >>>checking getopt.h usability... yes
> >>>checking getopt.h presence... yes
> >>>checking for getopt.h... yes
> >>>checking for getopt_long in -lgnugetopt... no
> >>>checking for getopt_long... yes
> >>>checking for dlfcn.h... (cached) no
> >>>checking for shl_load in -ldld... no
> >>>checking for dlopen in -ldl... no
> >>>checking for dlopen in -lc... no
> >>>checking mach-o/dyld.h usability... no
> >>>checking mach-o/dyld.h presence... no
> >>>checking for mach-o/dyld.h... no
> >>>checking whether time.h and sys/time.h may both be included... yes
> >>>checking sys/time.h usability... yes
> >>>checking sys/time.h presence... yes
> >>>checking for sys/time.h... yes
> >>>checking features.h usability... no
> >>>checking features.h presence... no
> >>>checking for features.h... no
> >>>checking pthread.h usability... no
> >>>checking pthread.h presence... no
> >>>checking for pthread.h... no
> >>>checking sys/atomic.h usability... no
> >>>checking sys/atomic.h presence... no
> >>>checking for sys/atomic.h... no
> >>>checking thread.h usability... no
> >>>checking thread.h presence... no
> >>>checking for thread.h... no
> >>>checking for setenv... no
> >>>checking for localtime_r in -lc_r... no
> >>>checking for strtok_r in -lc... no
> >>>checking for localtime_r in -lc... no
> >>>checking sys/socket.h usability... no
> >>>checking sys/socket.h presence... no
> >>>checking for sys/socket.h... no
> >>>checking winsock.h usability... yes
> >>>checking winsock.h presence... yes
> >>>checking for winsock.h... yes
> >>>checking for socket in -lsocket... no
> >>>checking sys/libcsys.h usability... no
> >>>checking sys/libcsys.h presence... no
> >>>checking for sys/libcsys.h... no
> >>>checking for inet_aton in -lc... no
> >>>checking for socklen_t defined... no
> >>>checking poll.h usability... no
> >>>checking poll.h presence... no
> >>>checking for poll.h... no
> >>>checking sys/poll.h usability... no
> >>>checking sys/poll.h presence... no
> >>>checking for sys/poll.h... no
> >>>checking sys/stream.h usability... no
> >>>checking sys/stream.h presence... no
> >>>checking for sys/stream.h... no
> >>>checking for poll... no
> >>>checking zlib.h usability... no
> >>>checking zlib.h presence... no
> >>>checking for zlib.h... no
> >>>checking for xml2-config... no
> >>>checking for xml-config... no
> >>>checking for valid libxml2... no
> >>>checking sys/file.h usability... yes
> >>>checking sys/file.h presence... yes
> >>>checking for sys/file.h... yes
> >>>checking sys/lockf.h usability... no
> >>>checking sys/lockf.h presence... no
> >>>checking for sys/lockf.h... no
> >>>checking syslog.h usability... no
> >>>checking syslog.h presence... no
> >>>checking for syslog.h... no
> >>>checking posix_evlog.h usability... no
> >>>checking posix_evlog.h presence... no
> >>>checking for posix_evlog.h... no
> >>>checking ss.h usability... no
> >>>checking ss.h presence... no
> >>>checking for ss.h... no
> >>>checking how to run the C preprocessor... gcc -E
> >>>checking whether we are using the GNU C++ compiler... (cached) yes
> >>>checking whether g++ accepts -g... (cached) yes
> >>>checking how to run the C++ preprocessor... g++ -E
> >>>checking whether g++ has built-in bool type... yes
> >>>checking whether g++ supports -fhandle-exceptions... no
> >>>checking whether g++ supports exception handling... yes
> >>>checking exception usability... yes
> >>>checking exception presence... yes
> >>>checking for exception... yes
> >>>checking whether g++ supports mutable... yes
> >>>checking whether g++ supports namespace... yes
> >>>checking wheather old style iostreams... no
> >>>checking whether g++ has new(size_t,void*)... yes
> >>>checking sstream usability... yes
> >>>checking sstream presence... yes
> >>>checking for sstream... yes
> >>>checking for debugging... no
> >>>checking for profiling... no
> >>>configure: creating ./config.status
> >>>config.status: creating src/ccgnu2-config
> >>>config.status: creating src/Makefile
> >>>config.status: creating win32/Makefile
> >>>config.status: creating m4/Makefile
> >>>config.status: creating config/Makefile
> >>>config.status: creating doc/Makefile
> >>>config.status: creating demo/Makefile
> >>>config.status: creating include/Makefile
> >>>config.status: creating include/cc++/Makefile
> >>>config.status: creating Makefile
> >>>config.status: creating template/Makefile
> >>>config.status: creating commoncpp2.spec
> >>>config.status: creating tests/Makefile
> >>>config.status: creating commoncpp2.proto
> >>>config.status: creating freebsd/Makefile
> >>>config.status: creating freebsd/pkg-plist
> >>>config.status: creating pkginfo
> >>>config.status: creating win32/CCXX2.rc
> >>>config.status: creating include/config.h
> >>>config.status: executing depfiles commands
> >>>
> >>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>
> >>>
> >>>=======snap configure on win32 using mingw/msys===============
> >>>i guess that is ok!?
> >>>
> >>>
> >>>
> >>>then i tried make:
> >>>===========snip make in msys/mingw ================
> >>>
> >>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>$ make
> >>>Making all in include
> >>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>make  all-recursive
> >>>make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>Making all in cc++
> >>>make[3]: Entering directory
> >>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Nothing to be
> >>>done for `all'.
> >>>make[3]: Leaving directory
> >>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Entering
> >>>directory `/home/Wolfgang/commoncpp2-1.0.13/include' make[3]: Nothing to
> >>>be done for `all-am'.
> >>>make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>Making all in win32
> >>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
> >>>make[1]: Nothing to be done for `all'.
> >>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
> >>>Making all in template
> >>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/template'
> >>>make[1]: Nothing to be done for `all'.
> >>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
> >>>Making all in doc
> >>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
> >>>make[1]: Nothing to be done for `all'.
> >>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
> >>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
> >>>make[1]: Nothing to be done for `all-am'.
> >>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'
> >>>
> >>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>
> >>>===========snap make in msys/mingw ================
> >>>
> >>>well i was surpised that make returned with "nothing to do ...." so i
> >>>cd'ed int src/ and tried make within the src/ dir since no object files
> >>>had been created before...
> >>>
> >>>
> >>>===========snip make in src/ dir using msys/mingw ================
> >>>
> >>>Wolfgang@SATURN ~/commoncpp2-1.0.13/src
> >>>$ make
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
> >>>  -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
> >>>then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
> >>>else rm -f ".deps/thread.Tpo"; exit 1; \
> >>>fi
> >>>mkdir .libs
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
> >>>.deps/thread.Tpo -c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
> >>>.deps/thread.Tpo -c thread.cpp -o thread.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT mutex.lo -MD -MP -MF ".deps/mutex.Tpo" \
> >>>  -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
> >>>then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
> >>>else rm -f ".deps/mutex.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF
> >>> .deps/mutex.Tpo -c mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF
> >>> .deps/mutex.Tpo -c mutex.cpp -o mutex.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
> >>>  -c -o semaphore.lo `test -f 'semaphore.cpp' || echo
> >>> './'`semaphore.cpp; \ then mv -f ".deps/semaphore.Tpo"
> >>> ".deps/semaphore.Plo"; \
> >>>else rm -f ".deps/semaphore.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
> >>>.deps/semaphore.Tpo -c semaphore.cpp  -DDLL_EXPORT -DPIC -o
> >>>.libs/semaphore.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
> >>>.deps/semaphore.Tpo -c semaphore.cpp -o semaphore.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF ".deps/threadkey.Tpo" \
> >>>  -c -o threadkey.lo `test -f 'threadkey.cpp' || echo
> >>> './'`threadkey.cpp; \ then mv -f ".deps/threadkey.Tpo"
> >>> ".deps/threadkey.Plo"; \
> >>>else rm -f ".deps/threadkey.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
> >>>.deps/threadkey.Tpo -c threadkey.cpp  -DDLL_EXPORT -DPIC -o
> >>>.libs/threadkey.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
> >>>.deps/threadkey.Tpo -c threadkey.cpp -o threadkey.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT friends.lo -MD -MP -MF ".deps/friends.Tpo" \
> >>>  -c -o friends.lo `test -f 'friends.cpp' || echo './'`friends.cpp; \
> >>>then mv -f ".deps/friends.Tpo" ".deps/friends.Plo"; \
> >>>else rm -f ".deps/friends.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
> >>>.deps/friends.Tpo -c friends.cpp  -DDLL_EXPORT -DPIC -o .libs/friends.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
> >>>.deps/friends.Tpo -c friends.cpp -o friends.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT event.lo -MD -MP -MF ".deps/event.Tpo" \
> >>>  -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
> >>>then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
> >>>else rm -f ".deps/event.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF
> >>> .deps/event.Tpo -c event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF
> >>> .deps/event.Tpo -c event.cpp -o event.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT slog.lo -MD -MP -MF ".deps/slog.Tpo" \
> >>>  -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
> >>>then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
> >>>else rm -f ".deps/slog.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
> >>>-c slog.cpp -DDLL_EXPORT -DPIC -o .libs/slog.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
> >>>-c slog.cpp -o slog.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT dir.lo -MD -MP -MF ".deps/dir.Tpo" \
> >>>  -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
> >>>then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
> >>>else rm -f ".deps/dir.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
> >>>dir.cpp -DDLL_EXPORT -DPIC -o .libs/dir.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
> >>>dir.cpp -o dir.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT file.lo -MD -MP -MF ".deps/file.Tpo" \
> >>>  -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
> >>>then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
> >>>else rm -f ".deps/file.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
> >>>-c file.cpp -DDLL_EXPORT -DPIC -o .libs/file.o
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
> >>>-c file.cpp -o file.o >/dev/null 2>&1
> >>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>-D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF ".deps/inaddr.Tpo" \
> >>>  -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
> >>>then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
> >>>else rm -f ".deps/inaddr.Tpo"; exit 1; \
> >>>fi
> >>> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> >>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF
> >>>.deps/inaddr.Tpo -c inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
> >>>In file included from inaddr.cpp:43:
> >>>../include/cc++/socket.h:762: parse error before `*' token
> >>>../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t'
> >>>with no type
> >>>../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
> >>>../include/cc++/socket.h:775: parse error before `(' token
> >>>../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t'
> >>>with no type
> >>>../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
> >>>../include/cc++/socket.h:785: declaration of `int ost::Socket::ssize_t'
> >>>../include/cc++/socket.h:775: conflicts with previous declaration `int
> >>>   ost::Socket::ssize_t'
> >>>../include/cc++/socket.h:785: parse error before `(' token
> >>>../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
> >>>make: *** [inaddr.lo] Error 1
> >>>
> >>>===========snap make in src/ dir using msys/mingw ================
> >>>that looked first promising, but the  i got some errors in socket.h.
> >>>
> >>>
> >>>thx in advance to all those having read this!!!
> >>>
> >>>any comments on why i fail to to build the commonc++ libs/dll's using a
> >>>crosscompile on my linux box or a compile within windows using
> >>> mingw/msys are welcome.
> >>>
> >>>Wolfgang
> >>>
> >>>Am Samstag, 20. Dezember 2003 23:41 schrieb taraben.a@wige-data.de:
> >>>>Hi Wolfgang,
> >>>>
> >>>>I also have problems to configure commoncpp on mingw/msys.
> >>>>I have latest mingw/msys.
> >>>>Try the makefile in the distro.
> >>>>make -f Makefile.gcc
> >>>>You need to modify some path settings and you have to shift some files
> >>>>
> >>>>from one packet to the other because of dependency. Attached the
> >>>>
> >>>>makefile that is working for me. Tell me if this is not working for
> >>>> you.
> >>>>
> >>>>Best wishes,
> >>>>
> >>>>Adib.
> >>>
> >>>_______________________________________________
> >>>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




From MAILER-DAEMON Mon Dec 22 13:33:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYUrT-0002F9-M1
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 13:32:59 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYUrQ-0002DP-1F
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 13:32:56 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYUqq-0001wN-6E
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 13:32:51 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYUqo-0001s0-9b
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 13:32:18 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBMHUnGH023986
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 18:30:49 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP8L7>; Mon, 22 Dec 2003 18:30:44 +0100
Received: from wige-data.de (c-180-214-153.cvx-l.dial.de.ignite.net
	[62.180.214.153]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJP8L6; Mon, 22 Dec 2003 18:30:37 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FE72AEF.6010808@wige-data.de>
Date: Mon, 22 Dec 2003 18:33:35 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <200312202129.01958.wolfgang@alper-online.com>	<200312212040.03495.wolfgang@alper-online.com>	<3FE5FB4B.2060000@wige-data.de>
	<200312221635.32029.wolfgang@alper-online.com>
In-Reply-To: <200312221635.32029.wolfgang@alper-online.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Dec 2003 18:32:57 -0000

Hello Wolfgang,

The linker does not load the libxml.a library file. ... :-(

my make output for the linker proccess looks like:

dllwrap --export-all --output-def ccext2.def --implib libccext2.a 
--driver-name c++ -o ccext2.dll \
buffer.o cmdoptns.o date.o digest.o engine.o fifo.o md5.o network.o 
numbers.o persist.o serial.o unix.o url.o urlstring.o xml.o -L. 
-L/usr//dll -lccgnu2 -lxml2 -liberty -lws2_32
c:\MinGW\bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
make: *** No rule to make target `test_date.exe', needed by `all'.  Stop.

Do you see the "-lxml2" argument. This is missing on yours. :-O
My makefile contains:
CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lxml2 -liberty -lws2_32
I think you should add "-lxml2" to that variable. :-)

Best wishes,

Adib.


Wolfgang wrote:
> Hello Adib,
> 
> again i moved a bit further - thx for your support. 
> for libxml2 i downloaded the following precompiled win32 bin's:
> iconv-1.9.1.win32.zip  
> libxml2-2.6.3.win32.zip
> and placed them in my /usr/i586-mingw32msvc dir:
> lib/ 
> include/ 
> dll/
> on my linux machine. (respectivly include/libxml).
> 
> i had also copied over CCXX2.rc to one dir.
> so far i could compile, but still not create the dll's. pls find attached a 
> truncated log. 
> 
> see in particular:
> "i586-mingw32msvc-dllwrap: no export definition file provided.
> Creating one, but that may not be what you want"
> 
> Again any advise is very much appreciated.
> 
> Regards
> 
> Wolfgang
> 
> 
> 
> =======snip mingw32 compile on linux========
> wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> ...
> ...
> ...
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/xml.o ../src/xml.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/persist.o ../src/persist.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/engine.o ../src/engine.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/digest.o ../src/digest.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/sha.o ../src/sha.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/date.o ../src/date.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/md5.o ../src/md5.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/unix.o ../src/unix.cpp
> i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include 
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
> -mthreads -o ../win32/../win32/ftp.o ../src/ftp.cpp
> i586-mingw32msvc-dllwrap --export-all --output-def ccext2.def --implib 
> libccext2.a --driver-name i586-mingw32msvc-c++ -o ccext2.dll \
> buffer.o fifo.o pipe.o numbers.o cmdoptns.o xml.o persist.o engine.o digest.o 
> sha.o date.o md5.o unix.o ftp.o libgnu2.o -L. -L/usr/i586-mingw32msvc/dll 
> -lccgnu2 -lws2_32 -lwsock32
> i586-mingw32msvc-dllwrap: no export definition file provided.
> Creating one, but that may not be what you want
> xml.o(.text+0x178): In function `ZN3ost9XMLStream5parseEPKc':
> /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/xml.cpp:157: 
> undefined reference to `xmlCreatePushParserCtxt'
> xml.o(.text+0x1bc):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/
> xml.cpp:164: undefined reference to `xmlParseChunk'
> xml.o(.text+0x1da):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/
> xml.cpp:165: undefined reference to `xmlParseChunk'
> xml.o(.text+0x1f6):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/
> xml.cpp:171: undefined reference to `xmlFreeParserCtxt'
> i586-mingw32msvc-dllwrap: i586-mingw32msvc-c++ exited with status 1
> make: *** [ccext2.dll] Fehler 1
> wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$
> 
> =======snap mingw32 compile on linux========
> 
> 
> 
> Am Sonntag, 21. Dezember 2003 20:58 schrieb taraben.a@wige-data.de:
> 
>>Wolgang,
>>
>>sorry, forgot to tell you that I made an other change
>>undefine the HAVE_OLD_IOSTREAM in win32/c++/config.h
>>
>>//#define	HAVE_OLD_IOSTREAM
>>
>>I swear that was the last change until success ;-) (hope you have libxml
>>in place?)
>>
>>Adib.
>>
>>Wolfgang wrote:
>>
>>>Hello Adib,
>>>
>>>i added   #include <stdio.h>  to win32/config.h and got a bit further.
>>>(see attached log). however there are still some probs left.
>>>
>>>again, any hints and ideas are welcome ;-)
>>>
>>>thx
>>>
>>>Wolfgang
>>>
>>>
>>>=======snip crosscompile on debian with modified config.h =========
>>>
>>>wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/mutex.o ../src/mutex.cpp
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/semaphore.o ../src/semaphore.cpp
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/threadkey.o ../src/threadkey.cpp
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/friends.o ../src/friends.cpp
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/event.o ../src/event.cpp
>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>-mthreads -o ../win32/../win32/slog.o ../src/slog.cpp
>>>../src/slog.cpp: In constructor `ost::Slog::Slog()':
>>>../src/slog.cpp:70: error: no matching function for call to `
>>>   std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
>>>   <anonymous>**)'
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/iosfwd:64: error:
>>>candidates
>>>   are: std::basic_ostream<char, std::char_traits<char>
>>>
>>>>::basic_ostream(const std::basic_ostream<char, std::char_traits<char>
>>>>&)
>>>
>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ostream:106: error:
>>>           std::basic_ostream<_CharT,
>>>   _Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with
>>>_CharT
>>>   = char, _Traits = std::char_traits<char>]
>>>make: *** [../win32/slog.o] Fehler 1
>>>wolfgang@sonne:~/common-c++/common
>>>
>>>=======snap crosscompile on debian with modified config.h =========
>>>
>>>Am Sonntag, 21. Dezember 2003 18:50 schrieb taraben.a@wige-data.de:
>>>
>>>>Hi Wolfgang,
>>>>
>>>>ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
>>>>#include <stdio.h>
>>>>directly after the
>>>>#ifndef CCXX_CONFIG_H_
>>>>#define CCXX_CONFIG_H_
>>>>statements.
>>>>
>>>>HTH,
>>>>
>>>>Adib.
>>>>
>>>>Wolfgang wrote:
>>>>
>>>>>Hello,
>>>>>
>>>>>i still have problems to build commonc++ for the win32 platform.
>>>>>
>>>>>pls let me appologize in advance, if i did not follow the etiquette of
>>>>>this mailinglist by attaching so much compiler output. the reason is
>>>>>simply that i hope that someone can fingerpoint to what i am doing
>>>>>wrong.
>>>>>
>>>>>for my last attempt to crosscompile  i used the makefile that Adib
>>>>>provided in the recent mail (Thank your for that!) and changed only the
>>>>>reference to minggw.
>>>>>here the output of my attempt to compile for win32 on my linux box
>>>>>(debiin unstable):
>>>>>
>>>>>=======snip====
>>>>>/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
>>>>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
>>>>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
>>>>>-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
>>>>>In file included from
>>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
>>>>>i586-mingw32msvc/bits/c++io.h:35,
>>>>>                from
>>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ bits/fpos.h:44,
>>>>>                from
>>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
>>>>>bits/char_traits.h:46,
>>>>>                from
>>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ string:47,
>>>>>                from ../include/cc++/strchar.h:49,
>>>>>                from ../include/cc++/exception.h:54,
>>>>>                from ../include/cc++/thread.h:58,
>>>>>                from ../src/thread.cpp:43:
>>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
>>>>>  snprintf' not declared
>>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
>>>>>  snprintf' not declared
>>>>>make: *** [../win32/thread.o] Fehler 1
>>>>>
>>>>>=========snap===========
>>>>>It seems this is because the redefiinition of snprintf for a mingw32
>>>>>compile ,that i saw in one of the header files, did not apply.
>>>>>(and therefore some other minggw specific defines will not have applied
>>>>>as well).  but why?
>>>>>
>>>>>so i tried again to compile on a native windows system using the
>>>>>following versions of mingw and msys: (fresh install)
>>>>>mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
>>>>>msys: 1.0.10.rc3
>>>>>
>>>>>
>>>>>i extracted the commonc++ archive in its own directory below the msys
>>>>>homedir und ran ./configure
>>>>>=======snip configure on win32 using mingw/msys===============
>>>>>
>>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>>>$ ./configure
>>>>>checking build system type... i686-pc-mingw32
>>>>>checking host system type... i686-pc-mingw32
>>>>>checking target system type... i686-pc-mingw32
>>>>>checking for gcc... gcc
>>>>>checking for C compiler default output... a.exe
>>>>>checking whether the C compiler works... yes
>>>>>checking whether we are cross compiling... no
>>>>>checking for suffix of executables... .exe
>>>>>checking for suffix of object files... o
>>>>>checking whether we are using the GNU C compiler... yes
>>>>>checking whether gcc accepts -g... yes
>>>>>checking for gcc option to accept ANSI C... none needed
>>>>>checking for egrep... grep -E
>>>>>checking for ANSI C header files... no
>>>>>checking for sys/types.h... yes
>>>>>checking for sys/stat.h... yes
>>>>>checking for stdlib.h... yes
>>>>>checking for string.h... yes
>>>>>checking for memory.h... yes
>>>>>checking for strings.h... yes
>>>>>checking for inttypes.h... yes
>>>>>checking for stdint.h... yes
>>>>>checking for unistd.h... yes
>>>>>checking for gcc... (cached) gcc
>>>>>checking whether we are using the GNU C compiler... (cached) yes
>>>>>checking whether gcc accepts -g... (cached) yes
>>>>>checking for gcc option to accept ANSI C... (cached) none needed
>>>>>checking how to run the C preprocessor... gcc -E
>>>>>checking for strerror in -lcposix... no
>>>>>checking minix/config.h usability... no
>>>>>checking minix/config.h presence... no
>>>>>checking for minix/config.h... no
>>>>>checking for MSC environment... no
>>>>>checking for a sed that does not truncate output... /bin/sed
>>>>>checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
>>>>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
>>>>>ld... yes
>>>>>checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload
>>>>>object files... -r
>>>>>checking for BSD-compatible nm... /mingw/bin/nm
>>>>>checking whether ln -s works... yes
>>>>>checking how to recognise dependent libraries... file_magic ^x86 archive
>>>>>import|^x86 DLL
>>>>>checking dlfcn.h usability... no
>>>>>checking dlfcn.h presence... no
>>>>>checking for dlfcn.h... no
>>>>>checking for g++... g++
>>>>>checking whether we are using the GNU C++ compiler... yes
>>>>>checking whether g++ accepts -g... yes
>>>>>checking how to run the C++ preprocessor... g++ -E
>>>>>checking for g77... g77
>>>>>checking whether we are using the GNU Fortran 77 compiler... yes
>>>>>checking whether g77 accepts -g... yes
>>>>>checking the maximum length of command line arguments... 8192
>>>>>checking command to parse /mingw/bin/nm output from gcc object... ok
>>>>>checking for objdir... .libs
>>>>>checking for ar... ar
>>>>>checking for ranlib... ranlib
>>>>>checking for strip... strip
>>>>>checking if gcc static flag  works... yes
>>>>>checking if gcc supports -fno-rtti -fno-exceptions... yes
>>>>>checking for gcc option to produce PIC... -DDLL_EXPORT
>>>>>checking if gcc PIC flag -DDLL_EXPORT works... yes
>>>>>checking if gcc supports -c -o file.o... yes
>>>>>checking whether the gcc linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>>>supports shared libraries... yes
>>>>>checking whether -lc should be explicitly linked in... yes
>>>>>checking how to hardcode library paths into programs... immediate
>>>>>checking whether stripping libraries is possible... yes
>>>>>checking dynamic linker characteristics... Win32 ld.exe
>>>>>checking if libtool supports shared libraries... yes
>>>>>checking whether to build shared libraries... yes
>>>>>checking whether to build static libraries... yes
>>>>>configure: creating libtool
>>>>>appending configuration tag "CXX" to libtool
>>>>>checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
>>>>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
>>>>>ld... yes
>>>>>checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>>>supports shared libraries... yes
>>>>>checking for g++ option to produce PIC... -DDLL_EXPORT
>>>>>checking if g++ PIC flag -DDLL_EXPORT works... yes
>>>>>checking if g++ supports -c -o file.o... yes
>>>>>checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>>>supports shared libraries... yes
>>>>>checking how to hardcode library paths into programs... immediate
>>>>>checking whether stripping libraries is possible... yes
>>>>>checking dynamic linker characteristics... Win32 ld.exe
>>>>>appending configuration tag "F77" to libtool
>>>>>checking if libtool supports shared libraries... yes
>>>>>checking whether to build shared libraries... yes
>>>>>checking whether to build static libraries... yes
>>>>>checking for g77 option to produce PIC... -DDLL_EXPORT
>>>>>checking if g77 PIC flag -DDLL_EXPORT works... yes
>>>>>checking if g77 supports -c -o file.o... yes
>>>>>checking whether the g77 linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
>>>>>supports shared libraries... yes
>>>>>checking how to hardcode library paths into programs... immediate
>>>>>checking whether stripping libraries is possible... yes
>>>>>checking dynamic linker characteristics... Win32 ld.exe
>>>>>checking for a BSD-compatible install... /bin/install -c
>>>>>checking whether build environment is sane... yes
>>>>>checking for gawk... gawk
>>>>>checking whether make sets $(MAKE)... yes
>>>>>checking for style of include used by make... GNU
>>>>>checking dependency style of gcc... gcc3
>>>>>checking dependency style of g++... gcc3
>>>>>checking for ranlib... (cached) ranlib
>>>>>checking for genorated automake files... found
>>>>>checking whether to enable maintainer-specific portions of Makefiles...
>>>>>no checking for Win32 gnu environment... yes
>>>>>checking whether system meets Posix.1... no
>>>>>checking for unistd.h... (cached) yes
>>>>>checking endian.h usability... no
>>>>>checking endian.h presence... no
>>>>>checking for endian.h... no
>>>>>checking fcntl.h usability... yes
>>>>>checking fcntl.h presence... yes
>>>>>checking for fcntl.h... yes
>>>>>checking sys/fcntl.h usability... yes
>>>>>checking sys/fcntl.h presence... yes
>>>>>checking for sys/fcntl.h... yes
>>>>>checking for sys/types.h... (cached) yes
>>>>>checking for sigaction... no
>>>>>checking for setitimer... no
>>>>>checking for sigwait... no
>>>>>checking bsd/signal.h usability... no
>>>>>checking bsd/signal.h presence... no
>>>>>checking for bsd/signal.h... no
>>>>>checking return type of signal handlers... void
>>>>>checking whether sigwait has 2 arguments... yes
>>>>>checking for strcasecmp... yes
>>>>>checking for strdup... yes
>>>>>checking for snprintf... yes
>>>>>checking for memmove... yes
>>>>>checking for strings.h... (cached) yes
>>>>>checking for getopt... yes
>>>>>checking getopt.h usability... yes
>>>>>checking getopt.h presence... yes
>>>>>checking for getopt.h... yes
>>>>>checking for getopt_long in -lgnugetopt... no
>>>>>checking for getopt_long... yes
>>>>>checking for dlfcn.h... (cached) no
>>>>>checking for shl_load in -ldld... no
>>>>>checking for dlopen in -ldl... no
>>>>>checking for dlopen in -lc... no
>>>>>checking mach-o/dyld.h usability... no
>>>>>checking mach-o/dyld.h presence... no
>>>>>checking for mach-o/dyld.h... no
>>>>>checking whether time.h and sys/time.h may both be included... yes
>>>>>checking sys/time.h usability... yes
>>>>>checking sys/time.h presence... yes
>>>>>checking for sys/time.h... yes
>>>>>checking features.h usability... no
>>>>>checking features.h presence... no
>>>>>checking for features.h... no
>>>>>checking pthread.h usability... no
>>>>>checking pthread.h presence... no
>>>>>checking for pthread.h... no
>>>>>checking sys/atomic.h usability... no
>>>>>checking sys/atomic.h presence... no
>>>>>checking for sys/atomic.h... no
>>>>>checking thread.h usability... no
>>>>>checking thread.h presence... no
>>>>>checking for thread.h... no
>>>>>checking for setenv... no
>>>>>checking for localtime_r in -lc_r... no
>>>>>checking for strtok_r in -lc... no
>>>>>checking for localtime_r in -lc... no
>>>>>checking sys/socket.h usability... no
>>>>>checking sys/socket.h presence... no
>>>>>checking for sys/socket.h... no
>>>>>checking winsock.h usability... yes
>>>>>checking winsock.h presence... yes
>>>>>checking for winsock.h... yes
>>>>>checking for socket in -lsocket... no
>>>>>checking sys/libcsys.h usability... no
>>>>>checking sys/libcsys.h presence... no
>>>>>checking for sys/libcsys.h... no
>>>>>checking for inet_aton in -lc... no
>>>>>checking for socklen_t defined... no
>>>>>checking poll.h usability... no
>>>>>checking poll.h presence... no
>>>>>checking for poll.h... no
>>>>>checking sys/poll.h usability... no
>>>>>checking sys/poll.h presence... no
>>>>>checking for sys/poll.h... no
>>>>>checking sys/stream.h usability... no
>>>>>checking sys/stream.h presence... no
>>>>>checking for sys/stream.h... no
>>>>>checking for poll... no
>>>>>checking zlib.h usability... no
>>>>>checking zlib.h presence... no
>>>>>checking for zlib.h... no
>>>>>checking for xml2-config... no
>>>>>checking for xml-config... no
>>>>>checking for valid libxml2... no
>>>>>checking sys/file.h usability... yes
>>>>>checking sys/file.h presence... yes
>>>>>checking for sys/file.h... yes
>>>>>checking sys/lockf.h usability... no
>>>>>checking sys/lockf.h presence... no
>>>>>checking for sys/lockf.h... no
>>>>>checking syslog.h usability... no
>>>>>checking syslog.h presence... no
>>>>>checking for syslog.h... no
>>>>>checking posix_evlog.h usability... no
>>>>>checking posix_evlog.h presence... no
>>>>>checking for posix_evlog.h... no
>>>>>checking ss.h usability... no
>>>>>checking ss.h presence... no
>>>>>checking for ss.h... no
>>>>>checking how to run the C preprocessor... gcc -E
>>>>>checking whether we are using the GNU C++ compiler... (cached) yes
>>>>>checking whether g++ accepts -g... (cached) yes
>>>>>checking how to run the C++ preprocessor... g++ -E
>>>>>checking whether g++ has built-in bool type... yes
>>>>>checking whether g++ supports -fhandle-exceptions... no
>>>>>checking whether g++ supports exception handling... yes
>>>>>checking exception usability... yes
>>>>>checking exception presence... yes
>>>>>checking for exception... yes
>>>>>checking whether g++ supports mutable... yes
>>>>>checking whether g++ supports namespace... yes
>>>>>checking wheather old style iostreams... no
>>>>>checking whether g++ has new(size_t,void*)... yes
>>>>>checking sstream usability... yes
>>>>>checking sstream presence... yes
>>>>>checking for sstream... yes
>>>>>checking for debugging... no
>>>>>checking for profiling... no
>>>>>configure: creating ./config.status
>>>>>config.status: creating src/ccgnu2-config
>>>>>config.status: creating src/Makefile
>>>>>config.status: creating win32/Makefile
>>>>>config.status: creating m4/Makefile
>>>>>config.status: creating config/Makefile
>>>>>config.status: creating doc/Makefile
>>>>>config.status: creating demo/Makefile
>>>>>config.status: creating include/Makefile
>>>>>config.status: creating include/cc++/Makefile
>>>>>config.status: creating Makefile
>>>>>config.status: creating template/Makefile
>>>>>config.status: creating commoncpp2.spec
>>>>>config.status: creating tests/Makefile
>>>>>config.status: creating commoncpp2.proto
>>>>>config.status: creating freebsd/Makefile
>>>>>config.status: creating freebsd/pkg-plist
>>>>>config.status: creating pkginfo
>>>>>config.status: creating win32/CCXX2.rc
>>>>>config.status: creating include/config.h
>>>>>config.status: executing depfiles commands
>>>>>
>>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>>>
>>>>>
>>>>>=======snap configure on win32 using mingw/msys===============
>>>>>i guess that is ok!?
>>>>>
>>>>>
>>>>>
>>>>>then i tried make:
>>>>>===========snip make in msys/mingw ================
>>>>>
>>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>>>$ make
>>>>>Making all in include
>>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>>>make  all-recursive
>>>>>make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>>>Making all in cc++
>>>>>make[3]: Entering directory
>>>>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Nothing to be
>>>>>done for `all'.
>>>>>make[3]: Leaving directory
>>>>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Entering
>>>>>directory `/home/Wolfgang/commoncpp2-1.0.13/include' make[3]: Nothing to
>>>>>be done for `all-am'.
>>>>>make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>>>make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
>>>>>Making all in win32
>>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
>>>>>make[1]: Nothing to be done for `all'.
>>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
>>>>>Making all in template
>>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/template'
>>>>>make[1]: Nothing to be done for `all'.
>>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
>>>>>Making all in doc
>>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
>>>>>make[1]: Nothing to be done for `all'.
>>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
>>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
>>>>>make[1]: Nothing to be done for `all-am'.
>>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'
>>>>>
>>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
>>>>>
>>>>>===========snap make in msys/mingw ================
>>>>>
>>>>>well i was surpised that make returned with "nothing to do ...." so i
>>>>>cd'ed int src/ and tried make within the src/ dir since no object files
>>>>>had been created before...
>>>>>
>>>>>
>>>>>===========snip make in src/ dir using msys/mingw ================
>>>>>
>>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13/src
>>>>>$ make
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
>>>>> -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
>>>>>then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
>>>>>else rm -f ".deps/thread.Tpo"; exit 1; \
>>>>>fi
>>>>>mkdir .libs
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
>>>>>.deps/thread.Tpo -c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
>>>>>.deps/thread.Tpo -c thread.cpp -o thread.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT mutex.lo -MD -MP -MF ".deps/mutex.Tpo" \
>>>>> -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
>>>>>then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
>>>>>else rm -f ".deps/mutex.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF
>>>>>.deps/mutex.Tpo -c mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF
>>>>>.deps/mutex.Tpo -c mutex.cpp -o mutex.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
>>>>> -c -o semaphore.lo `test -f 'semaphore.cpp' || echo
>>>>>'./'`semaphore.cpp; \ then mv -f ".deps/semaphore.Tpo"
>>>>>".deps/semaphore.Plo"; \
>>>>>else rm -f ".deps/semaphore.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
>>>>>.deps/semaphore.Tpo -c semaphore.cpp  -DDLL_EXPORT -DPIC -o
>>>>>.libs/semaphore.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
>>>>>.deps/semaphore.Tpo -c semaphore.cpp -o semaphore.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF ".deps/threadkey.Tpo" \
>>>>> -c -o threadkey.lo `test -f 'threadkey.cpp' || echo
>>>>>'./'`threadkey.cpp; \ then mv -f ".deps/threadkey.Tpo"
>>>>>".deps/threadkey.Plo"; \
>>>>>else rm -f ".deps/threadkey.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
>>>>>.deps/threadkey.Tpo -c threadkey.cpp  -DDLL_EXPORT -DPIC -o
>>>>>.libs/threadkey.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
>>>>>.deps/threadkey.Tpo -c threadkey.cpp -o threadkey.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT friends.lo -MD -MP -MF ".deps/friends.Tpo" \
>>>>> -c -o friends.lo `test -f 'friends.cpp' || echo './'`friends.cpp; \
>>>>>then mv -f ".deps/friends.Tpo" ".deps/friends.Plo"; \
>>>>>else rm -f ".deps/friends.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
>>>>>.deps/friends.Tpo -c friends.cpp  -DDLL_EXPORT -DPIC -o .libs/friends.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
>>>>>.deps/friends.Tpo -c friends.cpp -o friends.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT event.lo -MD -MP -MF ".deps/event.Tpo" \
>>>>> -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
>>>>>then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
>>>>>else rm -f ".deps/event.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF
>>>>>.deps/event.Tpo -c event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF
>>>>>.deps/event.Tpo -c event.cpp -o event.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT slog.lo -MD -MP -MF ".deps/slog.Tpo" \
>>>>> -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
>>>>>then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
>>>>>else rm -f ".deps/slog.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
>>>>>-c slog.cpp -DDLL_EXPORT -DPIC -o .libs/slog.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
>>>>>-c slog.cpp -o slog.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT dir.lo -MD -MP -MF ".deps/dir.Tpo" \
>>>>> -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
>>>>>then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
>>>>>else rm -f ".deps/dir.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
>>>>>dir.cpp -DDLL_EXPORT -DPIC -o .libs/dir.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
>>>>>dir.cpp -o dir.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT file.lo -MD -MP -MF ".deps/file.Tpo" \
>>>>> -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
>>>>>then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
>>>>>else rm -f ".deps/file.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
>>>>>-c file.cpp -DDLL_EXPORT -DPIC -o .libs/file.o
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
>>>>>-c file.cpp -o file.o >/dev/null 2>&1
>>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
>>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
>>>>>-D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF ".deps/inaddr.Tpo" \
>>>>> -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
>>>>>then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
>>>>>else rm -f ".deps/inaddr.Tpo"; exit 1; \
>>>>>fi
>>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
>>>>>-I../ win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF
>>>>>.deps/inaddr.Tpo -c inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
>>>>>In file included from inaddr.cpp:43:
>>>>>../include/cc++/socket.h:762: parse error before `*' token
>>>>>../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t'
>>>>>with no type
>>>>>../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
>>>>>../include/cc++/socket.h:775: parse error before `(' token
>>>>>../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t'
>>>>>with no type
>>>>>../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
>>>>>../include/cc++/socket.h:785: declaration of `int ost::Socket::ssize_t'
>>>>>../include/cc++/socket.h:775: conflicts with previous declaration `int
>>>>>  ost::Socket::ssize_t'
>>>>>../include/cc++/socket.h:785: parse error before `(' token
>>>>>../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
>>>>>make: *** [inaddr.lo] Error 1
>>>>>
>>>>>===========snap make in src/ dir using msys/mingw ================
>>>>>that looked first promising, but the  i got some errors in socket.h.
>>>>>
>>>>>
>>>>>thx in advance to all those having read this!!!
>>>>>
>>>>>any comments on why i fail to to build the commonc++ libs/dll's using a
>>>>>crosscompile on my linux box or a compile within windows using
>>>>>mingw/msys are welcome.
>>>>>
>>>>>Wolfgang
>>>>>
>>>>>Am Samstag, 20. Dezember 2003 23:41 schrieb taraben.a@wige-data.de:
>>>>>
>>>>>>Hi Wolfgang,
>>>>>>
>>>>>>I also have problems to configure commoncpp on mingw/msys.
>>>>>>I have latest mingw/msys.
>>>>>>Try the makefile in the distro.
>>>>>>make -f Makefile.gcc
>>>>>>You need to modify some path settings and you have to shift some files
>>>>>>
>>>>>
>>>>>>from one packet to the other because of dependency. Attached the
>>>>>
>>>>>>makefile that is working for me. Tell me if this is not working for
>>>>>>you.
>>>>>>
>>>>>>Best wishes,
>>>>>>
>>>>>>Adib.
>>>>>
>>>>>_______________________________________________
>>>>>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
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 



From MAILER-DAEMON Mon Dec 22 17:45:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYYoD-0007kG-0N
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 17:45:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYYo7-0007dJ-7C
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 17:45:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYYnY-0007Nq-Ao
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 17:45:43 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYYnX-0007ND-2s
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 17:45:11 -0500
Received: from sonne.kosmos.all (213-182-115-117.teleos-web.de
	[213.182.115.117])
	by sally.dts-online.net (Postfix) with ESMTP id 162BD40CF78
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 22:43:42 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id C2CF27B32E
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 22:38:51 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Mon, 22 Dec 2003 22:38:50 +0100
User-Agent: KMail/1.5.4
References: <200312202129.01958.wolfgang@alper-online.com>
	<200312221635.32029.wolfgang@alper-online.com>
	<3FE72AEF.6010808@wige-data.de>
In-Reply-To: <3FE72AEF.6010808@wige-data.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312222238.50718.wolfgang@alper-online.com>
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Dec 2003 22:45:49 -0000

Hello Adib,

again thx (and so close to xmas ;-.),
well you were right, the makefile missed the -lxml2.

#old entry (based on makefile in first reply to this thread)
#CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lws2_32 -lwsock32

#updated entry
CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lxml2 -liberty -lws2_32

but still, it does not compile. 

any more ideas?

Again thx

Wolfgang




====snip compile using linux and mingw32 ====

wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
i586-mingw32msvc-c++ -I. -I../include -I/usr/i586-mingw32msvc/include 
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads ../tests/tcpstr1.cpp -L. -L/usr/i586-mingw32msvc/dll -lccgnu2 
-lccext2 -lws2_32 -o tcpstr1.exe
Info: resolving __ZTVN3ost9TCPStreamE by linking to 
__imp___ZTVN3ost9TCPStreamE (auto-import)
/tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD2Ev+0x14): In function `main':
/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: 
variable 'vtable for ost::TCPStream' can't be auto-imported. Please read the 
documentation for ld's --enable-auto-import for details.
/tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x2): In function `ZThn8_NSdD0Ev':
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/istream: variable 'vtable 
for ost::TCPStream' can't be auto-imported. Please read the documentation for 
ld's --enable-auto-import for details.
/tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x12): In function `main':
/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: 
variable 'vtable for ost::TCPStream' can't be auto-imported. Please read the 
documentation for ld's --enable-auto-import for details.
/tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x19):/home/wolfgang/common-c++/
commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable for 
ost::TCPStream' can't be auto-imported. Please read the documentation for 
ld's --enable-auto-import for details.
/tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x20):/home/wolfgang/common-c++/
commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable for 
ost::TCPStream' can't be auto-imported. Please read the documentation for 
ld's --enable-auto-import for details.
...
...
...
====snap compile using linux and mingw32 ====



Am Montag, 22. Dezember 2003 18:33 schrieb taraben.a@wige-data.de:
> Hello Wolfgang,
>
> The linker does not load the libxml.a library file. ... :-(
>
> my make output for the linker proccess looks like:
>
> dllwrap --export-all --output-def ccext2.def --implib libccext2.a
> --driver-name c++ -o ccext2.dll \
> buffer.o cmdoptns.o date.o digest.o engine.o fifo.o md5.o network.o
> numbers.o persist.o serial.o unix.o url.o urlstring.o xml.o -L.
> -L/usr//dll -lccgnu2 -lxml2 -liberty -lws2_32
> c:\MinGW\bin\dllwrap.exe: no export definition file provided.
> Creating one, but that may not be what you want
> make: *** No rule to make target `test_date.exe', needed by `all'.  Stop.
>
> Do you see the "-lxml2" argument. This is missing on yours. :-O
> My makefile contains:
> CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lxml2 -liberty -lws2_32
> I think you should add "-lxml2" to that variable. :-)
>
> Best wishes,
>
> Adib.
>
> Wolfgang wrote:
> > Hello Adib,
> >
> > again i moved a bit further - thx for your support.
> > for libxml2 i downloaded the following precompiled win32 bin's:
> > iconv-1.9.1.win32.zip
> > libxml2-2.6.3.win32.zip
> > and placed them in my /usr/i586-mingw32msvc dir:
> > lib/
> > include/
> > dll/
> > on my linux machine. (respectivly include/libxml).
> >
> > i had also copied over CCXX2.rc to one dir.
> > so far i could compile, but still not create the dll's. pls find attached
> > a truncated log.
> >
> > see in particular:
> > "i586-mingw32msvc-dllwrap: no export definition file provided.
> > Creating one, but that may not be what you want"
> >
> > Again any advise is very much appreciated.
> >
> > Regards
> >
> > Wolfgang
> >
> >
> >
> > =======snip mingw32 compile on linux========
> > wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> > ...
> > ...
> > ...
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/xml.o ../src/xml.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/persist.o ../src/persist.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/engine.o ../src/engine.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/digest.o ../src/digest.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/sha.o ../src/sha.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/date.o ../src/date.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/md5.o ../src/md5.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/unix.o ../src/unix.cpp
> > i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads -o ../win32/../win32/ftp.o ../src/ftp.cpp
> > i586-mingw32msvc-dllwrap --export-all --output-def ccext2.def --implib
> > libccext2.a --driver-name i586-mingw32msvc-c++ -o ccext2.dll \
> > buffer.o fifo.o pipe.o numbers.o cmdoptns.o xml.o persist.o engine.o
> > digest.o sha.o date.o md5.o unix.o ftp.o libgnu2.o -L.
> > -L/usr/i586-mingw32msvc/dll -lccgnu2 -lws2_32 -lwsock32
> > i586-mingw32msvc-dllwrap: no export definition file provided.
> > Creating one, but that may not be what you want
> > xml.o(.text+0x178): In function `ZN3ost9XMLStream5parseEPKc':
> > /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../src/xml.cpp:157:
> > undefined reference to `xmlCreatePushParserCtxt'
> > xml.o(.text+0x1bc):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../s
> >rc/ xml.cpp:164: undefined reference to `xmlParseChunk'
> > xml.o(.text+0x1da):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../s
> >rc/ xml.cpp:165: undefined reference to `xmlParseChunk'
> > xml.o(.text+0x1f6):/home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../s
> >rc/ xml.cpp:171: undefined reference to `xmlFreeParserCtxt'
> > i586-mingw32msvc-dllwrap: i586-mingw32msvc-c++ exited with status 1
> > make: *** [ccext2.dll] Fehler 1
> > wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$
> >
> > =======snap mingw32 compile on linux========
> >
> > Am Sonntag, 21. Dezember 2003 20:58 schrieb taraben.a@wige-data.de:
> >>Wolgang,
> >>
> >>sorry, forgot to tell you that I made an other change
> >>undefine the HAVE_OLD_IOSTREAM in win32/c++/config.h
> >>
> >>//#define	HAVE_OLD_IOSTREAM
> >>
> >>I swear that was the last change until success ;-) (hope you have libxml
> >>in place?)
> >>
> >>Adib.
> >>
> >>Wolfgang wrote:
> >>>Hello Adib,
> >>>
> >>>i added   #include <stdio.h>  to win32/config.h and got a bit further.
> >>>(see attached log). however there are still some probs left.
> >>>
> >>>again, any hints and ideas are welcome ;-)
> >>>
> >>>thx
> >>>
> >>>Wolfgang
> >>>
> >>>
> >>>=======snip crosscompile on debian with modified config.h =========
> >>>
> >>>wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f
> >>> Makefile.tst i586-mingw32msvc-c++ -c -I. -I../include
> >>> -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include
> >>> ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/thread.o
> >>> ../src/thread.cpp
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/mutex.o ../src/mutex.cpp
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/semaphore.o ../src/semaphore.cpp
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/threadkey.o ../src/threadkey.cpp
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/friends.o ../src/friends.cpp
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/event.o ../src/event.cpp
> >>>i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
> >>>-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> >>>-mthreads -o ../win32/../win32/slog.o ../src/slog.cpp
> >>>../src/slog.cpp: In constructor `ost::Slog::Slog()':
> >>>../src/slog.cpp:70: error: no matching function for call to `
> >>>   std::basic_ostream<char, std::char_traits<char>
> >>> >::basic_ostream(const <anonymous>**)'
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/iosfwd:64: error:
> >>>candidates
> >>>   are: std::basic_ostream<char, std::char_traits<char>
> >>>
> >>>>::basic_ostream(const std::basic_ostream<char, std::char_traits<char>
> >>>>
> >>>>&)
> >>>
> >>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ostream:106: error:
> >>>           std::basic_ostream<_CharT,
> >>>   _Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with
> >>>_CharT
> >>>   = char, _Traits = std::char_traits<char>]
> >>>make: *** [../win32/slog.o] Fehler 1
> >>>wolfgang@sonne:~/common-c++/common
> >>>
> >>>=======snap crosscompile on debian with modified config.h =========
> >>>
> >>>Am Sonntag, 21. Dezember 2003 18:50 schrieb taraben.a@wige-data.de:
> >>>>Hi Wolfgang,
> >>>>
> >>>>ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
> >>>>#include <stdio.h>
> >>>>directly after the
> >>>>#ifndef CCXX_CONFIG_H_
> >>>>#define CCXX_CONFIG_H_
> >>>>statements.
> >>>>
> >>>>HTH,
> >>>>
> >>>>Adib.
> >>>>
> >>>>Wolfgang wrote:
> >>>>>Hello,
> >>>>>
> >>>>>i still have problems to build commonc++ for the win32 platform.
> >>>>>
> >>>>>pls let me appologize in advance, if i did not follow the etiquette of
> >>>>>this mailinglist by attaching so much compiler output. the reason is
> >>>>>simply that i hope that someone can fingerpoint to what i am doing
> >>>>>wrong.
> >>>>>
> >>>>>for my last attempt to crosscompile  i used the makefile that Adib
> >>>>>provided in the recent mail (Thank your for that!) and changed only
> >>>>> the reference to minggw.
> >>>>>here the output of my attempt to compile for win32 on my linux box
> >>>>>(debiin unstable):
> >>>>>
> >>>>>=======snip====
> >>>>>/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> >>>>>i586-mingw32msvc-c++ -c -I. -I../include
> >>>>> -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE
> >>>>> -include ../win32/cc++/config.h -g -O2 -mthreads -o
> >>>>> ../win32/../win32/thread.o ../src/thread.cpp
> >>>>>In file included from
> >>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> >>>>>i586-mingw32msvc/bits/c++io.h:35,
> >>>>>                from
> >>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ bits/fpos.h:44,
> >>>>>                from
> >>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
> >>>>>bits/char_traits.h:46,
> >>>>>                from
> >>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ string:47,
> >>>>>                from ../include/cc++/strchar.h:49,
> >>>>>                from ../include/cc++/exception.h:54,
> >>>>>                from ../include/cc++/thread.h:58,
> >>>>>                from ../src/thread.cpp:43:
> >>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error:
> >>>>> ` snprintf' not declared
> >>>>>/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error:
> >>>>> ` snprintf' not declared
> >>>>>make: *** [../win32/thread.o] Fehler 1
> >>>>>
> >>>>>=========snap===========
> >>>>>It seems this is because the redefiinition of snprintf for a mingw32
> >>>>>compile ,that i saw in one of the header files, did not apply.
> >>>>>(and therefore some other minggw specific defines will not have
> >>>>> applied as well).  but why?
> >>>>>
> >>>>>so i tried again to compile on a native windows system using the
> >>>>>following versions of mingw and msys: (fresh install)
> >>>>>mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
> >>>>>msys: 1.0.10.rc3
> >>>>>
> >>>>>
> >>>>>i extracted the commonc++ archive in its own directory below the msys
> >>>>>homedir und ran ./configure
> >>>>>=======snip configure on win32 using mingw/msys===============
> >>>>>
> >>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>>>$ ./configure
> >>>>>checking build system type... i686-pc-mingw32
> >>>>>checking host system type... i686-pc-mingw32
> >>>>>checking target system type... i686-pc-mingw32
> >>>>>checking for gcc... gcc
> >>>>>checking for C compiler default output... a.exe
> >>>>>checking whether the C compiler works... yes
> >>>>>checking whether we are cross compiling... no
> >>>>>checking for suffix of executables... .exe
> >>>>>checking for suffix of object files... o
> >>>>>checking whether we are using the GNU C compiler... yes
> >>>>>checking whether gcc accepts -g... yes
> >>>>>checking for gcc option to accept ANSI C... none needed
> >>>>>checking for egrep... grep -E
> >>>>>checking for ANSI C header files... no
> >>>>>checking for sys/types.h... yes
> >>>>>checking for sys/stat.h... yes
> >>>>>checking for stdlib.h... yes
> >>>>>checking for string.h... yes
> >>>>>checking for memory.h... yes
> >>>>>checking for strings.h... yes
> >>>>>checking for inttypes.h... yes
> >>>>>checking for stdint.h... yes
> >>>>>checking for unistd.h... yes
> >>>>>checking for gcc... (cached) gcc
> >>>>>checking whether we are using the GNU C compiler... (cached) yes
> >>>>>checking whether gcc accepts -g... (cached) yes
> >>>>>checking for gcc option to accept ANSI C... (cached) none needed
> >>>>>checking how to run the C preprocessor... gcc -E
> >>>>>checking for strerror in -lcposix... no
> >>>>>checking minix/config.h usability... no
> >>>>>checking minix/config.h presence... no
> >>>>>checking for minix/config.h... no
> >>>>>checking for MSC environment... no
> >>>>>checking for a sed that does not truncate output... /bin/sed
> >>>>>checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
> >>>>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
> >>>>>ld... yes
> >>>>>checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload
> >>>>>object files... -r
> >>>>>checking for BSD-compatible nm... /mingw/bin/nm
> >>>>>checking whether ln -s works... yes
> >>>>>checking how to recognise dependent libraries... file_magic ^x86
> >>>>> archive import|^x86 DLL
> >>>>>checking dlfcn.h usability... no
> >>>>>checking dlfcn.h presence... no
> >>>>>checking for dlfcn.h... no
> >>>>>checking for g++... g++
> >>>>>checking whether we are using the GNU C++ compiler... yes
> >>>>>checking whether g++ accepts -g... yes
> >>>>>checking how to run the C++ preprocessor... g++ -E
> >>>>>checking for g77... g77
> >>>>>checking whether we are using the GNU Fortran 77 compiler... yes
> >>>>>checking whether g77 accepts -g... yes
> >>>>>checking the maximum length of command line arguments... 8192
> >>>>>checking command to parse /mingw/bin/nm output from gcc object... ok
> >>>>>checking for objdir... .libs
> >>>>>checking for ar... ar
> >>>>>checking for ranlib... ranlib
> >>>>>checking for strip... strip
> >>>>>checking if gcc static flag  works... yes
> >>>>>checking if gcc supports -fno-rtti -fno-exceptions... yes
> >>>>>checking for gcc option to produce PIC... -DDLL_EXPORT
> >>>>>checking if gcc PIC flag -DDLL_EXPORT works... yes
> >>>>>checking if gcc supports -c -o file.o... yes
> >>>>>checking whether the gcc linker
> >>>>> (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) supports shared libraries...
> >>>>> yes
> >>>>>checking whether -lc should be explicitly linked in... yes
> >>>>>checking how to hardcode library paths into programs... immediate
> >>>>>checking whether stripping libraries is possible... yes
> >>>>>checking dynamic linker characteristics... Win32 ld.exe
> >>>>>checking if libtool supports shared libraries... yes
> >>>>>checking whether to build shared libraries... yes
> >>>>>checking whether to build static libraries... yes
> >>>>>configure: creating libtool
> >>>>>appending configuration tag "CXX" to libtool
> >>>>>checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
> >>>>>checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
> >>>>>ld... yes
> >>>>>checking whether the g++ linker
> >>>>> (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) supports shared libraries...
> >>>>> yes
> >>>>>checking for g++ option to produce PIC... -DDLL_EXPORT
> >>>>>checking if g++ PIC flag -DDLL_EXPORT works... yes
> >>>>>checking if g++ supports -c -o file.o... yes
> >>>>>checking whether the g++ linker
> >>>>> (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) supports shared libraries...
> >>>>> yes
> >>>>>checking how to hardcode library paths into programs... immediate
> >>>>>checking whether stripping libraries is possible... yes
> >>>>>checking dynamic linker characteristics... Win32 ld.exe
> >>>>>appending configuration tag "F77" to libtool
> >>>>>checking if libtool supports shared libraries... yes
> >>>>>checking whether to build shared libraries... yes
> >>>>>checking whether to build static libraries... yes
> >>>>>checking for g77 option to produce PIC... -DDLL_EXPORT
> >>>>>checking if g77 PIC flag -DDLL_EXPORT works... yes
> >>>>>checking if g77 supports -c -o file.o... yes
> >>>>>checking whether the g77 linker
> >>>>> (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) supports shared libraries...
> >>>>> yes
> >>>>>checking how to hardcode library paths into programs... immediate
> >>>>>checking whether stripping libraries is possible... yes
> >>>>>checking dynamic linker characteristics... Win32 ld.exe
> >>>>>checking for a BSD-compatible install... /bin/install -c
> >>>>>checking whether build environment is sane... yes
> >>>>>checking for gawk... gawk
> >>>>>checking whether make sets $(MAKE)... yes
> >>>>>checking for style of include used by make... GNU
> >>>>>checking dependency style of gcc... gcc3
> >>>>>checking dependency style of g++... gcc3
> >>>>>checking for ranlib... (cached) ranlib
> >>>>>checking for genorated automake files... found
> >>>>>checking whether to enable maintainer-specific portions of
> >>>>> Makefiles... no checking for Win32 gnu environment... yes
> >>>>>checking whether system meets Posix.1... no
> >>>>>checking for unistd.h... (cached) yes
> >>>>>checking endian.h usability... no
> >>>>>checking endian.h presence... no
> >>>>>checking for endian.h... no
> >>>>>checking fcntl.h usability... yes
> >>>>>checking fcntl.h presence... yes
> >>>>>checking for fcntl.h... yes
> >>>>>checking sys/fcntl.h usability... yes
> >>>>>checking sys/fcntl.h presence... yes
> >>>>>checking for sys/fcntl.h... yes
> >>>>>checking for sys/types.h... (cached) yes
> >>>>>checking for sigaction... no
> >>>>>checking for setitimer... no
> >>>>>checking for sigwait... no
> >>>>>checking bsd/signal.h usability... no
> >>>>>checking bsd/signal.h presence... no
> >>>>>checking for bsd/signal.h... no
> >>>>>checking return type of signal handlers... void
> >>>>>checking whether sigwait has 2 arguments... yes
> >>>>>checking for strcasecmp... yes
> >>>>>checking for strdup... yes
> >>>>>checking for snprintf... yes
> >>>>>checking for memmove... yes
> >>>>>checking for strings.h... (cached) yes
> >>>>>checking for getopt... yes
> >>>>>checking getopt.h usability... yes
> >>>>>checking getopt.h presence... yes
> >>>>>checking for getopt.h... yes
> >>>>>checking for getopt_long in -lgnugetopt... no
> >>>>>checking for getopt_long... yes
> >>>>>checking for dlfcn.h... (cached) no
> >>>>>checking for shl_load in -ldld... no
> >>>>>checking for dlopen in -ldl... no
> >>>>>checking for dlopen in -lc... no
> >>>>>checking mach-o/dyld.h usability... no
> >>>>>checking mach-o/dyld.h presence... no
> >>>>>checking for mach-o/dyld.h... no
> >>>>>checking whether time.h and sys/time.h may both be included... yes
> >>>>>checking sys/time.h usability... yes
> >>>>>checking sys/time.h presence... yes
> >>>>>checking for sys/time.h... yes
> >>>>>checking features.h usability... no
> >>>>>checking features.h presence... no
> >>>>>checking for features.h... no
> >>>>>checking pthread.h usability... no
> >>>>>checking pthread.h presence... no
> >>>>>checking for pthread.h... no
> >>>>>checking sys/atomic.h usability... no
> >>>>>checking sys/atomic.h presence... no
> >>>>>checking for sys/atomic.h... no
> >>>>>checking thread.h usability... no
> >>>>>checking thread.h presence... no
> >>>>>checking for thread.h... no
> >>>>>checking for setenv... no
> >>>>>checking for localtime_r in -lc_r... no
> >>>>>checking for strtok_r in -lc... no
> >>>>>checking for localtime_r in -lc... no
> >>>>>checking sys/socket.h usability... no
> >>>>>checking sys/socket.h presence... no
> >>>>>checking for sys/socket.h... no
> >>>>>checking winsock.h usability... yes
> >>>>>checking winsock.h presence... yes
> >>>>>checking for winsock.h... yes
> >>>>>checking for socket in -lsocket... no
> >>>>>checking sys/libcsys.h usability... no
> >>>>>checking sys/libcsys.h presence... no
> >>>>>checking for sys/libcsys.h... no
> >>>>>checking for inet_aton in -lc... no
> >>>>>checking for socklen_t defined... no
> >>>>>checking poll.h usability... no
> >>>>>checking poll.h presence... no
> >>>>>checking for poll.h... no
> >>>>>checking sys/poll.h usability... no
> >>>>>checking sys/poll.h presence... no
> >>>>>checking for sys/poll.h... no
> >>>>>checking sys/stream.h usability... no
> >>>>>checking sys/stream.h presence... no
> >>>>>checking for sys/stream.h... no
> >>>>>checking for poll... no
> >>>>>checking zlib.h usability... no
> >>>>>checking zlib.h presence... no
> >>>>>checking for zlib.h... no
> >>>>>checking for xml2-config... no
> >>>>>checking for xml-config... no
> >>>>>checking for valid libxml2... no
> >>>>>checking sys/file.h usability... yes
> >>>>>checking sys/file.h presence... yes
> >>>>>checking for sys/file.h... yes
> >>>>>checking sys/lockf.h usability... no
> >>>>>checking sys/lockf.h presence... no
> >>>>>checking for sys/lockf.h... no
> >>>>>checking syslog.h usability... no
> >>>>>checking syslog.h presence... no
> >>>>>checking for syslog.h... no
> >>>>>checking posix_evlog.h usability... no
> >>>>>checking posix_evlog.h presence... no
> >>>>>checking for posix_evlog.h... no
> >>>>>checking ss.h usability... no
> >>>>>checking ss.h presence... no
> >>>>>checking for ss.h... no
> >>>>>checking how to run the C preprocessor... gcc -E
> >>>>>checking whether we are using the GNU C++ compiler... (cached) yes
> >>>>>checking whether g++ accepts -g... (cached) yes
> >>>>>checking how to run the C++ preprocessor... g++ -E
> >>>>>checking whether g++ has built-in bool type... yes
> >>>>>checking whether g++ supports -fhandle-exceptions... no
> >>>>>checking whether g++ supports exception handling... yes
> >>>>>checking exception usability... yes
> >>>>>checking exception presence... yes
> >>>>>checking for exception... yes
> >>>>>checking whether g++ supports mutable... yes
> >>>>>checking whether g++ supports namespace... yes
> >>>>>checking wheather old style iostreams... no
> >>>>>checking whether g++ has new(size_t,void*)... yes
> >>>>>checking sstream usability... yes
> >>>>>checking sstream presence... yes
> >>>>>checking for sstream... yes
> >>>>>checking for debugging... no
> >>>>>checking for profiling... no
> >>>>>configure: creating ./config.status
> >>>>>config.status: creating src/ccgnu2-config
> >>>>>config.status: creating src/Makefile
> >>>>>config.status: creating win32/Makefile
> >>>>>config.status: creating m4/Makefile
> >>>>>config.status: creating config/Makefile
> >>>>>config.status: creating doc/Makefile
> >>>>>config.status: creating demo/Makefile
> >>>>>config.status: creating include/Makefile
> >>>>>config.status: creating include/cc++/Makefile
> >>>>>config.status: creating Makefile
> >>>>>config.status: creating template/Makefile
> >>>>>config.status: creating commoncpp2.spec
> >>>>>config.status: creating tests/Makefile
> >>>>>config.status: creating commoncpp2.proto
> >>>>>config.status: creating freebsd/Makefile
> >>>>>config.status: creating freebsd/pkg-plist
> >>>>>config.status: creating pkginfo
> >>>>>config.status: creating win32/CCXX2.rc
> >>>>>config.status: creating include/config.h
> >>>>>config.status: executing depfiles commands
> >>>>>
> >>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>>>
> >>>>>
> >>>>>=======snap configure on win32 using mingw/msys===============
> >>>>>i guess that is ok!?
> >>>>>
> >>>>>
> >>>>>
> >>>>>then i tried make:
> >>>>>===========snip make in msys/mingw ================
> >>>>>
> >>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>>>$ make
> >>>>>Making all in include
> >>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>>>make  all-recursive
> >>>>>make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>>>Making all in cc++
> >>>>>make[3]: Entering directory
> >>>>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Nothing to be
> >>>>>done for `all'.
> >>>>>make[3]: Leaving directory
> >>>>>`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Entering
> >>>>>directory `/home/Wolfgang/commoncpp2-1.0.13/include' make[3]: Nothing
> >>>>> to be done for `all-am'.
> >>>>>make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>>>make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
> >>>>>Making all in win32
> >>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
> >>>>>make[1]: Nothing to be done for `all'.
> >>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
> >>>>>Making all in template
> >>>>>make[1]: Entering directory
> >>>>> `/home/Wolfgang/commoncpp2-1.0.13/template' make[1]: Nothing to be
> >>>>> done for `all'.
> >>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
> >>>>>Making all in doc
> >>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
> >>>>>make[1]: Nothing to be done for `all'.
> >>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
> >>>>>make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
> >>>>>make[1]: Nothing to be done for `all-am'.
> >>>>>make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'
> >>>>>
> >>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13
> >>>>>
> >>>>>===========snap make in msys/mingw ================
> >>>>>
> >>>>>well i was surpised that make returned with "nothing to do ...." so i
> >>>>>cd'ed int src/ and tried make within the src/ dir since no object
> >>>>> files had been created before...
> >>>>>
> >>>>>
> >>>>>===========snip make in src/ dir using msys/mingw ================
> >>>>>
> >>>>>Wolfgang@SATURN ~/commoncpp2-1.0.13/src
> >>>>>$ make
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
> >>>>> -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
> >>>>>then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
> >>>>>else rm -f ".deps/thread.Tpo"; exit 1; \
> >>>>>fi
> >>>>>mkdir .libs
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/thread.Tpo -c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/thread.Tpo -c thread.cpp -o thread.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT mutex.lo -MD -MP -MF ".deps/mutex.Tpo" \
> >>>>> -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
> >>>>>then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
> >>>>>else rm -f ".deps/mutex.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/mutex.Tpo -c mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/mutex.Tpo -c mutex.cpp -o mutex.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
> >>>>> -c -o semaphore.lo `test -f 'semaphore.cpp' || echo
> >>>>>'./'`semaphore.cpp; \ then mv -f ".deps/semaphore.Tpo"
> >>>>>".deps/semaphore.Plo"; \
> >>>>>else rm -f ".deps/semaphore.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT
> >>>>> semaphore.lo -MD -MP -MF .deps/semaphore.Tpo -c semaphore.cpp 
> >>>>> -DDLL_EXPORT -DPIC -o
> >>>>>.libs/semaphore.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT
> >>>>> semaphore.lo -MD -MP -MF .deps/semaphore.Tpo -c semaphore.cpp -o
> >>>>> semaphore.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++
> >>>>> -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY 
> >>>>> -I../win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
> >>>>> ".deps/threadkey.Tpo" \ -c -o threadkey.lo `test -f 'threadkey.cpp'
> >>>>> || echo
> >>>>>'./'`threadkey.cpp; \ then mv -f ".deps/threadkey.Tpo"
> >>>>>".deps/threadkey.Plo"; \
> >>>>>else rm -f ".deps/threadkey.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT
> >>>>> threadkey.lo -MD -MP -MF .deps/threadkey.Tpo -c threadkey.cpp 
> >>>>> -DDLL_EXPORT -DPIC -o
> >>>>>.libs/threadkey.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT
> >>>>> threadkey.lo -MD -MP -MF .deps/threadkey.Tpo -c threadkey.cpp -o
> >>>>> threadkey.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++
> >>>>> -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY 
> >>>>> -I../win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
> >>>>> ".deps/friends.Tpo" \ -c -o friends.lo `test -f 'friends.cpp' || echo
> >>>>> './'`friends.cpp; \ then mv -f ".deps/friends.Tpo"
> >>>>> ".deps/friends.Plo"; \
> >>>>>else rm -f ".deps/friends.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/friends.Tpo -c friends.cpp  -DDLL_EXPORT -DPIC -o
> >>>>> .libs/friends.o g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/friends.Tpo -c friends.cpp -o friends.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT event.lo -MD -MP -MF ".deps/event.Tpo" \
> >>>>> -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
> >>>>>then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
> >>>>>else rm -f ".deps/event.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/event.Tpo -c event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/event.Tpo -c event.cpp -o event.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT slog.lo -MD -MP -MF ".deps/slog.Tpo" \
> >>>>> -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
> >>>>>then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
> >>>>>else rm -f ".deps/slog.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo
> >>>>> -MD -MP -MF .deps/slog.Tpo -c slog.cpp -DDLL_EXPORT -DPIC -o
> >>>>> .libs/slog.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo
> >>>>> -MD -MP -MF .deps/slog.Tpo -c slog.cpp -o slog.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT dir.lo -MD -MP -MF ".deps/dir.Tpo" \
> >>>>> -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
> >>>>>then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
> >>>>>else rm -f ".deps/dir.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD
> >>>>> -MP -MF .deps/dir.Tpo -c dir.cpp -DDLL_EXPORT -DPIC -o .libs/dir.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD
> >>>>> -MP -MF .deps/dir.Tpo -c dir.cpp -o dir.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT file.lo -MD -MP -MF ".deps/file.Tpo" \
> >>>>> -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
> >>>>>then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
> >>>>>else rm -f ".deps/file.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo
> >>>>> -MD -MP -MF .deps/file.Tpo -c file.cpp -DDLL_EXPORT -DPIC -o
> >>>>> .libs/file.o
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo
> >>>>> -MD -MP -MF .deps/file.Tpo -c file.cpp -o file.o >/dev/null 2>&1
> >>>>>if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> >>>>>-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
> >>>>>-D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF ".deps/inaddr.Tpo" \
> >>>>> -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
> >>>>>then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
> >>>>>else rm -f ".deps/inaddr.Tpo"; exit 1; \
> >>>>>fi
> >>>>>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> >>>>> -DCCXX_EXPORT_LIBRARY -I../ win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo
> >>>>> -MD -MP -MF
> >>>>>.deps/inaddr.Tpo -c inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
> >>>>>In file included from inaddr.cpp:43:
> >>>>>../include/cc++/socket.h:762: parse error before `*' token
> >>>>>../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t'
> >>>>>with no type
> >>>>>../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
> >>>>>../include/cc++/socket.h:775: parse error before `(' token
> >>>>>../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t'
> >>>>>with no type
> >>>>>../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
> >>>>>../include/cc++/socket.h:785: declaration of `int
> >>>>> ost::Socket::ssize_t' ../include/cc++/socket.h:775: conflicts with
> >>>>> previous declaration `int ost::Socket::ssize_t'
> >>>>>../include/cc++/socket.h:785: parse error before `(' token
> >>>>>../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
> >>>>>make: *** [inaddr.lo] Error 1
> >>>>>
> >>>>>===========snap make in src/ dir using msys/mingw ================
> >>>>>that looked first promising, but the  i got some errors in socket.h.
> >>>>>
> >>>>>
> >>>>>thx in advance to all those having read this!!!
> >>>>>
> >>>>>any comments on why i fail to to build the commonc++ libs/dll's using
> >>>>> a crosscompile on my linux box or a compile within windows using
> >>>>> mingw/msys are welcome.
> >>>>>
> >>>>>Wolfgang
> >>>>>
> >>>>>Am Samstag, 20. Dezember 2003 23:41 schrieb taraben.a@wige-data.de:
> >>>>>>Hi Wolfgang,
> >>>>>>
> >>>>>>I also have problems to configure commoncpp on mingw/msys.
> >>>>>>I have latest mingw/msys.
> >>>>>>Try the makefile in the distro.
> >>>>>>make -f Makefile.gcc
> >>>>>>You need to modify some path settings and you have to shift some
> >>>>>> files
> >>>>>>
> >>>>>>
> >>>>>>from one packet to the other because of dependency. Attached the
> >>>>>>
> >>>>>>makefile that is working for me. Tell me if this is not working for
> >>>>>>you.
> >>>>>>
> >>>>>>Best wishes,
> >>>>>>
> >>>>>>Adib.
> >>>>>
> >>>>>_______________________________________________
> >>>>>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
> >
> > _______________________________________________
> > 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




From MAILER-DAEMON Mon Dec 22 18:54:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYZr7-0003Mh-PF
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 18:52:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYZr3-0003LY-EQ
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 18:52:53 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYZqU-0003C9-9K
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 18:52:49 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYZqT-0003BZ-7u
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 18:52:17 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBMMoiGH027197
	for <bug-commoncpp@gnu.org>; Mon, 22 Dec 2003 23:50:44 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP8SM>; Mon, 22 Dec 2003 23:50:38 +0100
Received: from wige-data.de (ACB0DC22.ipt.aol.com [172.176.220.34]) by
	mailserver.wige-data.de with SMTP (Microsoft Exchange Internet
	Mail Service Version 5.5.2653.13)
	id YVLJP8SL; Mon, 22 Dec 2003 23:50:36 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FE775EE.9050203@wige-data.de>
Date: Mon, 22 Dec 2003 23:53:34 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <200312202129.01958.wolfgang@alper-online.com>	<200312221635.32029.wolfgang@alper-online.com>	<3FE72AEF.6010808@wige-data.de>
	<200312222238.50718.wolfgang@alper-online.com>
In-Reply-To: <200312222238.50718.wolfgang@alper-online.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by bns1.envia-tel.net id
	hBMMoiGH027197
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Dec 2003 23:52:55 -0000

Hi Wolfgang,

I have no glue what this stuff seems to be ... :-O
You have the modules in the same order as I have. I can compile a=20
program that use serial port and network :-)
The Compiler-output for tcpstr1 is (I made a small DevCpp-project)

Compiler: Default compiler
Building Makefile: "U:\Adib\projekte\ser2net\src\Makefile.win"
F=FChrt  make... aus
mingw32-make.exe -f "U:\Adib\projekte\ser2net\src\Makefile.win" all
mingw32-g++.exe -D__DEBUG__ -c tcpstr1.cpp -o tcpstr1.o=20
-I"C:/MinGW/include/c++/3.2.3"  -I"C:/MinGW/include/c++/3.2.3/mingw32"=20
-I"C:/MinGW/include/c++/3.2.3/backward"  -I"C:/MinGW/include"=20
-I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"=20
-I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"=20
-I"C:/usr/include"   -g3

mingw32-g++.exe -D__DEBUG__ tcpstr1.o  -o "tcpstr1.exe" -L"C:/MinGW/lib"=20
-L"C:/Dev-Cpp/lib" -L"." -L"c:/usr/dll" libccgnu2.a libccext2.a=20
C:/MinGW/lib/libwsock32.a

Ausf=FChrung beendet
Kompilierung erfolgreich

means: well done, compiling ok.
When I run this program it looks silly. It just prints "peppo" to stdout=20
instead of waiting for a connection. (A problem with the isPending=20
function???)

HTH

Adib.



Wolfgang wrote:
> Hello Adib,
>=20
> again thx (and so close to xmas ;-.),
> well you were right, the makefile missed the -lxml2.
>=20
> #old entry (based on makefile in first reply to this thread)
> #CCEXT2_LDFLAGS =3D -L. -L$(prefix)/dll -lccgnu2 -lws2_32 -lwsock32
>=20
> #updated entry
> CCEXT2_LDFLAGS =3D -L. -L$(prefix)/dll -lccgnu2 -lxml2 -liberty -lws2_3=
2
>=20
> but still, it does not compile.=20
>=20
> any more ideas?
>=20
> Again thx
>=20
> Wolfgang
>=20
>=20
>=20
>=20
> =3D=3D=3D=3Dsnip compile using linux and mingw32 =3D=3D=3D=3D
>=20
> wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.t=
st
> i586-mingw32msvc-c++ -I. -I../include -I/usr/i586-mingw32msvc/include=20
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2=20
> -mthreads ../tests/tcpstr1.cpp -L. -L/usr/i586-mingw32msvc/dll -lccgnu2=
=20
> -lccext2 -lws2_32 -o tcpstr1.exe
> Info: resolving __ZTVN3ost9TCPStreamE by linking to=20
> __imp___ZTVN3ost9TCPStreamE (auto-import)
> /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD2Ev+0x14): In function `main':
> /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:=
26:=20
> variable 'vtable for ost::TCPStream' can't be auto-imported. Please rea=
d the=20
> documentation for ld's --enable-auto-import for details.
> /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x2): In function `ZThn8_NS=
dD0Ev':
> /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/istream: variable '=
vtable=20
> for ost::TCPStream' can't be auto-imported. Please read the documentati=
on for=20
> ld's --enable-auto-import for details.
> /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x12): In function `main':
> /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:=
26:=20
> variable 'vtable for ost::TCPStream' can't be auto-imported. Please rea=
d the=20
> documentation for ld's --enable-auto-import for details.
> /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x19):/home/wolfgang/common=
-c++/
> commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable for=20
> ost::TCPStream' can't be auto-imported. Please read the documentation f=
or=20
> ld's --enable-auto-import for details.
> /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x20):/home/wolfgang/common=
-c++/
> commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable for=20
> ost::TCPStream' can't be auto-imported. Please read the documentation f=
or=20
> ld's --enable-auto-import for details.
> ...
> ...
> ...
> =3D=3D=3D=3Dsnap compile using linux and mingw32 =3D=3D=3D=3D
... aso



From MAILER-DAEMON Mon Dec 22 19:45:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYagB-0004YG-56
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:45:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYag6-0004Wn-Nu
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:45:38 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYafW-0004LH-MZ
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:45:35 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AYafV-0004C1-Jr
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:45:01 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AYZZK-00036Y-Jc
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 18:34:34 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBN1aWFp018036; Mon, 22 Dec 2003 20:36:32 -0500
From: David Sugar <dyfet@ostel.com>
To: "Keith Thornton" <keith.thornton@agfa.com>,
	"bug-commoncpp" <bug-commoncpp@gnu.org>
Date: Mon, 22 Dec 2003 18:52:13 -0500
User-Agent: KMail/1.5.3
References: <OF4F452C6F.51A44979-ONC1256E04.00275F79@agfa.be>
In-Reply-To: <OF4F452C6F.51A44979-ONC1256E04.00275F79@agfa.be>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312221852.13601.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>
Subject: Re: Release date commoncpp2-1.1
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 00:45:40 -0000

Perhaps mid-January while I am in Aachen.  I will discuss that with Federico 
then.  There are very few open issues in 1.1 that I am aware of, including 
the handling of "delete this" in final() methods on w32, and many critical 
bugs that are solved in 1.1 which still exist in 1.0, so it's desirable to do 
this very soon.  Originally it was intended to be released mid December, but 
other issues got in the way of being able to do that.

On Monday 22 December 2003 02:11 am, Keith Thornton wrote:
> Is there a planned date for the release of commoncpp2-1.1 ?
> regards
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Mon Dec 22 19:55:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYapv-0008Ib-Cm
	for mharc-bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:55:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYaps-0008I6-IF
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:55:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYapK-0008AO-2N
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:55:42 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AYapJ-00089i-MD
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 19:55:09 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AYZrn-0003qk-LR
	for bug-commoncpp@gnu.org; Mon, 22 Dec 2003 18:53:39 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBN1tkFp018191; Mon, 22 Dec 2003 20:55:46 -0500
From: David Sugar <dyfet@ostel.com>
To: "Julie Russell" <julie.russell@throughput.com.au>
Date: Mon, 22 Dec 2003 19:11:28 -0500
User-Agent: KMail/1.5.3
References: <CAEDLLCOCGBPMAAFIFOCGENOCAAA.julie.russell@throughput.com.au>
In-Reply-To: <CAEDLLCOCGBPMAAFIFOCGENOCAAA.julie.russell@throughput.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312221911.28113.dyfet@ostel.com>
Cc: "Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Subject: Re: Interrupt
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 00:55:45 -0000

To get timing to be correct, you need to use the latest savannah cvs (1.1 
tree), but also the Conditional object includes it's own mutex object.  
Hence, you would use conditional->enterMutex() rather than a foreign mutex.

On Sunday 21 December 2003 09:04 pm, Julie Russell wrote:
> Hi David,
>
> Thanks for your reply. I have now tried to implement a Conditional, however
> I can't find an example of this anywhere. I tried doing this:
>
> mutex->enterMutex();
> conditional->wait(20000); (timeout in 20 secs)
> mutex->leaveMutex();
>
> however it doesn't appear to wait 20 seconds... Can you post a basic
> example of how this conditional is implemented. That would help a lot. I
> passed the conditional from the class that calls the signal, saw an example
> of a wait that did that.
>
> Regards,
> Julie.
>
> > -----Original Message-----
> > From: David Sugar [mailto:dyfet@ostel.com]
> > Sent: Saturday, 20 December 2003 10:39 PM
> > To: Julie Russell; Bug-Commoncpp@Gnu. Org
> > Subject: Re: Interrupt
> >
> >
> > *This message was transferred with a trial version of CommuniGate(tm)
> > Pro* One way to do this is to sleep the thread on a "conditional", and
> > then use a
> > signal to "wake" it early.  This of course only works on pthread/posix
> > systems.  The nearest equiv. in w32 is to use a timed semaphore wait, but
> > that is not supported in pthreads :).  I suppose we could construct an
> > alrernate sleep object that uses one or the other method based on
> > the target,
> > like was done for the Buffer class....
> >
> > On Friday 19 December 2003 01:40 am, Julie Russell wrote:
> > > Hi there,
> > >
> > > I want to interrupt a thread from it's sleeping process, yet I
> >
> > can't seem
> >
> > > to see an interrupt method in the documentation. Is there one,
> >
> > and if I use
> >
> > > it, does it stop sleeping and resume the next line of execution, or how
> > > does it work?
> > >
> > > Thanks in advance,
> > > Julie.
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 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




From MAILER-DAEMON Tue Dec 23 08:22:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYmUT-0008Gw-Of
	for mharc-bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:22:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYmUC-0008BQ-R1
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:22:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYmTc-0007ya-D8
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:22:04 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYmPB-00064o-4j
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:16:57 -0500
Received: from sonne.kosmos.all (213-182-112-28.teleos-web.de [213.182.112.28])
	by sally.dts-online.net (Postfix) with ESMTP id F3B2849DAEA
	for <bug-commoncpp@gnu.org>; Tue, 23 Dec 2003 13:15:27 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 251297B32E
	for <bug-commoncpp@gnu.org>; Tue, 23 Dec 2003 13:10:35 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: bug-commoncpp@gnu.org
Date: Tue, 23 Dec 2003 13:10:33 +0100
User-Agent: KMail/1.5.4
References: <200312202129.01958.wolfgang@alper-online.com>
	<200312222238.50718.wolfgang@alper-online.com>
	<3FE775EE.9050203@wige-data.de>
In-Reply-To: <3FE775EE.9050203@wige-data.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Disposition: inline
Message-Id: <200312231310.33161.wolfgang@alper-online.com>
Content-Transfer-Encoding: quoted-printable
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 13:22:20 -0000

Adib,

No problem, you helped me a lot already. maybe someone else has an idea.

anyway - merry xmas :-)

Best regards

Wolfgang


Am Montag, 22. Dezember 2003 23:53 schrieb taraben.a@wige-data.de:
> Hi Wolfgang,
>
> I have no glue what this stuff seems to be ... :-O
> You have the modules in the same order as I have. I can compile a
> program that use serial port and network :-)
> The Compiler-output for tcpstr1 is (I made a small DevCpp-project)
>
> Compiler: Default compiler
> Building Makefile: "U:\Adib\projekte\ser2net\src\Makefile.win"
> F=FChrt  make... aus
> mingw32-make.exe -f "U:\Adib\projekte\ser2net\src\Makefile.win" all
> mingw32-g++.exe -D__DEBUG__ -c tcpstr1.cpp -o tcpstr1.o
> -I"C:/MinGW/include/c++/3.2.3"  -I"C:/MinGW/include/c++/3.2.3/mingw32"
> -I"C:/MinGW/include/c++/3.2.3/backward"  -I"C:/MinGW/include"
> -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"
> -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"
> -I"C:/usr/include"   -g3
>
> mingw32-g++.exe -D__DEBUG__ tcpstr1.o  -o "tcpstr1.exe" -L"C:/MinGW/lib=
"
> -L"C:/Dev-Cpp/lib" -L"." -L"c:/usr/dll" libccgnu2.a libccext2.a
> C:/MinGW/lib/libwsock32.a
>
> Ausf=FChrung beendet
> Kompilierung erfolgreich
>
> means: well done, compiling ok.
> When I run this program it looks silly. It just prints "peppo" to stdou=
t
> instead of waiting for a connection. (A problem with the isPending
> function???)
>
> HTH
>
> Adib.
>
> Wolfgang wrote:
> > Hello Adib,
> >
> > again thx (and so close to xmas ;-.),
> > well you were right, the makefile missed the -lxml2.
> >
> > #old entry (based on makefile in first reply to this thread)
> > #CCEXT2_LDFLAGS =3D -L. -L$(prefix)/dll -lccgnu2 -lws2_32 -lwsock32
> >
> > #updated entry
> > CCEXT2_LDFLAGS =3D -L. -L$(prefix)/dll -lccgnu2 -lxml2 -liberty -lws2=
_32
> >
> > but still, it does not compile.
> >
> > any more ideas?
> >
> > Again thx
> >
> > Wolfgang
> >
> >
> >
> >
> > =3D=3D=3D=3Dsnip compile using linux and mingw32 =3D=3D=3D=3D
> >
> > wolfgang@sonne:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile=
.tst
> > i586-mingw32msvc-c++ -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads ../tests/tcpstr1.cpp -L. -L/usr/i586-mingw32msvc/dll -lccgn=
u2
> > -lccext2 -lws2_32 -o tcpstr1.exe
> > Info: resolving __ZTVN3ost9TCPStreamE by linking to
> > __imp___ZTVN3ost9TCPStreamE (auto-import)
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD2Ev+0x14): In function `main'=
:
> > /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cp=
p:26
> >: variable 'vtable for ost::TCPStream' can't be auto-imported. Please =
read
> > the documentation for ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x2): In function
> > `ZThn8_NSdD0Ev':
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/istream: variable
> > 'vtable for ost::TCPStream' can't be auto-imported. Please read the
> > documentation for ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x12): In function `main'=
:
> > /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cp=
p:26
> >: variable 'vtable for ost::TCPStream' can't be auto-imported. Please =
read
> > the documentation for ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x19):/home/wolfgang/comm=
on-c
> >++/ commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable =
for
> > ost::TCPStream' can't be auto-imported. Please read the documentation=
 for
> > ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x20):/home/wolfgang/comm=
on-c
> >++/ commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable =
for
> > ost::TCPStream' can't be auto-imported. Please read the documentation=
 for
> > ld's --enable-auto-import for details.
> > ...
> > ...
> > ...
> > =3D=3D=3D=3Dsnap compile using linux and mingw32 =3D=3D=3D=3D
>
> ... aso
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Tue Dec 23 08:33:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYmf9-000385-RI
	for mharc-bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:33:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYmf7-000376-3f
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:33:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYmea-0002wZ-88
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:33:24 -0500
Received: from [210.212.194.2] (helo=mail.nitk.ac.in)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYmeZ-0002wD-8B
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 08:32:52 -0500
Received: from smailer.krec.ac.in (stumail.nitk.ac.in [210.212.194.24])
	by mail.nitk.ac.in (Postfix) with ESMTP id 19B43CB8C8
	for <bug-commoncpp@gnu.org>; Tue, 23 Dec 2003 17:41:02 +0530 (IST)
Received: from krec.ac.in (stumail.nitk.ac.in [210.212.194.24])
	by smailer.krec.ac.in (Postfix) with SMTP id 48223586A9
	for <bug-commoncpp@gnu.org.>; Tue, 23 Dec 2003 18:05:16 +0530 (IST)
Received: from 203.200.40.199 (proxying for unknown)
	(SquirrelMail authenticated user pcs02861)
	by vidur.krec.ac.in with HTTP; Tue, 23 Dec 2003 18:05:16 +0530 (IST)
Message-ID: <55188.203.200.40.199.1072182916.squirrel@vidur.krec.ac.in>
Date: Tue, 23 Dec 2003 18:05:16 +0530 (IST)
From: "Dheerendra Kulkarni" <pcs02861@nitk.ac.in>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
X-Mailer: SquirrelMail (version 1.3.0 [CVS-DEVEL])
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: pcs02861@nitk.ac.in
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 13:33:25 -0000

Please help me in what this code means

NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this), ttimer(th=
is)
{
...
..
..
..

};

This is actually a constructor for a class called NRLOLSR now I don't
Understand what does literals following ':' mean (will they call function=
s
which are given there or what)
Dheerendra Kulkarni


-----------------------------------------
This email was sent from NITK Surathkal
   "Webmail "
http://krec.ac.in/





From MAILER-DAEMON Tue Dec 23 13:55:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYrgH-0007xh-18
	for mharc-bug-commoncpp@gnu.org; Tue, 23 Dec 2003 13:54:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYrfr-0007Qu-MR
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 13:54:31 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYrdR-0006O0-9H
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 13:52:32 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYrcN-0005qw-Cz
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 13:50:55 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBNHnEGH007002
	for <bug-commoncpp@gnu.org>; Tue, 23 Dec 2003 18:49:17 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJP9MH>; Tue, 23 Dec 2003 18:49:08 +0100
Received: from wige-data.de (c-180-208-103.cvx-l.dial.de.ignite.net
	[62.180.208.103]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJP9MG; Tue, 23 Dec 2003 18:49:05 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FE880C3.40705@wige-data.de>
Date: Tue, 23 Dec 2003 18:52:03 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <55188.203.200.40.199.1072182916.squirrel@vidur.krec.ac.in>
In-Reply-To: <55188.203.200.40.199.1072182916.squirrel@vidur.krec.ac.in>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 18:54:54 -0000

Hi Dheerendra Kulkarni,

your problem is not related to CommonCpp it is related to C++ itself.
You should look at "Stroustroup, The C++ Programming Language" Section 
Classes.
After the ":" on the declaration (not definition) you can write member 
constructors of this class constructor. This constructors will be called 
in the order left to right before the body of the constructor.
So for for your ex:
NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this), ttimer(this)
call Agent(PT_NRLOLSR)
call htimer(this)
call ttimer(this)
call NRLOLSR(nsaddr_t id)

HTH,

Adib.	

Dheerendra Kulkarni wrote:
> Please help me in what this code means
> 
> NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this), ttimer(this)
> {
> ...
> ..
> ..
> ..
> 
> };
> 
> This is actually a constructor for a class called NRLOLSR now I don't
> Understand what does literals following ':' mean (will they call functions
> which are given there or what)
> Dheerendra Kulkarni
> 
> 
> -----------------------------------------
> This email was sent from NITK Surathkal
>    "Webmail "
> http://krec.ac.in/
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 



From MAILER-DAEMON Tue Dec 23 16:33:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYu9F-0004cy-BX
	for mharc-bug-commoncpp@gnu.org; Tue, 23 Dec 2003 16:33:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYu9D-0004ag-7u
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 16:32:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYu8f-0004NL-4w
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 16:32:56 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AYu8e-0004MB-LF
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 16:32:24 -0500
Received: (qmail 15890 invoked by uid 0); 23 Dec 2003 20:30:53 -0000
Received: from 217.185.69.189 by www25.gmx.net with HTTP;
	Tue, 23 Dec 2003 21:30:54 +0100 (MET)
Date: Tue, 23 Dec 2003 21:30:54 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <22059.1072211454@www25.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: pcs02861@nitk.ac.in
Subject: Re: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 21:32:59 -0000

On Tuesday 23 December 2003 13:35, Dheerendra Kulkarni wrote: 
> Please help me in what this code means 
> 
> NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this), 
> ttimer(this) { 
> ... 
> .. 
> .. 
> .. 
> 
> }; 
> 
> This is actually a constructor for a class called NRLOLSR now I don't 
> Understand what does literals following ':' mean (will they call functions

> which are given there or what) 
> Dheerendra Kulkarni 
 
There should really be a CommonC++ channel on IRC  :) Also try #c++ on 
irc.freenode.net for questions like this in the future. 
 
I is called the initialiser-list. The items in that list are initialised
before the constructor is 
called. The initialiser list is used to: 
 
- pass parameters to the constructor of a base class 
- initialise member variables  
 
Take the following example: 
 
// 
// A simple class A with a int as a private member. 
// Here the initialiser list is used to set the private member 
// to what is passed in to the consructor 
// 
class A { 
   public: 
   A(int i) : _number(i) {} 
   ~A() {} 
   private: 
   int _number; 
}; 
 
// 
// A simple class B also with a private member. Here 
// the initialiser list is used to call the constructor of the 
// base class A and to set the member _ othernumber to 5 
// 
class B : public A { 
   public: 
   B() : A(3), _othernumber(5) {} 
   ~B() {} 
   private: 
   int _othernumber; 
}; 
 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Tue Dec 23 17:26:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYuyX-0002u7-UL
	for mharc-bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:26:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYuyF-0002JZ-7v
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:25:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYuxR-00010s-7v
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:25:25 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AYuxB-0000Ys-DO
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:24:37 -0500
Received: from [141.153.201.180] (helo=localhost.bayonne.dyndns.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AYtyj-0004xN-NR
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 16:22:09 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBNNOIFp024130; Tue, 23 Dec 2003 18:24:18 -0500
From: David Sugar <dyfet@ostel.com>
To: "Marc Boris =?iso-8859-1?q?D=FCrner?=" <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
Date: Tue, 23 Dec 2003 16:39:59 -0500
User-Agent: KMail/1.5.3
References: <22059.1072211454@www25.gmx.net>
In-Reply-To: <22059.1072211454@www25.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312231639.59998.dyfet@ostel.com>
Cc: Federico Montesino Pouzols <fedemp@altern.org>, pcs02861@nitk.ac.in
Subject: Re: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 22:25:52 -0000

Do you think we should have a channel on freenode?  Do you think if we do=20
people will actually come?

On Tuesday 23 December 2003 03:30 pm, Marc Boris D=FCrner wrote:
> On Tuesday 23 December 2003 13:35, Dheerendra Kulkarni wrote:
> > Please help me in what this code means
> >
> > NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this),
> > ttimer(this) {
> > ...
> > ..
> > ..
> > ..
> >
> > };
> >
> > This is actually a constructor for a class called NRLOLSR now I don't
> > Understand what does literals following ':' mean (will they call
> > functions
> >
> > which are given there or what)
> > Dheerendra Kulkarni
>
> There should really be a CommonC++ channel on IRC  :) Also try #c++ on
> irc.freenode.net for questions like this in the future.
>
> I is called the initialiser-list. The items in that list are initialised
> before the constructor is
> called. The initialiser list is used to:
>
> - pass parameters to the constructor of a base class
> - initialise member variables
>
> Take the following example:
>
> //
> // A simple class A with a int as a private member.
> // Here the initialiser list is used to set the private member
> // to what is passed in to the consructor
> //
> class A {
>    public:
>    A(int i) : _number(i) {}
>    ~A() {}
>    private:
>    int _number;
> };
>
> //
> // A simple class B also with a private member. Here
> // the initialiser list is used to call the constructor of the
> // base class A and to set the member _ othernumber to 5
> //
> class B : public A {
>    public:
>    B() : A(3), _othernumber(5) {}
>    ~B() {}
>    private:
>    int _othernumber;
> };
>
>
> regards,
> Marc




From MAILER-DAEMON Tue Dec 23 17:37:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYv9e-00075z-BW
	for mharc-bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:37:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYv9c-00075J-Nf
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:37:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYv96-0006g1-19
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:37:27 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AYv94-0006dr-6c
	for bug-commoncpp@gnu.org; Tue, 23 Dec 2003 17:36:54 -0500
Received: (qmail 16118 invoked by uid 0); 23 Dec 2003 21:35:26 -0000
Received: from 217.185.69.189 by www25.gmx.net with HTTP;
	Tue, 23 Dec 2003 22:35:26 +0100 (MET)
Date: Tue, 23 Dec 2003 22:35:26 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <22341.1072215326@www25.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: Re: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Dec 2003 22:37:29 -0000

On Tuesday 23 December 2003 22:39, you wrote: 
> Do you think we should have a channel on freenode?  Do you think if we do 
> people will actually come? 
 
Sure! I will be there :) 
 
I have the feeling that CommonC++ is a very nice project, that has no
marketing. A good 
way to attract new developers is to show that CommonC++ is a place where
people can 
come and join and have a lot of fun hacking on the coolest C++ framework. 
 
Just a few thoughts: 
 
- interviews with the developers on osnews and friends 
- proper mailing lists 
- nicer website 
- channel on irc.freenode.net 
 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Wed Dec 24 03:47:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZ4fv-0000ha-Mc
	for mharc-bug-commoncpp@gnu.org; Wed, 24 Dec 2003 03:47:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZ4fs-0000gV-VD
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 03:47:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZ4fM-0000ah-9G
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 03:47:24 -0500
Received: from [194.67.66.158] (helo=stalker.mephi.ru)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZ4fL-0000St-U3
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 03:46:52 -0500
Received: from mind.zone (unknown [192.168.13.200])
	by stalker.mephi.ru (Postfix) with ESMTP
	id 9FCD81BDC; Wed, 24 Dec 2003 14:22:34 +0300 (MSK)
Date: Wed, 24 Dec 2003 10:42:48 +0300
From: Andrey Kulikov <ilfis@dezcom.mephi.ru>
X-Mailer: The Bat! (v2.00)
X-Priority: 3 (Normal)
Message-ID: <145170587562.20031224104248@dezcom.mephi.ru>
To: bug-commoncpp@gnu.org
In-Reply-To: <200312200627.37328.dyfet@ostel.com>
References: <3FE3088D.8080801@profzone.ch> <200312200627.37328.dyfet@ostel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: cproch@seculogix.de
Subject: Re[2]: More compiler errors: class NetworkDeviceInfo has no
	operator=
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Dec 2003 08:47:25 -0000


DS> This one I have not determined which approach would be better to do yet.  But
DS> if you would like to submit a quick patch, I will look at that...

Function enumNetworkDevices() not compiled just because class
NetworkDeviceInfo contains member variable of class ost::String.

Solution:
Declare ost::String's operator= as

/**
* Assign our string from another string.
*/
inline void operator=(const String& str)
        {set(str);};

Now it declared without a 'const' as
inline void operator =(String& str)


DS> On Friday 19 December 2003 09:17 am, Tobias Erbsland wrote:
>> Hello
>>
>> A compiler error by MS Visual C++ .NET (7.0):
>>
>> network.cpp
>>          with
>>          [
>>              _Ty=ost::NetworkDeviceInfo
>>          ]
>>          d:\commoncpp2\src\network.cpp(84) : see reference to class
>> template instantiation 'std::vector<_Ty>' being compiled
>>          with
>>          [
>>              _Ty=ost::NetworkDeviceInfo
>>          ]
>>
>> because the class NetworkDeviceInfo has a copy constructor, but no
>> overloaded assign operator.
>>
>> Solution: overload the assign operator, or remove all assignments to the
>> std::vector<NetworkDeviceInfo> ...



-- 
Best regards,
 Andrey                            mailto:ilfis@dezcom.mephi.ru




From MAILER-DAEMON Wed Dec 24 09:29:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZA0p-0003ew-1C
	for mharc-bug-commoncpp@gnu.org; Wed, 24 Dec 2003 09:29:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZA0m-0003en-GM
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 09:29:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZA0G-0003ZU-M0
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 09:29:19 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZA0F-0003ZF-Uq
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 09:28:48 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AZ9B8-00012a-00; Wed, 24 Dec 2003 14:35:58 +0100
Date: Wed, 24 Dec 2003 14:35:57 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Message-ID: <20031224133557.GA3755@paraguas>
Mail-Followup-To: David Sugar <dyfet@ostel.com>,
	Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>,
	bug-commoncpp@gnu.org, pcs02861@nitk.ac.in,
	Federico Montesino Pouzols <fedemp@altern.org>
References: <22059.1072211454@www25.gmx.net>
	<200312231639.59998.dyfet@ostel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <200312231639.59998.dyfet@ostel.com>
User-Agent: Mutt/1.5.4i
Cc: bug-commoncpp@gnu.org, Federico Montesino Pouzols <fedemp@altern.org>,
	pcs02861@nitk.ac.in
Subject: Re: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Dec 2003 14:29:21 -0000


	I think it is a good idea, particularly now that we are in the
process of making 1.1 and new ideas can be incorporated. 

On Tue, Dec 23, 2003 at 04:39:59PM -0500, David Sugar wrote:
> Do you think we should have a channel on freenode?  Do you think if we do 
> people will actually come?
> 
> On Tuesday 23 December 2003 03:30 pm, Marc Boris Dürner wrote:
> > On Tuesday 23 December 2003 13:35, Dheerendra Kulkarni wrote:
> > > Please help me in what this code means
> > >
> > > NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this),
> > > ttimer(this) {
> > > ...
> > > ..
> > > ..
> > > ..
> > >
> > > };
> > >
> > > This is actually a constructor for a class called NRLOLSR now I don't
> > > Understand what does literals following ':' mean (will they call
> > > functions
> > >
> > > which are given there or what)
> > > Dheerendra Kulkarni
> >
> > There should really be a CommonC++ channel on IRC  :) Also try #c++ on
> > irc.freenode.net for questions like this in the future.
> >
> > I is called the initialiser-list. The items in that list are initialised
> > before the constructor is
> > called. The initialiser list is used to:
> >
> > - pass parameters to the constructor of a base class
> > - initialise member variables
> >
> > Take the following example:
> >
> > //
> > // A simple class A with a int as a private member.
> > // Here the initialiser list is used to set the private member
> > // to what is passed in to the consructor
> > //
> > class A {
> >    public:
> >    A(int i) : _number(i) {}
> >    ~A() {}
> >    private:
> >    int _number;
> > };
> >
> > //
> > // A simple class B also with a private member. Here
> > // the initialiser list is used to call the constructor of the
> > // base class A and to set the member _ othernumber to 5
> > //
> > class B : public A {
> >    public:
> >    B() : A(3), _othernumber(5) {}
> >    ~B() {}
> >    private:
> >    int _othernumber;
> > };
> >
> >
> > regards,
> > Marc
> 



From MAILER-DAEMON Wed Dec 24 10:32:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZAzz-0002ce-1a
	for mharc-bug-commoncpp@gnu.org; Wed, 24 Dec 2003 10:32:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZAzw-0002bC-9b
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 10:32:32 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZAzL-0002CI-Jz
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 10:32:26 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AZAzL-00029a-5M
	for bug-commoncpp@gnu.org; Wed, 24 Dec 2003 10:31:55 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBOGTrWT004174; Wed, 24 Dec 2003 11:29:53 -0500
From: David Sugar <dyfet@ostel.com>
To: Federico Montesino Pouzols <fedemp@altern.org>
Date: Wed, 24 Dec 2003 09:48:24 -0500
User-Agent: KMail/1.5.3
References: <22059.1072211454@www25.gmx.net>
	<200312231639.59998.dyfet@ostel.com>
	<20031224133557.GA3755@paraguas>
In-Reply-To: <20031224133557.GA3755@paraguas>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200312240948.24450.dyfet@ostel.com>
Cc: bug-commoncpp@gnu.org, Federico Montesino Pouzols <fedemp@altern.org>,
	pcs02861@nitk.ac.in
Subject: Re: help for cpp code
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Dec 2003 15:32:33 -0000

I think we should use it for commoncpp and closely related things (like ccr=
tp,=20
etc).  I had also considered using the existing #bayonne channel on freenod=
e=20
for this, since we have relativily light traffic there, and the idea of=20
splitting over multiple low traffic channels is what concerned me most.

On Wednesday 24 December 2003 08:35 am, Federico Montesino Pouzols wrote:
> 	I think it is a good idea, particularly now that we are in the
> process of making 1.1 and new ideas can be incorporated.
>
> On Tue, Dec 23, 2003 at 04:39:59PM -0500, David Sugar wrote:
> > Do you think we should have a channel on freenode?  Do you think if we =
do
> > people will actually come?
> >
> > On Tuesday 23 December 2003 03:30 pm, Marc Boris D=FCrner wrote:
> > > On Tuesday 23 December 2003 13:35, Dheerendra Kulkarni wrote:
> > > > Please help me in what this code means
> > > >
> > > > NRLOLSR::NRLOLSR(nsaddr_t id) : Agent(PT_NRLOLSR),htimer(this),
> > > > ttimer(this) {
> > > > ...
> > > > ..
> > > > ..
> > > > ..
> > > >
> > > > };
> > > >
> > > > This is actually a constructor for a class called NRLOLSR now I don=
't
> > > > Understand what does literals following ':' mean (will they call
> > > > functions
> > > >
> > > > which are given there or what)
> > > > Dheerendra Kulkarni
> > >
> > > There should really be a CommonC++ channel on IRC  :) Also try #c++ on
> > > irc.freenode.net for questions like this in the future.
> > >
> > > I is called the initialiser-list. The items in that list are
> > > initialised before the constructor is
> > > called. The initialiser list is used to:
> > >
> > > - pass parameters to the constructor of a base class
> > > - initialise member variables
> > >
> > > Take the following example:
> > >
> > > //
> > > // A simple class A with a int as a private member.
> > > // Here the initialiser list is used to set the private member
> > > // to what is passed in to the consructor
> > > //
> > > class A {
> > >    public:
> > >    A(int i) : _number(i) {}
> > >    ~A() {}
> > >    private:
> > >    int _number;
> > > };
> > >
> > > //
> > > // A simple class B also with a private member. Here
> > > // the initialiser list is used to call the constructor of the
> > > // base class A and to set the member _ othernumber to 5
> > > //
> > > class B : public A {
> > >    public:
> > >    B() : A(3), _othernumber(5) {}
> > >    ~B() {}
> > >    private:
> > >    int _othernumber;
> > > };
> > >
> > >
> > > regards,
> > > Marc
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Fri Dec 26 19:43:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa2YD-0005K8-D9
	for mharc-bug-commoncpp@gnu.org; Fri, 26 Dec 2003 19:43:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa2Y7-0005A5-Ur
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 19:43:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa2XZ-0004eY-62
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 19:43:20 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1Aa2XY-0004bl-Io
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 19:42:48 -0500
Received: (qmail 4105 invoked by uid 0); 26 Dec 2003 23:34:40 -0000
Received: from 217.185.69.211 by www4.gmx.net with HTTP;
	Sat, 27 Dec 2003 00:34:40 +0100 (MET)
Date: Sat, 27 Dec 2003 00:34:40 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <28415.1072481680@www4.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: cc++ mini patch
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 00:43:27 -0000

Hi, 
I need a ctor to create InetMaskAddresses from the in_addr struct.  
 
regards, 
Marc 
 
 
[socket.h] 
/** 
* Convert a system socket binary address such as may be 
 * into an internet mask address object. 
 * 
 * @param addr binary address netmask. 
 */ 
InetMaskAddress(struct in_addr addr); 
 
 
[inaddr.cpp] 
InetMaskAddress::InetMaskAddress(struct in_addr addr) : 
InetAddress(addr) { 
} 
 
 
 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Dec 26 20:15:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa33C-0007oz-3u
	for mharc-bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:15:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa338-0007nr-L1
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:15:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa32X-0007XU-SN
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:15:21 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Aa32X-0007Nk-Jr
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:14:49 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1Aa1sE-0006N8-1b
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 19:00:06 -0500
Received: from sonne.kosmos.all (212-62-84-63.teleos-web.de [212.62.84.63])
	by sally.dts-online.net (Postfix) with ESMTP id 6CC534DE490
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 01:00:02 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 0DB807B38B
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 00:54:56 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Sat, 27 Dec 2003 00:54:54 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312270054.54516.wolfgang@alper-online.com>
Subject: void SocketService::run(void)...		if(FD_ISSET(so,
	&err))... SocketPort:::disconnect()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 01:15:27 -0000

Hello,

i tried to get an idea why SocketPort::disconnect() does not get called from a 
SocketService, when a disconnect happend (i.e a client that disconnects). so 
i looked into port.cpp (void SocketService::run(void), what makes me a bit 
confused. 
in line 771 (given that CCXX_USE_POLL is not defined):

"select(hiwater, &inp, &out, &err, tvp);"

&err is used as the fd_set to identify disconnects. however, i thought that 
this fd_set would be used to detect oob-data.
this would explain, why  SocketPort:::disconnect() does not get called, when a 
client disconnects on a tcp-socket.

so how is SocketPort::disconnect()  (if(FD_ISSET(so, &err)...) to be used?

Thx in advance

Wolfgang




from port.cpp (line 701-723)
++++snip++++
#else
		MUTEX_START
		onEvent();
		port = first;
		while(port)
		{
			onCallback(port);
			so = port->so;
			if(FD_ISSET(so, &err)) {
				port->detect_disconnect = false;

				SocketPort* p = port;
				port = port->next;
				p->disconnect();
				continue;
			}

			if(FD_ISSET(so, &inp))
				port->pending();

			if(FD_ISSET(so, &out))
				port->output();

++++snap++++

and later on 

++++snip++++
			if(port->detect_disconnect)
				FD_SET(so, &err);
....
....
			select(hiwater, &inp, &out, &err, tvp);

....
++++snap++++




From MAILER-DAEMON Fri Dec 26 20:15:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa33E-0007pc-Kw
	for mharc-bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:15:32 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa33C-0007pC-L2
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:15:30 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa32f-0007gZ-2f
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:15:28 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1Aa32e-0007fL-Du
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 20:14:56 -0500
Received: (qmail 18809 invoked by uid 0); 27 Dec 2003 00:06:48 -0000
Received: from 217.185.69.211 by www4.gmx.net with HTTP;
	Sat, 27 Dec 2003 01:06:48 +0100 (MET)
Date: Sat, 27 Dec 2003 01:06:48 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <1809.1072483608@www4.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: InetAddress classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 01:15:31 -0000

Hi, 
I am looking at the InetAddress class and the derived ones right now.  
 
- shouldnt (or could?) the gethostname stuff be in a class Resolver? That
way resolving 
and raw IP handling would be separated. Does this make sense?  
 
- I need a function to get a string representation of the ip address
(in_addr to string) 
something along the lines of: 
 
std::string InetAddress::str() const { 
	union addr_u { 
	uint32_t dword; 
	uint8_t bytes[4]; 
	} a; 
	a.dword = ipaddr[0].s_addr; 
 
	std::stringstream addrstr; 
	for(int n = 0; n < 3; ++n) { 
		addrstr << std::dec << (int)a.bytes[n] << "."; 
	} 
	addrstr << std::dec << (int)a.bytes[3]; 
	return addrstr.str(); 
} 
 
 
- Is anything speaking against making InetAddress a template where the
validator is the 
template type? 
 
regards, 
Marc 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Fri Dec 26 22:00:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa4gX-0004B4-GN
	for mharc-bug-commoncpp@gnu.org; Fri, 26 Dec 2003 22:00:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa4gT-000488-KE
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 22:00:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa4fu-0003jz-T9
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 22:00:06 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1Aa4fo-0003jO-Lt
	for bug-commoncpp@gnu.org; Fri, 26 Dec 2003 21:59:28 -0500
Received: (qmail 14949 invoked by uid 0); 27 Dec 2003 01:58:00 -0000
Received: from 217.185.69.254 by www66.gmx.net with HTTP;
	Sat, 27 Dec 2003 02:58:00 +0100 (MET)
Date: Sat, 27 Dec 2003 02:58:00 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <20427.1072490280@www66.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: dyfet@ostel.com
Subject: New website for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 03:00:11 -0000

Hi, 
I have designed a new website for GNU/CommonC++. It can be viewed on: 
 
http://www.arklinux.org/~marcd/ 
 
 
hope you like it, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Dec 27 00:00:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa6Z9-0008BT-FM
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 00:00:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa6Z6-00088L-PA
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 00:00:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa6YZ-0007rW-0m
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 00:00:38 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aa6YY-0007rS-M1
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 00:00:06 -0500
Received: from sonne.kosmos.all (213-182-112-154.teleos-web.de
	[213.182.112.154])
	by sally.dts-online.net (Postfix) with ESMTP id 464774E2F13
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 04:58:39 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id BE9D57B38B
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 04:53:32 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Sat, 27 Dec 2003 04:53:31 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312270453.31855.wolfgang@alper-online.com>
Subject: detect_pending(true) not set in CTOR of SocketPort for UDP sockets
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 05:00:41 -0000

Hello,

when constructing a bound TCPSocket with SocketPort,  detect_pending is set to 
true.
however, when constructing  a bound UDPSocket, it is not and therefore  
pending() is not called by the SocketService by "default". 
this could be a irritating, if one is just starting with the cc++ package.

if there is no particular reason for this, i would suggest to let the CTOR's 
behave similar. Otherwise i would suggest to add a comment about the 
differences to the documentation.

Best regards

Wolfgang







From MAILER-DAEMON Sat Dec 27 01:06:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa7aW-0004nM-1J
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:06:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa7aU-0004mP-7y
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:06:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa7Zw-00044o-TX
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:06:08 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Aa7Zw-00044U-Kf
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:05:36 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1Aa6bP-0000VJ-JI
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 00:03:03 -0500
Received: from sonne.kosmos.all (213-182-112-154.teleos-web.de
	[213.182.112.154])
	by sally.dts-online.net (Postfix) with ESMTP id CAC714E35F8
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 06:03:02 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id 277F67B38B
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 05:57:56 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Sat, 27 Dec 2003 05:57:55 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312270557.55222.wolfgang@alper-online.com>
Subject: getPeer(tpport_t *port) and SocketPort for bound UDPSockets broken?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 06:06:11 -0000

Hello,

when using getPeer(tpport_t *port) in a derived class from SocketPort using a 
CTOR for a bound UDPSocket, getPeer always returns 0.0.0.0:0 (Adress and port 
eq 0).
However when using an explicit UDPSocket, UDPSocket::getPeer works.

Doing the same with SocketPort and a bound TCPSocket is not a problem.

It seems that this is because UDPSocket overloads getPeer from Socket, which 
is not the case for TCPSocket. So SocketPort will not call UDPSocket::getPeer 
but Socket::getPeer (which works for TCPSocket's).

Best regards

Wolfgang







From MAILER-DAEMON Sat Dec 27 01:12:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aa7gW-0001UJ-9Q
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:12:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aa7gU-0001TS-1X
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:12:22 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aa7fw-0001Dy-5A
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:12:19 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Aa7fv-00010F-US
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 01:11:47 -0500
Received: from [194.67.67.195] (helo=trinity.dezcom.mephi.ru)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1Aa6gm-00018Y-7d
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 00:08:36 -0500
Received: from ilfis.dezcom.mephi.ru ([10.3.78.1])
	by trinity.dezcom.mephi.ru with asmtp (Exim 3.35 #1 (Debian))
	id 1Aa6kM-0007Li-00; Sat, 27 Dec 2003 08:12:18 +0300
Date: Sat, 27 Dec 2003 08:07:21 +0300
From: Andrey Kulikov <ilfis@dezcom.mephi.ru>
X-Mailer: The Bat! (v2.00)
Organization: B3A
X-Priority: 3 (Normal)
Message-ID: <12946430750.20031227080721@dezcom.mephi.ru>
To: =?ISO-8859-1?B?TWFyYyBCb3JpcyBE/HJuZXI=?= <mduerner@gmx.net>
In-Reply-To: <1809.1072483608@www4.gmx.net>
References: <1809.1072483608@www4.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: base64
X-yoursite-MailScanner: Found to be clean
Cc: dyfet@ostel.com, bug-commoncpp@gnu.org
Subject: Re: InetAddress classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 06:12:22 -0000

SGVsbG8gTWFyYywNCg0KU2F0dXJkYXksIERlY2VtYmVyIDI3LCAyMDAzLCAzOjA2OjQ4IEFN
LCB5b3Ugd3JvdGU6DQoNCk1CRD4gSGksIA0KTUJEPiBJIGFtIGxvb2tpbmcgYXQgdGhlIElu
ZXRBZGRyZXNzIGNsYXNzIGFuZCB0aGUgZGVyaXZlZCBvbmVzIHJpZ2h0IG5vdy4NCg0KTUJE
PiAtIEkgbmVlZCBhIGZ1bmN0aW9uIHRvIGdldCBhIHN0cmluZyByZXByZXNlbnRhdGlvbiBv
ZiB0aGUgaXAgYWRkcmVzcw0KTUJEPiAoaW5fYWRkciB0byBzdHJpbmcpIA0KTUJEPiBzb21l
dGhpbmcgYWxvbmcgdGhlIGxpbmVzIG9mOg0KDQpZb3UgbmVlZA0KY2hhciogaW5ldF9udG9h
KGluX2FkZHIgYWRkcikNCmZ1bmN0aW9uLiBMb29rIHRvIHRoZSBtYW51YWwuDQogDQpNQkQ+
IHN0ZDo6c3RyaW5nIEluZXRBZGRyZXNzOjpzdHIoKSBjb25zdCB7IA0KLy8vLyBUbyBtYW55
IGxpbmVzIG9mIGNvZGUuLi4uDQpNQkQ+IH0gDQogDQoNCi0tIA0KQmVzdCByZWdhcmRzLA0K
IEFuZHJleSAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYWlsdG86aWxmaXNAZGV6Y29t
Lm1lcGhpLnJ1DQo=




From MAILER-DAEMON Sat Dec 27 07:03:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaDAV-0005Dz-9A
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 07:03:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaDAI-0004x3-QD
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 07:03:30 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaD87-0003uJ-Lq
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 07:01:46 -0500
Received: from [193.98.115.211] (helo=bns1.envia-tel.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaD73-0003hC-PA
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 07:00:09 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by bns1.envia-tel.net (8.12.10/8.12.10) with ESMTP id hBRAweGH016468
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 11:58:40 +0100
Received: by mailserver.wigemic.lpz with Internet Mail Service (5.5.2653.19)
	id <YVLJQAN7>; Sat, 27 Dec 2003 11:58:35 +0100
Received: from wige-data.de (c-180-208-20.cvx-l.dial.de.ignite.net
	[62.180.208.20]) by mailserver.wige-data.de with SMTP
	(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YVLJQAN6; Sat, 27 Dec 2003 11:58:30 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3FED668C.5040006@wige-data.de>
Date: Sat, 27 Dec 2003 12:01:32 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Where is the current CVS?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 12:03:40 -0000

Hello all,

I wonder where is the current cvs hosted. Savannah or sourceforge?

Regards,

Adib.



From MAILER-DAEMON Sat Dec 27 08:44:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaEkL-0005xg-MQ
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 08:44:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaEkH-0005uy-MR
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 08:44:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaEiX-00057L-Dd
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 08:43:28 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AaEek-0003ue-3F
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 08:39:02 -0500
Received: (qmail 1804 invoked by uid 0); 27 Dec 2003 12:10:54 -0000
Received: from 217.185.69.162 by www44.gmx.net with HTTP;
	Sat, 27 Dec 2003 13:10:54 +0100 (MET)
Date: Sat, 27 Dec 2003 13:10:54 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <10477.1072527054@www44.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: split source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 13:44:47 -0000

Hi, 
Just wondering if the source files could be split so that there is one class
per file? 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Dec 27 10:09:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaG40-0006We-Oy
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:09:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaG3s-0006HN-Qd
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:09:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaG3J-0005hp-BM
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:09:00 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaG3I-0005fe-Pw
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:08:28 -0500
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBRG6sWT021695; Sat, 27 Dec 2003 11:06:54 -0500
Received: (from apache@localhost)
	by localhost.localdomain (8.12.10/8.12.8/Submit) id hBRG6s4I021693;
	Sat, 27 Dec 2003 11:06:54 -0500
X-Authentication-Warning: localhost.localdomain: apache set sender to
	dyfet@ostel.com using -f
Received: from 172.175.184.238 (SquirrelMail authenticated user dyfet)
	by bayonne.dyndns.org with HTTP;
	Sat, 27 Dec 2003 11:06:54 -0500 (EST)
Message-ID: <49273.172.175.184.238.1072541214.squirrel@bayonne.dyndns.org>
In-Reply-To: <10477.1072527054@www44.gmx.net>
References: <10477.1072527054@www44.gmx.net>
Date: Sat, 27 Dec 2003 11:06:54 -0500 (EST)
From: "David Sugar" <dyfet@ostel.com>
To: Marc Boris D=?iso-8859-1?Q?=FCrner?= <mduerner@gmx.net>
User-Agent: SquirrelMail/1.4.0-1
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3
Importance: Normal
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by
	localhost.bayonne.dyndns.org id hBRG6sWT021695
Cc: bug-commoncpp@gnu.org
Subject: Re: split source files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 15:09:09 -0000

It could make it easier to find things, but some classes were so trivial.=
=20
Generally, source files are split by hiearchies of related classes and by
library (ccgnu, ccext), although in many cases a source file do cover a
single class and other cases a grouping of closely related classes.

"Marc Boris D=FCrner" said:
> Hi,
> Just wondering if the source files could be split so that there is one
> class
> per file?
>
> regards,
> Marc
>
> --
> +++ GMX - die erste Adresse f=FCr Mail, Message, More +++
> Neu: Preissenkung f=FCr MMS und FreeMMS! http://www.gmx.net
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>



From MAILER-DAEMON Sat Dec 27 10:13:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaG86-0007yx-EX
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:13:26 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaG84-0007yR-3p
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:13:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaG7Y-0007sZ-Gg
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:13:23 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaG7Y-0007sQ-4y
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:12:52 -0500
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBRGBKWT021717; Sat, 27 Dec 2003 11:11:20 -0500
Received: (from apache@localhost)
	by localhost.localdomain (8.12.10/8.12.8/Submit) id hBRGBKk5021715;
	Sat, 27 Dec 2003 11:11:20 -0500
X-Authentication-Warning: localhost.localdomain: apache set sender to
	dyfet@ostel.com using -f
Received: from 172.175.184.238 (SquirrelMail authenticated user dyfet)
	by bayonne.dyndns.org with HTTP;
	Sat, 27 Dec 2003 11:11:20 -0500 (EST)
Message-ID: <49281.172.175.184.238.1072541480.squirrel@bayonne.dyndns.org>
In-Reply-To: <3FED668C.5040006@wige-data.de>
References: <3FED668C.5040006@wige-data.de>
Date: Sat, 27 Dec 2003 11:11:20 -0500 (EST)
From: "David Sugar" <dyfet@ostel.com>
To: taraben.a@wige-data.de
User-Agent: SquirrelMail/1.4.0-1
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3
Importance: Normal
Cc: bug-commoncpp@gnu.org
Subject: Re: Where is the current CVS?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 15:13:24 -0000

The only cvs transferred from savannah to sourceforge while savannah was
down were those for new (future) releases that were being activily worked
on and which are not yet ready for general use.  Perhaps what we may do in
the future is use SF for cvs for experimental things that are in
pre-release development, and transfer them back into a release branch on
savannah when they become ready for building and maintaining distributing
releases?

taraben.a@wige-data.de said:
> Hello all,
>
> I wonder where is the current cvs hosted. Savannah or sourceforge?
>
> Regards,
>
> Adib.
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>



From MAILER-DAEMON Sat Dec 27 10:24:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaGIL-0007QT-GH
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:24:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaGIG-0007Om-Bl
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:23:56 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaGHk-0007Ju-FQ
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:23:55 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaGHk-0007Jb-6S
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:23:24 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AaFJb-0002qP-I9
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 09:21:15 -0500
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBRGL3WT021771; Sat, 27 Dec 2003 11:21:03 -0500
Received: (from apache@localhost)
	by localhost.localdomain (8.12.10/8.12.8/Submit) id hBRGL2TV021769;
	Sat, 27 Dec 2003 11:21:02 -0500
X-Authentication-Warning: localhost.localdomain: apache set sender to
	dyfet@ostel.com using -f
Received: from 172.175.184.238 (SquirrelMail authenticated user dyfet)
	by bayonne.dyndns.org with HTTP;
	Sat, 27 Dec 2003 11:21:02 -0500 (EST)
Message-ID: <49318.172.175.184.238.1072542062.squirrel@bayonne.dyndns.org>
In-Reply-To: <200312270453.31855.wolfgang@alper-online.com>
References: <200312270453.31855.wolfgang@alper-online.com>
Date: Sat, 27 Dec 2003 11:21:02 -0500 (EST)
From: "David Sugar" <dyfet@ostel.com>
To: wolfgang@alper-online.com
User-Agent: SquirrelMail/1.4.0-1
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3
Importance: Normal
Cc: CommonC++ Mailingliste <bug-commoncpp@gnu.org>
Subject: Re: detect_pending(true) not set in CTOR of SocketPort for UDP 
 sockets
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 15:23:59 -0000

I believe this has been fixed for what will be the 1.1 tree in sf cvs.

Wolfgang said:
> Hello,
>
> when constructing a bound TCPSocket with SocketPort,  detect_pending is
> set to
> true.
> however, when constructing  a bound UDPSocket, it is not and therefore
> pending() is not called by the SocketService by "default".
> this could be a irritating, if one is just starting with the cc++ package.
>
> if there is no particular reason for this, i would suggest to let the
> CTOR's
> behave similar. Otherwise i would suggest to add a comment about the
> differences to the documentation.
>
> Best regards
>
> Wolfgang
>
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>



From MAILER-DAEMON Sat Dec 27 10:27:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaGM9-0000zv-FR
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:27:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaGM7-0000yI-1Q
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:27:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaGLa-0000s8-97
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:27:54 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaGLZ-0000s5-TE
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 10:27:22 -0500
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBRGPnWT021877; Sat, 27 Dec 2003 11:25:49 -0500
Received: (from apache@localhost)
	by localhost.localdomain (8.12.10/8.12.8/Submit) id hBRGPnpV021875;
	Sat, 27 Dec 2003 11:25:49 -0500
X-Authentication-Warning: localhost.localdomain: apache set sender to
	dyfet@ostel.com using -f
Received: from 172.175.184.238 (SquirrelMail authenticated user dyfet)
	by bayonne.dyndns.org with HTTP;
	Sat, 27 Dec 2003 11:25:49 -0500 (EST)
Message-ID: <49336.172.175.184.238.1072542349.squirrel@bayonne.dyndns.org>
In-Reply-To: <20427.1072490280@www66.gmx.net>
References: <20427.1072490280@www66.gmx.net>
Date: Sat, 27 Dec 2003 11:25:49 -0500 (EST)
From: "David Sugar" <dyfet@ostel.com>
To: Marc Boris D=?iso-8859-1?Q?=FCrner?= <mduerner@gmx.net>
User-Agent: SquirrelMail/1.4.0-1
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3
Importance: Normal
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by
	localhost.bayonne.dyndns.org id hBRGPnWT021877
Cc: bug-commoncpp@gnu.org
Subject: Re: New website for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 15:27:55 -0000

I really like this.  It has a nice look to it, and we don't need somethin=
g
that is complex, just something that appears nice and is consistent with
all standards thats at least navigationally usable from all browsers
(including lynx).  Could we use this for the main web site once web cvs
comes back to update it?

"Marc Boris D=FCrner" said:
> Hi,
> I have designed a new website for GNU/CommonC++. It can be viewed on:
>
> http://www.arklinux.org/~marcd/
>
>
> hope you like it,
> Marc
>
> --
> +++ GMX - die erste Adresse f=FCr Mail, Message, More +++
> Neu: Preissenkung f=FCr MMS und FreeMMS! http://www.gmx.net
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>



From MAILER-DAEMON Sat Dec 27 12:41:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaIRW-0007p5-Fa
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:41:38 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaIRT-0007ni-R2
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:41:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaIQx-0007Wl-Rx
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:41:34 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AaIQx-0007Wf-1s
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:41:03 -0500
Received: (qmail 9748 invoked by uid 0); 27 Dec 2003 16:39:35 -0000
Received: from 217.185.85.99 by www41.gmx.net with HTTP;
	Sat, 27 Dec 2003 17:39:35 +0100 (MET)
Date: Sat, 27 Dec 2003 17:39:35 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <27071.1072543175@www41.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Re: New website for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 17:41:36 -0000

> I really like this.  It has a nice look to it, and we don't need something

> that is complex, just something that appears nice and is consistent with 
> all standards thats at least navigationally usable from all browsers 
> (including lynx).   
I tried not to use any fancy stuff, but only normal html frames and tables.
I will ask our 
html experts how to make it work better in lynx. Also working on the
remaining links, the 
logo etc. Just was to tired yesterday to finish. 
 
>Could we use this for the main web site once web cvs comes back to update
it? 
Sure. I made this website so CommonC++ gets a better marketing ;) 
 
> 
> "Marc Boris Dürner" said: 
> > Hi, 
> > I have designed a new website for GNU/CommonC++. It can be viewed on: 
> > 
> > http://www.arklinux.org/~marcd/ 
> > 
> > 
> > hope you like it, 
> > Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Dec 27 12:56:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaIfu-0007ar-Nx
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:56:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaIfq-0007Wi-9E
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:56:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaIfI-0007BQ-A0
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:56:24 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AaIfH-0007Az-EF
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 12:55:51 -0500
Received: (qmail 16597 invoked by uid 0); 27 Dec 2003 16:54:21 -0000
Received: from 217.185.85.99 by www41.gmx.net with HTTP;
	Sat, 27 Dec 2003 17:54:21 +0100 (MET)
Date: Sat, 27 Dec 2003 17:54:21 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="========GMXBoundary97291072544061"
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <9729.1072544061@www41.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Subject: New NetworkInterface and InetInterface classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 17:56:28 -0000

This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.

Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.

--========GMXBoundary97291072544061
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi, 
I have written a NetworkInterface class and a InetInterface class.
NetworkInterface is 
derived from Socket to get a socket descriptor for the ioctl()s and
InetInterface is derived 
from NetworkInterface to initialise the Socket with the domain and type. Any
comments? 
 
Should this go into the ccBaseKit or in the ccHardware extension? 
 
regards, 
Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net

--========GMXBoundary97291072544061
Content-Type: text/x-chdr; name="NetworkInterface.h"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="NetworkInterface.h"

I2lmbmRlZiBDQ1hYX05FVFdPUktJTlRFUkZBQ0VfSAojZGVmaW5lIENDWFhfTkVUV09SS0lOVEVS
RkFDRV9ICgojaWZuZGVmIENDWFhfQ09ORklHX0hfCiNpbmNsdWRlIDxjYysrL2NvbmZpZy5oPgoj
ZW5kaWYKCiNpZm5kZWYgQ0NYWF9TT0NLRVRfSF8KI2luY2x1ZGUgPGNjKysvc29ja2V0Lmg+CiNl
bmRpZgoKI2lmbmRlZiBDQ1hYX1NUUklOR19IXwojaW5jbHVkZSA8Y2MrKy9zdHJpbmcuaD4KI2Vu
ZGlmCgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RkaW50Lmg+IAoKI2lmZGVmCUNDWFhf
TkFNRVNQQUNFUwpuYW1lc3BhY2Ugb3N0IHsKI2VuZGlmCgoKLyoqISBOZXR3b3JrSW50ZXJmYWNl
IGNsYXNzCiAqIFRoZSBOZXR3b3JrSW50ZXJmYWNlIGNsYXNzIGlzIHVzZWQgYXMgdGhlIGJhc2Ug
Zm9yIHNwZWNpYWxpc2VkCiAqIGludGVyZmFjZSBjbGFzc2VzLgogKi8KY2xhc3MgX19FWFBPUlQg
TmV0d29ya0ludGVyZmFjZSA6IHB1YmxpYyBvc3Q6OlNvY2tldCB7CiAgIHB1YmxpYzoKICAgTmV0
d29ya0ludGVyZmFjZShjb25zdCBvc3Q6OlN0cmluZyYgbm9kZSwgaW50IGRvbWFpbiwgaW50IHR5
cGUpOwogICB+TmV0d29ya0ludGVyZmFjZSgpOwogICAvLwogICAvLyEgUmV0dXJucyB0aGUgbm9k
ZSAoaS5lLiBldGgwKSBvZiB0aGUgbmV0d29yayBkZXZpY2UKICAgaW5saW5lIGNvbnN0IG9zdDo6
U3RyaW5nJiBnZXROb2RlKCkgY29uc3QgeyByZXR1cm4gX25vZGU7fQogICAvLwoJLy8hIFJldHVy
bnMgdGhlIE1UVSAgIAogICBjb25zdCB1aW50MzJfdCBnZXRNdHUoKSBjb25zdDsKICAgLy8KCS8v
ISBSZXR1cm5zIHRoZSBtZW1vcnkgYmFzZSBhZGRyZXNzIHVzZWQgYnkgdGhlIG5ldHdvcmsgaW50
ZXJmYWNlLiAgIAogICBjb25zdCB1aW50MzJfdCBnZXRCYXNlQWRkcmVzcygpIGNvbnN0OwogICAv
LwoJLy8hIFJldHVybnMgdGhlIElSUSB1c2VkIGJ5IHRoZSBuZXR3b3JrIGludGVyZmFjZS4gICAg
ICAKICAgY29uc3QgdWludDMyX3QgZ2V0SXJxKCkgY29uc3Q7CiAgIC8vCgkvLyEgUmV0dXJucyB0
aGUgcG9ydCB1c2VkIGJ5IHRoZSBuZXR3b3JrIGludGVyZmFjZS4gICAgICAKICAgY29uc3QgdWlu
dDMyX3QgZ2V0UG9ydCgpIGNvbnN0OwogICAvLwoJLy8hIFJldHVybnMgdGhlIERNQSB1c2VkIGJ5
IHRoZSBuZXR3b3JrIGludGVyZmFjZS4gICAgICAKICAgY29uc3QgdWludDMyX3QgZ2V0RG1hKCkg
Y29uc3Q7CiAgIC8vCgkvLyEgUmV0dXJucyBtYWMgYWRkcmVzcyBvZiB0aGUgbmV0d29yayBpbnRl
cmZhY2UgYXMgYSB2ZWN0b3Igb2YgYnl0ZXMuICAgICAgICAgICAgICAgCiAgIGNvbnN0IHN0ZDo6
dmVjdG9yPHVpbnQ4X3Q+IGdldEh3QWRkcmVzcygpIGNvbnN0OwogICAgCiAgIHByaXZhdGU6CiAg
IG9zdDo6U3RyaW5nIF9ub2RlOwp9OwoKI2lmZGVmCUNDWFhfTkFNRVNQQUNFUwp9CiNlbmRpZgoK
CiNlbmRpZgo=

--========GMXBoundary97291072544061
Content-Type: text/x-c++src; name="NetworkInterface.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="NetworkInterface.cpp"

Ly8gQ29weXJpZ2h0IChDKSAyMDAzIE1hcmMgQm9yaXMgRPxybmVyIDxtYXJjZCBfX2F0IGFya2xp
bnV4IF9fZG90IG9yZz4KLy8KLy8gVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBj
YW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkKLy8gaXQgdW5kZXIgdGhlIHRlcm1zIG9m
IHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnkKLy8gdGhlIEZy
ZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0aGVyIHZlcnNpb24gMiBvZiB0aGUgTGljZW5zZSwg
b3IKLy8gKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi4KLy8KLy8gVGhpcyBwcm9n
cmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsCi8v
IGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJh
bnR5IG9mCi8vIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVS
UE9TRS4gIFNlZSB0aGUKLy8gR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0
YWlscy4KLy8KLy8gWW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdl
bmVyYWwgUHVibGljIExpY2Vuc2UKLy8gYWxvbmcgd2l0aCB0aGlzIHByb2dyYW07IGlmIG5vdCwg
d3JpdGUgdG8gdGhlIEZyZWUgU29mdHdhcmUKLy8gRm91bmRhdGlvbiwgSW5jLiwgNTkgVGVtcGxl
IFBsYWNlIC0gU3VpdGUgMzMwLCBCb3N0b24sIE1BIDAyMTExLTEzMDcsIFVTQS4KLy8KLy8gQXMg
YSBzcGVjaWFsIGV4Y2VwdGlvbiB0byB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UsIHBl
cm1pc3Npb24gaXMKLy8gZ3JhbnRlZCBmb3IgYWRkaXRpb25hbCB1c2VzIG9mIHRoZSB0ZXh0IGNv
bnRhaW5lZCBpbiBpdHMgcmVsZWFzZQovLyBvZiBDb21tb24gQysrLgovLwovLyBUaGUgZXhjZXB0
aW9uIGlzIHRoYXQsIGlmIHlvdSBsaW5rIHRoZSBDb21tb24gQysrIGxpYnJhcnkgd2l0aCBvdGhl
ciBmaWxlcwovLyB0byBwcm9kdWNlIGFuIGV4ZWN1dGFibGUsIHRoaXMgZG9lcyBub3QgYnkgaXRz
ZWxmIGNhdXNlIHRoZQovLyByZXN1bHRpbmcgZXhlY3V0YWJsZSB0byBiZSBjb3ZlcmVkIGJ5IHRo
ZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZS4KLy8gWW91ciB1c2Ugb2YgdGhhdCBleGVjdXRh
YmxlIGlzIGluIG5vIHdheSByZXN0cmljdGVkIG9uIGFjY291bnQgb2YKLy8gbGlua2luZyB0aGUg
Q29tbW9uIEMrKyBsaWJyYXJ5IGNvZGUgaW50byBpdC4KLy8KLy8gVGhpcyBleGNlcHRpb24gZG9l
cyBub3QgaG93ZXZlciBpbnZhbGlkYXRlIGFueSBvdGhlciByZWFzb25zIHdoeQovLyB0aGUgZXhl
Y3V0YWJsZSBmaWxlIG1pZ2h0IGJlIGNvdmVyZWQgYnkgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBM
aWNlbnNlLgovLwovLyBUaGlzIGV4Y2VwdGlvbiBhcHBsaWVzIG9ubHkgdG8gdGhlIGNvZGUgcmVs
ZWFzZWQgdW5kZXIgdGhlCi8vIG5hbWUgQ29tbW9uIEMrKy4gIElmIHlvdSBjb3B5IGNvZGUgZnJv
bSBvdGhlciByZWxlYXNlcyBpbnRvIGEgY29weSBvZgovLyBDb21tb24gQysrLCBhcyB0aGUgR2Vu
ZXJhbCBQdWJsaWMgTGljZW5zZSBwZXJtaXRzLCB0aGUgZXhjZXB0aW9uIGRvZXMKLy8gbm90IGFw
cGx5IHRvIHRoZSBjb2RlIHRoYXQgeW91IGFkZCBpbiB0aGlzIHdheS4gIFRvIGF2b2lkIG1pc2xl
YWRpbmcKLy8gYW55b25lIGFzIHRvIHRoZSBzdGF0dXMgb2Ygc3VjaCBtb2RpZmllZCBmaWxlcywg
eW91IG11c3QgZGVsZXRlCi8vIHRoaXMgZXhjZXB0aW9uIG5vdGljZSBmcm9tIHRoZW0uCi8vCi8v
IElmIHlvdSB3cml0ZSBtb2RpZmljYXRpb25zIG9mIHlvdXIgb3duIGZvciBDb21tb24gQysrLCBp
dCBpcyB5b3VyIGNob2ljZQovLyB3aGV0aGVyIHRvIHBlcm1pdCB0aGlzIGV4Y2VwdGlvbiB0byBh
cHBseSB0byB5b3VyIG1vZGlmaWNhdGlvbnMuCi8vIElmIHlvdSBkbyBub3Qgd2lzaCB0aGF0LCBk
ZWxldGUgdGhpcyBleGNlcHRpb24gbm90aWNlLgoKI2luY2x1ZGUgPE5ldHdvcmtJbnRlcmZhY2Uu
aD4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dW5pc3RkLmg+CiNpbmNsdWRlIDxuZXQv
aWYuaD4KI2luY2x1ZGUgPHN5cy9pb2N0bC5oPgoKI2lmZGVmCUNDWFhfTkFNRVNQQUNFUwp1c2lu
ZyBuYW1lc3BhY2Ugc3RkOwp1c2luZyBuYW1lc3BhY2Ugb3N0OwojZW5kaWYKCgpOZXR3b3JrSW50
ZXJmYWNlOjpOZXR3b3JrSW50ZXJmYWNlKGNvbnN0IG9zdDo6U3RyaW5nJiBub2RlLCBpbnQgZG9t
YWluLCBpbnQgdHlwZSkgOiBTb2NrZXQoZG9tYWluLCB0eXBlKSwgX25vZGUobm9kZSkgewogIAp9
CgoKTmV0d29ya0ludGVyZmFjZTo6fk5ldHdvcmtJbnRlcmZhY2UoKSB7Cn0KCgpjb25zdCB1aW50
MzJfdCBOZXR3b3JrSW50ZXJmYWNlOjpnZXRNdHUoKSBjb25zdCB7CiNpZm5kZWYgV0lOMzIKICAg
c3RydWN0IGlmcmVxIGlmcjsKICAgc3RybmNweShpZnIuaWZyX25hbWUsIE5ldHdvcmtJbnRlcmZh
Y2U6OmdldE5vZGUoKS5jX3N0cigpLCBJRk5BTVNJWik7CgogICBpZiAoLTEgPT0gaW9jdGwoU29j
a2V0OjpzbywgU0lPQ0dJRk1UVSwgJmlmcikpIHsKICAgICAgY291dCA8PCAiU0lPQ0dJRk1BUCBm
YWlsZWQiPDwgZW5kbDsKICAgICAgcmV0dXJuIDA7IC8vVEhST1cKICAgfQogICByZXR1cm4gaWZy
Lmlmcl9tdHU7ICAgCiNlbHNlCiAgIC8vCiAgIC8vIGZpbGwgaW4gd2lub2R3cyBpb2N0bCgpCiAg
IC8vCiAgIHJldHVybiAwOwojZW5kaWYKCn0KCgpjb25zdCB2ZWN0b3I8dWludDhfdD4gTmV0d29y
a0ludGVyZmFjZTo6Z2V0SHdBZGRyZXNzKCkgY29uc3QgewogICB2ZWN0b3I8dWludDhfdD4gYWRk
cmVzczsKICAgCiNpZm5kZWYgV0lOMzIKICAgc3RydWN0IGlmcmVxIGlmcjsKICAgc3RybmNweShp
ZnIuaWZyX25hbWUsIE5ldHdvcmtJbnRlcmZhY2U6OmdldE5vZGUoKS5jX3N0cigpLCBJRk5BTVNJ
Wik7CiAgIGlmICgtMSA9PSBpb2N0bChTb2NrZXQ6OnNvLCBTSU9DR0lGSFdBRERSLCAmaWZyKSkg
ewogICAgICBjb3V0IDw8ICJTSU9DR0lGSFdBRERSIGZhaWxlZCI8PCBlbmRsOwogICAgICByZXR1
cm4gYWRkcmVzczsgLy9USFJPVwogICB9CiAgIGZvciggaW50IG4gPSAwOyBuIDwgSUZIV0FERFJM
RU47IG4rKykKICAgICAgYWRkcmVzcy5wdXNoX2JhY2soaWZyLmlmcl9od2FkZHIuc2FfZGF0YVtu
XSk7CiNlbHNlCiAgIC8vCiAgIC8vIGZpbGwgaW4gd2lub2R3cyBpb2N0bCgpCiAgIC8vCiNlbmRp
ZgogICAgIAogICByZXR1cm4gYWRkcmVzczsKfQoKCmNvbnN0IHVpbnQzMl90IE5ldHdvcmtJbnRl
cmZhY2U6OmdldEJhc2VBZGRyZXNzKCkgY29uc3QgewojaWZuZGVmIFdJTjMyCiAgIHN0cnVjdCBp
ZnJlcSBpZnI7CiAgIHN0cm5jcHkoaWZyLmlmcl9uYW1lLCBOZXR3b3JrSW50ZXJmYWNlOjpnZXRO
b2RlKCkuY19zdHIoKSwgSUZOQU1TSVopOwogICBpZiAoLTEgPT0gaW9jdGwoU29ja2V0Ojpzbywg
U0lPQ0dJRk1BUCwgJmlmcikpIHsKICAgICAgY291dCA8PCAiU0lPQ0dJRk1BUCBmYWlsZWQiPDwg
ZW5kbDsKICAgICAgcmV0dXJuIDA7IC8vVEhST1cKICAgfQogICByZXR1cm4gaWZyLmlmcl9tYXAu
YmFzZV9hZGRyOwojZWxzZQogICAvLwogICAvLyBmaWxsIGluIHdpbm9kd3MgaW9jdGwoKQogICAv
LwogICByZXR1cm4gMDsKI2VuZGlmICAgCn0KCgpjb25zdCB1aW50MzJfdCBOZXR3b3JrSW50ZXJm
YWNlOjpnZXRJcnEoKSBjb25zdCB7CiNpZm5kZWYgV0lOMzIKICAgc3RydWN0IGlmcmVxIGlmcjsK
ICAgc3RybmNweShpZnIuaWZyX25hbWUsIE5ldHdvcmtJbnRlcmZhY2U6OmdldE5vZGUoKS5jX3N0
cigpLCBJRk5BTVNJWik7CgogICBpZiAoLTEgPT0gaW9jdGwoU29ja2V0OjpzbywgU0lPQ0dJRk1B
UCwgJmlmcikpIHsKICAgICAgY291dCA8PCAiU0lPQ0dJRk1BUCBmYWlsZWQiPDwgZW5kbDsKICAg
ICAgcmV0dXJuIDA7IC8vVEhST1cKICAgfQogICByZXR1cm4gaWZyLmlmcl9tYXAuaXJxOwojZWxz
ZQogICAvLwogICAvLyBmaWxsIGluIHdpbm9kd3MgaW9jdGwoKQogICAvLwogICByZXR1cm4gMDsK
I2VuZGlmCn0KCgpjb25zdCB1aW50MzJfdCBOZXR3b3JrSW50ZXJmYWNlOjpnZXRQb3J0KCkgY29u
c3QgewojaWZuZGVmIFdJTjMyICAgCiAgIHN0cnVjdCBpZnJlcSBpZnI7CiAgIHN0cm5jcHkoaWZy
Lmlmcl9uYW1lLCBOZXR3b3JrSW50ZXJmYWNlOjpnZXROb2RlKCkuY19zdHIoKSwgSUZOQU1TSVop
OwoKICAgaWYgKC0xID09IGlvY3RsKFNvY2tldDo6c28sIFNJT0NHSUZNQVAsICZpZnIpKSB7CiAg
ICAgIGNvdXQgPDwgIlNJT0NHSUZNQVAgZmFpbGVkIjw8IGVuZGw7CiAgICAgIHJldHVybiAwOyAv
L1RIUk9XCiAgIH0KICAgcmV0dXJuIGlmci5pZnJfbWFwLnBvcnQ7CiNlbHNlCiAgIC8vCiAgIC8v
IGZpbGwgaW4gd2lub2R3cyBpb2N0bCgpCiAgIC8vCiAgIHJldHVybiAwOwojZW5kaWYKfQoKCmNv
bnN0IHVpbnQzMl90IE5ldHdvcmtJbnRlcmZhY2U6OmdldERtYSgpIGNvbnN0IHsKI2lmbmRlZiBX
SU4zMiAgICAKICAgc3RydWN0IGlmcmVxIGlmcjsKICAgc3RybmNweShpZnIuaWZyX25hbWUsIE5l
dHdvcmtJbnRlcmZhY2U6OmdldE5vZGUoKS5jX3N0cigpLCBJRk5BTVNJWik7CgogICBpZiAoLTEg
PT0gaW9jdGwoU29ja2V0OjpzbywgU0lPQ0dJRk1BUCwgJmlmcikpIHsKICAgICAgY291dCA8PCAi
U0lPQ0dJRk1BUCBmYWlsZWQiPDwgZW5kbDsKICAgICAgcmV0dXJuIDA7IC8vVEhST1cKICAgfSAK
ICAgcmV0dXJuIGlmci5pZnJfbWFwLmRtYTsKI2Vsc2UKICAgLy8KICAgLy8gZmlsbCBpbiB3aW5v
ZHdzIGlvY3RsKCkKICAgLy8KICAgcmV0dXJuIDA7CiNlbmRpZgp9CgoKCiAgIC8qCiAgIGZvcihp
bnQgbiA9IDA7IE5vZGVzW25dOyBuKyspewogICAgICBjb25zdCBjaGFyKiBOb2RlID0gTm9kZXNb
bl07CiAgICAgIGludCBmZDsKICAgICAgc3RydWN0IGlmcmVxIGlmcjsKICAgICAgaWYoIChmZCA9
IHNvY2tldChBRl9JTkVULCBTT0NLX0RHUkFNLCAwKSkgPj0gMCApIHsKICAgICAgICAgc3RybmNw
eShpZnIuaWZyX25hbWUsIE5vZGUsIElGTkFNU0laKTsKICAgICAgICAgaWYoIGlvY3RsKGZkLCBT
SU9DR0lGRkxBR1MsICZpZnIpID49IDAgKSB7CiAgICAgICAgICAgIGlmci5pZnJfZmxhZ3MgfD0g
SUZGX1VQOwogICAgICAgICAgICBpZiggaW9jdGwoZmQsIFNJT0NTSUZGTEFHUywgJmlmcikgPj0g
MCApIHsKICAgICAgICAgICAgICAgaWYoIGlvY3RsKGZkLCBTSU9DR0lGTUFQLCAmaWZyKSA+PSAw
ICkgewogICAgICAgICAgICAgICAgICBmb3IoaW50IG4gPSAwOyBuIDwgSW9CYXNlQWRkcmVzc2Vz
LnNpemUoKTsgbisrKSB7CiAgICAgICAgICAgICAgICAgICAgIGlmKElvQmFzZUFkZHJlc3Nlcy5h
dChuKSA9PSBpZnIuaWZyX21hcC5iYXNlX2FkZHIpIHsKICAgICAgICAgICAgICAgICAgICAgICAg
X1N5c3RlbU5vZGUgPSBOb2RlOwogICAgICAgICAgICAgICAgICAgICAgICBpZiggaW9jdGwoZmQs
IFNJT0NHSUZIV0FERFIsICZpZnIpID49IDAgKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAg
IGZvciggaW50IG4gPSAwOyBuIDwgSUZIV0FERFJMRU47IG4rKykKICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgX01hY0FkZHJlc3MucHVzaF9iYWNrKGlmci5pZnJfaHdhZGRyLnNhX2RhdGFb
bl0pOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIGNv
dXQgPDwgX1N5c3RlbU5vZGUgPDwgIjoiOwogICAgICAgICAgICAgICAgICAgICAgICBmb3IoIGlu
dCBuID0gMDsgbiA8IDY7IG4rKykKICAgICAgICAgICAgICAgICAgICAgICAgICAgY291dCA8PCBp
bnQoX01hY0FkZHJlc3Nbbl0pOwogICAgICAgICAgICAgICAgICAgICAgICBjb3V0IDw8IGVuZGw7
CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICB9CiAg
ICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAvL2Vsc2Ug
Y2VyciA8PCAiRXJyb3I6IGNvdWxkIG5vdCBnZXQgaWZhY2UgcHJvcGVydGllcyAoIiA8PCBOb2Rl
IDw8ICIpIEVycm9yOiIgPDwgZXJybm8gPDwgZW5kbDsKICAgICAgICAgICAgfQogICAgICAgICAg
ICAvL2Vsc2UgY2VyciA8PCAiRXJyb3I6IGNvdWxkIG5vdCBicmluZyB1cCBkZXZpY2U6ICgiIDw8
IE5vZGUgPDwgIikgRXJyb3I6IiA8PCBlcnJubyA8PCBlbmRsOwogICAgICAgICB9CiAgICAgICAg
IC8vZWxzZSBjZXJyIDw8ICJFcnJvcjogY291bGQgbm90IGdldCBpZmFjZSBwcm9wZXJ0aWVzICgi
IDw8IE5vZGUgPDwgIikgRXJyb3I6IiA8PCBlcnJubyA8PCBlbmRsOwogICAgICB9CiAgICAgIC8v
ZWxzZSBjZXJyIDw8ICJFcnJvcjogTm8gZmlsZSBkZXNjcmlwdG9yLiAoIiA8PCBOb2RlIDw8ICIp
IEVycm9yOiIgPDwgZXJybm8gPDwgZW5kbDsKICAgKi8KCgoKCg==

--========GMXBoundary97291072544061
Content-Type: text/x-chdr; name="InetInterface.h"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="InetInterface.h"

I2lmbmRlZiBDQ1hYX0lORVRJTlRFUkZBQ0VfSAojZGVmaW5lIENDWFhfSU5FVElOVEVSRkFDRV9I
CgojaW5jbHVkZSA8TmV0d29ya0ludGVyZmFjZS5oPgoKI2lmbmRlZiBDQ1hYX0NPTkZJR19IXwoj
aW5jbHVkZSA8Y2MrKy9jb25maWcuaD4KI2VuZGlmCgojaWZuZGVmIENDWFhfU09DS0VUX0hfCiNp
bmNsdWRlIDxjYysrL3NvY2tldC5oPgojZW5kaWYKCiNpZm5kZWYgQ0NYWF9TVFJJTkdfSF8KI2lu
Y2x1ZGUgPGNjKysvc3RyaW5nLmg+CiNlbmRpZgoKI2lmZGVmCUNDWFhfTkFNRVNQQUNFUwpuYW1l
c3BhY2Ugb3N0IHsKI2VuZGlmCgoKLyoqISBJbmV0SW50ZXJmYWNlIGNsYXNzCioKKiBUaGlzIGNs
YXNzIGlzIHVzZWQgdG8gaG9sZCB2YXJpb3VzIGluZm9ybWF0aW9ucyBhYm91dCBhbiBpbnRlcm5l
dCAoVENQL0lQKQoqIG5ldHdvcmsgZGV2aWNlLiAKKi8KY2xhc3MgX19FWFBPUlQgSW5ldEludGVy
ZmFjZSA6IHB1YmxpYyBOZXR3b3JrSW50ZXJmYWNlICB7CiAgIHB1YmxpYzoKICAgLyoqCiAgICAq
IENyZWF0ZXMgYSBJbmV0SW50ZXJmYWNlIGZyb20gdGhlIHN5c3RlbSBub2RlIChpLmUuIGV0aDAg
b3IgZXRoZXIwKS4KICAgICovICAgICAKICAgSW5ldEludGVyZmFjZShjb25zdCBvc3Q6OlN0cmlu
ZyYgbm9kZSk7CiAgIH5JbmV0SW50ZXJmYWNlKCk7CiAgIC8qKgogICAgKiBSZXR1cm5zIHRoZSBJ
UCBhZGRyZXNzIHVzZWQgYnkgdGhlIGludGVyZmFjZS4KICAgICovICAgIAogICBvc3Q6OkluZXRI
b3N0QWRkcmVzcyBnZXRBZGRyZXNzKCk7CiAgIC8qKgogICAgKiBTZXRzIHRoZSBJUCBhZGRyZXNz
IG9mIHRoZSBpbnRlcmZhY2UgdG8gYWRkcmVzcy4KICAgICovICAgIAogICBib29sIHNldEFkZHJl
c3MoY29uc3Qgb3N0OjpJbmV0SG9zdEFkZHJlc3MmIGFkZHJlc3MpOwogICAvKioKICAgICogU2V0
cyB0aGUgbmV0bWFzayBhZGRyZXNzIG9mIHRoZSBpbnRlcmZhY2UgdG8gYWRkcmVzcy4KICAgICov
CiAgIG9zdDo6SW5ldE1hc2tBZGRyZXNzIGdldE5ldG1hc2soKTsKICAgLyoqCiAgICAqIFJldHVy
bnMgdGhlIG5ldG1hc2sgYWRkcmVzcyB1c2VkIGJ5IHRoZSBpbnRlcmZhY2UuCiAgICAqLyAgCiAg
IGJvb2wgc2V0TmV0bWFzayhjb25zdCBvc3Q6OkluZXRNYXNrQWRkcmVzcyYgYWRkcmVzcyk7CiAg
IC8qKgogICAgKiBSZXR1cm5zIHRoZSBicm9hZGNhc3QgYWRkcmVzcyB1c2VkIGJ5IHRoZSBpbnRl
cmZhY2UuCiAgICAqLyAgCiAgIG9zdDo6QnJvYWRjYXN0QWRkcmVzcyBnZXRCcm9hZGNhc3QoKTsK
ICAgLyoqCiAgICAqIFNldHMgdGhlIGJyb2FkY2FzdCBhZGRyZXNzIG9mIHRoZSBpbnRlcmZhY2Ug
dG8gYWRkcmVzcy4KICAgICovCiAgIGJvb2wgc2V0QnJvYWRjYXN0KGNvbnN0IEJyb2FkY2FzdEFk
ZHJlc3MmIGFkZHJlc3MpOwp9OwoKI2lmZGVmCUNDWFhfTkFNRVNQQUNFUwp9CiNlbmRpZgoKI2Vu
ZGlmCg==

--========GMXBoundary97291072544061
Content-Type: text/x-c++src; name="InetInterface.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="InetInterface.cpp"

Ly8gQ29weXJpZ2h0IChDKSAyMDAzIE1hcmMgQm9yaXMgRPxybmVyIDxtYXJjZCBfX2F0IGFya2xp
bnV4IF9fZG90IG9yZz4KLy8KLy8gVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBj
YW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkKLy8gaXQgdW5kZXIgdGhlIHRlcm1zIG9m
IHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnkKLy8gdGhlIEZy
ZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0aGVyIHZlcnNpb24gMiBvZiB0aGUgTGljZW5zZSwg
b3IKLy8gKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi4KLy8KLy8gVGhpcyBwcm9n
cmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsCi8v
IGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJh
bnR5IG9mCi8vIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVS
UE9TRS4gIFNlZSB0aGUKLy8gR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0
YWlscy4KLy8KLy8gWW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdl
bmVyYWwgUHVibGljIExpY2Vuc2UKLy8gYWxvbmcgd2l0aCB0aGlzIHByb2dyYW07IGlmIG5vdCwg
d3JpdGUgdG8gdGhlIEZyZWUgU29mdHdhcmUKLy8gRm91bmRhdGlvbiwgSW5jLiwgNTkgVGVtcGxl
IFBsYWNlIC0gU3VpdGUgMzMwLCBCb3N0b24sIE1BIDAyMTExLTEzMDcsIFVTQS4KLy8KLy8gQXMg
YSBzcGVjaWFsIGV4Y2VwdGlvbiB0byB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UsIHBl
cm1pc3Npb24gaXMKLy8gZ3JhbnRlZCBmb3IgYWRkaXRpb25hbCB1c2VzIG9mIHRoZSB0ZXh0IGNv
bnRhaW5lZCBpbiBpdHMgcmVsZWFzZQovLyBvZiBDb21tb24gQysrLgovLwovLyBUaGUgZXhjZXB0
aW9uIGlzIHRoYXQsIGlmIHlvdSBsaW5rIHRoZSBDb21tb24gQysrIGxpYnJhcnkgd2l0aCBvdGhl
ciBmaWxlcwovLyB0byBwcm9kdWNlIGFuIGV4ZWN1dGFibGUsIHRoaXMgZG9lcyBub3QgYnkgaXRz
ZWxmIGNhdXNlIHRoZQovLyByZXN1bHRpbmcgZXhlY3V0YWJsZSB0byBiZSBjb3ZlcmVkIGJ5IHRo
ZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZS4KLy8gWW91ciB1c2Ugb2YgdGhhdCBleGVjdXRh
YmxlIGlzIGluIG5vIHdheSByZXN0cmljdGVkIG9uIGFjY291bnQgb2YKLy8gbGlua2luZyB0aGUg
Q29tbW9uIEMrKyBsaWJyYXJ5IGNvZGUgaW50byBpdC4KLy8KLy8gVGhpcyBleGNlcHRpb24gZG9l
cyBub3QgaG93ZXZlciBpbnZhbGlkYXRlIGFueSBvdGhlciByZWFzb25zIHdoeQovLyB0aGUgZXhl
Y3V0YWJsZSBmaWxlIG1pZ2h0IGJlIGNvdmVyZWQgYnkgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBM
aWNlbnNlLgovLwovLyBUaGlzIGV4Y2VwdGlvbiBhcHBsaWVzIG9ubHkgdG8gdGhlIGNvZGUgcmVs
ZWFzZWQgdW5kZXIgdGhlCi8vIG5hbWUgQ29tbW9uIEMrKy4gIElmIHlvdSBjb3B5IGNvZGUgZnJv
bSBvdGhlciByZWxlYXNlcyBpbnRvIGEgY29weSBvZgovLyBDb21tb24gQysrLCBhcyB0aGUgR2Vu
ZXJhbCBQdWJsaWMgTGljZW5zZSBwZXJtaXRzLCB0aGUgZXhjZXB0aW9uIGRvZXMKLy8gbm90IGFw
cGx5IHRvIHRoZSBjb2RlIHRoYXQgeW91IGFkZCBpbiB0aGlzIHdheS4gIFRvIGF2b2lkIG1pc2xl
YWRpbmcKLy8gYW55b25lIGFzIHRvIHRoZSBzdGF0dXMgb2Ygc3VjaCBtb2RpZmllZCBmaWxlcywg
eW91IG11c3QgZGVsZXRlCi8vIHRoaXMgZXhjZXB0aW9uIG5vdGljZSBmcm9tIHRoZW0uCi8vCi8v
IElmIHlvdSB3cml0ZSBtb2RpZmljYXRpb25zIG9mIHlvdXIgb3duIGZvciBDb21tb24gQysrLCBp
dCBpcyB5b3VyIGNob2ljZQovLyB3aGV0aGVyIHRvIHBlcm1pdCB0aGlzIGV4Y2VwdGlvbiB0byBh
cHBseSB0byB5b3VyIG1vZGlmaWNhdGlvbnMuCi8vIElmIHlvdSBkbyBub3Qgd2lzaCB0aGF0LCBk
ZWxldGUgdGhpcyBleGNlcHRpb24gbm90aWNlLgoKI2luY2x1ZGUgPEluZXRJbnRlcmZhY2UuaD4K
I2luY2x1ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZSA8bmV0L2lmLmg+CiNpbmNsdWRlIDxuZXRpbmV0
L2luLmg+CiNpbmNsdWRlIDxzeXMvaW9jdGwuaD4KCiNpZmRlZglDQ1hYX05BTUVTUEFDRVMKdXNp
bmcgbmFtZXNwYWNlIHN0ZDsKdXNpbmcgbmFtZXNwYWNlIG9zdDsKI2VuZGlmCgoKSW5ldEludGVy
ZmFjZTo6SW5ldEludGVyZmFjZShjb25zdCBvc3Q6OlN0cmluZyYgbm9kZSkgOiBOZXR3b3JrSW50
ZXJmYWNlKG5vZGUsIEFGX0lORVQsIFNPQ0tfREdSQU0pIHsKfQoKCkluZXRJbnRlcmZhY2U6On5J
bmV0SW50ZXJmYWNlKCl7Cn0KCgpJbmV0SG9zdEFkZHJlc3MgSW5ldEludGVyZmFjZTo6Z2V0QWRk
cmVzcygpIHsKI2lmbmRlZiBXSU4zMgogICBzdHJ1Y3QgaWZyZXEgaWZyOwogICBzdHJuY3B5KGlm
ci5pZnJfbmFtZSwgTmV0d29ya0ludGVyZmFjZTo6Z2V0Tm9kZSgpLmNfc3RyKCksIElGTkFNU0la
KTsKICAgICAgCiAgIGlmICgtMSA9PSBpb2N0bChTb2NrZXQ6OnNvLCBTSU9DR0lGQUREUiwgJmlm
cikpIHsKICAgICAgY291dCA8PCAiU0lPQ0dJRkFERFIgZmFpbGVkIjw8IGVuZGw7CiAgICAgIHJl
dHVybiBJbmV0SG9zdEFkZHJlc3MoKTsgLy9USFJPVwogICB9CiAgICAgIAogICBzdHJ1Y3QgaW5f
YWRkciBhZGRyZXNzID0gKChzb2NrYWRkcl9pbiYpaWZyLmlmcl9hZGRyKS5zaW5fYWRkcjsKICAg
cmV0dXJuIEluZXRIb3N0QWRkcmVzcyhhZGRyZXNzKTsKI2Vsc2UKICAgLy8KICAgLy8gZmlsbCBp
biB3aW5vZHdzIGlvY3RsKCkKICAgLy8KICAgcmV0dXJuIEluZXRIb3N0QWRkcmVzcygiMC4wLjAu
MCIpOwojZW5kaWYgCn0gCgoKYm9vbCBJbmV0SW50ZXJmYWNlOjpzZXRBZGRyZXNzKGNvbnN0IElu
ZXRIb3N0QWRkcmVzcyYgYWRkcmVzcykgewojaWZuZGVmIFdJTjMyCiAgIHN0cnVjdCBpZnJlcSBp
ZnI7CiAgIGlmci5pZnJfYWRkci5zYV9mYW1pbHkgPSBBRl9JTkVUOwogICBzdHJuY3B5KGlmci5p
ZnJfbmFtZSwgTmV0d29ya0ludGVyZmFjZTo6Z2V0Tm9kZSgpLmNfc3RyKCksIElGTkFNU0laKTsK
ICAgCiAgICgoc29ja2FkZHJfaW4mKWlmci5pZnJfYWRkcikuc2luX2FkZHIgPSBhZGRyZXNzLmdl
dEFkZHJlc3MoKTsKICAgaWYgKC0xID09IGlvY3RsKFNvY2tldDo6c28sIFNJT0NTSUZBRERSLCAm
aWZyKSkgewogICAgICBjb3V0IDw8ICJTSU9DU0lGQUREUiBmYWlsZWQiPDwgZW5kbDsKICAgICAg
cmV0dXJuIGZhbHNlOyAvL1RIUk9XCiAgIH0KICAgICAgCiAgIHJldHVybiB0cnVlOwojZWxzZQog
ICAvLwogICAvLyBmaWxsIGluIHdpbm9kd3MgaW9jdGwoKQogICAvLwogICByZXR1cm4gZmFsc2U7
CiNlbmRpZiAKfQoKCkluZXRNYXNrQWRkcmVzcyBJbmV0SW50ZXJmYWNlOjpnZXROZXRtYXNrKCkg
ewojaWZuZGVmIFdJTjMyCiAgIHN0cnVjdCBpZnJlcSBpZnI7CiAgIHN0cm5jcHkoaWZyLmlmcl9u
YW1lLCBOZXR3b3JrSW50ZXJmYWNlOjpnZXROb2RlKCkuY19zdHIoKSwgSUZOQU1TSVopOwogICAK
ICAgaWYgKC0xID09IGlvY3RsKFNvY2tldDo6c28sIFNJT0NHSUZORVRNQVNLLCAmaWZyKSkgewog
ICAgICByZXR1cm4gSW5ldE1hc2tBZGRyZXNzKCIwLjAuMC4wIik7IC8vVEhST1cKICAgfQogICAK
ICAgc3RydWN0IGluX2FkZHIgYWRkcmVzcyA9ICgoc29ja2FkZHJfaW4mKWlmci5pZnJfbmV0bWFz
aykuc2luX2FkZHI7CiAgIHJldHVybiBJbmV0TWFza0FkZHJlc3MoYWRkcmVzcyk7CiNlbHNlCiAg
IC8vCiAgIC8vIGZpbGwgaW4gd2lub2R3cyBpb2N0bCgpCiAgIC8vCiAgIHJldHVybiBJbmV0TWFz
a0FkZHJlc3MoIjAuMC4wLjAiKTsKI2VuZGlmCn0KCgpib29sIEluZXRJbnRlcmZhY2U6OnNldE5l
dG1hc2soY29uc3QgSW5ldE1hc2tBZGRyZXNzJiBhZGRyZXNzKSB7CiNpZm5kZWYgV0lOMzIKICAg
c3RydWN0IGlmcmVxIGlmcjsKICAgaWZyLmlmcl9hZGRyLnNhX2ZhbWlseSA9IEFGX0lORVQ7CiAg
IHN0cm5jcHkoaWZyLmlmcl9uYW1lLCBOZXR3b3JrSW50ZXJmYWNlOjpnZXROb2RlKCkuY19zdHIo
KSwgSUZOQU1TSVopOwogICAoKHNvY2thZGRyX2luJilpZnIuaWZyX25ldG1hc2spLnNpbl9hZGRy
ID0gYWRkcmVzcy5nZXRBZGRyZXNzKCk7CiAgICAKICAgaWYgKC0xID09IGlvY3RsKFNvY2tldDo6
c28sIFNJT0NTSUZORVRNQVNLLCAmaWZyKSkgewogICAgICBjb3V0IDw8ICJTSU9DU0lGTkVUTUFT
SyBmYWlsZWQiPDwgZW5kbDsKICAgICAgcmV0dXJuIGZhbHNlOyAvL1RIUk9XCiAgIH0KICAgCiAg
IHJldHVybiB0cnVlOwojZWxzZQogICAvLwogICAvLyBmaWxsIGluIHdpbm9kd3MgaW9jdGwoKQog
ICAvLwogICByZXR1cm4gZmFsc2U7CiNlbmRpZgp9CgoKQnJvYWRjYXN0QWRkcmVzcyBJbmV0SW50
ZXJmYWNlOjpnZXRCcm9hZGNhc3QoKSB7CiNpZm5kZWYgV0lOMzIKICAgc3RydWN0IGlmcmVxIGlm
cjsKICAgc3RybmNweShpZnIuaWZyX25hbWUsIE5ldHdvcmtJbnRlcmZhY2U6OmdldE5vZGUoKS5j
X3N0cigpLCBJRk5BTVNJWik7CiAgIAogICBpZiAoLTEgPT0gaW9jdGwoU29ja2V0OjpzbywgU0lP
Q0dJRkJSREFERFIsICZpZnIpKSB7CiAgICAgIHJldHVybiBCcm9hZGNhc3RBZGRyZXNzKCIwLjAu
MC4wIik7IC8vVEhST1cKICAgfQoKICAgc3RydWN0IGluX2FkZHIgaW5hZGRyID0gKChzb2NrYWRk
cl9pbiYpaWZyLmlmcl9icm9hZGFkZHIpLnNpbl9hZGRyOwogICByZXR1cm4gQnJvYWRjYXN0QWRk
cmVzcyhpbmV0X250b2EoaW5hZGRyKSApOwojZWxzZQogICAvLwogICAvLyBmaWxsIGluIHdpbm9k
d3MgaW9jdGwoKQogICAvLwogICByZXR1cm4gQnJvYWRjYXN0QWRkcmVzcygiMC4wLjAuMCIpOwoj
ZW5kaWYKfQoKCmJvb2wgSW5ldEludGVyZmFjZTo6c2V0QnJvYWRjYXN0KGNvbnN0IEJyb2FkY2Fz
dEFkZHJlc3MmIGFkZHJlc3MpIHsKI2lmbmRlZiBXSU4zMgogICBzdHJ1Y3QgaWZyZXEgaWZyOwog
ICBpZnIuaWZyX2FkZHIuc2FfZmFtaWx5ID0gQUZfSU5FVDsKICAgc3RybmNweShpZnIuaWZyX25h
bWUsIE5ldHdvcmtJbnRlcmZhY2U6OmdldE5vZGUoKS5jX3N0cigpLCBJRk5BTVNJWik7CiAgICgo
c29ja2FkZHJfaW4mKWlmci5pZnJfYnJvYWRhZGRyKS5zaW5fYWRkciA9IGFkZHJlc3MuZ2V0QWRk
cmVzcygpOwoKICAgaWYgKC0xID09IGlvY3RsKFNvY2tldDo6c28sIFNJT0NTSUZCUkRBRERSLCAm
aWZyKSkgewogICAgICBjb3V0IDw8ICJTSU9DU0lGQlJEQUREUiBmYWlsZWQiPDwgZW5kbDsKICAg
ICAgcmV0dXJuIGZhbHNlOyAvL1RIUk9XCiAgIH0KCiAgIHJldHVybiB0cnVlOwojZWxzZQogICAv
LwogICAvLyBmaWxsIGluIHdpbm9kd3MgaW9jdGwoKQogICAvLwogICByZXR1cm4gZmFsc2U7CiNl
bmRpZgp9CgoKCgoKCgoKCgoKCg==

--========GMXBoundary97291072544061--




From MAILER-DAEMON Sat Dec 27 17:23:05 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaMpt-0003pM-1M
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:23:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaMph-0003gm-Ei
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:22:53 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaMp0-00031O-Vk
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:22:42 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaMp0-0002Xo-Mx
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:22:10 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AaLkh-0006w3-G3
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 16:13:39 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AaLnt-0001MO-00; Sat, 27 Dec 2003 22:16:57 +0100
Date: Sat, 27 Dec 2003 22:16:57 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>
Message-ID: <20031227211657.GA759@paraguas>
Mail-Followup-To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>,
	bug-commoncpp@gnu.org
References: <9729.1072544061@www41.gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <9729.1072544061@www41.gmx.net>
User-Agent: Mutt/1.5.4i
Cc: bug-commoncpp@gnu.org
Subject: Re: New NetworkInterface and InetInterface classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 22:22:55 -0000


	Hi, 

	at first sight, it seems that NetworkInterface has some things
in common with NetworkDeviceInfo (network.h/cpp), are you aware of
this class? Do you think it would make sense to merge or coordinate
them?

	I think some things could go into the base library and some
others into the hardware extension. For instance, methods and data
clearly and directly related to hardware (such as IRQs and DMAs) could
be defined in derived classes in the hardware extension, whereas the
base classes could go into the base library.

On Sat, Dec 27, 2003 at 05:54:21PM +0100, "Marc Boris Dürner" wrote:
> Hi, 
> I have written a NetworkInterface class and a InetInterface class.
> NetworkInterface is 
> derived from Socket to get a socket descriptor for the ioctl()s and
> InetInterface is derived 
> from NetworkInterface to initialise the Socket with the domain and type. Any
> comments? 
>  
> Should this go into the ccBaseKit or in the ccHardware extension? 
>  
> regards, 
> Marc 
> 



From MAILER-DAEMON Sat Dec 27 17:35:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaN1T-00034E-Ls
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:35:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaN1R-00033j-Aa
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:35:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaN0v-0002zd-Cc
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:35:00 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AaN0u-0002zH-PR
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:34:28 -0500
Received: (qmail 18638 invoked by uid 0); 27 Dec 2003 21:33:01 -0000
Received: from 217.185.69.168 by www5.gmx.net with HTTP;
	Sat, 27 Dec 2003 22:33:01 +0100 (MET)
Date: Sat, 27 Dec 2003 22:33:01 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <7843.1072560781@www5.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: fedemp@altern.org
Subject: Re: New NetworkInterface and InetInterface classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 22:35:01 -0000

On Saturday 27 December 2003 22:16, you wrote: 
> 	Hi, 
> 
> 	at first sight, it seems that NetworkInterface has some things 
> in common with NetworkDeviceInfo (network.h/cpp), are you aware of 
> this class? Do you think it would make sense to merge or coordinate 
> them? 
 
Yes, its supposed to be a replacement. I want to derive more ***Interface
classes from 
NetworkInterface like IPX, Inet4... NetworkDeviceInfo assumes everything is
Inet4. Also 
the NetworkDevice API doesnt tell irq, dma etc.  
 
 
> 	I think some things could go into the base library and some 
> others into the hardware extension. For instance, methods and data 
> clearly and directly related to hardware (such as IRQs and DMAs) could 
> be defined in derived classes in the hardware extension, whereas the 
> base classes could go into the base library. 
 
I guess I'll have to ut it in ccHardware. The Hw data is available through
the base class 
NetworkInterface. And all the adress stuff through the derived classes i. e.
InetInterface.  
  
The main problem I have is that I can find no useful information about win32

programming. Has anyone a link? Or is windows networking so limited? On the
other hand 
win32 may not be interested in configuring a network interface, while for
linux its very 
useful. 
 
Any plans to separate the networking stuff into a ccNet module? 
 
regards, 
Marc 
 
 
 
> On Sat, Dec 27, 2003 at 05:54:21PM +0100, "Marc Boris Dürner" wrote: 
> > Hi, 
> > I have written a NetworkInterface class and a InetInterface class. 
> > NetworkInterface is 
> > derived from Socket to get a socket descriptor for the ioctl()s and 
> > InetInterface is derived 
> > from NetworkInterface to initialise the Socket with the domain and type.

> > Any comments? 
> > 
> > Should this go into the ccBaseKit or in the ccHardware extension? 
> > 
> > regards, 
> > Marc 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Dec 27 17:36:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaN3H-0003QO-GW
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:36:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaN3F-0003Q8-PI
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:36:53 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaN2i-0003JP-Un
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:36:52 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaN2i-0003JG-Fw
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:36:20 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AaM8L-0001Rb-00; Sat, 27 Dec 2003 22:38:05 +0100
Date: Sat, 27 Dec 2003 22:38:05 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Wolfgang <wolfgang@alper-online.com>
Message-ID: <20031227213805.GB759@paraguas>
Mail-Followup-To: Wolfgang <wolfgang@alper-online.com>,
	CommonC++ Mailingliste <bug-commoncpp@gnu.org>
References: <200312270557.55222.wolfgang@alper-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200312270557.55222.wolfgang@alper-online.com>
User-Agent: Mutt/1.5.4i
Cc: CommonC++ Mailingliste <bug-commoncpp@gnu.org>
Subject: Re: getPeer(tpport_t *port) and SocketPort for bound UDPSockets
	broken?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 22:36:54 -0000


	Hi, do you see that broken behaviour with UDPSocket before
receiving any packet on the socket? UDPSocket::getPeer uses the
'recvfrom' system call to retrieve the actual current peer the socket
is receiving from. If no packet has been received so far or is not
available, recvfrom will return 0. For an UDP socket, the peer is not
so clearly defined as for a TCP socket. I guess it would be helpful to
point this out in the SocketPort docs.

On Sat, Dec 27, 2003 at 05:57:55AM +0100, Wolfgang wrote:
> Hello,
> 
> when using getPeer(tpport_t *port) in a derived class from SocketPort using a 
> CTOR for a bound UDPSocket, getPeer always returns 0.0.0.0:0 (Adress and port 
> eq 0).
> However when using an explicit UDPSocket, UDPSocket::getPeer works.
> 
> Doing the same with SocketPort and a bound TCPSocket is not a problem.
> 
> It seems that this is because UDPSocket overloads getPeer from Socket, which 
> is not the case for TCPSocket. So SocketPort will not call UDPSocket::getPeer 
> but Socket::getPeer (which works for TCPSocket's).
> 
> Best regards
> 
> Wolfgang
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Sat Dec 27 17:44:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNAb-0007vt-Tb
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:44:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNAa-0007vZ-1c
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:44:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNA4-0007gW-Dj
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:44:27 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaNA4-0007gS-4L
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:43:56 -0500
Received: from sonne.kosmos.all (212-62-80-64.teleos-web.de [212.62.80.64])
	by sally.dts-online.net (Postfix) with ESMTP id AF96B3E13C3
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 22:42:28 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id D93C37B38B
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 22:37:18 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Sat, 27 Dec 2003 22:37:17 +0100
User-Agent: KMail/1.5.4
References: <200312270054.54516.wolfgang@alper-online.com>
	<200312271216.06366.cproch@seculogix.de>
In-Reply-To: <200312271216.06366.cproch@seculogix.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312272237.17271.wolfgang@alper-online.com>
Subject: Re: void SocketService::run(void) ...		if
	(FD_ISSET(so, &err))... SocketPort:::disconnect()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 22:44:28 -0000

Am Samstag, 27. Dezember 2003 12:16 schrieb Christian Prochnow:
> On Saturday 27 December 2003 00:54, Wolfgang wrote:
> > so how is SocketPort::disconnect()  (if(FD_ISSET(so, &err)...) to be
> > used?
>
> Hi !
>
> You cannot detect a disconnect through the select() or poll() system calls.
> When a disconnect occurs a read event is triggered. Reading from the socket
> then returns 0-bytes which indicates that the connection has been closed.
>
>
> Regards,
> Christian Prochnow

Hello Christian,

thx - that is how i detect a disconnect right now. i think that also -1 can be 
returned in case the other party has not read their receive buffer before the 
disconnect happend. (so i do check for dlen<=0 not dlen== 0).

But i would like to raise the question again: in which case will  
SocketPort::disconnect() be called?
My guess would be: in case of incoming OOB data but i might be wrong.

best regards

Wolfgang




From MAILER-DAEMON Sat Dec 27 17:55:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNL3-0005Fi-PG
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:55:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNL0-0005E3-LI
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:55:14 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNKT-00052J-86
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:55:12 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaNKR-0004uY-OU
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:54:39 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AaMIV-0000NH-A2
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 16:48:35 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AaMLl-0001Th-00; Sat, 27 Dec 2003 22:51:57 +0100
Date: Sat, 27 Dec 2003 22:51:57 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>
Message-ID: <20031227215157.GC759@paraguas>
Mail-Followup-To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>,
	bug-commoncpp@gnu.org, dyfet@ostel.com
References: <1809.1072483608@www4.gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1809.1072483608@www4.gmx.net>
User-Agent: Mutt/1.5.4i
Cc: dyfet@ostel.com, bug-commoncpp@gnu.org
Subject: Re: InetAddress classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 22:55:16 -0000


	I don't think there is any reason to not try it.

On Sat, Dec 27, 2003 at 01:06:48AM +0100, "Marc Boris Dürner" wrote:
>  
> - Is anything speaking against making InetAddress a template where the
> validator is the 
> template type? 
>  
> regards, 
> Marc 
>  



From MAILER-DAEMON Sat Dec 27 17:56:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNM9-0005cw-5b
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:56:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNM7-0005ch-I7
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:56:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNLb-0005Tb-IG
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:56:22 -0500
Received: from [212.62.68.35] (helo=sally.dts-online.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaNLb-0005TK-00
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:55:51 -0500
Received: from sonne.kosmos.all (212-62-80-64.teleos-web.de [212.62.80.64])
	by sally.dts-online.net (Postfix) with ESMTP id 68B56408A59
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 22:54:23 +0100 (CET)
Received: from sonne.kosmos.all (sonne.kosmos.all [192.168.1.10])
	by sonne.kosmos.all (Postfix) with ESMTP id D6EB07B38B
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 22:49:13 +0100 (CET)
From: Wolfgang <wolfgang@alper-online.com>
To: "CommonC++ Mailingliste" <bug-commoncpp@gnu.org>
Date: Sat, 27 Dec 2003 22:49:12 +0100
User-Agent: KMail/1.5.4
References: <200312270557.55222.wolfgang@alper-online.com>
	<20031227213805.GB759@paraguas>
In-Reply-To: <20031227213805.GB759@paraguas>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312272249.12768.wolfgang@alper-online.com>
Subject: Re: getPeer(tpport_t *port) and SocketPort for bound UDPSockets
	broken?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: wolfgang@alper-online.com
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 22:56:24 -0000

Hello Federico,

well i called getPeer() within pending() . for my test, i did it every time in 
pending before calling receive().
i know that datagram works connectionless in comparison to TCP based 
streamsockets.

//using SocketPort:
//doesn't return correct peer information for udpsocket 
//but works for tcpsockets
	void pending(void) {
		tpport_t mport; InetHostAddress ia = getPeer(&mport);
		cout << "Remote Client: " << ia << ":" << mport << endl;
		char buffer[1000]; int dlen; dlen = receive(buffer, 1000); buffer[dlen] = 
'\0';
		if (dlen > 0) {
			cout << "MySocketPort::pending. so: " << so << " received: " << dlen << 
"bytes. = " << buffer << endl;
		}
		else {
			cout << "MySocketPort::pending. so: " << so << " dlen <= 0!: " << dlen << 
endl;
			//this is not the best way but for a simple test...
			delete this;
		}
	};



then i did a test with a UDPSocket and called getPeer() after a packet arrived 
but before receive().

//explicit server, explicit getPeer() call  - this works as it should
pserver = new UDPSocket("127.0.0.1", 12345);
pserver->setPeer("127.0.0.1", 11111);

tpport_t mport; InetHostAddress ia = pserver->getPeer(&mport);
		cout << "Remote Client: " << ia << ":" << mport << endl;
		dlen = pserver->receive(buffer, 1000); buffer[dlen] = '\0';
		if (dlen > 0) {	cout << "pserver received: " << dlen << "bytes. = " << 
buffer << endl;}


furthermore, i could imagine, that socketport does not use UDPSocket::getPeer 
but Socket::getPeer(). this would explain the behaviour.

Best regards

Wolfgang


Am Samstag, 27. Dezember 2003 22:38 schrieb Federico Montesino Pouzols:
> 	Hi, do you see that broken behaviour with UDPSocket before
> receiving any packet on the socket? UDPSocket::getPeer uses the
> 'recvfrom' system call to retrieve the actual current peer the socket
> is receiving from. If no packet has been received so far or is not
> available, recvfrom will return 0. For an UDP socket, the peer is not
> so clearly defined as for a TCP socket. I guess it would be helpful to
> point this out in the SocketPort docs.
>
> On Sat, Dec 27, 2003 at 05:57:55AM +0100, Wolfgang wrote:
> > Hello,
> >
> > when using getPeer(tpport_t *port) in a derived class from SocketPort
> > using a CTOR for a bound UDPSocket, getPeer always returns 0.0.0.0:0
> > (Adress and port eq 0).
> > However when using an explicit UDPSocket, UDPSocket::getPeer works.
> >
> > Doing the same with SocketPort and a bound TCPSocket is not a problem.
> >
> > It seems that this is because UDPSocket overloads getPeer from Socket,
> > which is not the case for TCPSocket. So SocketPort will not call
> > UDPSocket::getPeer but Socket::getPeer (which works for TCPSocket's).
> >
> > Best regards
> >
> > Wolfgang
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Sat Dec 27 18:06:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNWD-0002cG-Kn
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:06:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNWB-0002bk-5n
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:06:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNVe-0002LT-Bd
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:06:46 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AaNVd-0002LQ-T8
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:06:14 -0500
Received: (qmail 1345 invoked by uid 0); 27 Dec 2003 22:04:45 -0000
Received: from 217.185.69.168 by www4.gmx.net with HTTP;
	Sat, 27 Dec 2003 23:04:46 +0100 (MET)
Date: Sat, 27 Dec 2003 23:04:46 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <22099.1072562686@www4.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: fedemp@altern.org
Subject: Re: InetAddress classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 23:06:47 -0000

>I don't think there is any reason to not try it. 
Is that a yes or no? ;) 
 
InteAddress as a template class would be ok, unless It would be valid to
have a 
InetAddress without a validator. Does the validator do anything else than
throwing 
exceptions? wouldnt it be enough to limit the creation of Inetaddresses
through the ctor? I 
mean when you get four bytes for an IP from an in_addr struct and they
result from an 
uninitialised struct or something how is the validator going to see the
difference? How and 
what is validated? 
 
On Saturday 27 December 2003 22:51, you wrote: 
> 	I don't think there is any reason to not try it. 
> 
> On Sat, Dec 27, 2003 at 01:06:48AM +0100, "Marc Boris Dürner" wrote: 
> > - Is anything speaking against making InetAddress a template where the 
> > validator is the 
> > template type? 
> > 
> > regards, 
> > Marc 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Dec 27 18:10:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNZQ-0003bv-8s
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:10:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNZP-0003ba-5A
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:10:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNYr-0003Tf-U2
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:10:06 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaNYr-0003R6-HQ
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:09:33 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AaMSQ-00015a-1y
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 16:58:50 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AaMVg-0001ZV-00; Sat, 27 Dec 2003 23:02:12 +0100
Date: Sat, 27 Dec 2003 23:02:12 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>
Message-ID: <20031227220212.GD759@paraguas>
Mail-Followup-To: Marc Boris =?iso-8859-1?Q?D=FCrner?= <mduerner@gmx.net>,
	bug-commoncpp@gnu.org, dyfet@ostel.com
References: <1809.1072483608@www4.gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1809.1072483608@www4.gmx.net>
User-Agent: Mutt/1.5.4i
Cc: dyfet@ostel.com, bug-commoncpp@gnu.org
Subject: Re: InetAddress classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 23:10:07 -0000


	I think it makes sense to split the numeric IP address
handling and the DNS services. InetAddress objects encapsulate both
things. Apart from internal design -which does not affect the CC++
interface-, are there applications which may benefit from isolated
access to these services?

	If there were support for asynchronous DNS resolving (like in
GNU adns), a separated class/hierarchy Resolver would be very
interesting to add.

On Sat, Dec 27, 2003 at 01:06:48AM +0100, "Marc Boris Dürner" wrote:
> Hi, 
> I am looking at the InetAddress class and the derived ones right now.  
>  
> - shouldnt (or could?) the gethostname stuff be in a class Resolver? That
> way resolving 
> and raw IP handling would be separated. Does this make sense?  
>  



From MAILER-DAEMON Sat Dec 27 18:12:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNbd-0004Mc-9g
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:12:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNba-0004LN-G4
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:12:22 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNb3-00049H-7B
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:12:20 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AaNb2-00048k-IC
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:11:48 -0500
Received: (qmail 27767 invoked by uid 0); 27 Dec 2003 22:10:20 -0000
Received: from 217.185.69.168 by www4.gmx.net with HTTP;
	Sat, 27 Dec 2003 23:10:20 +0100 (MET)
Date: Sat, 27 Dec 2003 23:10:20 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <32131.1072563020@www4.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Cc: fedemp@altern.org
Subject: Re: InetAddress classes
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 23:12:23 -0000

On Saturday 27 December 2003 23:02, you wrote: 
> 	I think it makes sense to split the numeric IP address 
> handling and the DNS services. InetAddress objects encapsulate both 
> things. Apart from internal design -which does not affect the CC++ 
> interface-, are there applications which may benefit from isolated 
> access to these services? 
 
Dont know if there is an imediate win. I just thought it might be cleaner
especially when 
we start implementing Inet6, IPX etc addresses. 
In the c-library a InetAddress is only a 4 bytes address not a url. 
 
> 	If there were support for asynchronous DNS resolving (like in 
> GNU adns), a separated class/hierarchy Resolver would be very 
> interesting to add. 
> 
> On Sat, Dec 27, 2003 at 01:06:48AM +0100, "Marc Boris Dürner" wrote: 
> > Hi, 
> > I am looking at the InetAddress class and the derived ones right now. 
> > 
> > - shouldnt (or could?) the gethostname stuff be in a class Resolver?
That 
> > way resolving 
> > and raw IP handling would be separated. Does this make sense? 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Sat Dec 27 18:23:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaNmS-0000IF-4F
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:23:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaNmI-0000Cr-9T
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:23:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaNjq-0006zS-JB
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:21:26 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaNjp-0006wW-Lp
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:20:53 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AaMll-0002Tn-Iq
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:18:49 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AaMp3-0001di-00
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 23:22:13 +0100
Date: Sat, 27 Dec 2003 23:22:13 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bug-commoncpp@gnu.org
Message-ID: <20031227222213.GE759@paraguas>
Mail-Followup-To: bug-commoncpp@gnu.org
References: <27071.1072543175@www41.gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <27071.1072543175@www41.gmx.net>
User-Agent: Mutt/1.5.4i
Subject: Re: New website for CommonC++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 23:23:32 -0000

On Sat, Dec 27, 2003 at 05:39:35PM +0100, "Marc Boris Dürner" wrote:
> I tried not to use any fancy stuff, but only normal html frames and tables.
> I will ask our 
> html experts how to make it work better in lynx. Also working on the
> remaining links, the 
> logo etc. Just was to tired yesterday to finish. 
>  

	I Like "... the ++ in C++" :)

	Lynx has very limited support for frames (as does Dillo -I
like small browsers :)). A similar look could be achieved with tables,
as it is currently being done in some pages at www.gnu.org, for
instance in the main page.

> >Could we use this for the main web site once web cvs comes back to update
> it? 
> Sure. I made this website so CommonC++ gets a better marketing ;) 
>  
> > 
> > "Marc Boris Dürner" said: 
> > > Hi, 
> > > I have designed a new website for GNU/CommonC++. It can be viewed on: 
> > > 
> > > http://www.arklinux.org/~marcd/ 
> > > 
> > > 
> > > hope you like it, 
> > > Marc 
> 
> -- 
> +++ GMX - die erste Adresse für Mail, Message, More +++
> Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Sat Dec 27 18:41:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaO3S-0003v6-Ru
	for mharc-bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:41:10 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaO3Q-0003ub-Ma
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:41:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaO2u-0003fj-00
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:41:07 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AaO2t-0003fY-Ec
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 18:40:35 -0500
Received: from [217.217.172.75] (helo=paraguas)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AaMyP-0003La-S9
	for bug-commoncpp@gnu.org; Sat, 27 Dec 2003 17:31:54 -0500
Received: from fedemp by paraguas with local (Exim 3.36 #1 (Debian))
	id 1AaN1i-0001fi-00
	for <bug-commoncpp@gnu.org>; Sat, 27 Dec 2003 23:35:18 +0100
Date: Sat, 27 Dec 2003 23:35:18 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bug-commoncpp@gnu.org
Message-ID: <20031227223518.GF759@paraguas>
Mail-Followup-To: bug-commoncpp@gnu.org
References: <27071.1072543175@www41.gmx.net>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW"
Content-Disposition: inline
In-Reply-To: <27071.1072543175@www41.gmx.net>
User-Agent: Mutt/1.5.4i
Subject: Re: New website for CommonC++ (contributors list)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Dec 2003 23:41:09 -0000


--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


	Also regarding the web site, I recall many months ago David
pointed out that the list of contributors was very outdated. I
collected a list of contributors but did not have time to put it on
the web, so the list can be a bit outdated again :). As soon as the
webcvs is working, we should add it.

	The list is attached. Please, contact me if you are not
included or you don't want to be included or you have any other
suggestion.

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=contributors-list

Elizabeth Barham

SHA digest classes.

Daniel E Baumann

piostream, thread fase C++ input/output streams, for the 1.1 release

Marcelo Dalmas 

DateTime class, extensive work on the Date class and miscellaneous
patches.

Ari Johnson

Work on XML parser.

Norbert Koch

Miscellaneous bug fixes and improvements.

Kevin Kraatz

CRC32 digest class.

Mark S. Millard

SimpleTCPStream class.

Christian Prochnow

NetworkDeviceInfo class, error handling for socket classes and
assorted patches.

Alex Pavloff

Unix domain sockets and streams related classes.

Mark Purcell

Maintains the debian package and contributes miscellaneous patches.

Albert Strasheim

Counter class and test framework.

Chad Yates

CppUnit based test framework and miscellaneous patches.

Henner Zeller

StringTokenizer class.

--0F1p//8PRICkK4MW--



From MAILER-DAEMON Sun Dec 28 22:22:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aanz4-00006p-K1
	for mharc-bug-commoncpp@gnu.org; Sun, 28 Dec 2003 22:22:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aanz2-00006j-Iz
	for bug-commoncpp@gnu.org; Sun, 28 Dec 2003 22:22:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AanyW-0008Uv-T0
	for bug-commoncpp@gnu.org; Sun, 28 Dec 2003 22:22:19 -0500
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AanyW-0008Ur-CW
	for bug-commoncpp@gnu.org; Sun, 28 Dec 2003 22:21:48 -0500
Received: (qmail 2923 invoked by uid 0); 29 Dec 2003 02:20:19 -0000
Received: from 217.185.85.118 by www19.gmx.net with HTTP;
	Mon, 29 Dec 2003 03:20:19 +0100 (MET)
Date: Mon, 29 Dec 2003 03:20:19 +0100 (MET)
From: =?ISO-8859-1?Q?=22Marc_Boris_D=FCrner=22?= <mduerner@gmx.net>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #3247832
Message-ID: <22103.1072664419@www19.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: NetAddress class
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Dec 2003 03:22:21 -0000

Hi, 
For the implementation of classes for numeric IP addresses I am trying to
treat an IP 
address as a series of bytes. I have a base class NetAddress that has a
vector<uint8_t> 
as a member and is so usable for inet4, inet6, ipx etc... (and maybe mac
address as well) 
The derived class Inet4Address for instance has a validator that can
validate a string as 
input and put 4 bytes into the vector. It provides compatibility
getter/setter to in_addr. 
 
Is this a good idea? 
 
regards, 
Marc 
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





From MAILER-DAEMON Mon Dec 29 07:56:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aawx8-0002ea-MN
	for mharc-bug-commoncpp@gnu.org; Mon, 29 Dec 2003 07:56:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aawx5-0002eJ-RX
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 07:56:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AawwY-0002YJ-V0
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 07:56:54 -0500
Received: from [194.67.66.158] (helo=stalker.mephi.ru)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AawwY-0002Y8-Fm
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 07:56:22 -0500
Received: from mind.zone (unknown [192.168.13.200])
	by stalker.mephi.ru (Postfix) with ESMTP
	id 50ACB1FAE; Mon, 29 Dec 2003 18:37:21 +0300 (MSK)
Date: Mon, 29 Dec 2003 14:52:44 +0300
From: Andrey Kulikov <ilfis@dezcom.mephi.ru>
X-Mailer: The Bat! (v2.00)
X-Priority: 3 (Normal)
Message-ID: <53617587843.20031229145244@dezcom.mephi.ru>
To: David Sugar <dyfet@ostel.com>
In-Reply-To: <200312160735.35179.dyfet@ostel.com>
References: <200312160735.35179.dyfet@ostel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: CommonC++ Mailinglist <bug-commoncpp@gnu.org>
Subject: Compile error
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Dec 2003 12:56:56 -0000

Now 2003/12/29
I'm get sources from cvs just now.

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cplusplus co
commoncpp2

Enviroment: VisualStudio 2003, Windows XP

1. Possible typo in thread.cpp. Line 764 must looks like
        if(!priv->_active)
                return Thread::start(_start);
Or?
                
-- 
Best regards,
 Andrey                            mailto:ilfis@dezcom.mephi.ru




From MAILER-DAEMON Mon Dec 29 08:01:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Aax10-0004Pj-39
	for mharc-bug-commoncpp@gnu.org; Mon, 29 Dec 2003 08:00:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Aax0l-0004LB-JA
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 08:00:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Aax0A-00049S-7x
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 08:00:37 -0500
Received: from [194.67.66.158] (helo=stalker.mephi.ru)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aax09-00049H-BG
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 08:00:05 -0500
Received: from mind.zone (unknown [192.168.13.200])
	by stalker.mephi.ru (Postfix) with ESMTP
	id 1D3F31FAE; Mon, 29 Dec 2003 18:41:07 +0300 (MSK)
Date: Mon, 29 Dec 2003 14:56:29 +0300
From: Andrey Kulikov <ilfis@dezcom.mephi.ru>
X-Mailer: The Bat! (v2.00)
X-Priority: 3 (Normal)
Message-ID: <143617813578.20031229145629@dezcom.mephi.ru>
To: David Sugar <dyfet@ostel.com>
In-Reply-To: <200312200645.07322.dyfet@ostel.com>
References: <CAEDLLCOCGBPMAAFIFOCCENICAAA.julie.russell@throughput.com.au>
	<200312200645.07322.dyfet@ostel.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="----------71F8649284FFB"
Cc: bug-commoncpp@gnu.org
Subject: URLStream patch: add proxy-authorization
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Andrey Kulikov <ilfis@dezcom.mephi.ru>
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Dec 2003 13:00:54 -0000

------------71F8649284FFB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

In attachment sent a diff-files for class URLStream.
Now URLStream support only a server authentication, and it's not
possible to work with proxies, which require authentication.

This patch make possible to use Basic proxy-authentication.
Add two methods for specifying user name and password.

P.S. I'm not a unix-guru-developer, and may be paches shuld be
formed in some other format, or it's ok?

-- 
Best regards,
 Andrey                            mailto:ilfis@dezcom.mephi.ru
------------71F8649284FFB
Content-Type: application/octet-stream; name="url.cpp.diff"
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="url.cpp.diff"

OTBhOTEKPiAJcHJveHlBdXRoID0gYXV0aEFub255bW91czsKOTFhOTMKPiAJcHJveHlVc2Vy
ID0gcHJveHlQYXNzd2QgPSBOVUxMOwo1MzJhNTM1LDU0Ngo+IAlzd2l0Y2gocHJveHlBdXRo
KQo+IAl7Cj4gCWNhc2UgYXV0aEJhc2ljOgo+IAkJc3RyIDw8ICJQcm94eS1BdXRob3JpemF0
aW9uOiBCYXNpYyAiOwo+IAkJc25wcmludGYocmVsb2MsIDY0LCAiJXM6JXMiLCBwcm94eVVz
ZXIsIHByb3h5UGFzc3dkKTsKPiAJCWI2NEVuY29kZShyZWxvYywgcmVsb2MgKyA2NCwgMTI4
KTsKPiAJCXN0ciA8PCByZWxvYyArIDY0IDw8ICJcclxuIjsKPiAJCXN0ciA8PCAiUHJveHkt
Q29ubmVjdGlvbjogY2xvc2UiIDw8ICJcclxuIjsKPiAJY2FzZSBhdXRoQW5vbnltb3VzOgo+
IAkJYnJlYWs7Cj4gCX0KPiAKNzEwYTcyNSw3MzYKPiAJfQo+IH0KPiAKPiB2b2lkIFVSTFN0
cmVhbTo6c2V0UHJveHlBdXRoZW50aWNhdGlvbihBdXRoZW50aWNhdGlvbiBhLCBjb25zdCBj
aGFyICp2YWx1ZSkKPiB7Cj4gCXByb3h5QXV0aCA9IGE7Cj4gCWlmIChwcm94eUF1dGggIT0g
YXV0aEFub255bW91cykKPiAJewo+IAkJaWYoIXByb3h5VXNlcikKPiAJCQlwcm94eVVzZXIg
PSAiYW5vbnltb3VzIjsKPiAJCWlmKCFwcm94eVBhc3N3ZCkKPiAJCQlwcm94eVBhc3N3ZCA9
ICIiOwo=

------------71F8649284FFB
Content-Type: application/octet-stream; name="url.h.diff"
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="url.h.diff"

OTZhOTcKPiAKMTMwYTEzMgo+IAljb25zdCBjaGFyICpwcm94eVVzZXIsICpwcm94eVBhc3N3
ZDsKMTM3YTE0MAo+IAlBdXRoZW50aWNhdGlvbiBwcm94eUF1dGg7CjI3OWEyODMsMzA3Cj4g
Cj4gCj4gCS8qKgo+IAkqIFNldCBwcm94eSB1c2VyIGlkIGZvciB0aGUgdXJsLgo+IAkqCj4g
CSogQHBhcmFtIHN0ciB1c2VyIGlkLgo+IAkqLwo+IAlpbmxpbmUgdm9pZCBzZXRQcm94eVVz
ZXIoY29uc3QgY2hhciAqc3RyKQo+IAl7cHJveHlVc2VyID0gc3RyO307Cj4gCj4gCS8qKgo+
IAkqIFNldCBwcm94eSBwYXNzd29yZCBmb3IgdGhlIHVybC4KPiAJKgo+IAkqIEBwYXJhbSBz
dHIgcGFzc3dvcmQuCj4gCSovCj4gCWlubGluZSB2b2lkIHNldFByb3h5UGFzc3dvcmQoY29u
c3QgY2hhciAqc3RyKQo+IAl7cHJveHlQYXNzd2QgPSBzdHI7fTsKPiAKPiAJLyoqCj4gCSog
U2V0IHByb3h5IGF1dGhlbnRpY2F0aW9uIHR5cGUgZm9yIHRoZSB1cmwuCj4gCSoKPiAJKiBA
cGFyYW0gYSBhdXRoZW50aWNhdGlvbi4KPiAJKiBAcGFyYW0gc3RyIHN0cmluZy4KPiAJKi8K
PiAJdm9pZCBzZXRQcm94eUF1dGhlbnRpY2F0aW9uKEF1dGhlbnRpY2F0aW9uIGEsIGNvbnN0
IGNoYXIgKnN0ciA9IE5VTEwpOwo=

------------71F8649284FFB--




From MAILER-DAEMON Mon Dec 29 13:49:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1Ab2Ry-00079P-MA
	for mharc-bug-commoncpp@gnu.org; Mon, 29 Dec 2003 13:49:10 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1Ab2Rw-00078G-DJ
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 13:49:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1Ab2RQ-0006vZ-PT
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 13:49:07 -0500
Received: from [213.179.251.246] (helo=jdevelop.zp.ua)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1Ab2RP-0006vU-Tf
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 13:48:36 -0500
Received: from jdevelop.com (localhost [127.0.0.1])
	by jdevelop.zp.ua (8.12.10/8.12.6) with ESMTP id hBTHl8BJ000734
	for <bug-commoncpp@gnu.org>; Mon, 29 Dec 2003 19:47:08 +0200 (EET)
	(envelope-from eugenydzh@jdevelop.com)
Message-ID: <3FF0689C.1060104@jdevelop.com>
Date: Mon, 29 Dec 2003 19:47:08 +0200
From: Eugeny N Dzhurinsky <eugenydzh@jdevelop.com>
Organization: JDevelop.com
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US;
	rv:1.6b) Gecko/20031209 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: error with mutex?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Dec 2003 18:49:09 -0000

=======================test.cpp===========================
#include <cc++/thread.h>

int main()
{
         Mutex m;
}
==========================================================

when building, i'm getting:

g++ test.cpp -I/usr/local/include/cc++2
test.cpp: In function `int main()':
test.cpp:5: syntax error before `;

Seems that there are no Mutex class defined?

OS details: FreeBSD 4.9
CommonCPP built from ports, version: commoncpp2-1.0.13,1

Any suggestions?



From MAILER-DAEMON Mon Dec 29 22:48:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AbArf-0006K1-62
	for mharc-bug-commoncpp@gnu.org; Mon, 29 Dec 2003 22:48:15 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AbArc-0006Jb-EK
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 22:48:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AbAr6-00067P-Kt
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 22:48:11 -0500
Received: from [141.153.181.72] (helo=localhost.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AbAr6-000670-7I
	for bug-commoncpp@gnu.org; Mon, 29 Dec 2003 22:47:40 -0500
Received: from 192.168.1.103 ([192.168.1.103])
	by localhost.bayonne.dyndns.org (8.12.10/8.12.8) with ESMTP id
	hBU4kRWT009756; Mon, 29 Dec 2003 23:46:27 -0500
From: David Sugar <dyfet@ostel.com>
To: Eugeny N Dzhurinsky <eugenydzh@jdevelop.com>
Date: Mon, 29 Dec 2003 22:04:58 -0500
User-Agent: KMail/1.5.3
References: <3FF0689C.1060104@jdevelop.com>
In-Reply-To: <3FF0689C.1060104@jdevelop.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200312292204.58976.dyfet@ostel.com>
Cc: bug-commoncpp@gnu.org
Subject: Re: error with mutex?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
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>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Dec 2003 03:48:13 -0000

Mutex exists in the ost "namespace".  If you do not use namespace directives, 
you can just use ost::Mutex, just like you can use std::xxx for things in the 
std namespace...

On Monday 29 December 2003 12:47 pm, Eugeny N Dzhurinsky wrote:
> =======================test.cpp===========================
> #include <cc++/thread.h>
>
> int main()
> {
>          Mutex m;
> }
> ==========================================================
>
> when building, i'm getting:
>
> g++ test.cpp -I/usr/local/include/cc++2
> test.cpp: In function `int main()':
> test.cpp:5: syntax error before `;
>
> Seems that there are no Mutex class defined?
>
> OS details: FreeBSD 4.9
> CommonCPP built from ports, version: commoncpp2-1.0.13,1
>
> Any suggestions?
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




