From dyfet@ostel.com Fri Aug 02 10:36:31 2002
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17adXb-0008UY-00
	for <bug-commoncpp@gnu.org>; Fri, 02 Aug 2002 10:36:31 -0400
Received: by home.sys (Postfix, from userid 501)
	id 29EB99036B; Fri,  2 Aug 2002 10:48:21 -0400 (EDT)
Content-Type: text/plain;
  charset="us-ascii"
From: David Sugar <dyfet@ostel.com>
To: simon.morlat@linphone.org
Subject: re: commonc++ portability on hpux
Date: Fri, 2 Aug 2002 10:48:19 -0400
User-Agent: KMail/1.4.1
Cc: cplusplus-devel@lists.sourceforge.net, bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208021048.19556.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I have not tried using a hpux target myself, but I suspect those that hav=
e=20
tried to do so have done it with older releases as most of the original=20
patches for hpux support are now over a year old or more.

I suspect if you pass "CC=3DaCC CXX=3DaCC ./configure" you may get more r=
easonable=20
results in your configure script for testing of compiler features.  The=20
configure script attempts to test compile something with a namespace use =
to=20
see if namespace support exists and may be testing with a default c++=20
compiler that doesn't support namespaces.

If you have any patches to send, I would be happy to incorporate them.

David

--- Simon wrote:

Hi,

I recently tried to compile commoncpp2 on hpux-11.0 but I encoutered
some problems. A header file named <netinet/inet.h> is called from
config.h, but unfortunately this file does not exist on hpux11.0.
My first question is; on what version of hpux commoncpp2 was supposed to
compile for ?
If this problem was not already reported and being solved, I can try to
fix it.
My second question is; was it supposed to work with the HP proprietary
C++ compiler (aCC). I was using the lastest version of aCC.
Other strange thing: when configure runs, it says that aCC does not
support namespace. I 'm very surprised of that since aCC is supposed to
understand namespace (according to its documentation).

In the perspective that I would try to solve all those problems myself,
do you have any special recommendations (do you prefer patches, do you
want me to work using the cvs (subversion?) ).
Thank you.

Simon


From dyfet@ostel.com Fri Aug 02 12:20:35 2002
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17afAI-0000VP-00
	for <bug-commoncpp@gnu.org>; Fri, 02 Aug 2002 12:20:35 -0400
Received: by home.sys (Postfix, from userid 501)
	id C6A489036B; Fri,  2 Aug 2002 12:32:26 -0400 (EDT)
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Simon Morlat <simon.morlat@linphone.org>
Subject: Re: commonc++ portability on hpux
Date: Fri, 2 Aug 2002 12:32:25 -0400
User-Agent: KMail/1.4.1
Cc: cplusplus-devel@lists.sourceforge.net, bug-commoncpp@gnu.org
References: <200208021048.19556.dyfet@ostel.com> <1028302780.28318.114.camel@pople>
In-Reply-To: <1028302780.28318.114.camel@pople>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208021232.25726.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

That sounds pretty gruesome.  But it will be good once we have a solid po=
rt,=20
at least it only needs to be done once :).

On Friday 02 August 2002 11:39 am, Simon Morlat wrote:
> Hi David,
>
> After a full day of hard work, I succeeded in compiling commoncpp on
> hpux... but in an awfull manner (i wrote directly in config.h).
> Now to send you a patch, I have to make more elegant.
> HPUX C header files are really a nightmare and I had fight hard...
> The aCC compiler requires a -AA option to work with the full range of
> C++ functionalities... else it does support exceptions, namespaces...
> I will send you a properly modified acconfig.h next week.
> Thank you
> Simon
>
> Le ven 02/08/2002 =E0 16:48, David Sugar a =E9crit :
> > I have not tried using a hpux target myself, but I suspect those that
> > have tried to do so have done it with older releases as most of the
> > original patches for hpux support are now over a year old or more.
> >
> > I suspect if you pass "CC=3DaCC CXX=3DaCC ./configure" you may get mo=
re
> > reasonable results in your configure script for testing of compiler
> > features.  The configure script attempts to test compile something wi=
th a
> > namespace use to see if namespace support exists and may be testing w=
ith
> > a default c++ compiler that doesn't support namespaces.
> >
> > If you have any patches to send, I would be happy to incorporate them=
=2E
> >
> > David
> >
> > --- Simon wrote:
> >
> > Hi,
> >
> > I recently tried to compile commoncpp2 on hpux-11.0 but I encoutered
> > some problems. A header file named <netinet/inet.h> is called from
> > config.h, but unfortunately this file does not exist on hpux11.0.
> > My first question is; on what version of hpux commoncpp2 was supposed=
 to
> > compile for ?
> > If this problem was not already reported and being solved, I can try =
to
> > fix it.
> > My second question is; was it supposed to work with the HP proprietar=
y
> > C++ compiler (aCC). I was using the lastest version of aCC.
> > Other strange thing: when configure runs, it says that aCC does not
> > support namespace. I 'm very surprised of that since aCC is supposed =
to
> > understand namespace (according to its documentation).
> >
> > In the perspective that I would try to solve all those problems mysel=
f,
> > do you have any special recommendations (do you prefer patches, do yo=
u
> > want me to work using the cvs (subversion?) ).
> > Thank you.
> >
> > Simon


From dyfet@ostel.com Sat Aug 03 09:56:04 2002
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17azNz-0000zd-00
	for <bug-commoncpp@gnu.org>; Sat, 03 Aug 2002 09:56:03 -0400
Received: from home.sys (home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g73E80L12129;
	Sat, 3 Aug 2002 10:08:00 -0400
Content-Type: text/plain;
  charset="us-ascii"
From: David Sugar <dyfet@ostel.com>
To: emery@cs.utexas.edu
Subject: re: Hoard info in docs
Date: Sat, 3 Aug 2002 10:07:59 -0400
User-Agent: KMail/1.4.1
Cc: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208031007.59764.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Actually what we have done is created a simple autoconf macro,=20
OST_CCXX2_HOARD, that one can use in the configure.in to make it easy to =
use=20
hoard in packages that use GNU Common C++ if it's installed on your syste=
m. =20
It would be nice if the autoconf package included a hoard macro.

For any (threaded) application that is likely to run on a SMP platform it=
=20
makes a great deal of sense to use hoard, and I am not aware of it having=
=20
very significent performance penalties when used on uniprocessor machines=
=2E =20
In fact, at one time we had also distributed GNU Bayonne with the hoard b=
eing=20
listed as a "required" library and we still distribute it setup to use th=
e=20
hoard if it is found on the build machine.  In that I love to do threaded=
=20
applications, I think it is a shame none of the GNU Linux vendors have ch=
osen=20
to include hoard as a standard part of their distribution.

I will add something about hoard to the Common C++ readme and such.

Emery writes:

Hi,

I've noticed that the Common C++ package makes it easy to use my Hoard
memory manager. Thanks! I did want to suggest, though, that you include
a link to the webpage (www.hoard.org <http://www.hoard.org/> ) to make
it easier for folks to find Hoard. Also, if you have any issues with
Hoard, please don't hesitate to let me know.



From wall0159@tpg.com.au Mon Aug 05 09:33:20 2002
Received: from mail.tpgi.com.au ([203.12.160.59] helo=mail3.tpgi.com.au)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17bhz5-0001gT-00
	for <bug-commoncpp@gnu.org>; Mon, 05 Aug 2002 09:33:19 -0400
Received: from adl2-56k-056.tpgi.com.au (adl2-56k-056.tpgi.com.au [203.29.136.56])
	by mail3.tpgi.com.au (8.11.6/8.11.6) with ESMTP id g75DW6S22488
	for <bug-commoncpp@gnu.org>; Mon, 5 Aug 2002 23:32:06 +1000
Subject: Make problems (atomic.h not linking in?)
From: Angus Wallace <wall0159@tpg.com.au>
To: bug-commoncpp@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) 
Date: 05 Aug 2002 23:00:15 +0930
Message-Id: <1028554217.1939.20.camel@localhost.localdomain>
Mime-Version: 1.0
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Howdy all,

I'm trying to compile/install the CommonC++. The configure script
appears to proceed without problems but make fails. It appears that the
functions contained in atomic.h aren't available to the mutex.cpp file
to call even though atomic.h is present on my system.

Having said that, I seem to have 2 versions of atomic.h, one with the
functions, and one without. I thought the compilation might be
referencing the wrong one so I renamed it. that didn't work. Then I
copied the atomic.h file into the src directory of CommonC++, and
inserted the line:

#include 'home/wall0159/src/atomic.h'

but this was to no avail.

Here is the output from 'make'.

[wall0159@localhost CommonC++-1.9.7]$ make
Making all in src
make[1]: Entering directory `/home/wall0159/progs/CommonC++-1.9.7/src'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.
-I../src -I/usr/include/libxml2    -I../src  -g -O2 -D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE
-c mutex.cpp
rm -f .libs/mutex.lo
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I/usr/include/libxml2 -I../src
-g -O2
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -Wp,-MD,.deps/mutex.pp -c
mutex.cpp  -fPIC -DPIC -o .libs/mutex.lo
mutex.cpp: In method `int ost::AtomicCounter::operator++ ()':
mutex.cpp:341: `atomic_inc' undeclared (first use this function)
mutex.cpp:341: (Each undeclared identifier is reported only once for
each function it appears in.)
mutex.cpp: In method `int ost::AtomicCounter::operator-- ()':
mutex.cpp:347: `atomic_dec_and_test' undeclared (first use this
function)
mutex.cpp: In method `int ost::AtomicCounter::operator+= (int)':
mutex.cpp:358: `atomic_add' undeclared (first use this function)
mutex.cpp: In method `int ost::AtomicCounter::operator-= (int)':
mutex.cpp:364: `atomic_sub' undeclared (first use this function)
make[1]: *** [mutex.lo] Error 1
make[1]: Leaving directory `/home/wall0159/progs/CommonC++-1.9.7/src'
make: *** [all-recursive] Error 1

Thanks in advance for any help.

-Angus Wallace






From fedemp@suidzer0.org Mon Aug 05 10:28:48 2002
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=Hardcore.suidzer0.org)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17biqm-0006eG-00
	for <bug-commoncpp@gnu.org>; Mon, 05 Aug 2002 10:28:48 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by Hardcore.suidzer0.org (8.11.4/jtpda-5.3.3) with SMTP id g75EPA500171
          ; Mon, 5 Aug 2002 16:25:12 +0200
Received: from 62.37.137.163
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 5 Aug 2002 16:25:13 +0200 (CEST)
Message-ID: <1139.62.37.137.163.1028557513.squirrel@webmail.suidzer0.org>
Date: Mon, 5 Aug 2002 16:25:13 +0200 (CEST)
Subject: Re: Make problems (atomic.h not linking in?)
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <wall0159@tpg.com.au>
In-Reply-To: <1028554217.1939.20.camel@localhost.localdomain>
References: <1028554217.1939.20.camel@localhost.localdomain>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>
> Howdy all,
>

   Hi,

> I'm trying to compile/install the CommonC++. The configure script
> appears to proceed without problems but make fails. It appears that the
> functions contained in atomic.h aren't available to the mutex.cpp file
> to call even though atomic.h is present on my system.
>
> Having said that, I seem to have 2 versions of atomic.h, one with the
> functions, and one without. I thought the compilation might be
> referencing the wrong one so I renamed it. that didn't work. Then I
> copied the atomic.h file into the src directory of CommonC++, and
> inserted the line:
>
> #include 'home/wall0159/src/atomic.h'
>
> but this was to no avail.

   What kind of system are you compiling in? Which are those two
atomic.h? Maybe sys/atomic.h and asm/atomic.h?

   After you rename the "wrong" atomic.h you should run ./configure
again, so that the "right" atomic.h can be detected.

   This problem should be handled by the CC++ autoconf macros however.






From fedemp@suidzer0.org Tue Aug 06 10:32:49 2002
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=Hardcore.suidzer0.org)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17c5OC-0000xq-00
	for <bug-commoncpp@gnu.org>; Tue, 06 Aug 2002 10:32:49 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by Hardcore.suidzer0.org (8.11.4/jtpda-5.3.3) with SMTP id g76ET4524641
          ; Tue, 6 Aug 2002 16:29:06 +0200
Received: from 62.36.189.150
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 6 Aug 2002 16:29:07 +0200 (CEST)
Message-ID: <1043.62.36.189.150.1028644147.squirrel@webmail.suidzer0.org>
Date: Tue, 6 Aug 2002 16:29:07 +0200 (CEST)
Subject: Re: Make problems (atomic.h not linking in?)
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <wall0159@tpg.com.au>
In-Reply-To: <1028628989.1270.2.camel@localhost.localdomain>
References: <1028554217.1939.20.camel@localhost.localdomain>
        <1139.62.37.137.163.1028557513.squirrel@webmail.suidzer0.org>
        <1028628989.1270.2.camel@localhost.localdomain>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>> > but this was to no avail.
>>
>>    What kind of system are you compiling in? Which are those two
>> atomic.h? Maybe sys/atomic.h and asm/atomic.h?
>>
>>    After you rename the "wrong" atomic.h you should run ./configure
>> again, so that the "right" atomic.h can be detected.
>>
>>    This problem should be handled by the CC++ autoconf macros however.
>>
>>
> Yup, this was the problem, and rerunning ./configure after renaming
> atomic.h did the trick. Doing that just didn't occur to me.
>
> Thanks a lot!
>
> -Angus

   Umm, however, renaming a header on your system does not seem to
be a good solution -unless you have a very weird system. Please,
tell us what is your configuration and which are your atomic.h
headers so that the autoconf stuff in Common C++ can be tweaked in
order to handle systems like yours. That way you will not have to
do any trick for future releases.

   Bye.





From wall0159@tpg.com.au Thu Aug 08 06:09:46 2002
Received: from mail.tpgi.com.au ([203.12.160.59] helo=mail3.tpgi.com.au)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17ckEk-0005Zy-00
	for <bug-commoncpp@gnu.org>; Thu, 08 Aug 2002 06:09:46 -0400
Received: from adl2-56k-201.tpgi.com.au (adl2-56k-201.tpgi.com.au [203.29.136.201])
	by mail3.tpgi.com.au (8.11.6/8.11.6) with ESMTP id g78A8KU11467
	for <bug-commoncpp@gnu.org>; Thu, 8 Aug 2002 20:08:20 +1000
Subject: Re: System info
From: Angus Wallace <wall0159@tpg.com.au>
To: bug-commoncpp@gnu.org
In-Reply-To: <20020807104900.17288.16677.Mailman@fencepost.gnu.org>
References: <20020807104900.17288.16677.Mailman@fencepost.gnu.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) 
Date: 08 Aug 2002 19:36:06 +0930
Message-Id: <1028801167.1356.12.camel@localhost.localdomain>
Mime-Version: 1.0
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Wed, 2002-08-07 at 20:19, bug-commoncpp-request@gnu.org wrote:
> Send Bug-commoncpp mailing list submissions to
> 	bug-commoncpp@gnu.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> or, via email, send a message with subject or body 'help' to
> 	bug-commoncpp-request@gnu.org
> 
> You can reach the person managing the list at
> 	bug-commoncpp-admin@gnu.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Bug-commoncpp digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Make problems (atomic.h not linking in?) (Federico Montesino Pouzols)
> 
> --__--__--
> 
> Message: 1
> Date: Tue, 6 Aug 2002 16:29:07 +0200 (CEST)
> Subject: Re: Make problems (atomic.h not linking in?)
> From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
> To: <wall0159@tpg.com.au>
> Cc: <bug-commoncpp@gnu.org>
> Reply-To: fedemp@suidzer0.org
> 
> 
> >> > but this was to no avail.
> >>
> >>    What kind of system are you compiling in? Which are those two
> >> atomic.h? Maybe sys/atomic.h and asm/atomic.h?
> >>
> >>    After you rename the "wrong" atomic.h you should run ./configure
> >> again, so that the "right" atomic.h can be detected.
> >>
> >>    This problem should be handled by the CC++ autoconf macros however.
> >>
> >>
> > Yup, this was the problem, and rerunning ./configure after renaming
> > atomic.h did the trick. Doing that just didn't occur to me.
> >
> > Thanks a lot!
> >
> > -Angus
> 
>    Umm, however, renaming a header on your system does not seem to
> be a good solution -unless you have a very weird system. Please,
> tell us what is your configuration and which are your atomic.h
> headers so that the autoconf stuff in Common C++ can be tweaked in
> order to handle systems like yours. That way you will not have to
> do any trick for future releases.
> 
>    Bye.
> 
Oh yeah, I actually meant to describe my system in the last email, but
forgot - opps!

I'm running Redhat 7.3, with a custom kernel (using the default
installed kernel headers - i.e. no upgrade). I would suspect that the
system is pretty 'standard'. I've installed dri drivers for my radeon ve
video card (which I  haven't got working, but thats another story), and
a couple of programs, but nothing too fancy. I have installed wine, and
winex. 

The 'good' atomic.h was in 

/usr/src/linux-2.4.18-3/include/asm-i386/atomic.h
and /usr/i386-glibc21-linux/include/asm/atomic.h

although the two files were different,
and the 'dud' was in 

/usr/include/asm/atomic.h


Does this help?

Cheers,

-Angus



From fedemp@suidzer0.org Thu Aug 08 17:26:39 2002
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17cunm-0001o8-00
	for <bug-commoncpp@gnu.org>; Thu, 08 Aug 2002 17:26:38 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g78LObGS007460
          for <bug-commoncpp@gnu.org>; Thu, 8 Aug 2002 23:24:37 +0200
Received: from 62.37.137.207
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Thu, 8 Aug 2002 23:24:37 +0200 (CEST)
Message-ID: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org>
Date: Thu, 8 Aug 2002 23:24:37 +0200 (CEST)
Subject: Patches to compile CC++ 2 for Win32 with GCC using Mingw32
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_20020808232437_37466"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

------=_20020808232437_37466
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by hot.suidzer0.org id g78LObGS007460

	Hi all,

	I have been trying to compile cc++ 2 with GNU GCC as cross
compiler for Win32 (using Mingw on Debian). At first, I used the
Makefile.gcc in the win32 directory. I have found three errors while
compiling...


Error 1)
********

socket.cpp:

i586-mingw32msvc-c++ -c -I. -I../include -DHAVE_LIBXML
-I/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
-include ../win32/cc++/config.h -g -O2 -mthreads -o
../win32/../win32/socket.o ../src/socket.cpp
../src/socket.cpp: In function `SOCKET ost::dupSocket(unsigned int,
ost::Socket::State)':
../src/socket.cpp:75: `ost::dupSocket(unsigned int, ost::Socket::State)'
was declared `extern' and later `static'
../include/cc++/socket.h:573: previous declaration of
`ost::dupSocket(unsigned int, ost::Socket::State)'
make: *** [../win32/socket.o] Error 1


	A patch for this is attached (patch-ccpp2-mingw-socket).



Error 2)
********

url.cpp:

i586-mingw32msvc-c++ -c -I. -I../include -DHAVE_LIBXML
-I/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
-include ../win32/cc++/config.h -g -O2 -mthreads -o
../win32/../win32/url.o ../src/url.cpp
In file included from ../src/url.cpp:43:
../include/cc++/url.h: In method `int ost::URLStream::aRead(char *,
unsigned int, long unsigned int)':
../include/cc++/url.h:147: implicit declaration of function `int
ost::read(...)'../include/cc++/url.h: In method `int
ost::URLStream::aWrite(char *, unsigned int, long unsigned int)':
../include/cc++/url.h:150: implicit declaration of function `int
ost::write(...)'
make: *** [../win32/url.o] Error 1


	A patch for this is attached (patch-ccpp2-mingw-url).


Error 3)
********

then, linking:

port.o: En la funci=F3n `ost::SocketService::run(void)':
/home/fedemp/gnu/pristine-subversions/commoncpp2/win32/../src/port.cpp:70=
8:
referencia a `WSAEventSelect@12' sin definir
/home/fedemp/gnu/pristine-subversions/commoncpp2/win32/../src/port.cpp:76=
2:
referencia a `WSAEnumNetworkEvents@12' sin definir
i586-mingw32msvc-dllwrap: i586-mingw32msvc-c++ termin=F3 con estado 1
make: *** [ccgnu2.dll] Error 1


	Which can be solved linking ws2_32 (an updated Makefile.gcc is
attached).

	With this, a static library and a dll for Win32 can be build
with a GNU environment.


	There is a second way to get it. There is a free awk script
(dsw2mak.awk) at
http://mefriss1.swan.ac.uk/~jfonseca/gnu-win32/software/msds/index.html,
by Jos=E9 Fonseca, that given a MSVC .dsp produces a makefile for
mingw32. This has the advantage that the mingw makefile can be
automatically updated from the new .dsps.

	I have got a CCXX.mak from the current CCXX.dsp and tweaked it
a bit so that CCXX.dll can be built (only uppercase/lowercase in the
first letter of some names of files). It is attached.


	There is also a third way to get it... building the library
with the GNU GCC and autotools environment using the cross compiler
based on Mingw32 (a typical configure and make). This method fails
with cc++ 2. I have tested the same cross compiler environment with
other libraries and apps and it works smoothly. However, with cc++ the
top level makefile does not recurse into the src directory and the
Makefile in src seems not to work. Grepping into the autoconf macros
it seems that some work has been done to detect Mingw32 environments,
and in fact it is correctly detected by configure.

	It does not work however. It seems that some autoconf macro
does not work well in this environment. Has anyone tested a
configuration like this or has any clue?



------=_20020808232437_37466
Content-Type: application/gzip; name="patch-ccpp2-mingw-socket.gz"
Content-Disposition: attachment; filename="patch-ccpp2-mingw-socket.gz"
Content-Transfer-Encoding: base64

H4sICNixUj0AA3BhdGNoLWNjcHAyLW1pbmd3LXNvY2tldAClT9FqwjAUfTZfcYYglhpb24kuo1AR
GW7owAo+FklTCbNJaVoZ7OcXq8PN192H3JzDPfecu1SZ+GQwFfeM5h+iHvKyJNH/i2zmCXJ5FAwe
P5lK69rjuii0sga3X+D9tR6cSCXqSoqTVAdUthmpFUbDKclknoM2oJVF+JWWUnp3QOcRr80Rge8H
GI3ZOGT+E6hvq3Pe5LruvWCKWXO4CqbMH7EwvAhIHINO/MEEbvvGMUFjzuHUvhCm3HMBU2fPBF2h
bEQCQrsyz0SO3XIdBsS1CBZKJbJ+Szno9fDwQ6Xparl+2YVBmjrErtrXkiN5n78ttsiaMmkz9q+E
0QOhmgIXlrHEjotWJKz4i6BjzfotRhTdxrabxWzlkG/J07R27gEAAA==
------=_20020808232437_37466
Content-Type: application/gzip; name="patch-ccpp2-mingw-url.gz"
Content-Disposition: attachment; filename="patch-ccpp2-mingw-url.gz"
Content-Transfer-Encoding: base64

H4sICD/eUj0AA3BhdGNoLWNjcHAyLW1pbmd3LXVybAClkm9r2zAQxl9bsO/w0L5pYjv+05RmDoOE
rJSOtivxRvPOePK5EdhWkGR3rOy7T05a1nWhdOxeSCdxv7t7TrpoCvqeQDS8agsKOHfdoFXVaM0+
/L+x5SJFKSpKEPBOKylNwGVdy4ZvNr+9OPi7vNcxRUYJ6kRzB2U3LWSDaHTKClGW8Fv4yp6wa9b3
/T0anPgYn9oKcRjGiONkPEnGIfzQmtNncl13HzXBvL17hKIkCpOT9zuIzWbwTyLvFO52nc0YGA5F
WVDpLBarVXY9vzpLb+aLs5ShyWvSm5wTpDZ4YP4hNbb3d8zdOT3Lq1xrbNHF5TxNs7PVzeflF3xd
XqZGUV5PbVRfNRqPvSiEu90n28qOaAxa+36qrOT9USdFMejD4XRCmTav0AfkS8qLI77OFYbf2rIk
5UGLH5QZVNR4MKIm2Rp7fPQGzHecBzv8VjVIEtXjWnp4gi01mP6cWhWitMVLZNnVxfX57XGcZczF
C3tTIqo0vY7y7iXqIRxMscOfpvmn8FslDP2b8r2a8Hwc99ukr8l4Hq1ta29qPBgO7YohPpISHRWo
yaxlASPt3+dkr5A3BTa50oS1MRscrO08SemDEfsFf6LX+8QDAAA=
------=_20020808232437_37466
Content-Type: application/gzip; name="updated-Makefile.gcc.gz"
Content-Disposition: attachment; filename="updated-Makefile.gcc.gz"
Content-Transfer-Encoding: base64

H4sICPu4Uj0AA3VwZGF0ZWQtTWFrZWZpbGUuZ2NjAKVUUU/jMAx+Xn6FH3hYVdJBJwQ3CYndNmCn
waZx3PGANJU0bSPapErTMf79OU07xtNxuk5rHDufY3+2O5cx343gLnrlich5kDJGLv//IevJA1iH
IxiwbaWVMgOmikJJVpYfUjh4E3IYDg6vP94SzY0WfCtkChqXSigJp0HzI7FIEqA1UN1qPsdOKf2k
6IUhXPMXCE9OQjg9GZ2Go/Ac6Ak+vc6l7/ufMRcwrtMWcjEano7OvjkIuboCGp4fh2fgu+XqigCB
yWp1vRjfPMAl0Hlg/8FASJbXMYej/u3418wDOrXrZrK8v57fbG5xv7m5f9w8LB/Xkxm6eHrau+ig
6MXxw5jvI2syEWmQAU2BLkOghck0j+KK0MV0j10c9UuNqey8QZznQPPKxIhG4a1S7HWIuHxX5CHx
vwgKNw1GvHBt3lF45VryfBgSWExnT7NJi1+uxj9vMcucsVTWIabd+vcsQdPFYnM/vpvhYWcP8B6n
Xsy/oxb9t4bIqaez64PDPCF0tV420RpeGZd5wHccMJmEG5Y1m1p/bIjfITKe56qxW2xjw5iiPB/1
jvpdaB6G3ACagB9up+vmMndRBpY8blDgO8ZLgy2JMitiVRpZoRiL1Pq29lJpKzTtlMEzob1Uq7q0
pwpRMVxkXSCdVlHiIhpclStb3MpolmkUMBV8Y3ZBRvx/8XAAhIprEVkPQGib0b6NjvpRHLuy206r
NBsco7LJ3POI/5fzbZO63jwEInvL7z8sNMEplnEVqI7GTnjl7yhXvIjKTGmOMt9yaXAtasN3uL7U
ScI1Cs8Eei33CoTEEKz2owgKCWgONqwraIlSjg3lquDcdEwhXKZCWrXlSjVc4dW8KKO08YXxxZGJ
rFdROjjtdZQrQJtVtiVHZHyG730zKKzX1w93NVLtnPxej1eb/WRS1040smNJVW3K2lAcB3CNi1Pi
2dy6h1JRlDhLrRlnC0eSxlpsuaYyKuznCL80HvkDs3a21vgFAAA=
------=_20020808232437_37466
Content-Type: application/gzip; name="CCXX.mak.gz"
Content-Disposition: attachment; filename="CCXX.mak.gz"
Content-Transfer-Encoding: base64

H4sICPW9Uj0AA0NDWFgubWFrAO1Z/2/iNhT/uf4rrK4nHeJCN6pNUzWmQaCUCUoV2pWTJqFgm2DV
cXx2Ar3//mwn4YvJ9W6nTbpJQZC8fN579sfvPZ7E4wc4CZ/JijICPej783kLKwEAXXFMVtC/GQL9
6RiF1j9RftWGfbLMIkA4pivg+x169esvXkx5tL1qx2qDvAgh7TTuDmcdoP0qDJpNo8hNLt7mtg0Q
VKy1pRxLoqA3hf705kbzIh/gufEZNs4hPD8iFhBGQkXOi92bHe8JeivygohIacLNKm3ojVqty621
tyLliGVYn75/1x/0HodaeBrdGW1/oYX+9GlmxEnPt/fHWdAfj7Vkdl4M5vfT4GExHvWCbvAejPun
J8CMbWUotK4IyUM3GA4eOiXQ1NKoZ8iyZyI5YWZrlikirRBhau9b1V7kAuVKJAnTIkpizCKLhngT
itxSrQnLF0kYKe9hlubrZhQbBC9RrtICEldtQJgir0fXpv2V2EY6vD++Et7F9xjeXVh3cf5Pwmv8
Uox03X85ziOu0pCxb6xi86DfmKr03yxtjd52/xqYx/lk/I2Z8MYH5Bhdfg+Fr0XN5CVmRqIo4Zui
sx1ey3aYn6g8WN4tGSuNWve307v311AnD+jPNbx4m1s2AHjTSq7hmxYCZzrrfgPuup6R7u8L2Uvg
xR/QQ/Dit72LENZpPre2Rdt81U83TOMp7W6BX2lLre3XtdOv7g3/oLhPg1xzqbnUXGouNZeaS82l
5lJzqbnUXGouNZeay/+Fy2z6GPiDxc1oPJh14N/grNW6VBJdLrPVikjzW/4ARDFORMqVA+MwJS5E
I6JSByQ8onxnSTaEn1iUM6MSN2PenSyp5uxuHpFUc2qhE+inY0wmmXB9KQ8xdg/5TD7qA4UOGuOf
XYTEIoxOYhRnKXlxMJ7FSyLd3QU5cRbaip7ETVDhxlck0rVSJA7FOpGuqSKShswFWRK5UIKeyW7R
dC1JiB2THNQBcvBMuuu/xBYB4HbQ7Q+C4/oqpnyXCDWb+5paG20OJXxFoxxwzYvCqtTtq+czahu1
Sp2ts0pNUTiVupgqVK0pM16pLLO8PkyopBvzNbKYJCrJJPoMoyKh1TqT10rNLE9vtVcq0TqU1cqi
Eip1JvFrAILBSRuxo0aJAJgFvvnL5NDAjPcO68I8Hy/RgABMe38aRxGmKluq1I4H39lR4bsjVJeZ
hhMHLCCd15RIA+SW+SqajmbVMC8AdjNPM/40mzbMEHLcN6yKQXA5gyz0RjHqabvdABXpns2BvV6D
M0/G0FsdWBcbFP9WEbF31A+mp4Hibpy/NDmdTODpuXZHgr8f7OKV8/Q99AmuL2RVPhsAAA==

------=_20020808232437_37466--



From dyfet@ostel.com Thu Aug 08 18:13:19 2002
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17cvWx-0005os-00
	for <bug-commoncpp@gnu.org>; Thu, 08 Aug 2002 18:13:19 -0400
Received: from home.sys (IDENT:L1tpg1ib6Z3ZAOupON4kmaywnR+SeIwD@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g78MPRo13857;
	Thu, 8 Aug 2002 18:25:27 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <bug-commoncpp@gnu.org>
Subject: Re: Patches to compile CC++ 2 for Win32 with GCC using Mingw32
Date: Thu, 8 Aug 2002 18:25:27 -0400
User-Agent: KMail/1.4.1
References: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org>
In-Reply-To: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208081825.27096.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This is very interesting.  I had wanted to be able to have people build C=
ommon=20
C++ win32 target dll's out of mingw32 hosted on a GNU/Linux system like t=
his=20
for awhile.  I will have to look at getting these patches in.

On Thursday 08 August 2002 17:24, Federico Montesino Pouzols wrote:
> =09Hi all,
>
> =09I have been trying to compile cc++ 2 with GNU GCC as cross
> compiler for Win32 (using Mingw on Debian). At first, I used the
> Makefile.gcc in the win32 directory. I have found three errors while
> compiling...
>
>
> Error 1)
> ********
>
> socket.cpp:
>
> i586-mingw32msvc-c++ -c -I. -I../include -DHAVE_LIBXML
> -I/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
> -include ../win32/cc++/config.h -g -O2 -mthreads -o
> ../win32/../win32/socket.o ../src/socket.cpp
> ../src/socket.cpp: In function `SOCKET ost::dupSocket(unsigned int,
> ost::Socket::State)':
> ../src/socket.cpp:75: `ost::dupSocket(unsigned int, ost::Socket::State)=
'
> was declared `extern' and later `static'
> ../include/cc++/socket.h:573: previous declaration of
> `ost::dupSocket(unsigned int, ost::Socket::State)'
> make: *** [../win32/socket.o] Error 1
>
>
> =09A patch for this is attached (patch-ccpp2-mingw-socket).
>
>
>
> Error 2)
> ********
>
> url.cpp:
>
> i586-mingw32msvc-c++ -c -I. -I../include -DHAVE_LIBXML
> -I/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
> -include ../win32/cc++/config.h -g -O2 -mthreads -o
> ../win32/../win32/url.o ../src/url.cpp
> In file included from ../src/url.cpp:43:
> ../include/cc++/url.h: In method `int ost::URLStream::aRead(char *,
> unsigned int, long unsigned int)':
> ../include/cc++/url.h:147: implicit declaration of function `int
> ost::read(...)'../include/cc++/url.h: In method `int
> ost::URLStream::aWrite(char *, unsigned int, long unsigned int)':
> ../include/cc++/url.h:150: implicit declaration of function `int
> ost::write(...)'
> make: *** [../win32/url.o] Error 1
>
>
> =09A patch for this is attached (patch-ccpp2-mingw-url).
>
>
> Error 3)
> ********
>
> then, linking:
>
> port.o: En la funci=F3n `ost::SocketService::run(void)':
> /home/fedemp/gnu/pristine-subversions/commoncpp2/win32/../src/port.cpp:=
708:
> referencia a `WSAEventSelect@12' sin definir
> /home/fedemp/gnu/pristine-subversions/commoncpp2/win32/../src/port.cpp:=
762:
> referencia a `WSAEnumNetworkEvents@12' sin definir
> i586-mingw32msvc-dllwrap: i586-mingw32msvc-c++ termin=F3 con estado 1
> make: *** [ccgnu2.dll] Error 1
>
>
> =09Which can be solved linking ws2_32 (an updated Makefile.gcc is
> attached).
>
> =09With this, a static library and a dll for Win32 can be build
> with a GNU environment.
>
>
> =09There is a second way to get it. There is a free awk script
> (dsw2mak.awk) at
> http://mefriss1.swan.ac.uk/~jfonseca/gnu-win32/software/msds/index.html=
,
> by Jos=E9 Fonseca, that given a MSVC .dsp produces a makefile for
> mingw32. This has the advantage that the mingw makefile can be
> automatically updated from the new .dsps.
>
> =09I have got a CCXX.mak from the current CCXX.dsp and tweaked it
> a bit so that CCXX.dll can be built (only uppercase/lowercase in the
> first letter of some names of files). It is attached.
>
>
> =09There is also a third way to get it... building the library
> with the GNU GCC and autotools environment using the cross compiler
> based on Mingw32 (a typical configure and make). This method fails
> with cc++ 2. I have tested the same cross compiler environment with
> other libraries and apps and it works smoothly. However, with cc++ the
> top level makefile does not recurse into the src directory and the
> Makefile in src seems not to work. Grepping into the autoconf macros
> it seems that some work has been done to detect Mingw32 environments,
> and in fact it is correctly detected by configure.
>
> =09It does not work however. It seems that some autoconf macro
> does not work well in this environment. Has anyone tested a
> configuration like this or has any clue?



From dyfet@ostel.com Thu Aug 08 19:15:39 2002
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17cwVH-0002NQ-00
	for <bug-commoncpp@gnu.org>; Thu, 08 Aug 2002 19:15:39 -0400
Received: from home.sys (IDENT:qB3s/OkmwsjFKLcR/rvnvU4yZ+oHeckl@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g78NS2o16422;
	Thu, 8 Aug 2002 19:28:02 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <bug-commoncpp@gnu.org>
Subject: Re: Patches to compile CC++ 2 for Win32 with GCC using Mingw32
Date: Thu, 8 Aug 2002 19:28:02 -0400
User-Agent: KMail/1.4.1
References: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org>
In-Reply-To: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208081928.02459.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I like this patch.  I gather you have been able to build libxml2 and libi=
conv=20
as well (perhaps as dll's) with the debian mingw32 tool chain?

My other thought is maybe we should have the mingw32 makefile build two=20
seperate and dependent dll's (ccgnu and ccstd) the way the normal build t=
ree=20
does for posix targets.

On Thursday 08 August 2002 17:24, Federico Montesino Pouzols wrote:
> =09Hi all,
>
> =09I have been trying to compile cc++ 2 with GNU GCC as cross
> compiler for Win32 (using Mingw on Debian). At first, I used the
> Makefile.gcc in the win32 directory. I have found three errors while
> compiling...
>
>
> Error 1)
> ********
>
> socket.cpp:
>
> i586-mingw32msvc-c++ -c -I. -I../include -DHAVE_LIBXML
> -I/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
> -include ../win32/cc++/config.h -g -O2 -mthreads -o
> ../win32/../win32/socket.o ../src/socket.cpp
> ../src/socket.cpp: In function `SOCKET ost::dupSocket(unsigned int,
> ost::Socket::State)':
> ../src/socket.cpp:75: `ost::dupSocket(unsigned int, ost::Socket::State)=
'
> was declared `extern' and later `static'
> ../include/cc++/socket.h:573: previous declaration of
> `ost::dupSocket(unsigned int, ost::Socket::State)'
> make: *** [../win32/socket.o] Error 1
>
>
> =09A patch for this is attached (patch-ccpp2-mingw-socket).
>
>
>
> Error 2)
> ********
>
> url.cpp:
>
> i586-mingw32msvc-c++ -c -I. -I../include -DHAVE_LIBXML
> -I/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
> -include ../win32/cc++/config.h -g -O2 -mthreads -o
> ../win32/../win32/url.o ../src/url.cpp
> In file included from ../src/url.cpp:43:
> ../include/cc++/url.h: In method `int ost::URLStream::aRead(char *,
> unsigned int, long unsigned int)':
> ../include/cc++/url.h:147: implicit declaration of function `int
> ost::read(...)'../include/cc++/url.h: In method `int
> ost::URLStream::aWrite(char *, unsigned int, long unsigned int)':
> ../include/cc++/url.h:150: implicit declaration of function `int
> ost::write(...)'
> make: *** [../win32/url.o] Error 1
>
>
> =09A patch for this is attached (patch-ccpp2-mingw-url).
>
>
> Error 3)
> ********
>
> then, linking:
>
> port.o: En la funci=F3n `ost::SocketService::run(void)':
> /home/fedemp/gnu/pristine-subversions/commoncpp2/win32/../src/port.cpp:=
708:
> referencia a `WSAEventSelect@12' sin definir
> /home/fedemp/gnu/pristine-subversions/commoncpp2/win32/../src/port.cpp:=
762:
> referencia a `WSAEnumNetworkEvents@12' sin definir
> i586-mingw32msvc-dllwrap: i586-mingw32msvc-c++ termin=F3 con estado 1
> make: *** [ccgnu2.dll] Error 1
>
>
> =09Which can be solved linking ws2_32 (an updated Makefile.gcc is
> attached).
>
> =09With this, a static library and a dll for Win32 can be build
> with a GNU environment.
>
>
> =09There is a second way to get it. There is a free awk script
> (dsw2mak.awk) at
> http://mefriss1.swan.ac.uk/~jfonseca/gnu-win32/software/msds/index.html=
,
> by Jos=E9 Fonseca, that given a MSVC .dsp produces a makefile for
> mingw32. This has the advantage that the mingw makefile can be
> automatically updated from the new .dsps.
>
> =09I have got a CCXX.mak from the current CCXX.dsp and tweaked it
> a bit so that CCXX.dll can be built (only uppercase/lowercase in the
> first letter of some names of files). It is attached.
>
>
> =09There is also a third way to get it... building the library
> with the GNU GCC and autotools environment using the cross compiler
> based on Mingw32 (a typical configure and make). This method fails
> with cc++ 2. I have tested the same cross compiler environment with
> other libraries and apps and it works smoothly. However, with cc++ the
> top level makefile does not recurse into the src directory and the
> Makefile in src seems not to work. Grepping into the autoconf macros
> it seems that some work has been done to detect Mingw32 environments,
> and in fact it is correctly detected by configure.
>
> =09It does not work however. It seems that some autoconf macro
> does not work well in this environment. Has anyone tested a
> configuration like this or has any clue?



From fedemp@suidzer0.org Fri Aug 09 13:13:21 2002
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17dDKC-0008MH-00
	for <bug-commoncpp@gnu.org>; Fri, 09 Aug 2002 13:13:21 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g79HBCGS013828
          ; Fri, 9 Aug 2002 19:11:14 +0200
Received: from 62.36.176.16
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Fri, 9 Aug 2002 19:11:14 +0200 (CEST)
Message-ID: <1101.62.36.176.16.1028913074.squirrel@webmail.suidzer0.org>
Date: Fri, 9 Aug 2002 19:11:14 +0200 (CEST)
Subject: Re: Patches to compile CC++ 2 for Win32 with GCC using Mingw32
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <dyfet@ostel.com>
In-Reply-To: <200208081928.02459.dyfet@ostel.com>
References: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org>
        <200208081928.02459.dyfet@ostel.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <fedemp@suidzer0.org>, <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

> I like this patch.  I gather you have been able to build libxml2 and
> libiconv  as well (perhaps as dll's) with the debian mingw32 tool chain?
>

   Yes, they all can be built with gcc-mingw32. And there is more: with
just a few #ifdefs, libxml2 and other libraries (for instance oSIP) can
be built out of the source tarball with the usual ./configure; make.
However I have not been able to build dll's with autotools; libtool seems
to get messed. What I am doing is to build the static library (and the
demo apps with the autotools) and the dll manually.

   With common c++ the autotools' makefiles does not seem to be correctly
generated when I use the cross gcc. So I have built cc++ with the
Makefile.gcc. Do you know if there is something in the autoconf stuff of
cc++ that may break with cross compilers? If not, I will have to look at
the Makefiles and try to find the problem...

> My other thought is maybe we should have the mingw32 makefile build two
> seperate and dependent dll's (ccgnu and ccstd) the way the normal build
> tree  does for posix targets.
>

    Ok, building ccgnu2.dll and ccext2.dll is more consistent with the
posix libs, and it has clear advantages. I guess ccrtp will depend on
ccgnu2 only). I am going to modify Makefile.gcc and test. Should not
this change be made to the MSVC project files as well to keep
consistency?





From dyfet@ostel.com Fri Aug 09 13:21:16 2002
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17dDRs-0000Xj-00
	for <bug-commoncpp@gnu.org>; Fri, 09 Aug 2002 13:21:16 -0400
Received: from home.sys (IDENT:y0TH83S53lJRhHqHqpPfieHhQWD3RMiF@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g79HXfo02600;
	Fri, 9 Aug 2002 13:33:41 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org
Subject: Re: Patches to compile CC++ 2 for Win32 with GCC using Mingw32
Date: Fri, 9 Aug 2002 13:33:40 -0400
User-Agent: KMail/1.4.1
Cc: <fedemp@suidzer0.org>, <bug-commoncpp@gnu.org>
References: <1101.62.37.137.207.1028841877.squirrel@webmail.suidzer0.org> <200208081928.02459.dyfet@ostel.com> <1101.62.36.176.16.1028913074.squirrel@webmail.suidzer0.org>
In-Reply-To: <1101.62.36.176.16.1028913074.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208091333.40990.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

It appears I went thru the same things with libxml2 and iconv on my debia=
n=20
mingw32 toolchain that you had already hit :).  Yes, I cannot get dll bui=
lds=20
out of those things under the debian tool chain either at the moment.  I=20
recall the latest cygwin with patched autoconf/automake and updated binut=
ils=20
can now successfully produce dll's, while the debian autoconf, automake, =
and=20
mingw32 gcc/binutils probably predate this by a lot.

You might want to look at my modified Makefile.gcc in cvs.  I did a few s=
mall=20
changes and also added the build targets for the demo and test apps.  I t=
hink=20
splitting the dll's into two like the posix targets makes the most sense,=
=20
especially with libxml2 statically linked; the single dll image is big :)=
=2E

On Friday 09 August 2002 13:11, Federico Montesino Pouzols wrote:
> > I like this patch.  I gather you have been able to build libxml2 and
> > libiconv  as well (perhaps as dll's) with the debian mingw32 tool cha=
in?
>
>    Yes, they all can be built with gcc-mingw32. And there is more: with
> just a few #ifdefs, libxml2 and other libraries (for instance oSIP) can
> be built out of the source tarball with the usual ./configure; make.
> However I have not been able to build dll's with autotools; libtool see=
ms
> to get messed. What I am doing is to build the static library (and the
> demo apps with the autotools) and the dll manually.
>
>    With common c++ the autotools' makefiles does not seem to be correct=
ly
> generated when I use the cross gcc. So I have built cc++ with the
> Makefile.gcc. Do you know if there is something in the autoconf stuff o=
f
> cc++ that may break with cross compilers? If not, I will have to look a=
t
> the Makefiles and try to find the problem...
>
> > My other thought is maybe we should have the mingw32 makefile build t=
wo
> > seperate and dependent dll's (ccgnu and ccstd) the way the normal bui=
ld
> > tree  does for posix targets.
>
>     Ok, building ccgnu2.dll and ccext2.dll is more consistent with the
> posix libs, and it has clear advantages. I guess ccrtp will depend on
> ccgnu2 only). I am going to modify Makefile.gcc and test. Should not
> this change be made to the MSVC project files as well to keep
> consistency?



From fedemp@suidzer0.org Fri Aug 09 18:10:35 2002
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian))
	id 17dHxl-0005Jh-00
	for <bug-commoncpp@gnu.org>; Fri, 09 Aug 2002 18:10:32 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g79M87GS016065
          for <bug-commoncpp@gnu.org>; Sat, 10 Aug 2002 00:08:07 +0200
Received: from 62.36.190.253
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Sat, 10 Aug 2002 00:08:07 +0200 (CEST)
Message-ID: <1640.62.36.190.253.1028930887.squirrel@webmail.suidzer0.org>
Date: Sat, 10 Aug 2002 00:08:07 +0200 (CEST)
Subject: ccgnu2.dll and ccext2.dll mingw32 makefile and related patches
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_20020810000807_18466"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

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

     Hi, I have modified Makefile.gcc so that two separated dll's are
built with mingw32 as in posix systems. It is attached.

     When modifying the makefile I have tried to include all the
source files that are used in the Makefile.am of the posix tree, what
has made me to find the following things:

     - Adding process.cpp required an small patch which is attached.

     - dir.cpp and dso.cpp: the Win32 code corresponding to these unix
       sources seems to be in the Win32 specific file `file.cpp', so
       they have not been added. There are also three files:
       friends.cpp, events.cpp and file.cpp in the Win32 directory
       that contain the Win32 port of the corresponding posix files.

     The last point shows that the Win32 and the posix source trees
are not completely merged. However it seems there is only a little
work left to completely merge the two trees. Are these trees still
separated for any reason? If they are not and there is no one currently
working on it, I would be glad to finish the merge.



------=_20020810000807_18466
Content-Type: application/gzip; name="Makefile.gcc.gz"
Content-Disposition: attachment; filename="Makefile.gcc.gz"
Content-Transfer-Encoding: base64

H4sICIE8VD0AA01ha2VmaWxlLmdjYwCNVm1v2kgQ/sz+ipFCdaDG0KPq6ZT2pLpAEk4UEJAmlSqh
xV5gFdtr7a5D8u9vZm1scF56kZJd77w9z8zsbM6gr9InLbc7C61+G3ofPvRgmooEFirTgYCliESg
YlTTqdLcSpV02Bk7g+VOGtjISACtWggwamP3XIvPwA1wMKkIJI9APAYiJTuwOwE8szulYSsfhEEv
WRLJWFoRQip0LI1xegoCRAU8CbuoG0pjtVxnFkPZc9hLuwM8plVlFp3EKpQbGThw5pyiRyrZ0moJ
ZKKsDBzMVAsj9IMIjyikWm01j0lcBQpB5nB3KhW44RZDY8QogrWAzIhNFp3D2kW/HS2vpzdL8Cc/
4dafz/3J8uc5cSB78WhFYnNylvyunyDi+88H9CAehIuEjmScRhJVMIeaJ/YJ1Aa+D+f9a/TofxuN
R8ufxPtytJwMFwu4nM7Bh5k/X476N2N/DrOb+Wy6GHYY+vIh5vfClQeRhArrEctku//Yg0ArYzDB
cUrSdSajkCKFUfSHQdtr/8cQ/gFvQJvVePTt7vsYvFGzhcnbyMd2VyZBlIWiG8n1YxyxHzN/eY0G
nU53L5OPvQvcGB3QEopY0WqFsYZNa4rMR2r4LT/9/ZdXgIvNQ+CxPBKKupnR3bqcsf7dHQqbLXLQ
Dt6/Z/6i+uaGDcbj5XQ6rs6Qm1UqIsHt3J+dCPaap+x2NBnMh0deEGGIzcIWy/noSJ/6I2XiUWBd
iQruGPoovnCH4Gazy7F/Rb68UYd+O4eUoRdKavuQ3P50cjm6Wl3j9+pqcrNaTG/m/SHRKz0cLA9J
6wbItxuoZCO3nR14W/CmPfBiu9OCh4aNB6XpuCoZAgMvCoJtkvXcBgHTZm96KyxEv4/Re6u3bEvN
4d3yVLPzViRsEFrkWmjs59LN2XgwvBv2i0iuMdqVWbNV+G+zAzQs3Grif6fGzJVcrgs0J0JiVhSi
MsUuRiHCKIz5semR0BnzE9PB8PIoqNgcWx5keUyUsdl86tKyE1GkqDuAet9tMh1thA127gPzUn3k
tfvTNRPjUXTRaLZqvNtARyds6ciFwywtrgdzCpt7wr4wKrgXFjfl8MV9EIcqtYnBbSi3hIvkONVp
Q6MCl1+ssdUqS0kJx3GAS5LFWD46wClmpDMzkaL2Q074F8nQkdA47Ts7nCA5mNNObbZ4GBYXu7oR
eTufo9RRaFcVn37794iRghin8iOuRsQ8xRdEdFQhvBdPuEfgGy1FEhr8oKFqSZlgqpybwpGOEHSu
mwpBO0deHdKlDiQwnIhTvnU66D/klud2VT4VvRyBMBiPHZqiAL3ONpvcvUwp8CGDzkNZBeXSp1z6
VJlbBJ9sZUJmRZGcFSKgo6I2iC/8RMRsStGLsbYqL6WXl9XjdBs9fGbSzHrYoJjnom/b6BSKH89z
L8+6kOJ9wMvohRqfaO0lPKa5hTMJa/NKXx5fltoJObs4Kf7hvruqHxW73aY76K6ZAtZwWIhVG8pt
ThDBKXgByS/WOHV45K8UVJPlxQt1erlrJ7/lUvbAMZf/RaUGpKBS+atROR7CSKUUXjT6WKiODsi+
eNNcjMr8oMBK7O/QDt51gjR1UbHQ4AUUpnjI2nn5jwEXls3WmhuRd8jXNmH7wtg7mmN1h695a37J
X5Dno98F+spYEAmeXLCGp2PwNrWWqWX9pAXeHJ11Rdfzz4r9TO15TxRXqVHNYpkYS0McIcf3odTw
/D8nGnq9F+T0bDWCFDxORN1AfN261HuJxlsZeM71oPQyjt+nqbLEPuuWzyy6wccUU+P+iaoF6L4I
s65wCpE1uAZPm1rAN1Lg2uINs1eSkpv9B3CBAfwcDQAA
------=_20020810000807_18466
Content-Type: application/gzip; name="patch-ccpp2-mingw-process.gz"
Content-Disposition: attachment; filename="patch-ccpp2-mingw-process.gz"
Content-Transfer-Encoding: base64

H4sICM4zVD0AA3BhdGNoLWNjcHAyLW1pbmd3LXByb2Nlc3MApZHLbsIwEEXX8VeMxAZITF5tlboP
JYpYsAChUgl2KHIcsAR2ZCcpVX++DqElSN11NuO5unPPSJ6JnJ0IlEpSpvWEliV6+X+ht3QFBT8w
Ai5ttJKycqk8HqUwgOsrcLWibo/tNEixSnHWcLEDZZrmUoA/CVDOiwJwDViZ6eZejHF/tiKYZ58Q
eF4AQUj8iIQeYM+U1ebYtn3jfoSk3l3cPgki4t91bhTHgO8jxw/BbtsDxDGCARPmkmtH9oAXOSus
9WwRBu0k6KHOGTz/QPavfVVXOZed1iXYJqtLSNPNZrtI5tPVMkmnKwQiOzJdZpSB1BV89aBwA8V/
QjECLipYdgohJulDDKkUJovuMwVjdmItwoG+OM7UTo9Qi7PMX9RKwGW3KYfL7TqZvTsw7Lyj34SL
MB6dt5/QNydIAiRXAgAA

------=_20020810000807_18466--



From pbacquet@delta.fr Mon Aug 12 08:42:30 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eEWk-0007rd-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 08:42:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eEWi-0007rR-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 08:42:29 -0400
Received: from jupiter.delta.fr ([194.51.5.21])
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eEWh-0007rM-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 08:42:28 -0400
Received: from delta.fr (hebe [194.51.5.11])
	by jupiter.delta.fr (8.9.3/8.9.3) with ESMTP id OAA04278
	for <bug-commoncpp@gnu.org>; Mon, 12 Aug 2002 14:41:50 +0200 (METDST)
Message-ID: <3D57AD5C.7AFD2492@delta.fr>
Date: Mon, 12 Aug 2002 14:43:08 +0200
From: Pierre Bacquet <pbacquet@delta.fr>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: Common C++ persistence engine and exceptions
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hello,

I've retrieved the last pre-2 versions (0.99.7 I think) and I've found
that
the persistence engine uses assert in some places.

Though the following:

void Engine::write(const std::string& str) THROWS (Engine::Exception)
{
  assert(myOperationalMode == modeWrite);
 ...

or

void Engine::read(std::string& str) THROWS (Engine::Exception)
{
  assert(myOperationalMode == modeRead);
  ...

may make sense (this is a kind of programmation error that shouldn't
happen during runtime)

I think that assert like :

  // Create the object (of the relevant type)
  object = TypeManager::createInstanceOf(className.c_str());
  if (object)
 {
   // Okay then - we can make this object
   myArchiveVector.push_back(object);
   std::string majik;
   read(majik);
   assert(majik == string("OBST"));
   object->read(*this);
   read(majik);
   assert(majik == string("OBEN"));
 }
  else
   THROW (Exception((std::string("Unable to instantiate object of class
")+className).c_str()));

could be replaced by exceptions in order to be handled, if needed, by
the calling program.
These kinds of problems (OBject STart and OBject ENd markers not found)
are likely to happen
if you read a persistence file produced by another program. So, this
kind of error is likely to
happen in regular run-time (i.e. not during development).

So, one may think about using :

if (object)
 {
   // Okay then - we can make this object
   myArchiveVector.push_back(object);
   std::string majik;
   read(majik);
   if (majik != string("OBST"))
     THROW (Exception((std::string("OBST not found
")+className).c_str()));
  object->read(*this);
   read(majik);
   if (majik != string("OBEN"));
     THROW (Exception((std::string("OBEN not found
")+className).c_str()));
 }
  else
   THROW (Exception((std::string("Unable to instantiate object of class
")+className).c_str()));

One may even think about displaying also the file position (
Engine::myUnderlyingStream.tellg() )
to help people understanding where things may have gone wrong.

What do you think of that ?

Greetings,

Pierre Bacquet.




From dyfet@ostel.com Mon Aug 12 09:46:25 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eFWb-0006Ag-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 09:46:25 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eFWV-00069z-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 09:46:25 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eFWU-00069r-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 09:46:19 -0400
Received: from home.sys (IDENT:Tj70TxczJnjiGBKkyixa+bjOtMileMkm@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7CDx3o07502;
	Mon, 12 Aug 2002 09:59:03 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Pierre Bacquet <pbacquet@delta.fr>, bug-commoncpp@gnu.org
Subject: Re: Common C++ persistence engine and exceptions
Date: Mon, 12 Aug 2002 09:59:03 -0400
User-Agent: KMail/1.4.1
References: <3D57AD5C.7AFD2492@delta.fr>
In-Reply-To: <3D57AD5C.7AFD2492@delta.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208120959.03132.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I think that is a valid point.  The persistence engine, while it has been=
=20
experimental code for a long time, it also has been very stable and hasn'=
t=20
been changed very much.  If you would like to make a patch for doing this=
, I=20
would be happy to take it in.

On Monday 12 August 2002 08:43, Pierre Bacquet wrote:
> Hello,
>
> I've retrieved the last pre-2 versions (0.99.7 I think) and I've found
> that
> the persistence engine uses assert in some places.
>
> Though the following:
>
> void Engine::write(const std::string& str) THROWS (Engine::Exception)
> {
>   assert(myOperationalMode =3D=3D modeWrite);
>  ...
>
> or
>
> void Engine::read(std::string& str) THROWS (Engine::Exception)
> {
>   assert(myOperationalMode =3D=3D modeRead);
>   ...
>
> may make sense (this is a kind of programmation error that shouldn't
> happen during runtime)
>
> I think that assert like :
>
>   // Create the object (of the relevant type)
>   object =3D TypeManager::createInstanceOf(className.c_str());
>   if (object)
>  {
>    // Okay then - we can make this object
>    myArchiveVector.push_back(object);
>    std::string majik;
>    read(majik);
>    assert(majik =3D=3D string("OBST"));
>    object->read(*this);
>    read(majik);
>    assert(majik =3D=3D string("OBEN"));
>  }
>   else
>    THROW (Exception((std::string("Unable to instantiate object of class
> ")+className).c_str()));
>
> could be replaced by exceptions in order to be handled, if needed, by
> the calling program.
> These kinds of problems (OBject STart and OBject ENd markers not found)
> are likely to happen
> if you read a persistence file produced by another program. So, this
> kind of error is likely to
> happen in regular run-time (i.e. not during development).
>
> So, one may think about using :
>
> if (object)
>  {
>    // Okay then - we can make this object
>    myArchiveVector.push_back(object);
>    std::string majik;
>    read(majik);
>    if (majik !=3D string("OBST"))
>      THROW (Exception((std::string("OBST not found
> ")+className).c_str()));
>   object->read(*this);
>    read(majik);
>    if (majik !=3D string("OBEN"));
>      THROW (Exception((std::string("OBEN not found
> ")+className).c_str()));
>  }
>   else
>    THROW (Exception((std::string("Unable to instantiate object of class
> ")+className).c_str()));
>
> One may even think about displaying also the file position (
> Engine::myUnderlyingStream.tellg() )
> to help people understanding where things may have gone wrong.
>
> What do you think of that ?
>
> Greetings,
>
> Pierre Bacquet.
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From dyfet@ostel.com Mon Aug 12 13:39:32 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eJAC-0001d5-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:39:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eJAA-0001c4-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:39:31 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eJAA-0001bO-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:39:30 -0400
Received: from home.sys (IDENT:grAss+z9iUjeZaMdu+G4v58Vml9CA/46@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7CHqLo17540
	for <bug-commoncpp@gnu.org>; Mon, 12 Aug 2002 13:52:21 -0400
Content-Type: text/plain;
  charset="us-ascii"
From: David Sugar <dyfet@ostel.com>
To: bug-commoncpp@gnu.org
Subject: fwd:  "ln -s getopt.o getopt.o"
Date: Mon, 12 Aug 2002 13:52:21 -0400
User-Agent: KMail/1.4.1
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208121352.21598.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

from myaoxu@yahoo.com:

Hi,=20

I am trying to build CommonC++ "2" on Soalris 2.8 with
GCC version 2.95.3 20010315 (release).=20

I got an error message at the end of 'make' as below,
please advise what to do. Thanks -- Yao=20

c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-I../src -DCCXX_EXPORT_LIBRARY -I/usr/local/include
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c ftp.cpp=20
-fPIC -DPIC -o .libs/ftp.lo

c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-I../src -DCCXX_EXPORT_LIBRARY -I/usr/local/include
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c ftp.cpp
-o ftp.o >/dev/null 2>&1

mv -f .libs/ftp.lo ftp.lo=20
/bin/sh ../libtool --mode=3Dlink c++  -I../src
-DCCXX_EXPORT_LIBRARY  -I/usr/local/include
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE
-version-info 0:6 -release 0.99 -o libccext2.la -rpath
/usr/local/lib  buffer.lo fifo.lo pipe.lo numbers.lo
cmdoptns.lo  url.lo xml.lo persist.lo engine.lo
digest.lo date.lo groups.lo md5.lo  unix.lo ftp.lo
getopt.o getopt1.c -lposix4 -lpthread=20
-L/usr/local/lib -lsocket

*** Warning: Linking the shared library libccext2.la
against the non-libtool=20
*** objects  getopt.o is not portable!=20
rm -fr .libs/libccext2.la .libs/libccext2.*
=2Elibs/libccext2-0.99.*=20
(cd . && ln -s getopt.o getopt.o)=20
/usr/ccs/bin/ld -G -h libccext2-0.99.so.0 -o
=2Elibs/libccext2-0.99.so.0.0.6  buffer.lo fifo.lo
pipe.lo numbers.lo cmdoptns.lo url.lo xml.lo
persist.lo engine.lo digest.lo date.lo groups.lo
md5.lo unix.lo ftp.lo  getopt.o  -lposix4 -lpthread
-L/usr/local/lib -lsocket -lc=20

ld: fatal: file getopt.o: cannot open file: Number of
symbolic links encountered during path name traversal
exceeds MAXSYMLINKS

ld: fatal: File processing errors. No output written
to .libs/libccext2-0.99.so.0.0.6=20
*** Error code 1=20
make: Fatal error: Command failed for target
`libccext2.la'=20
=20



From dyfet@ostel.com Mon Aug 12 13:41:17 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eJBt-0002cs-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:41:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eJBs-0002cE-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:41:17 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eJBr-0002c1-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:41:15 -0400
Received: from home.sys (IDENT:qC6Zk8QMuhViJZD6vOljVDqwU8Qvf2Tf@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7CHs7o17570
	for <bug-commoncpp@gnu.org>; Mon, 12 Aug 2002 13:54:07 -0400
Content-Type: text/plain;
  charset="us-ascii"
From: David Sugar <dyfet@ostel.com>
To: bug-commoncpp@gnu.org
Subject: fwd: commoncpp2-0.99.7 install failure on solaris 2.6
Date: Mon, 12 Aug 2002 13:54:07 -0400
User-Agent: KMail/1.4.1
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208121354.07269.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

from paullew@cisco.com:

> uname -a
SunOS cns-build2 5.6 Generic_105181-28 sun4u sparc

> gcc -v
Reading specs from
  /auto/insbu-cnstools/lib/gcc-lib/sparc-sun-solaris2.6/3.1.1/specs
Configured with: ../gcc-3.1.1/configure --prefix=3D/auto/insbu-cnstools
   --with-local-prefix=3D/auto/insbu-cnstools
   --enable-version-specific-runtime-libs
   --enable-languages=3Dc,c++,java
Thread model: posix
gcc version 3.1.1

> ./configure --prefix=3D/auto/insbu-cnstools
=2E..
checking for recursive mutex type support... ./configure: test:
unknown operator =3D=3D

> export CONFIG_SHELL=3D/bin/ksh
> ./configure --prefix=3D/auto/insbu-cnstools
=2E..
checking for recursive mutex type support... ./configure: test:
unknown operator =3D=3D

This is a typical problem using new script construct and expect it to
work with older systems.

     -- Paul  08/06/02  07:26 PM --



From dyfet@ostel.com Mon Aug 12 13:43:08 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eJDf-0003RM-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:43:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eJDa-0003QN-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:43:03 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eJDZ-0003Pq-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 13:43:02 -0400
Received: from home.sys (IDENT:M4WGctGKuucfzHNRWBzYiu6/KQCD6Qr4@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7CHtro17586;
	Mon, 12 Aug 2002 13:55:53 -0400
Content-Type: text/plain;
  charset="us-ascii"
From: David Sugar <dyfet@ostel.com>
To: bug-commoncpp@gnu.org, cplusplus-devel@lists.sourceforge.list
Subject: fwd: Mutex class, mailing list
Date: Mon, 12 Aug 2002 13:55:53 -0400
User-Agent: KMail/1.4.1
Cc: Federico Montesino Pouzols <fedemp@suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208121355.53399.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

from matthias.weiss@inode.at:

--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=3Dus-ascii
Content-Disposition: inline

Hi all!

I attached a Mutex class implementation that is capable of
being recursive and having a timeout. It would be nice if it
could be use in libcommoncpp. I'd release it under LGPL.

Further I'd like to be on the libcommoncpp mailing list, but
couldn't find a registration interface on the libcommoncpp home
page(s). Is there a mailing list at all, and if yes, how can
I join it??

ciao

Matthias

--W/nzBZO5zC0uMSeA
Content-Type: text/x-c++src; charset=3Dus-ascii
Content-Disposition: attachment; filename=3D"mutex_with_timeout.cpp"

#ifndef _XOPEN_SOURCE=20
#define _XOPEN_SOURCE 600
#endif

#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>

#include <list>

class Mutex
{
    private:
        typedef struct _recursive_cond
        {
                unsigned short   count;
                pthread_cond_t * cond;

                _recursive_cond() : count( 0u ), cond( NULL )=20
                {};

                bool
                operator=3D=3D( const _recursive_cond & _rec_cond )
                {
                        return( cond =3D=3D _rec_cond.cond );
                }
        } RecursiveCond;
       =20
        pthread_mutex_t _mutex;
        std::list<RecursiveCond> _lock_list;

    public:
        Mutex( void );
        ~Mutex( void );
        int Enter( short unsigned _ms_timeout,
                   pthread_cond_t * _cond );
        int Leave( pthread_cond_t * _cond );
};

Mutex::Mutex( void )
{
        pthread_mutexattr_t _attr;
        int retval;
       =20
        pthread_mutexattr_init( &_attr );

        if ( ( retval =3D pthread_mutexattr_settype( &_attr,
                                                   PTHREAD_MUTEX_RECURSIV=
E_NP=20
) ) !=3D 0 )
 {
  printf( "Mutex::Mutex: Setting of mutex attribute failed:\n" );
  printf( "\"%s\"\n", strerror( retval ) );
                throw( this );
 }

        if ( pthread_mutex_init( &_mutex, &_attr) !=3D 0 )
        {
                throw( this );
        }
}

Mutex::~Mutex( void )
{
        pthread_mutex_destroy( &_mutex );
}

int
Mutex::Enter( short unsigned _ms_timeout,
              pthread_cond_t * _cond )
{
        int retval;
        RecursiveCond _member;

        if ( _ms_timeout > 1000 )
        {
                printf( "Mutex::Enter: Timeout too long: %u (milli=20
seconds)\n",
                        _ms_timeout );
                return( -1 );
        }
       =20

      =20
        if ( ( retval =3D pthread_mutex_lock( &_mutex ) ) !=3D 0 )
        {
                printf( "Mutex::Enter: couldn't lock own mutex!\n" );
                printf( "Mutex::Enter:\"%s\"\n", strerror( retval ) );
                return( -1 );
        }

        if ( _lock_list.empty() )
        {
                // mutex is not used

                _member.count =3D 1;
                _member.cond =3D _cond;
                _lock_list.push_back( _member );
                if ( ( retval =3D pthread_mutex_unlock( &_mutex ) ) !=3D =
0 )
                {
                        printf( "Mutex::Enter: Error in unlocking mutex\n=
" );
                        printf( "Mutex::Enter:\"%s\"\n", strerror( retval=
 ) );
                        return( -1 );
                }
        }
        else if ( _lock_list.front().cond =3D=3D _cond )
        {
                 // mutex is used by the same thread
                _lock_list.front().count++;
                if ( ( retval =3D pthread_mutex_unlock( &_mutex ) ) !=3D =
0 )
                {
                        printf( "Mutex::Enter: Error in unlocking mutex\n=
" );
                        printf( "Mutex::Enter:\"%s\"\n", strerror( retval=
 ) );
                        return( -1 );
                }
        }
        else
        {
                struct timespec time_out;
                struct timeval current_time;
               =20
                errno =3D 0;
                if ( gettimeofday( &current_time, NULL ) !=3D 0 )
                {
                        printf( "Mutex::Enter: Error while getting tim



From fedemp@suidzer0.org Mon Aug 12 15:15:40 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eKfD-0006Dc-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 15:15:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eKfB-0006CH-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 15:15:39 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eKf6-00067N-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 15:15:34 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7CJCxN0007022
          ; Mon, 12 Aug 2002 21:13:00 +0200
Received: from 80.103.119.39
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 12 Aug 2002 21:13:02 +0200 (CEST)
Message-ID: <1297.80.103.119.39.1029179582.squirrel@webmail.suidzer0.org>
Date: Mon, 12 Aug 2002 21:13:02 +0200 (CEST)
Subject: Re: fwd:  'ln -s getopt.o getopt.o'
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <myaoxu@yahoo.com>
In-Reply-To: <200208121352.21598.dyfet@ostel.com>
References: <200208121352.21598.dyfet@ostel.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi, I think there is a problem in m4/ost_getopt.m4 that shows
up when you are on a posix system without getopt_long,

   The fastest way to get cc++ to compile is to change the line
in src/Makefile that says:

libccext2_la_LIBADD =  getopt.o getopt1.c

to

libccext2_la_LIBADD =  getopt.c getopt1.c
                              ^

   Then, remove the src/getopt.o and type make. I have checked this
trick on a Solaris 8 system. Let us know if there is any other problem.

   A real solution for this will be discussed in other mail on
this same list and will be incorporated for future releases.

	Bye!


> from myaoxu@yahoo.com:
>
> Hi,
>
> I am trying to build CommonC++ "2" on Soalris 2.8 with
> GCC version 2.95.3 20010315 (release).
>
> I got an error message at the end of 'make' as below,
> please advise what to do. Thanks -- Yao
>
> c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I../src -DCCXX_EXPORT_LIBRARY -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c ftp.cpp
> -fPIC -DPIC -o .libs/ftp.lo
>
> c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I../src -DCCXX_EXPORT_LIBRARY -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c ftp.cpp
> -o ftp.o >/dev/null 2>&1
>
> mv -f .libs/ftp.lo ftp.lo
> /bin/sh ../libtool --mode=link c++  -I../src
> -DCCXX_EXPORT_LIBRARY  -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -version-info 0:6 -release 0.99 -o libccext2.la -rpath
> /usr/local/lib  buffer.lo fifo.lo pipe.lo numbers.lo
> cmdoptns.lo  url.lo xml.lo persist.lo engine.lo
> digest.lo date.lo groups.lo md5.lo  unix.lo ftp.lo
> getopt.o getopt1.c -lposix4 -lpthread
> -L/usr/local/lib -lsocket
>
> *** Warning: Linking the shared library libccext2.la
> against the non-libtool
> *** objects  getopt.o is not portable!
> rm -fr .libs/libccext2.la .libs/libccext2.*
> .libs/libccext2-0.99.*
> (cd . && ln -s getopt.o getopt.o)
> /usr/ccs/bin/ld -G -h libccext2-0.99.so.0 -o
> .libs/libccext2-0.99.so.0.0.6  buffer.lo fifo.lo
> pipe.lo numbers.lo cmdoptns.lo url.lo xml.lo
> persist.lo engine.lo digest.lo date.lo groups.lo
> md5.lo unix.lo ftp.lo  getopt.o  -lposix4 -lpthread
> -L/usr/local/lib -lsocket -lc
>
> ld: fatal: file getopt.o: cannot open file: Number of
> symbolic links encountered during path name traversal
> exceeds MAXSYMLINKS
>
> ld: fatal: File processing errors. No output written
> to .libs/libccext2-0.99.so.0.0.6
> *** Error code 1
> make: Fatal error: Command failed for target
> `libccext2.la'
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp






From fedemp@suidzer0.org Mon Aug 12 15:21:53 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eKlE-00077Z-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 15:21:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eKlD-00077K-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 15:21:52 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eKl9-00076d-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 15:21:49 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7CJJEN0007069
          for <bug-commoncpp@gnu.org>; Mon, 12 Aug 2002 21:19:14 +0200
Received: from 80.103.119.39
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 12 Aug 2002 21:19:14 +0200 (CEST)
Message-ID: <1300.80.103.119.39.1029179954.squirrel@webmail.suidzer0.org>
Date: Mon, 12 Aug 2002 21:19:14 +0200 (CEST)
Subject: Problem with getopt (was ln -s getop.o getopt.o)
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

 Hi, it seems there is a typo in m4/ost_getopt.m4 in the following line:

# AC_CHECK_FUNCS(getopt_long, , [LIBGETOPTOBJS="getopt.o getopt1.c"])

 This makes that in the following line from src/Makefile.am:

# libccext2_la_LIBADD = @BASE_LIB@ @LIBGETOPTOBJS@

 LIBGETOPTOBJS ends up being AC_substituted with `getopt.o getopt1.c'. This
messes libtool. I would suggest to update the line in ost_getopt.m4 to:

# AC_CHECK_FUNCS(getopt_long, , [LIBGETOPTOBJS="getopt.c getopt1.c"])
                                                       ^

 I will wait to see possible comments on better solutions before updating
the sources in the cvs.






From fedemp@suidzer0.org Mon Aug 12 17:14:13 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eMVx-0004kq-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:14:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eMVv-0004kb-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:14:13 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eMVv-0004k0-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:14:11 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7CLBYN0007847
          ; Mon, 12 Aug 2002 23:11:34 +0200
Received: from 80.103.119.39
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 12 Aug 2002 23:11:34 +0200 (CEST)
Message-ID: <1477.80.103.119.39.1029186694.squirrel@webmail.suidzer0.org>
Date: Mon, 12 Aug 2002 23:11:34 +0200 (CEST)
Subject: Re: fwd: commoncpp2-0.99.7 install failure on solaris 2.6
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <paullew@cisco.com>
In-Reply-To: <200208121354.07269.dyfet@ostel.com>
References: <200208121354.07269.dyfet@ostel.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi. Try this: edit configure and change the following two lines:

# if test $ost_cv_mutex_recursive == "none" ; then
   and
# if test $ost_cv_thread_library == "lthread" ; then

   to

# if test $ost_cv_mutex_recursive = "none" ; then
   and
# if test $ost_cv_thread_library = "lthread" ; then

 respectively, (replace `==' with `=').

   It it works now, tell us so that this can be fixed for next releases.
If it does not work, tell us if you had already installed previous
releases of cc++2 on the same configuration, so that we can have an idea
of when the bug was introduced.

   Bye!

> from paullew@cisco.com:
>
>> uname -a
> SunOS cns-build2 5.6 Generic_105181-28 sun4u sparc
>
>> gcc -v
> Reading specs from
>   /auto/insbu-cnstools/lib/gcc-lib/sparc-sun-solaris2.6/3.1.1/specs
> Configured with: ../gcc-3.1.1/configure --prefix=/auto/insbu-cnstools
>    --with-local-prefix=/auto/insbu-cnstools
>    --enable-version-specific-runtime-libs
>    --enable-languages=c,c++,java
> Thread model: posix
> gcc version 3.1.1
>
>> ./configure --prefix=/auto/insbu-cnstools
> ...
> checking for recursive mutex type support... ./configure: test:
> unknown operator > export CONFIG_SHELL=/bin/ksh
>> ./configure --prefix=/auto/insbu-cnstools
> ...
> checking for recursive mutex type support... ./configure: test:
> unknown operator This is a typical problem using new script construct
> and expect it to work with older systems.
>
>      -- Paul  08/06/02  07:26 PM --
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp






From myaoxu@yahoo.com Mon Aug 12 17:21:49 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eMdJ-0005HN-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:21:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eMdE-0005H1-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:21:48 -0400
Received: from web10705.mail.yahoo.com ([216.136.130.213])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17eMdD-0005GI-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:21:44 -0400
Message-ID: <20020812212137.38623.qmail@web10705.mail.yahoo.com>
Received: from [66.121.146.67] by web10705.mail.yahoo.com via HTTP; Mon, 12 Aug 2002 14:21:37 PDT
Date: Mon, 12 Aug 2002 14:21:37 -0700 (PDT)
From: Yao Xu <myaoxu@yahoo.com>
Reply-To: myaoxu@yahoo.com
Subject: comparison between Common C++ and ACE 
To: bug-commoncpp@gnu.org
In-Reply-To: <1477.80.103.119.39.1029186694.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi, 

Has anyone done a comparison between Common C++ and
ACE
(http://www.cs.wustl.edu/~schmidt/ACE-overview.html) ?

Thanks 

Yao

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



From fedemp@suidzer0.org Mon Aug 12 17:23:19 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eMel-0005XM-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:23:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eMei-0005Wk-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:23:18 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eMeh-0005WK-00
	for bug-commoncpp@gnu.org; Mon, 12 Aug 2002 17:23:15 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7CLKpN0007901
          for <bug-commoncpp@gnu.org>; Mon, 12 Aug 2002 23:20:51 +0200
Received: from 80.103.119.39
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 12 Aug 2002 23:20:51 +0200 (CEST)
Message-ID: <1502.80.103.119.39.1029187251.squirrel@webmail.suidzer0.org>
Date: Mon, 12 Aug 2002 23:20:51 +0200 (CEST)
Subject: Common C++ Mailing list 
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi all,

   after reading a mail from Matthias Weiss forwarded by David I have
been taking a look at the many "home pages" of cc++ and I have found
three problems with the mailing list:

   1) Although the official gnu home page refers to the mailing list, the
summary page on Savannah (sv.gnu.org/projects/commoncpp) does not show
the usual "Mailing Lists" entry in the public areas table.

   2) The link "home page" on the summary page at sourceforge links to
the official gnu page, however, if you go to http://cplusplus.sf.net, you
find an old page that still refers to the cplusplus-devel list.

   3) Although the summary page at Sourceforge says there is a mailing list,
if you follow the link, you arrive to a page that says: 'No Lists found
for Common C++ Libraries'.

    This things should be fixed so as to people new to cc++ do not get lost
or think there is no list. Let me know if I can help with anything.






From fedemp@suidzer0.org Tue Aug 13 16:13:21 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ei2b-0005Ak-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:13:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ei2Y-0005AY-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:13:20 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ei2X-0005AT-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:13:18 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7DKAjN0016138
          ; Tue, 13 Aug 2002 22:10:45 +0200
Received: from 62.36.179.214
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 13 Aug 2002 22:10:46 +0200 (CEST)
Message-ID: <1622.62.36.179.214.1029269446.squirrel@webmail.suidzer0.org>
Date: Tue, 13 Aug 2002 22:10:46 +0200 (CEST)
Subject: Re:  [ cplusplus-Bugs-594627 ] XMLRPC constructor bug ?
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <nkoch@users.sourceforge.net>
In-Reply-To: <200208131121.41619.dyfet@ostel.com>
References: <200208131121.41619.dyfet@ostel.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Your patches have been applied and the unused old strtreams
have been removed. The changes are in the cvs hosted at
savannah. Thanks a lot!

   I have tested XMLRPC with a simple demo (printing to stdout)
and have found that the old buggy constructor gave a SIGSEGV.
Your new version seems to work ok.

   By the way, is there any sample on using XMLRPC? If not, I
would tidy a bit my test and add it to the demo set.


>
> Subject: [ cplusplus-Bugs-594627 ] XMLRPC constructor bug ?
> Date: Tue, 13 Aug 2002 08:00:47 -0700
> From: noreply@sourceforge.net
> To: noreply@sourceforge.net
>
> Bugs item #594627, was opened at 2002-08-13 17:00
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=101523&aid=594627&group_id1523
>
> Category: Bug Reporter
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Norbert Koch (nkoch)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: XMLRPC constructor bug ?
>
> Initial Comment:
> Hello.
>
> I found this in xml.cpp:
>
> XMLRPC::XMLRPC(size_t bs) :
> XMLStream()
> {
>         buffer = new char[bufsize];
>         strbuf = NULL;
>         bufsize = bs;
> }
>
> Shouldn't it be:
>  buffer = new char[bs]
>  ...
>  bufsize = bs
> ?
>
> By the way:
> When compiling my app with
> gcc3.1.1 I get warnings
> about (deprecated) <strstream> inclusion
> in some header files.
>
> I suggest removing #include <strstream>
> from slog.h and digest.h as I don't see
> it being used anywhere.
>
> I suggest to replace <strstream> by
> <sstream> in xml.h and using sdt::stringstream
> in xml.cpp which simplifies things.
> See enclosed patch files for xml.cpp and xml.h.
> (It compiles but I did not yet test if it runs)
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=101523&aid=594627&group_id1523
>
> -------------------------------------------------------






From fedemp@suidzer0.org Tue Aug 13 16:16:18 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ei5S-0005VT-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:16:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ei5Q-0005VH-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:16:17 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ei5P-0005VC-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:16:15 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7DKDiN0016155
          ; Tue, 13 Aug 2002 22:13:44 +0200
Received: from 62.36.179.214
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 13 Aug 2002 22:13:44 +0200 (CEST)
Message-ID: <1634.62.36.179.214.1029269624.squirrel@webmail.suidzer0.org>
Date: Tue, 13 Aug 2002 22:13:44 +0200 (CEST)
Subject: Re: [ cplusplus-bug 594505 ] endl undefined/gcc3.1.1/freebsd4.6
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <nkoch@users.sourceforge.net>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

  Hi and thanks again! It is also fixed at savannah.

-----------------------------------------------------
 Hello.

I just downloaded the latest cvs sources of
commoncpp2.
After gmake -f Makefile.cvs
& configure
& gmake
the compilation stops in mempager.cpp
due to undefined endl.

Reason:
"using namespace std" missing.

(This may happen because gcc3.1.1+stdlib++v3 uses
namespaces while gcc2.95+stdlib++v2 doesn't
under freebsd4.6.)

Fix:
Add "using std::endl" or "using namespace std"
in mempager.cpp.






From fedemp@suidzer0.org Tue Aug 13 16:22:50 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eiBm-0006Rv-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:22:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eiBl-0006Rd-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:22:50 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eiBj-0006RB-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:22:48 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7DKK6N0016190
          ; Tue, 13 Aug 2002 22:20:06 +0200
Received: from 62.36.179.214
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 13 Aug 2002 22:20:06 +0200 (CEST)
Message-ID: <1658.62.36.179.214.1029270006.squirrel@webmail.suidzer0.org>
Date: Tue, 13 Aug 2002 22:20:06 +0200 (CEST)
Subject: Re: [ cplusplus-bug 580197 ] misc.h: ~iterator() delete token
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <msuchoff@users.sourceforge.net>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

  Hi, this is now fixed in the cvs hosted at savannah.


------------------------------------------------------
 virtual ~iterator() { if (token) *token='\0'; delete
token; }

should be delete [] token because token is allocated as
an array in keydata.cpp. A check of keydata.cpp will
show a correct call to delete[] token in operator++.

Probably won't cause a problem because elements of
array are primitive type "char", but a check of the ARM
says behavior is implementation dependent.

Bug is in 1.9.7 and 2.0.99





From fedemp@suidzer0.org Tue Aug 13 16:42:19 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17eiUd-0000k6-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:42:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17eiU7-0000f7-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:42:18 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17eiU6-0000f2-00
	for bug-commoncpp@gnu.org; Tue, 13 Aug 2002 16:41:47 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7DKdEN0016351
          ; Tue, 13 Aug 2002 22:39:15 +0200
Received: from 62.36.179.214
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 13 Aug 2002 22:39:15 +0200 (CEST)
Message-ID: <1738.62.36.179.214.1029271155.squirrel@webmail.suidzer0.org>
Date: Tue, 13 Aug 2002 22:39:15 +0200 (CEST)
Subject: Re: [ cplusplus-bug 582115 ] In file pointer.h,constructor init count
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <decis@essi.fr>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <dyfet@ostel.com>, <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi, I also think this is a bug. I would expect Pointer<>
to behave like it does when ptrCounter is initialized to 1.

   However, there are many interpretations of this kind of
classes. Could you confirm if this is a bug, David?


-----------------------------------------------------------
 Package commoncpp2-0.99.6.tar.gz

In file pointer.h, the constructor doesn't init ptrcount :

explicit Pointer(T* ptr = NULL) : ptrObject(ptr)
{
ptrCount = new unsigned;
}


I think it should be :

explicit Pointer(T* ptr = NULL) : ptrObject(ptr)
{
ptrCount = new unsigned;
*ptrCount = 1;
}





From dyfet@ostel.com Wed Aug 14 06:11:54 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ev86-0003HT-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:11:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ev84-0003H3-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:11:53 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ev84-0003GN-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:11:52 -0400
Received: from home.sys (IDENT:UBu3hL2x/W2IZesqnvtHTvgfjOXpjnhT@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7EAOmo09140;
	Wed, 14 Aug 2002 06:24:48 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <decis@essi.fr>
Subject: Re: [ cplusplus-bug 582115 ] In file pointer.h,constructor init count
Date: Wed, 14 Aug 2002 06:24:47 -0400
User-Agent: KMail/1.4.1
Cc: <bug-commoncpp@gnu.org>
References: <1738.62.36.179.214.1029271155.squirrel@webmail.suidzer0.org>
In-Reply-To: <1738.62.36.179.214.1029271155.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208140624.47631.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

It has to be initialized to 1.  If we destroy the pointer (ptrDetach), th=
at is=20
the lone copy of ptrCount as there are no other refs...

On Tuesday 13 August 2002 16:39, Federico Montesino Pouzols wrote:
>    Hi, I also think this is a bug. I would expect Pointer<>
> to behave like it does when ptrCounter is initialized to 1.
>
>    However, there are many interpretations of this kind of
> classes. Could you confirm if this is a bug, David?
>
>
> -----------------------------------------------------------
>  Package commoncpp2-0.99.6.tar.gz
>
> In file pointer.h, the constructor doesn't init ptrcount :
>
> explicit Pointer(T* ptr =3D NULL) : ptrObject(ptr)
> {
> ptrCount =3D new unsigned;
> }
>
>
> I think it should be :
>
> explicit Pointer(T* ptr =3D NULL) : ptrObject(ptr)
> {
> ptrCount =3D new unsigned;
> *ptrCount =3D 1;
> }
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From dyfet@ostel.com Wed Aug 14 06:14:06 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17evAD-0003eH-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:14:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17evAC-0003cp-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:14:05 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17evAB-0003bS-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:14:03 -0400
Received: from home.sys (IDENT:c/jiSjBfB496Uc16L19QstLbk6YjWte/@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7EAR2o09164;
	Wed, 14 Aug 2002 06:27:02 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <msuchoff@users.sourceforge.net>
Subject: Re: [ cplusplus-bug 580197 ] misc.h: ~iterator() delete token
Date: Wed, 14 Aug 2002 06:27:01 -0400
User-Agent: KMail/1.4.1
Cc: <bug-commoncpp@gnu.org>
References: <1658.62.36.179.214.1029270006.squirrel@webmail.suidzer0.org>
In-Reply-To: <1658.62.36.179.214.1029270006.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208140627.01746.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Yes, we should always use a matching delete[] if originally new xxx[] was=
=20
used, even for base types like char arrays.  On some c++ compilers, []'s =
have=20
extra block information, and so using a simple delete will cause a memory=
=20
leak.

On Tuesday 13 August 2002 16:20, Federico Montesino Pouzols wrote:
>   Hi, this is now fixed in the cvs hosted at savannah.
>
>
> ------------------------------------------------------
>  virtual ~iterator() { if (token) *token=3D'\0'; delete
> token; }
>
> should be delete [] token because token is allocated as
> an array in keydata.cpp. A check of keydata.cpp will
> show a correct call to delete[] token in operator++.
>
> Probably won't cause a problem because elements of
> array are primitive type "char", but a check of the ARM
> says behavior is implementation dependent.
>
> Bug is in 1.9.7 and 2.0.99
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From dyfet@ostel.com Wed Aug 14 06:17:59 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17evDz-0004R4-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:17:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17evDy-0004Qm-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:17:59 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17evDx-0004Qd-00
	for bug-commoncpp@gnu.org; Wed, 14 Aug 2002 06:17:58 -0400
Received: from home.sys (IDENT:jkJYO/2bL5la0mq/1iB0QlzPxBCCMWxb@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7EAUuo09198;
	Wed, 14 Aug 2002 06:30:56 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <nkoch@users.sourceforge.net>
Subject: Re: [ cplusplus-bug 594505 ] endl undefined/gcc3.1.1/freebsd4.6
Date: Wed, 14 Aug 2002 06:30:56 -0400
User-Agent: KMail/1.4.1
Cc: <bug-commoncpp@gnu.org>
References: <1634.62.36.179.214.1029269624.squirrel@webmail.suidzer0.org>
In-Reply-To: <1634.62.36.179.214.1029269624.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208140630.56271.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I think more often we have been using things like "using std::ostream", e=
tc. =20
So I think the most correct thing to be consistent with other sources in =
the=20
package is actually to add "using std::endl" and replace the direct=20
references to "std::endl" with just "endl".  This hopefully is the most=20
portable solution...=20

On Tuesday 13 August 2002 16:13, Federico Montesino Pouzols wrote:
>   Hi and thanks again! It is also fixed at savannah.
>
> -----------------------------------------------------
>  Hello.
>
> I just downloaded the latest cvs sources of
> commoncpp2.
> After gmake -f Makefile.cvs
> & configure
> & gmake
> the compilation stops in mempager.cpp
> due to undefined endl.
>
> Reason:
> "using namespace std" missing.
>
> (This may happen because gcc3.1.1+stdlib++v3 uses
> namespaces while gcc2.95+stdlib++v2 doesn't
> under freebsd4.6.)
>
> Fix:
> Add "using std::endl" or "using namespace std"
> in mempager.cpp.
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From mad@brasmap.com.br Thu Aug 15 10:17:14 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17fLR4-0001yQ-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:17:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17fLR1-0001xr-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:17:13 -0400
Received: from acate.com.br ([200.215.17.89])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17fLR0-0001wx-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:17:11 -0400
Received: (qmail 24576 invoked from network); 15 Aug 2002 14:17:06 -0000
Received: from unknown (HELO cli004.brasmap) (192.168.1.13)
  by acate.com.br with SMTP; 15 Aug 2002 14:17:02 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (8.11.1/8.11.1) with ESMTP id g7FDTVa04819
	for <bug-commoncpp@gnu.org>; Thu, 15 Aug 2002 10:29:31 -0300
Date: Thu, 15 Aug 2002 10:29:31 -0300 (BRT)
From: Marcelo Dalmas <mad@brasmap.com.br>
X-X-Sender: mad@cli004.brasmap
To: bug-commoncpp@gnu.org
Subject: [thread.h] warning: unused parameter
Message-ID: <Pine.LNX.4.40.0208151025360.4812-200000@cli004.brasmap>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-1463809014-1651724053-1029418171=:4812"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

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

---1463809014-1651724053-1029418171=:4812
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

In thread.h header, at lines 1141 and 1453, there are 2 unused parameters.

by

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


---1463809014-1651724053-1029418171=:4812
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.40.0208151029310.4812@cli004.brasmap>
Content-Description: thread.h patch
Content-Disposition: attachment; filename=patch

SW5kZXg6IHRocmVhZC5oDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg
ZmlsZTogL3Vzci9sb2NhbC9jdnNyb290L2NvbW1vbmNwcDIvaW5jbHVkZS9j
YysrL3RocmVhZC5oLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4yDQpkaWZm
IC11IC1yMS4yIHRocmVhZC5oDQotLS0gdGhyZWFkLmgJMjAwMi8wNy8xOCAy
MDo1Mzo1NwkxLjINCisrKyB0aHJlYWQuaAkyMDAyLzA4LzE1IDEzOjIyOjI2
DQpAQCAtMTEzNyw3ICsxMTM3LDcgQEANCiAJICogDQogCSAqIEBwYXJhbSB0
aCB0aGUgdGhyZWFkIHRoYXQgaGFzIHRlcm1pbmF0ZWQuDQogCSAqLw0KLQlD
Q1hYX01FTUJFUl9FWFBPUlQodmlydHVhbCB2b2lkKSBub3RpZnkoVGhyZWFk
ICp0aCkNCisJQ0NYWF9NRU1CRVJfRVhQT1JUKHZpcnR1YWwgdm9pZCkgbm90
aWZ5KFRocmVhZCopDQogCQl7cmV0dXJuO307DQogDQogCS8qKg0KQEAgLTE0
NDksNyArMTQ0OSw3IEBADQogCSAqDQogCSAqIEBwYXJhbSBzaWdubyBwb3Np
eCBzaWduYWwgaWQuDQogCSAqLw0KLQl2aXJ0dWFsIHZvaWQgb25TaWduYWwo
aW50IHNpZ25vKQ0KKwl2aXJ0dWFsIHZvaWQgb25TaWduYWwoaW50KQ0KIAkJ
e3JldHVybjt9Ow0KIAkNCiAJLyoqDQo=
---1463809014-1651724053-1029418171=:4812--




From fedemp@suidzer0.org Thu Aug 15 10:31:27 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17fLep-0003GU-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:31:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17fLej-0003FJ-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:31:26 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17fLea-0003DY-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:31:16 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7FERWN0030355
          ; Thu, 15 Aug 2002 16:27:52 +0200
Received: from 62.36.179.111
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Thu, 15 Aug 2002 16:28:02 +0200 (CEST)
Message-ID: <1052.62.36.179.111.1029421682.squirrel@webmail.suidzer0.org>
Date: Thu, 15 Aug 2002 16:28:02 +0200 (CEST)
Subject: Re: [thread.h] warning: unused parameter
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <mad@brasmap.com.br>
In-Reply-To: <Pine.LNX.4.40.0208151025360.4812-200000@cli004.brasmap>
References: <Pine.LNX.4.40.0208151025360.4812-200000@cli004.brasmap>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

> Hi,
>
> In thread.h header, at lines 1141 and 1453, there are 2 unused
> parameters.
>

   Ummm, these methods are virtual. What compiler issues that
warnings?

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






From dyfet@ostel.com Thu Aug 15 10:40:29 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17fLnZ-0005aR-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:40:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17fLnX-0005a3-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:40:28 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17fLnV-0005YQ-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:40:26 -0400
Received: from home.sys (IDENT:UJFDc3nsrUVXEIY/Iay9xa5bislr/XHu@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7FEqGo31273;
	Thu, 15 Aug 2002 10:52:16 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <mad@brasmap.com.br>
Subject: Re: [thread.h] warning: unused parameter
Date: Thu, 15 Aug 2002 10:52:16 -0400
User-Agent: KMail/1.4.1
Cc: <bug-commoncpp@gnu.org>
References: <Pine.LNX.4.40.0208151025360.4812-200000@cli004.brasmap> <1052.62.36.179.111.1029421682.squirrel@webmail.suidzer0.org>
In-Reply-To: <1052.62.36.179.111.1029421682.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208151052.16445.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I thought it was some compiler warning issue also, and it seemed harmless=
 to=20
take these changes in...

On Thursday 15 August 2002 10:28, Federico Montesino Pouzols wrote:
> > Hi,
> >
> > In thread.h header, at lines 1141 and 1453, there are 2 unused
> > parameters.
>
>    Ummm, these methods are virtual. What compiler issues that
> warnings?
>
> > by
> >
> > Marcelo Dalmas
> > BRASMAP Sistemas
> > www.brasmap.com.br
> > Fone/Fax: (48) 333-2218 ramal 2114
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From mad@brasmap.com.br Thu Aug 15 10:46:38 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17fLtW-00062a-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:46:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17fLtU-00062O-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:46:37 -0400
Received: from acate.com.br ([200.215.17.89])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17fLtT-00062J-00
	for bug-commoncpp@gnu.org; Thu, 15 Aug 2002 10:46:36 -0400
Received: (qmail 30456 invoked from network); 15 Aug 2002 14:46:32 -0000
Received: from unknown (HELO cli004.brasmap) (192.168.1.13)
  by acate.com.br with SMTP; 15 Aug 2002 14:46:26 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (8.11.1/8.11.1) with ESMTP id g7FEm8a08139;
	Thu, 15 Aug 2002 11:48:08 -0300
Date: Thu, 15 Aug 2002 11:48:07 -0300 (BRT)
From: Marcelo Dalmas <mad@brasmap.com.br>
X-X-Sender: mad@cli004.brasmap
To: Federico Montesino Pouzols <fedemp@suidzer0.org>
cc: bug-commoncpp@gnu.org
Subject: Re: [thread.h] warning: unused parameter
In-Reply-To: <1052.62.36.179.111.1029421682.squirrel@webmail.suidzer0.org>
Message-ID: <Pine.LNX.4.40.0208151143020.7809-100000@cli004.brasmap>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

[mad@cli004 src]$ uname -a
Linux cli004 2.4.19 #9 Ter Ago 6 16:54:50 BRT 2002 i586 unknown

[mad@cli004 src]$g++ -v
Reading specs from /usr/lib/gcc-lib/i386-conectiva-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release) (conectiva)

[snip]
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../intl  -I../src/controle -I../src/gui
-I../src/dispositivos -I../src/dados -I../src/sinal  -g -O2
-DLOCALEDIR="\"/usr/local/share/locale\"" -I/usr/local/include/fox
-DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1 -Wall -W
-Wmissing-prototypes -Woverloaded-virtual -Wformat
-I/usr/local/include/cc++2 -I/usr/local/include -D_GNU_SOURCE -c main.cpp
In file included from ../src/controle/controle.h:7,
                 from main.cpp:17:
/usr/local/include/cc++2/cc++/thread.h: In method `void
ost::Thread::notify(ost::Thread *)':
/usr/local/include/cc++2/cc++/thread.h:1141: warning: unused parameter
`class ost::Thread * th'
/usr/local/include/cc++2/cc++/thread.h: In method `void
ost::PosixThread::onSignal(int)':
/usr/local/include/cc++2/cc++/thread.h:1453: warning: unused parameter
`int signo'
[snip]

On Thu, 15 Aug 2002, Federico Montesino Pouzols wrote:

> > Hi,
> >
> > In thread.h header, at lines 1141 and 1453, there are 2 unused
> > parameters.
> >
>
>    Ummm, these methods are virtual. What compiler issues that
> warnings?
>
> > by
> >
> > Marcelo Dalmas
> > BRASMAP Sistemas
> > www.brasmap.com.br
> > Fone/Fax: (48) 333-2218 ramal 2114
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>

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






From fedemp@suidzer0.org Sat Aug 17 11:17:15 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17g5KE-0007hM-00
	for bug-commoncpp@gnu.org; Sat, 17 Aug 2002 11:17:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17g5KC-0007ey-00
	for bug-commoncpp@gnu.org; Sat, 17 Aug 2002 11:17:14 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17g5K2-0007LM-00
	for bug-commoncpp@gnu.org; Sat, 17 Aug 2002 11:17:06 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7HFDTN0014117
          ; Sat, 17 Aug 2002 17:13:41 +0200
Received: from 80.103.117.233
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Sat, 17 Aug 2002 17:13:47 +0200 (CEST)
Message-ID: <1516.80.103.117.233.1029597227.squirrel@webmail.suidzer0.org>
Date: Sat, 17 Aug 2002 17:13:47 +0200 (CEST)
Subject: Re: [cplusplus-bug 595510 ] timout = 0 in constructors
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <nkoch@users.sourceforge.net>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi,

   At first sight I think this is not a bug, it just seems to be the
default. Does this initialization to 0 lead to buggy or weird
behaviour in any circumstances? After construction, you can use
setTimeout.

   I think however, than an optional timeout parameter could be added
to the constructors of URLStream and TTYStream, the same way it is
currently defined for the TCPStream and UnixStream constructors.


>  Hello.
> I found "timeout = 0"
> in URLStream and TTYStream
> constructors.
> Shouldn't it be TIMEOUT_INF
> instead?





From fedemp@suidzer0.org Tue Aug 20 10:33:31 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hA4Z-0004SG-00
	for bug-commoncpp@gnu.org; Tue, 20 Aug 2002 10:33:31 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hA4T-0004Rt-00
	for bug-commoncpp@gnu.org; Tue, 20 Aug 2002 10:33:30 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17hA4F-0004RP-00
	for bug-commoncpp@gnu.org; Tue, 20 Aug 2002 10:33:14 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7KET6N0007456
          ; Tue, 20 Aug 2002 16:29:10 +0200
Received: from 80.103.113.238
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 20 Aug 2002 16:29:11 +0200 (CEST)
Message-ID: <1173.80.103.113.238.1029853751.squirrel@webmail.suidzer0.org>
Date: Tue, 20 Aug 2002 16:29:11 +0200 (CEST)
Subject: Re: fwd: commoncpp2-0.99.7 install failure on solaris 2.6
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <paullew@cisco.com>
In-Reply-To: <15713.61634.971109.886042@paullew-ultra.cisco.com>
References: <200208121354.07269.dyfet@ostel.com>
        <1477.80.103.119.39.1029186694.squirrel@webmail.suidzer0.org>
        <15713.61634.971109.886042@paullew-ultra.cisco.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   The warning about strstream has been fixed. Regarding the error with
sigwait, the autoconf test for sigwait (see ost_signal.m4) seems strong
enough. It is very weird that sigwait works for the configure test but
does not work for thread.cpp. Could you please confirm if the sigwait
call in your system has two parameters?

>>>>>> "Federico" == Federico Montesino Pouzols <fedemp@suidzer0.org>
>>>>>> writes:
>
>     Federico> Hi. Try this: edit configure and change the following
> Federico> two lines:
>
>     Federico> # if test $ost_cv_mutex_recursive == "none" ; then
>     Federico> and
>     Federico> # if test $ost_cv_thread_library == "lthread" ; then
>
>     Federico> to
>
>     Federico> # if test $ost_cv_mutex_recursive = "none" ; then
>     Federico> and
>     Federico> # if test $ost_cv_thread_library = "lthread" ; then
>
>     Federico> respectively, (replace `==' with `=').
>
>     Federico> It it works now, tell us so that this can be fixed for
> Federico> next releases.  If it does not work, tell us if you had
> Federico> already installed previous releases of cc++2 on the same
> Federico> configuration, so that we can have an idea of when the
> Federico> bug was introduced.
>
> There are different problems now because we have just upgraded to gcc
> 3.2.  Both 2-0.99.7 and 2-1.0rc2 failed.  Attached is the build log for
> 2.0.99.7 and 2-1.0rc2.
>
> 					-- Paul  08/20/02  12:30 AM --






From fedemp@suidzer0.org Wed Aug 21 13:11:44 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hZ1D-0005ev-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 13:11:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hZ18-0005eb-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 13:11:43 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17hZ17-0005eR-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 13:11:38 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7LH8FN0019298
          ; Wed, 21 Aug 2002 19:08:15 +0200
Received: from 62.36.188.243
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Wed, 21 Aug 2002 19:08:15 +0200 (CEST)
Message-ID: <1121.62.36.188.243.1029949695.squirrel@webmail.suidzer0.org>
Date: Wed, 21 Aug 2002 19:08:15 +0200 (CEST)
Subject: Re: [ cplusplus-bug 598137 ] gcc 3.X ftp.h
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <decis@essi.fr>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Yes, ftp.h and ftp.cpp used several symbols from std::
without specifying the namespace. The fixes are in the cvs at
savannah. I have tested them with gcc 3.0.4 and seem to work,
thanks.

>  Hi,
> With option:
> configure --with-ftp
>
> the include file ftp.h doesn't compile because set and
> string types not found.
> To avoid this, I think you must add
>
> using namespace std;
>
> With 3.X compiler version, std library is in a namespace.
>
>
> ------------------------------------------
> Christophe DECIS - ESSI
> http://d6zone.free.fr
> http://www.essi.fr
> FRANCE






From mad@brasmap.com.br Wed Aug 21 14:07:04 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hZsm-0006o4-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 14:07:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hZsk-0006nm-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 14:07:03 -0400
Received: from acate.com.br ([200.215.17.89])
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17hZsj-0006lX-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 14:07:01 -0400
Received: (qmail 8411 invoked from network); 21 Aug 2002 18:06:54 -0000
Received: from unknown (HELO cli004.brasmap) (192.168.1.13)
  by acate.com.br with SMTP; 21 Aug 2002 18:06:50 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (8.11.1/8.11.1) with ESMTP id g7LI8w412116
	for <bug-commoncpp@gnu.org>; Wed, 21 Aug 2002 15:08:59 -0300
Date: Wed, 21 Aug 2002 15:08:58 -0300 (BRT)
From: Marcelo Dalmas <mad@brasmap.com.br>
X-X-Sender: mad@cli004.brasmap
To: bug-commoncpp@gnu.org
Subject: ostcheck2.m4 and 1.0rc1
Message-ID: <Pine.LNX.4.40.0208211505090.12114-100000@cli004.brasmap>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi!

ccgnu-config --version returns 1.0rc1, but OST_CCXX_VERSION does not
recognize this...


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






From fedemp@suidzer0.org Wed Aug 21 15:46:04 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hbQa-0007IP-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 15:46:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hbQY-0007I6-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 15:46:03 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17hbQX-0007Hh-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 15:46:01 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7LJgeN0020948
          for <bug-commoncpp@gnu.org>; Wed, 21 Aug 2002 21:42:41 +0200
Received: from 62.36.188.243
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Wed, 21 Aug 2002 21:42:41 +0200 (CEST)
Message-ID: <1502.62.36.188.243.1029958961.squirrel@webmail.suidzer0.org>
Date: Wed, 21 Aug 2002 21:42:41 +0200 (CEST)
Subject: Re: ostcheck2.m4 and 1.0rc1
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
In-Reply-To: <Pine.LNX.4.40.0208211505090.12114-100000@cli004.brasmap>
References: <Pine.LNX.4.40.0208211505090.12114-100000@cli004.brasmap>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>
> Hi!
>
> ccgnu-config --version returns 1.0rc1, but OST_CCXX_VERSION does not
> recognize this...
>

   Yes, this problem has been fixed in 1.0rc2 :). Now it returns
1.0.0.

   Bye!

>
> Marcelo Dalmas
> BRASMAP Sistemas
> www.brasmap.com.br
> Fone/Fax: (48) 333-2218 ramal 2114
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp






From fedemp@suidzer0.org Wed Aug 21 15:50:33 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hbUv-0008JV-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 15:50:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hbUt-0008JI-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 15:50:32 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17hbUs-0008J4-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 15:50:30 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7LJl2N0021010
          ; Wed, 21 Aug 2002 21:47:07 +0200
Received: from 62.36.188.243
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Wed, 21 Aug 2002 21:47:07 +0200 (CEST)
Message-ID: <1503.62.36.188.243.1029959227.squirrel@webmail.suidzer0.org>
Date: Wed, 21 Aug 2002 21:47:07 +0200 (CEST)
Subject: Re: [ Patch #486 ] strstream -> sstream & ::send() -> tcp()->write()
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <nkoch@gmx.de>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi, I am trying your patch and it seems there
is a little problem with tcp()->write().

   If I incorporate your patch, the urlfetch demo
does not work. If I replace back the calls to
tcp()->write() with calls to ::send(), the demo
works again. Some simple tests I have done with
netcat show that the http protocol headers are not
being received at the server side. I suspect this is
a buffering problem with tcp()->write(). Do you have
any suggestion on how to solve this or have you tried
succesfully your patch?

   Bye!






From fedemp@suidzer0.org Wed Aug 21 16:25:32 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hc2m-000678-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 16:25:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hc2k-00066w-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 16:25:31 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17hc2j-00066e-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 16:25:30 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7LKLnN0021241
          ; Wed, 21 Aug 2002 22:21:50 +0200
Received: from 62.36.188.243
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Wed, 21 Aug 2002 22:21:50 +0200 (CEST)
Message-ID: <1539.62.36.188.243.1029961310.squirrel@webmail.suidzer0.org>
Date: Wed, 21 Aug 2002 22:21:50 +0200 (CEST)
Subject: Re: fwd: commoncpp2-0.99.7 install failure on solaris 2.6
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <paullew@cisco.com>
In-Reply-To: <15715.61226.343788.391945@paullew-ultra.cisco.com>
References: <200208121354.07269.dyfet@ostel.com>
        <1477.80.103.119.39.1029186694.squirrel@webmail.suidzer0.org>
        <15713.61634.971109.886042@paullew-ultra.cisco.com>
        <1173.80.103.113.238.1029853751.squirrel@webmail.suidzer0.org>
        <15715.61226.343788.391945@paullew-ultra.cisco.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <fedemp@suidzer0.org>, <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Aha! The diference between the autoconf test and thread.cpp is that
in the latter _POSIX_PTHREAD_SEMANTICS is not defined. If you want to
test now, try the following: go to include/cc+/thread.h and, before
#include <signal.h>, put this line

#define _POSIX_PTHREAD_SEMANTICS

   This will be fixed for the next release.


>>>>>> "Federico" == Federico Montesino Pouzols <fedemp@suidzer0.org>
>>>>>> writes:
>
>     Federico> The warning about strstream has been fixed. Regarding
> Federico> the error with sigwait, the autoconf test for sigwait
> Federico> (see ost_signal.m4) seems strong enough. It is very
>     Federico> weird that sigwait works for the configure test but does
> Federico> not work for thread.cpp. Could you please confirm if the
> Federico> sigwait call in your system has two parameters?
>
> This is cut from the /usr/include/signal.h:
>
> #if (_POSIX_C_SOURCE - 0 >= 199506L) ||
> #defined(_POSIX_PTHREAD_SEMANTICS)
> 	#ifdef __PRAGMA_REDEFINE_EXTNAME
> 		extern int sigwait(const sigset_t *, int *);
> 	#else
> 		static int
> 		sigwait(const sigset_t *__setp, int *__signo)
> 	#endif
> #else
> 	extern int sigwait(sigset_t *);
> #endif
>
> 					-- Paul  08/21/02  12:38 PM --






From fedemp@suidzer0.org Wed Aug 21 17:26:14 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17hczW-0001XO-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 17:26:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17hczT-0001X1-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 17:26:13 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17hczS-0001WY-00
	for bug-commoncpp@gnu.org; Wed, 21 Aug 2002 17:26:11 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7LLMoN0022104
          ; Wed, 21 Aug 2002 23:22:50 +0200
Received: from 62.36.188.243
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Wed, 21 Aug 2002 23:22:50 +0200 (CEST)
Message-ID: <1579.62.36.188.243.1029964970.squirrel@webmail.suidzer0.org>
Date: Wed, 21 Aug 2002 23:22:50 +0200 (CEST)
Subject: RE: [ Patch #486 ] strstream -> sstream & ::send() -> tcp()->write()
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <NKoch@gmx.de>
In-Reply-To: <000801c24957$d28d1940$fe78a8c0@k62300>
References: <1503.62.36.188.243.1029959227.squirrel@webmail.suidzer0.org>
        <000801c24957$d28d1940$fe78a8c0@k62300>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Ok, I will incorporate everything bug the tcp()->write() calls.

>> -----Original Message-----
>> From: Federico Montesino Pouzols [mailto:fedemp@suidzer0.org]
>> Sent: Wednesday, August 21, 2002 9:47 PM
>> To: nkoch@gmx.de
>> Cc: bug-commoncpp@gnu.org
>> Subject: Re: [ Patch #486 ] strstream -> sstream & ::send() ->
>> tcp()->write()
>>

>
> Hello,
> to be honest: I didn't try this as I did not
> expect any problem from tcp() - sorry :(
> From the documentation I thought that any
> i/o to or from tcp() should be directed to
> so - the member inherited from class Socket.
> So may be I should have investigated some
> more time looking into the sources.
> But wait, I remember that some time ago I had problems
> using tcp() in one of my own classes derived
> from TCPStream. I can't tell what was the problem.
> I just changed my class to be inherited from
> tcpstream instead of TCPStream and it worked.
> May be that tcpstreams are more standard iostreams?
> So - for now - I suggest to apply only the
> patcheses needed to remove <strstream>.
> Perhaps the original author could help with
> this problem?
>
> Best regards,
>
> Norbert






From danielb@obfuscation.dyndns.org Sun Aug 25 01:56:25 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17iqNt-0003MW-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 01:56:25 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17iqNr-0003Kc-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 01:56:24 -0400
Received: from fe7.rdc-kc.rr.com ([24.94.162.160] helo=mail7.wi.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17iqNq-0003KX-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 01:56:22 -0400
Received: from obfuscation.dyndns.org ([24.167.202.50]) by mail7.wi.rr.com  with Microsoft SMTPSVC(5.5.1877.537.53);
	 Sun, 25 Aug 2002 00:52:24 -0500
Received: from danielb by obfuscation.dyndns.org with local (Exim 3.35 #1 (Debian))
	id 17iqNp-0005wz-00
	for <bug-commoncpp@gnu.org>; Sun, 25 Aug 2002 00:56:21 -0500
Date: Sun, 25 Aug 2002 00:56:20 -0500
From: Daniel E Baumann <baumannd@msoe.edu>
To: bug-commoncpp@gnu.org
Subject: Small fix for ftp.h.
Message-ID: <20020825055620.GA22865@obfuscation.dyndns.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/"
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here's a small patch to fix ftp.h as it doesn't specify it is using
namespace std.

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

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ftp.h.diff"

Index: include/cc++/ftp.h
===================================================================
RCS file: /cvsroot/commoncpp/commoncpp2/include/cc++/ftp.h,v
retrieving revision 1.3
diff -u -3 -p -r1.3 ftp.h
--- include/cc++/ftp.h	21 Aug 2002 17:10:25 -0000	1.3
+++ include/cc++/ftp.h	25 Aug 2002 05:17:07 -0000
@@ -31,6 +31,8 @@
 #include <utility>
 
 #ifdef	CCXX_NAMESPACES
+using namespace std;
+
 namespace ost {
 using std::string;
 using std::set;

--TB36FDmn/VVEgNH/--



From danielb@obfuscation.dyndns.org Sun Aug 25 02:03:04 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17iqUK-0003y8-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 02:03:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17iqUB-0003xG-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 02:03:03 -0400
Received: from fe2.rdc-kc.rr.com ([24.94.163.49] helo=mail2.wi.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17iqUA-0003xA-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 02:02:54 -0400
Received: from obfuscation.dyndns.org ([24.167.202.50]) by mail2.wi.rr.com  with Microsoft SMTPSVC(5.5.1877.537.53);
	 Sun, 25 Aug 2002 00:57:22 -0500
Received: from danielb by obfuscation.dyndns.org with local (Exim 3.35 #1 (Debian))
	id 17iqU7-0005xb-00
	for <bug-commoncpp@gnu.org>; Sun, 25 Aug 2002 01:02:51 -0500
Date: Sun, 25 Aug 2002 01:02:51 -0500
From: Daniel E Baumann <baumannd@msoe.edu>
To: bug-commoncpp@gnu.org
Subject: Thread Safe Iostreams Patch
Message-ID: <20020825060250.GB22865@obfuscation.dyndns.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="oC1+HKm2/end4ao3"
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

--oC1+HKm2/end4ao3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello all. I have been hacking away at thread-safe iostreams and am
including a patch containing that work. At first I attempted to do
recursive locking but ran into some nice deadlock problems :(. So I
opted to lock the stream and buffer on operator<< calls and release at
the end of these calls. This does not give as nice output as I would
like and threads can get preempted between operator<< calls. Also,
there's a bunch of stuff that needs finishing. So baically this is
just a preliminary thing for you to look at, comment on, etc. If
anyone has a nice strategy on how to d recursive locking I am all
ears, else I will just have to give it more thought and figure
something out for myself.

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

--oC1+HKm2/end4ao3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="piostreams.diff"

diff -urN tmp/commoncpp2/include/cc++/Makefile.am src/cvs/commoncpp2/include/cc++/Makefile.am
--- tmp/commoncpp2/include/cc++/Makefile.am	2002-06-27 14:39:00.000000000 -0500
+++ src/cvs/commoncpp2/include/cc++/Makefile.am	2002-07-01 00:33:54.000000000 -0500
@@ -22,12 +22,14 @@
 ccxxinclude_HEADERS = \
 	cmdoptns.h common.h config.h digest.h exception.h export.h file.h \
 	ftp.h groups.h misc.h numbers.h persist.h serial.h slog.h \
-	socket.h strchar.h thread.h unix.h url.h xml.h process.h ftp.h
+	socket.h strchar.h thread.h unix.h url.h xml.h process.h \
+	postream postream.tcc pistream piostream pios piosfwd
 
 kdoc_headers = \
 	cmdoptns.h common.h config.h digest.h exception.h export.h file.h \
 	ftp.h groups.h misc.h numbers.h persist.h serial.h slog.h \
-	socket.h strchar.h thread.h unix.h url.h xml.h process.h
+	socket.h strchar.h thread.h unix.h url.h xml.h process.h \
+	postream postream.tcc pistream piostream pios piosfwd
 
 kdoc:	
 	kdoc -f html -d $(KDOC_DIR) -L $(KDOC_DIR) -n CommonC++ $(kdoc_headers) --cppcmd ../../doc/kdoc_cpp --cpp -I ../../doc
diff -urN tmp/commoncpp2/include/cc++/pfstream src/cvs/commoncpp2/include/cc++/pfstream
--- tmp/commoncpp2/include/cc++/pfstream	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/pfstream	2002-08-10 11:28:30.000000000 -0500
@@ -0,0 +1,74 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_BASIC_PFSTREAM
+#define	CCXX_BASIC_PFSTREAM
+
+#ifndef CCXX_CONFIG_H_
+#include <cc++/config.h>
+#endif
+
+// put headers here
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+  template <typename charT, typename Traits>
+    class basic_pfilebuf: public basic_filebuf<charT, Traits>
+    {
+
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+
+//#include <cc++/postream.tcc>
+
+#endif /* CCXX_BASIC_PFSTREAM */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/piomanip src/cvs/commoncpp2/include/cc++/piomanip
--- tmp/commoncpp2/include/cc++/piomanip	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/piomanip	2002-08-13 20:09:10.000000000 -0500
@@ -0,0 +1,68 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_PIOMANIP
+#define	CCXX_PIOMANIP 1
+
+#ifndef CCXX_CONFIG_H_
+#include <cc++/config.h>
+#endif
+
+#include <cc++/pistream>
+#include <functional>
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+
+#endif /* CCXX_PIOMANIP */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/pios src/cvs/commoncpp2/include/cc++/pios
--- tmp/commoncpp2/include/cc++/pios	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/pios	2002-08-11 23:26:52.000000000 -0500
@@ -0,0 +1,101 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+// Copyright (C) 2002 Open Source Telecom Corporation.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_PIOS
+#define	CCXX_PIOS 1
+
+#include <cc++/piosfwd>
+#include <exception> 		// For ios_base::failure
+#include <bits/char_traits.h> 	// For char_traits, streamoff, streamsize, fpos
+#include <cstdio> 	// For SEEK_SET, SEEK_CUR, SEEK_END
+#include <bits/localefwd.h>	// For class locale
+#include <bits/ios_base.h>	// For ios_base declarations.
+//#include <cc++/pstreambuf> 
+#include <streambuf>
+#include <bits/basic_ios.h>  
+#include <cc++/pios_init.h>
+
+#endif /* CCXX_PIOS */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/pios_init.h src/cvs/commoncpp2/include/cc++/pios_init.h
--- tmp/commoncpp2/include/cc++/pios_init.h	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/pios_init.h	2002-08-10 13:14:55.000000000 -0500
@@ -0,0 +1,87 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_PIOS_INIT_H
+#define	CCXX_PIOS_INIT_H
+
+#ifndef CCXX_CONFIG_H_
+#include <cc++/config.h>
+#endif
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+  // Class Init
+  // Used to initialize standard streams. In theory, g++ could use
+  // -finit-priority to order this stuff correctly without going
+  // through these machinations. 
+  class Init 
+  {
+    // friend class ios_base;
+  public:
+    Init();
+    ~Init();
+      
+    static void
+    pios_create(bool syncf);
+      
+    static void
+    pios_destroy();
+
+  private:
+    static int 	pios_init;
+    static bool	synced_with_stdio;
+  };
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+
+#endif /* CCXX_PIOS_INIT_H
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/piosfwd src/cvs/commoncpp2/include/cc++/piosfwd
--- tmp/commoncpp2/include/cc++/piosfwd	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/piosfwd	2002-08-11 22:25:06.000000000 -0500
@@ -0,0 +1,144 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_PIOSFWD
+#define	CCXX_PIOSFWD
+
+#ifdef	CCXX_NAMESPACES
+
+using namespace std;
+
+namespace ost 
+{
+#endif
+  
+  //template<typename charT, typename Traits = char_traits<charT> >
+  //class basic_pstreambuf;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_pistream;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_postream;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_piostream;
+  /*
+  template<typename charT, typename Traits = char_traits<charT>,
+	    typename _Alloc = allocator<charT> >
+    class basic_stringbuf;
+
+  template<typename charT, typename Traits = char_traits<charT>,
+	   typename _Alloc = allocator<charT> >
+    class basic_istringstream;
+
+  template<typename charT, typename Traits = char_traits<charT>,
+	   typename _Alloc = allocator<charT> >
+    class basic_ostringstream;
+
+  template<typename charT, typename Traits = char_traits<charT>,
+	   typename _Alloc = allocator<charT> >
+    class basic_stringstream;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_filebuf;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_ifstream;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_ofstream;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class basic_fstream;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class istreambuf_iterator;
+
+  template<typename charT, typename Traits = char_traits<charT> >
+    class ostreambuf_iterator;
+  */
+
+/*
+#ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
+  // Not included.   (??? Apparently no LWG number?)
+  class ios_base; 
+#endif
+*/
+
+  //typedef basic_ios<char> 		ios;
+  //typedef basic_pstreambuf<char> 	pstreambuf;
+  typedef basic_pistream<char> 		pistream;
+  typedef basic_postream<char> 		postream;
+  typedef basic_piostream<char> 	piostream;
+  //typedef basic_stringbuf<char> 	stringbuf;
+  //typedef basic_istringstream<char> 	istringstream;
+  //typedef basic_ostringstream<char> 	ostringstream;
+  //typedef basic_stringstream<char> 	stringstream;
+  //typedef basic_filebuf<char> 		filebuf;
+  //typedef basic_ifstream<char> 		ifstream;
+  //typedef basic_ofstream<char> 		ofstream;
+  //typedef basic_fstream<char> 		fstream;
+
+  //typedef basic_ios<wchar_t> 		wios;
+  //typedef basic_pstreambuf<wchar_t> 	wpstreambuf;
+  typedef basic_pistream<wchar_t> 	wpistream;
+  typedef basic_postream<wchar_t> 	wpostream;
+  typedef basic_piostream<wchar_t> 	wpiostream;
+  //typedef basic_stringbuf<wchar_t> 	wstringbuf;
+  //typedef basic_istringstream<wchar_t> 	wistringstream;
+  //typedef basic_ostringstream<wchar_t> 	wostringstream;
+  //typedef basic_stringstream<wchar_t> 	wstringstream;
+  //typedef basic_filebuf<wchar_t> 	wfilebuf;
+  //typedef basic_ifstream<wchar_t> 	wifstream;
+  //typedef basic_ofstream<wchar_t> 	wofstream;
+  //typedef basic_fstream<wchar_t> 	wfstream;
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+
+#endif /* CCXX_PIOSFWD */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/piostream src/cvs/commoncpp2/include/cc++/piostream
--- tmp/commoncpp2/include/cc++/piostream	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/piostream	2002-08-10 14:32:57.000000000 -0500
@@ -0,0 +1,78 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_PIOSTREAM
+#define	CCXX_PIOSTREAM
+
+#include <cc++/postream>
+#include <cc++/pistream>
+
+#ifdef	CCXX_NAMESPACES
+namespace ost 
+{
+#endif
+
+  extern pistream pin;
+  extern postream pout;
+  extern postream perr;
+  extern postream plog;
+  /*
+#ifdef _GLIBCPP_USE_WCHAR_T
+  extern wpistream wpin;
+  extern wpostream wpout;
+  extern wpostream wperr;
+  extern wpostream wplog;
+#endif
+  */
+
+  // For construction of filebuffers for pout, pin, perr, clog et. al.
+  static ost::Init pioinit;
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif 
+
+#endif /* CCXX_PIOSTREAM */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/pistream src/cvs/commoncpp2/include/cc++/pistream
--- tmp/commoncpp2/include/cc++/pistream	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/pistream	2002-08-10 13:41:58.000000000 -0500
@@ -0,0 +1,304 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_BASIC_PISTREAM
+#define	CCXX_BASIC_PISTREAM
+
+#ifndef CCXX_CONFIG_H_
+#include <cc++/config.h>
+#endif
+
+#include <cc++/thread.h>
+#include <cc++/pios>
+#include <limits>
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+    // Template class basic_pistream
+  template<typename charT, typename Traits>
+    class basic_pistream : public basic_istream<charT, Traits>
+    {
+    public:
+      // Types
+      typedef charT                     		char_type;
+      typedef typename Traits::int_type 		int_type;
+      typedef typename Traits::pos_type 		pos_type;
+      typedef typename Traits::off_type 		off_type;
+      typedef Traits                    		traits_type;
+      
+      // Non-standard Types:
+      typedef basic_streambuf<charT, Traits> 	   streambuf_type;
+      typedef basic_ios<charT, Traits>		   ios_type;
+      typedef basic_istream<charT, Traits>	   istream_type;
+      typedef basic_pistream<charT, Traits>        pistream_type;   
+      typedef istreambuf_iterator<charT, Traits>   istreambuf_iter;
+      typedef num_get<charT, istreambuf_iter>      numget_type;
+      typedef ctype<charT>                         ctype_type;
+
+    public:
+      explicit 
+      basic_pistream(streambuf_type* sb)
+	: basic_istream<charT, Traits>(sb) { }
+
+      virtual 
+      ~basic_pistream()
+      { }
+
+      // Prefix/suffix:
+      class psentry;
+      friend class psentry;
+
+      // Formatted input:
+      // basic_pistream::operator>>
+      pistream_type&
+      operator>>(pistream_type& (*pf)(pistream_type&));
+
+      pistream_type&
+      operator>>(istream_type& (*pf)(istream_type&));
+
+      pistream_type&
+      operator>>(ios_type& (*pf)(ios_type&));
+
+      pistream_type&
+      operator>>(ios_base& (*pf)(ios_base&));
+
+      // Arithmetic Extractors
+      pistream_type& 
+      operator>>(bool& n);
+      
+      pistream_type& 
+      operator>>(short& n);
+      
+      pistream_type& 
+      operator>>(unsigned short& n);
+
+      pistream_type& 
+      operator>>(int& n);
+      
+      pistream_type& 
+      operator>>(unsigned int& n);
+
+      pistream_type& 
+      operator>>(long& n);
+      
+      pistream_type& 
+      operator>>(unsigned long& n);
+
+      //#ifdef _GLIBCPP_USE_LONG_LONG
+      pistream_type& 
+      operator>>(long long& n);
+
+      pistream_type& 
+      operator>>(unsigned long long& n);
+      //#endif
+
+      pistream_type& 
+      operator>>(float& f);
+
+      pistream_type& 
+      operator>>(double& f);
+
+      pistream_type& 
+      operator>>(long double& f);
+
+      pistream_type& 
+      operator>>(void*& p);
+
+      pistream_type& 
+      operator>>(streambuf_type* sb);
+
+      // Unformatted input:
+      inline streamsize 
+      gcount(void) const 
+      { istream_type::gcount(); }
+      
+      int_type 
+      get(void);
+
+      pistream_type& 
+      get(char_type& c);
+
+      istream_type& 
+      get(char_type* s, streamsize n, char_type delim);
+
+      inline pistream_type& 
+      get(char_type* s, streamsize n)
+      { istream_type::get(s, n);  }
+
+      pistream_type&
+      get(streambuf_type& sb, char_type delim);
+
+      inline pistream_type&
+      get(streambuf_type& sb)
+      { istream_type::get(sb); }
+
+      pistream_type& 
+      getline(char_type* s, streamsize n, char_type delim);
+
+      inline pistream_type& 
+      getline(char_type* s, streamsize n)
+      { istream_type::getline(s, n); }
+
+      pistream_type& 
+      ignore(streamsize n = 1, int_type delim = traits_type::eof());
+      
+      int_type 
+      peek(void);
+      
+      istream_type& 
+      read(char_type* s, streamsize n);
+
+      streamsize 
+      readsome(char_type* s, streamsize n);
+      
+      pistream_type& 
+      putback(char_type c);
+
+      pistream_type& 
+      unget(void);
+
+      int 
+      sync(void);
+
+      pos_type 
+      tellg(void);
+
+      pistream_type& 
+      seekg(pos_type);
+
+      pistream_type& 
+      seekg(off_type, ios_base::seekdir);
+    };
+
+  template<typename charT, typename Traits>
+    class basic_pistream<charT, Traits>::psentry
+    {
+    public:
+      typedef Traits 					traits_type;
+      typedef basic_streambuf<charT, Traits> 		streambuf_type;
+      typedef basic_pistream<charT, Traits> 		pistream_type;
+      typedef typename istream_type::ctype_type 	ctype_type;
+      typedef typename Traits::int_type		        int_type;
+
+      explicit 
+      psentry(basic_pistream<charT, Traits>& pis, bool noskipws = false);
+
+      ~psentry()
+      { }
+
+      operator bool() 
+      { return ok; }
+
+    private:
+      bool ok;
+    };
+
+  // Character extraction templates
+  template<typename charT, typename Traits>
+    basic_pistream<charT, Traits>&
+    operator>>(basic_pistream<charT, Traits>& pin, charT& c);
+
+  template<class Traits>
+    basic_pistream<char, Traits>&
+    operator>>(basic_pistream<char, Traits>& pin, unsigned char& c)
+    { return (pin >> reinterpret_cast<char&>(c)); }
+
+  template<class Traits>
+    basic_pistream<char, Traits>&
+    operator>>(basic_pistream<char, Traits>& pin, signed char& c)
+    { return (pin >> reinterpret_cast<char&>(c)); }
+
+  template<typename charT, typename Traits>
+    basic_pistream<charT, Traits>&
+    operator>>(basic_pistream<charT, Traits>& pin, charT* s);
+  
+  template<class Traits>
+    basic_pistream<char,Traits>&
+    operator>>(basic_pistream<char,Traits>& pin, unsigned char* s)
+    { return (pin >> reinterpret_cast<char*>(s)); }
+
+  template<class Traits>
+    basic_pistream<char,Traits>&
+    operator>>(basic_pistream<char,Traits>& pin, signed char* s)
+    { return (pin >> reinterpret_cast<char*>(s)); }
+
+  // Template class basic_piostream
+  template<typename charT, typename Traits>
+    class basic_piostream
+    : public basic_pistream<charT, Traits>, 
+      public basic_postream<charT, Traits>
+    {
+    public:
+      // Non-standard Types:
+      typedef basic_pistream<charT, Traits>		pistream_type;
+      typedef basic_postream<charT, Traits>		postream_type;
+
+      explicit 
+      basic_piostream(basic_streambuf<charT, Traits>* sb)
+      : istream_type(sb), ostream_type(sb)
+      { }
+
+      virtual 
+      ~basic_piostream() { }
+    };
+
+  // Standard basic_pistream manipulators
+  template<typename charT, typename Traits>
+    basic_pistream<charT, Traits>& 
+    ws(basic_pistream<charT, Traits>& is);
+
+#ifdef	CCXX_NAMESPACES
+}
+#endif
+
+#include <cc++/pistream.tcc>
+
+#endif /* CCXX_BASIC_PISTREAM */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/pistream.tcc src/cvs/commoncpp2/include/cc++/pistream.tcc
--- tmp/commoncpp2/include/cc++/pistream.tcc	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/pistream.tcc	2002-07-02 21:54:36.000000000 -0500
@@ -0,0 +1,59 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#include <locale>
+#include <cc++/postream> // For flush()
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/postream src/cvs/commoncpp2/include/cc++/postream
--- tmp/commoncpp2/include/cc++/postream	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/postream	2002-08-24 21:03:41.000000000 -0500
@@ -0,0 +1,408 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#ifndef	CCXX_BASIC_POSTREAM
+#define	CCXX_BASIC_POSTREAM
+
+#ifndef CCXX_CONFIG_H_
+#include <cc++/config.h>
+#endif
+
+#include <fstream>
+#include <cc++/pios>
+#include <ostream>
+#include <cc++/thread.h>
+#include <unistd.h>
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+  template <typename charT, typename Traits>
+    class basic_postream: public basic_ostream<charT, Traits>
+    {
+    public:
+
+      // Types
+      typedef charT                     		char_type;
+      typedef typename Traits::int_type 		int_type;
+      typedef typename Traits::pos_type 		pos_type;
+      typedef typename Traits::off_type 		off_type;
+      typedef Traits                    		traits_type;
+    
+      // Non-standard Types:
+      typedef basic_streambuf<charT, Traits> 	  streambuf_type;
+      //typedef basic_pstreambuf<charT, Traits> 	  pstreambuf_type;
+      typedef basic_ios<charT, Traits>		  ios_type;
+      typedef basic_ostream<charT, Traits>	  ostream_type;
+      typedef basic_postream<charT, Traits>	  postream_type;
+      typedef ostreambuf_iterator<charT, Traits>    ostreambuf_iter;
+      typedef num_put<charT, ostreambuf_iter>       numput_type;
+      typedef ctype<charT>           		  ctype_type;
+
+      // Constructor/destructor:
+      explicit 
+      basic_postream(streambuf_type* sb)
+	: ostream_type(sb), currth(NULL), pid(0), tid(0), lockcnt(0),
+	  owned(false), header(false)
+      { }
+
+      virtual 
+      ~basic_postream() { }
+
+      class psentry;
+      friend class psentry;
+
+      // Formatted output:
+      // basic_postream::operator<<
+      postream_type&
+      operator<<(postream_type& (*pf)(postream_type&));
+
+      //postream_type&
+      //operator<<(ostream_type& (*pf)(ostream_type&));
+
+      postream_type&
+      operator<<(ios_type& (*pf)(ios_type&));
+      
+      postream_type&
+      operator<<(ios_base& (*pf)(ios_base&));
+
+      // Arithmetic Inserters
+      postream_type& 
+      operator<<(long n);
+      
+      postream_type& 
+      operator<<(unsigned long n);
+ 
+      postream_type& 
+      operator<<(bool n);
+
+      postream_type& 
+      operator<<(short n)
+      { 
+	ios_base::fmtflags fmt = this->flags() & ios_base::basefield;
+	if (fmt & ios_base::oct || fmt & ios_base::hex)
+	  return this->operator<<(static_cast<unsigned long>
+				  (static_cast<unsigned short>(n)));
+	else
+	  return this->operator<<(static_cast<long>(n));
+      }
+
+      postream_type& 
+      operator<<(unsigned short n)
+      { return this->operator<<(static_cast<unsigned long>(n)); }
+
+      postream_type& 
+      operator<<(int n)
+      { 
+	ios_base::fmtflags fmt = this->flags() & ios_base::basefield;
+	if (fmt & ios_base::oct || fmt & ios_base::hex)
+	  return this->operator<<(static_cast<unsigned long>
+				  (static_cast<unsigned int>(n)));
+	else
+	  return this->operator<<(static_cast<long>(n));
+      }
+
+      postream_type& 
+      operator<<(unsigned int n)
+      { return this->operator<<(static_cast<unsigned long>(n)); }
+
+      //#ifdef _GLIBCPP_USE_LONG_LONG
+      postream_type& 
+      operator<<(long long n);
+
+      postream_type& 
+      operator<<(unsigned long long n);
+      //#endif
+
+      postream_type& 
+      operator<<(double f);
+
+      postream_type& 
+      operator<<(float f)
+      { return this->operator<<(static_cast<double>(f)); }
+
+      postream_type& 
+      operator<<(long double f);
+
+      postream_type& 
+      operator<<(const void* p);
+
+      postream_type& 
+      operator<<(streambuf_type* sb);
+
+      // Unformatted output:
+      postream_type& 
+      put(char_type c);
+
+      postream_type& 
+      write(const char_type* s, streamsize n);
+
+      postream_type& 
+      flush();
+
+      // Seeks:
+      pos_type 
+      tellp();
+
+      postream_type& 
+      seekp(pos_type);
+
+      postream_type& 
+      seekp(off_type, ios_base::seekdir);
+
+      // std::ios_base methods
+
+      // Format flags state
+      inline ios_base::fmtflags
+      flags() const
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::flags();
+      }
+
+      inline ios_base::fmtflags 
+      flags(ios_base::fmtflags fmtfl)
+      { 
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::flags(fmtfl);
+      }
+
+      inline ios_base::fmtflags 
+      setf(ios_base::fmtflags fmtfl)
+      { 
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::setf(fmtfl);
+      }
+
+      inline ios_base::fmtflags 
+      setf(ios_base::fmtflags fmtfl, ios_base::fmtflags mask)
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::setf(fmtfl, mask);
+      }
+
+      inline void 
+      unsetf(ios_base::fmtflags mask) 
+      { 
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::unsetf(mask);
+      }
+
+      inline streamsize 
+      precision() const 
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::precision();
+      }
+
+      inline streamsize 
+      precision(streamsize prec)
+      { 
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::precision(prec);
+      }
+
+      inline streamsize 
+      width() const 
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::width();
+      }
+
+      inline streamsize 
+      width(streamsize wide)
+      { 
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::width(wide);
+      }
+
+      static bool 
+      sync_with_stdio(bool sync = true);
+
+      // Locales:
+      locale 
+      imbue(const locale& loc);
+
+      inline locale 
+      getloc() const 
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::getloc();
+      }
+
+      // Storage:
+      static int 
+      xalloc() throw();
+
+      inline long& 
+      iword(int ix)
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::iword(ix);
+      }
+
+      inline void*& 
+      pword(int ix)
+      {
+	MutexLock mlock(lock);
+	basic_ostream<charT, Traits>::pword(ix);
+      }
+
+      Thread* currth;
+      int pid;
+      int tid;
+      unsigned int lockcnt;
+      bool owned;
+      bool header;
+
+      void lockStream();
+      void unlockStream();
+      void outputHeader();
+    protected:
+      mutable Mutex lock;
+      mutable Mutex lockbuf;
+      //mutable Mutex mtx;
+    };
+
+  // Class basic_postream::psentry
+  template <typename charT, typename Traits>
+    class basic_postream<charT, Traits>::psentry
+    {
+      // Data Members:
+      bool 				ok;
+      postream_type&                    pos;
+      typename ostream_type::sentry*    msentry;      
+                  
+    public:
+      explicit
+      psentry(basic_postream<charT,Traits>& os);
+
+      ~psentry()
+      {
+	pos.lockbuf.leaveMutex(); // unlock the buffer
+	pos.lock.leaveMutex();    // unlock the stream
+      }
+
+      operator bool() 
+      { return ok; }
+    };
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out, charT c);
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out, char c)
+    { return (out << out.widen(c)); }
+
+  // Specialization
+  template <class Traits> 
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, char c);
+
+  // Signed and unsigned
+  template<class Traits>
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, signed char c)
+    { return (out << static_cast<char>(c)); }
+  
+  template<class Traits>
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, unsigned char c)
+    { return (out << static_cast<char>(c)); }
+  
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out, const charT* s);
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits> &
+    operator<<(basic_postream<charT, Traits>& out, const char* s);
+
+  // Partial specializationss
+  template<class Traits>
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, const char* s);
+ 
+  // Signed and unsigned
+  template<class Traits>
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, const signed char* s)
+    { return (out << reinterpret_cast<const char*>(s)); }
+
+  template<class Traits>
+    basic_postream<char, Traits> &
+    operator<<(basic_postream<char, Traits>& out, const unsigned char* s)
+    { return (out << reinterpret_cast<const char*>(s)); }
+
+  // Standard basic_postream manipulators
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    endl(basic_postream<charT, Traits>& os)
+    { return flush(os.put(os.widen('\n'))); }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    ends(basic_postream<charT, Traits>& os)
+    { return os.put(charT()); }
+  
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    flush(basic_postream<charT, Traits>& os)
+    { return os.flush(); }
+
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+
+#include <cc++/postream.tcc>
+
+#endif /* CCXX_BASIC_POSTREAM */
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/postream.tcc src/cvs/commoncpp2/include/cc++/postream.tcc
--- tmp/commoncpp2/include/cc++/postream.tcc	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/include/cc++/postream.tcc	2002-08-24 20:28:46.000000000 -0500
@@ -0,0 +1,504 @@
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#include <locale>
+#include <stdlib.h>
+#include <cstdlib>
+#include <unistd.h>
+
+#include <string>
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>::psentry::
+    psentry(basic_postream<charT,Traits>& os)
+      : pos(os)
+    {
+      pos.lock.enterMutex();    // lock the stream
+      pos.lockbuf.enterMutex(); // lock the buffer
+      //pos.lockStream();
+      msentry = new typename postream_type::sentry(os);
+      if(msentry)
+	ok = true;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::
+    operator<<(postream_type& (*pf)(postream_type&))
+    {
+      typedef basic_postream<charT, Traits> postream_type;
+
+      try
+	{
+	  // Create a psentry object (may set error bits or throw failure)
+	  typename postream_type::psentry opfx(*this);
+
+	  if(opfx)
+	    { pf(*this); }
+	}
+      catch(...)
+	{
+	  bool flag = false;
+	  try
+	    {
+	      this->setstate(std::ios_base::failbit);
+	    }
+	  catch(std::ios_base::failure)
+	    {
+	      flag = true;
+	    }
+	  if(flag)
+	    throw;
+	}
+	  
+      return *this;
+    }
+  /*
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::
+    operator<<(ostream_type& (*pf)(ostream_type&))
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(pf);
+      
+      return *this;
+    }
+  */
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::
+    operator<<(ios_type& (*pf)(ios_type&))
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(pf);
+
+      return this;
+    }
+  
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::
+    operator<<(ios_base& (*pf)(ios_base&))
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(pf);
+
+      return *this;
+    }
+  
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(streambuf_type* sbin)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(sbin);
+
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(bool n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+      
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(long n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(unsigned long n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+
+      return *this;
+    }
+
+  // TODO: #ifdef USE_LONG_LONG
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(long long n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+      
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(unsigned long long n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+
+      return *this;
+    }
+  //#endif
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(double n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+      
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(long double n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+      
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>& 
+    basic_postream<charT, Traits>::operator<<(const void* n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::operator<<(n);
+      
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    basic_postream<charT, Traits>::put(char_type c)
+    { 
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::put(c);
+
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    basic_postream<charT, Traits>::write(const charT* s, streamsize n)
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+      
+      ostream_type::write(s, n);
+
+      retrn *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    basic_postream<charT, Traits>::flush()
+    {
+      // Create a psentry object (may set error bits or throw failure)
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(*this);
+
+      ostream_type::flush();
+
+      //this->unlockStream();
+    }
+
+
+  template<typename charT, typename Traits>
+    typename basic_postream<charT, Traits>::pos_type
+    basic_postream<charT, Traits>::tellp()
+    {
+      // TODO: make this operation thread-safe?
+      ostream_type::tellp();
+      
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    basic_postream<charT, Traits>::seekp(pos_type pos)
+    {
+      // TODO: make this operation thread-safe?
+      ostream_type::seekp(pos);
+
+      return this;
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    basic_postream<charT, Traits>::
+    seekp(off_type off, ios_base::seekdir d)
+    {
+      // TODO: make this operation thread-safe?
+      ostream_type::seekp(d);
+
+      return *this;
+    }
+
+  template<typename charT, typename Traits>
+    void
+    basic_postream<charT, Traits>::lockStream()
+    {
+      if(!owned)
+	{
+	  currth = ost::getThread();
+	  owned = true;
+	  pid = getpid();
+	  tid = currth->getThreadID();
+	  if(!header)
+	    {
+	      outputHeader();
+	      header = true;
+	    }
+	}
+      lock.enterMutex();
+      lockcnt++;
+    }
+
+  template<typename charT, typename Traits>
+    void
+    basic_postream<charT, Traits>::unlockStream()
+    {
+      mtx.enterMutex();
+      if(owned)
+	{
+	  currth = NULL;
+	  owned = false;
+	  pid = 0;
+	  tid = 0;
+	  header = false;
+	}
+      while(lockcnt != 0)
+	{
+	  lock.leaveMutex();
+	  lockcnt--;
+	}
+      mtx.leaveMutex();
+      printf("fully unlocked\n");
+    }
+
+  template<typename charT, typename Traits>
+    void
+    basic_postream<charT, Traits>::outputHeader()
+    {
+      *this << "PID: " << pid << ", TID: " << tid << "> ";
+    }
+
+  // Character inserters.
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out, charT c)
+    { 
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(out);
+
+      std::operator<<(out, c);
+
+      return out;
+      //~psentry
+    }
+
+  // Specializations
+  template<typename Traits>
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, char c)
+    {
+      typedef basic_postream<char, Traits> postream_type;
+      typename postream_type::psentry opfx(out);
+      
+      std::operator<<(out, c);      
+
+      return out;
+      //~psentry
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out, const charT* s)
+    {
+      typedef basic_postream<char, Traits> postream_type;
+      typename postream_type::psentry opfx(out);
+      
+      std::operator<<(out, s);
+
+      return out;
+      //~psentry
+    }
+
+  template<typename charT, typename Traits>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out, const char* s)
+    {
+      typedef basic_postream<char, Traits> postream_type;
+      typename postream_type::psentry opfx(out);
+      
+      out.currth = ost::getThread();
+
+      std::operator<<(out, s);
+
+      return out;
+      //~psentry
+    }
+
+  // Partial specializations.
+  template<class Traits>
+    basic_postream<char, Traits>&
+    operator<<(basic_postream<char, Traits>& out, const char* s)
+    {
+      typedef basic_postream<char, Traits> postream_type;
+      typename postream_type::psentry opfx(out);
+     
+      out.currth = ost::getThread();
+      int tid = static_cast<int>(out.currth->getThreadID());
+      //out.operator<<(tid);
+ 
+      std::operator<<(out, s);
+
+      return out;
+      // ~psentry
+    }
+
+  // basic_string::operator<<
+  template<typename charT, typename Traits, typename Alloc>
+    basic_postream<charT, Traits>&
+    operator<<(basic_postream<charT, Traits>& out,
+	       const basic_string<charT, Traits, Alloc>& str)
+    { 
+      typedef basic_postream<charT, Traits> postream_type;
+      typename postream_type::psentry opfx(out);
+
+      out.currth = ost::getThread();
+      int tid = (int)out.currth->getThreadID();
+      //printf("PID: %d\n", getpid());
+      //printf("TID: %d\n", tid);
+
+      std::operator<<(out, str);
+
+      return out;
+      //~psentry
+    }
+
+  /*
+  extern template class basic_postream<char>;
+  extern template postream& endl(postream&);
+  extern template postream& ends(postream&);
+  extern template postream& flush(postream&);
+  extern template postream& operator<<(postream&, char);
+  extern template postream& operator<<(postream&, unsigned char);
+  extern template postream& operator<<(postream&, signed char);
+  extern template postream& operator<<(postream&, const char*);
+  extern template postream& operator<<(postream&, const unsigned char*);
+  extern template postream& operator<<(postream&, const signed char*);
+
+  extern template class basic_postream<wchar_t>;
+  extern template wpostream& endl(wpostream&);
+  extern template wpostream& ends(wpostream&);
+  extern template wpostream& flush(wpostream&);
+  extern template wpostream& operator<<(wpostream&, wchar_t);
+  extern template wpostream& operator<<(wpostream&, char);
+  extern template wpostream& operator<<(wpostream&, const wchar_t*);
+  extern template wpostream& operator<<(wpostream&, const char*);
+  */
+#ifdef	CCXX_NAMESPACES
+} // namespace ost
+#endif
+/** EMACS **
+ * Local variables:
+ * mode: c++
+ * c-basic-offset: 2
+ * End:
+ */
diff -urN tmp/commoncpp2/include/cc++/thread.h src/cvs/commoncpp2/include/cc++/thread.h
--- tmp/commoncpp2/include/cc++/thread.h	2002-08-15 09:25:57.000000000 -0500
+++ src/cvs/commoncpp2/include/cc++/thread.h	2002-08-24 12:41:36.000000000 -0500
@@ -1051,6 +1051,9 @@
 #endif
 /** @internal */
 friend class DummyThread;
+
+	pthread_t getThreadID(void) const;
+
 private:
 	friend class Slog;
 
diff -urN tmp/commoncpp2/src/Makefile.am src/cvs/commoncpp2/src/Makefile.am
--- tmp/commoncpp2/src/Makefile.am	2002-08-19 14:53:57.000000000 -0500
+++ src/cvs/commoncpp2/src/Makefile.am	2002-08-24 12:41:36.000000000 -0500
@@ -34,6 +34,7 @@
 libccext2_la_LIBADD = @BASE_LIB@ @LIBGETOPTOBJS@ @THREAD_LIBS@
 libccext2_la_SOURCES = buffer.cpp fifo.cpp pipe.cpp numbers.cpp \
 	cmdoptns.cpp url.cpp xml.cpp persist.cpp engine.cpp digest.cpp \
-	date.cpp groups.cpp md5.cpp unix.cpp ftp.cpp
+	date.cpp groups.cpp md5.cpp unix.cpp ftp.cpp pio_globals.cpp \
+        pios.cpp
 
 # private.h are internal headers
diff -urN tmp/commoncpp2/src/pio_globals.cpp src/cvs/commoncpp2/src/pio_globals.cpp
--- tmp/commoncpp2/src/pio_globals.cpp	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/src/pio_globals.cpp	2002-08-11 23:14:29.000000000 -0500
@@ -0,0 +1,90 @@
+// Copyright (C) 1999-2002 Open Source Telecom Corporation.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+#include <fstream>
+#include <cc++/postream>
+#include <cc++/pistream>
+#include <ext/stdio_filebuf.h>
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+  // Standard stream objects.
+  typedef char fake_pistream[sizeof(pistream)]
+  __attribute__ ((aligned(__alignof__(pistream))));
+  typedef char fake_postream[sizeof(postream)] 
+  __attribute__ ((aligned(__alignof__(postream))));
+  fake_pistream pin;
+  fake_postream pout;
+  fake_postream perr;
+  fake_postream plog;
+
+  typedef char fake_filebuf[sizeof(__gnu_cxx::stdio_filebuf<char>)]
+  __attribute__ ((aligned(__alignof__(__gnu_cxx::stdio_filebuf<char>))));
+  fake_filebuf buf_pout;
+  fake_filebuf buf_pin;
+  fake_filebuf buf_perr;
+
+/*
+#ifdef _GLIBCPP_USE_WCHAR_T
+  typedef char fake_wistream[sizeof(wistream)] 
+  __attribute__ ((aligned(__alignof__(wistream))));
+  typedef char fake_wostream[sizeof(wostream)] 
+  __attribute__ ((aligned(__alignof__(wostream))));
+  fake_wistream wcin;
+  fake_wostream wcout;
+  fake_wostream wcerr;
+  fake_wostream wclog;
+
+  typedef char fake_wfilebuf[sizeof(__gnu_cxx::stdio_filebuf<wchar_t>)]
+  __attribute__ ((aligned(__alignof__(__gnu_cxx::stdio_filebuf<wchar_t>))));
+  fake_wfilebuf buf_wcout;
+  fake_wfilebuf buf_wcin;
+  fake_wfilebuf buf_wcerr;
+#endif
+*/
+
+#ifdef CCXX_NAMESPACES
+}
+#endif
diff -urN tmp/commoncpp2/src/pios.cpp src/cvs/commoncpp2/src/pios.cpp
--- tmp/commoncpp2/src/pios.cpp	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/src/pios.cpp	2002-08-11 23:24:25.000000000 -0500
@@ -0,0 +1,161 @@
+// Copyright (C) 1999-2002 Open Source Telecom Corporation.
+//  
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// 
+// As a special exception to the GNU General Public License, permission is 
+// granted for additional uses of the text contained in its release 
+// of Common C++.
+// 
+// The exception is that, if you link the Common C++ library with other
+// files to produce an executable, this does not by itself cause the
+// resulting executable to be covered by the GNU General Public License.
+// Your use of that executable is in no way restricted on account of
+// linking the Common C++ library code into it.
+//
+// This exception does not however invalidate any other reasons why
+// the executable file might be covered by the GNU General Public License.
+// 
+// This exception applies only to the code released under the 
+// name Common C++.  If you copy code from other releases into a copy of
+// Common C++, as the General Public License permits, the exception does
+// not apply to the code that you add in this way.  To avoid misleading
+// anyone as to the status of such modified files, you must delete
+// this exception notice from them.
+// 
+// If you write modifications of your own for Common C++, it is your choice
+// whether to permit this exception to apply to your modifications.
+// If you do not wish that, delete this exception notice.
+
+
+//#include <cc++/pios>
+#include <cc++/postream>
+#include <cc++/pistream>
+#include <fstream>
+#include <ext/stdio_filebuf.h>
+
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+
+namespace ost 
+{
+#endif
+
+  // Extern declarations for global objects in src/pio_globals.cpp.
+  extern pistream pin;
+  extern postream pout;
+  extern postream perr;
+  extern postream plog;
+
+  using __gnu_cxx::stdio_filebuf;
+  extern stdio_filebuf<char> buf_pout;
+  extern stdio_filebuf<char> buf_pin;
+  extern stdio_filebuf<char> buf_perr;
+
+/*
+#ifdef _GLIBCPP_USE_WCHAR_T
+  extern wpistream wpin;
+  extern wpostream wpout;
+  extern wpostream wperr;
+  extern wpostream wplog;
+
+  extern stdio_filebuf<wchar_t> buf_wpout;
+  extern stdio_filebuf<wchar_t> buf_wpin;
+  extern stdio_filebuf<wchar_t> buf_wperr;
+#endif
+*/
+
+  int ost::Init::pios_init = 0;
+  bool ost::Init::synced_with_stdio = true;
+
+  void
+  ost::Init::pios_create(bool syncf)
+  {
+    int out_size = syncf ? 0 : static_cast<int>(BUFSIZ);
+    int in_size = syncf ? 1 : static_cast<int>(BUFSIZ);
+
+    // The file pios_globals.cpp creates the four standard files
+    // with NULL buffers. At this point, we swap out the dummy NULL
+    // p[io]stream objects and buffers with the real deal.
+    new (&buf_pout) stdio_filebuf<char>(stdout, ios_base::out, out_size);
+    new (&buf_pin) stdio_filebuf<char>(stdin, ios_base::in, in_size);
+    new (&buf_perr) stdio_filebuf<char>(stderr, ios_base::out, out_size);
+    new (&pout) postream(&buf_pout);
+    new (&pin) pistream(&buf_pin);
+    new (&perr) postream(&buf_perr);
+    new (&plog) postream(&buf_perr);
+    pin.tie(&pout);
+    perr.flags(ios_base::unitbuf);
+    
+/*
+#ifdef _GLIBCPP_USE_WCHAR_T
+    new (&buf_wpout) stdio_filebuf<wchar_t>(stdout, ios_base::out, out_size);
+    new (&buf_wpin) stdio_filebuf<wchar_t>(stdin, ios_base::in, in_size);
+    new (&buf_wperr) stdio_filebuf<wchar_t>(stderr, ios_base::out, out_size);
+    new (&wpout) wpostream(&buf_wpout);
+    new (&wpin) wpistream(&buf_wpin);
+    new (&wperr) wpostream(&buf_wperr);
+    new (&wplog) wpostream(&buf_wperr);
+    wpin.tie(&wpout);
+    wperr.flags(ios_base::unitbuf);
+#endif
+*/
+  }
+
+  void
+  ost::Init::pios_destroy()
+  {
+    // Explicitly call dtors to free any memory that is dynamically
+    // allocated by filebuf ctor or member functions, but don't
+    // deallocate all memory by calling operator delete.
+    pout.flush();
+    perr.flush();
+    plog.flush();
+    buf_pout.~stdio_filebuf();
+    buf_pin.~stdio_filebuf();
+    buf_perr.~stdio_filebuf();
+
+/*
+#ifdef _GLIBCPP_USE_WCHAR_T
+    wpout.flush();
+    wperr.flush();
+    wplog.flush();
+    buf_wpout.~wfilebuf();
+    buf_wpin.~wfilebuf();
+    buf_wperr.~wfilebuf();
+#endif
+*/
+  }
+
+  ost::Init::Init()
+  {
+    if (pios_init == 0)
+      {
+	// Standard streams default to synced with "C" operations.
+	ost::Init::synced_with_stdio = true;
+	pios_create(ost::Init::synced_with_stdio);
+      }
+    ++pios_init;
+  }
+
+  ost::Init::~Init()
+  {
+    if (--pios_init == 0)
+      pios_destroy();
+  } 
+
+#ifdef CCXX_NAMESPACES
+}
+#endif
diff -urN tmp/commoncpp2/src/thread.cpp src/cvs/commoncpp2/src/thread.cpp
--- tmp/commoncpp2/src/thread.cpp	2002-08-12 09:22:20.000000000 -0500
+++ src/cvs/commoncpp2/src/thread.cpp	2002-08-24 12:41:37.000000000 -0500
@@ -647,6 +647,11 @@
 #endif // WIN32
 }
 
+pthread_t Thread::getThreadID(void) const
+{
+	return priv->_tid;
+}
+
 int Thread::start(Semaphore *start)
 {
 	if(!priv)
diff -urN tmp/commoncpp2/tests/Makefile.am src/cvs/commoncpp2/tests/Makefile.am
--- tmp/commoncpp2/tests/Makefile.am	2002-05-08 18:18:30.000000000 -0500
+++ src/cvs/commoncpp2/tests/Makefile.am	2002-08-10 15:06:08.000000000 -0500
@@ -11,12 +11,12 @@
 MAINTAINERCLEANFILES = Makefile.in Makefile
 
 EXTRA_DIST = README dotests.sh test.sh output.txt vc6.mak
-CXXFLAGS = @CXXFLAGS@ $(THREAD_FLAGS)
+CXXFLAGS = @CXXFLAGS@ $(THREAD_FLAGS) -g
 INCLUDES = -I$(top_srcdir)/include
 LDADD = ../src/libccgnu2.la $(THREAD_LIBS) $(DYN_LOADER)
 Z_LIBS = -lz
 
-noinst_PROGRAMS = bug1 bug2 thread1 thread2 digest tcpstr1 url1
+noinst_PROGRAMS = bug1 bug2 thread1 thread2 digest tcpstr1 url1 pio
 
 bug1_SOURCES = bug1.cpp
 
@@ -35,3 +35,5 @@
 url1_SOURCES = url1.cpp
 url1_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(LDADD)
 
+pio_SOURCES = pio.cpp
+pio_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(LDADD)
diff -urN tmp/commoncpp2/tests/pio.cpp src/cvs/commoncpp2/tests/pio.cpp
--- tmp/commoncpp2/tests/pio.cpp	1969-12-31 18:00:00.000000000 -0600
+++ src/cvs/commoncpp2/tests/pio.cpp	2002-08-24 20:35:59.000000000 -0500
@@ -0,0 +1,102 @@
+#include <cc++/piostream>
+#include <cc++/thread.h>
+#include <cstdio>
+
+#ifdef	CCXX_NAMESPACES
+using namespace std;
+using namespace ost;
+#endif
+
+class Thread1: public Thread
+{
+public:
+  Thread1();
+  void run();
+};
+
+class Thread2: public Thread
+{
+public:
+  Thread2();
+  void run();
+};
+
+class Thread3: public Thread
+{
+public:
+  Thread3();
+  void run();
+};
+
+Thread1::Thread1()
+{
+}
+
+Thread2::Thread2()
+{
+}
+
+Thread3::Thread3()
+{
+}
+
+void Thread1::run()
+{
+  string test("string test.");
+  int i = 0;
+
+  while(i != 100)
+    {
+      pout << "a really long string to try and see if it will preempt in the middle of it because if it does it will really suck a lot, but recursive locking is a PITA!!!" << endl;
+      pout << i << " " << "Test." << endl;
+      pout << i << " " << test << endl;
+      pout << i << " " << "Hello World!" << endl;
+      
+      i++;
+    }
+  //pout.seekp(0, ios_base::cur);
+}
+
+void Thread2::run()
+{
+  int i = 0;
+
+  while(i != 100)
+    {
+      pout << i << " " << "thread2 outputting some stuff" << endl;
+      pout << i << " " << "check, check, check" << endl;
+      pout << i << " " << "waaaaazzzzzzaaaaaapaaneeeeen!!!!" << endl;
+      
+      i++;
+    }
+}
+
+void Thread3::run()
+{
+  int i = 0;
+  
+  while(i != 100)
+    {
+      pout << i << " " << "thread 3 is in da hiiiiizzoooooouuuuseee!" << endl;
+      pout << i << " " << "test some stuff and stuff" << endl;
+      pout << i << " " << "chillywilly is so weird." << endl;
+      
+      i++;
+    }
+}
+
+int main(int argc, char* argv[])
+{
+  Thread1 thread1;
+  Thread2 thread2;
+  Thread3 thread3;
+
+  thread1.start();
+  thread2.start();
+  thread3.start();
+
+  pout << "Hit ctrl-c to end" << endl;
+
+  for(;;) 
+    { }
+}

--oC1+HKm2/end4ao3--



From fedemp@wanadoo.es Sun Aug 25 14:07:59 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j1nr-0004j7-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 14:07:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j1no-0004gz-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 14:07:58 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j1no-0004fI-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 14:07:56 -0400
Received: from risitas (62-37-137-63.dialup.uni2.es [62.37.137.63])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g7PI6IH29925;
	Sun, 25 Aug 2002 20:06:21 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17j1oE-0001eS-00; Sun, 25 Aug 2002 20:08:22 +0200
Date: Sun, 25 Aug 2002 20:08:22 +0200
From: Federico Montesino Pouzols <fedemp@suidzer0.org>
To: Daniel E Baumann <baumannd@msoe.edu>
Cc: bug-commoncpp@gnu.org
Subject: Re: Small fix for ftp.h.
Message-ID: <20020825180822.GA6339@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@suidzer0.org>
Mail-Followup-To: Daniel E Baumann <baumannd@msoe.edu>,
	bug-commoncpp@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

	We recently added two lines:

	using std::string;
	using std::set;

	and it seemed to solve this problem. Are you having any trouble to
compile the latest sources without adding the 'using namespace std;' line?


> Here's a small patch to fix ftp.h as it doesn't specify it is using
> namespace std.
> 
> Dan
> -- 
> And if cynics ridicule freedom, ridicule community...if ``hard nosed 
> realists'' say that profit is the only ideal...just ignore them, and use
>  copyleft all the same.
>       -- RMS



From fedemp@wanadoo.es Sun Aug 25 14:16:16 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j1vr-0006w9-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 14:16:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j1vp-0006tf-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 14:16:15 -0400
Received: from [62.37.236.139] (helo=smtp.wanadoo.es)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j1vp-0006tZ-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 14:16:13 -0400
Received: from risitas (62-37-137-63.dialup.uni2.es [62.37.137.63])
	by smtp.wanadoo.es (8.11.6/8.11.6) with ESMTP id g7PIEbH31325;
	Sun, 25 Aug 2002 20:14:38 +0200
Received: from fedemp by risitas with local (Exim 3.35 #1 (Debian))
	id 17j1wI-0001eb-00; Sun, 25 Aug 2002 20:16:42 +0200
Date: Sun, 25 Aug 2002 20:16:41 +0200
From: Federico Montesino Pouzols <fedemp@suidzer0.org>
To: Daniel E Boumann <boumannd@msoe.edu>
Cc: bug-commoncpp@gnu.org
Subject: Re: Thread Safe Iostreams Patch
Message-ID: <20020825181641.GB6339@risitas>
Reply-To: Federico Montesino Pouzols <fedemp@suidzer0.org>
Mail-Followup-To: Daniel E Boumann <boumannd@msoe.edu>,
	bug-commoncpp@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

> Hello all. I have been hacking away at thread-safe iostreams and am
> including a patch containing that work. At first I attempted to do
> recursive locking but ran into some nice deadlock problems :(. So I
> opted to lock the stream and buffer on operator<< calls and release at
> the end of these calls. This does not give as nice output as I would
> like and threads can get preempted between operator<< calls. Also,
> there's a bunch of stuff that needs finishing. So baically this is just
> a preliminary thing for you to look at, comment on, etc. If
> anyone has a nice strategy on how to d recursive locking I am all
> ears, else I will just have to give it more thought and figure
> something out for myself.

	This looks very interesting, and it even comes with a test app
:). I guess that now that we have a "stable" branch (RELEASE1) in CVS,
this patch could be quickly added to HEAD so that people can start to
play with it

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



From fedemp@suidzer0.org Sun Aug 25 18:58:34 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j6L3-0003ZF-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 18:58:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j6L2-0003Z3-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 18:58:33 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j6L1-0003Yy-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 18:58:31 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7PMsnN0031271
          for <bug-commoncpp@gnu.org>; Mon, 26 Aug 2002 00:54:49 +0200
Received: from 62.37.137.63
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 26 Aug 2002 00:54:49 +0200 (CEST)
Message-ID: <1806.62.37.137.63.1030316089.squirrel@webmail.suidzer0.org>
Date: Mon, 26 Aug 2002 00:54:49 +0200 (CEST)
Subject: Doxygen reference manual and OVERVIEW.TXT
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Now that 1.0.0 has been released and the current releases of
Doxygen generate .png's by default instead of .gif's, I wander
if we should make a pregenerated manual in HTML available (be it
as a downloadable tarball or putting the HTML manual online or
whatever).

   Also with regards to documentation, I wonder if there are any
plans for a introductory/overview manual. In fact, OVERVIEW.TXT
would only need some updates to become a good starting for that
manual. I would suggest TexInfo as format. If no one else
volunteers to do this, I would do it, although it would have to
wait a few days...






From fedemp@suidzer0.org Sun Aug 25 19:33:40 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j6t2-0001Bm-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:33:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j6t0-0001BV-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:33:40 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j6t0-0001BQ-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:33:38 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7PNTtN0031560
          ; Mon, 26 Aug 2002 01:29:56 +0200
Received: from 62.37.137.63
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 26 Aug 2002 01:29:56 +0200 (CEST)
Message-ID: <1836.62.37.137.63.1030318196.squirrel@webmail.suidzer0.org>
Date: Mon, 26 Aug 2002 01:29:56 +0200 (CEST)
Subject: Re: [ Patch #490 ] wrong string tag in XMLRPC::addMember ?
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <nkoch@gmx.de>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Yes, I think <i4> was copied from the method above. It has been fixed
in both RELEASE1 and HEAD branches in CVS.

>in xml.cpp: void XMLRPC::addMember(const char  name, const char * value)
>  ...
>  <value><i4> ... </i4></value>
>
>Due to xmlrpc's spec - as I understand it - it should be
>
>  <value>string> ... </strinf></value>

 (I assume you mean <value><string> ... </string></value>)

>
>or could even be left out (?)
>
>  <value> ... </value>
>
>The tag <i4> stands for integer.





From fedemp@suidzer0.org Sun Aug 25 19:48:01 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j76v-000204-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:48:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j76t-0001zs-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:48:00 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j76s-0001zn-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:47:58 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7PNiGN0031602
          ; Mon, 26 Aug 2002 01:44:16 +0200
Received: from 62.37.137.63
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 26 Aug 2002 01:44:16 +0200 (CEST)
Message-ID: <2835.62.37.137.63.1030319056.squirrel@webmail.suidzer0.org>
Date: Mon, 26 Aug 2002 01:44:16 +0200 (CEST)
Subject: Re: [ Patch #491 ] typo in XMLRPC::begArray ?
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <nkoch@gmx.de>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>in xml.cpp: void XMLRPC::begArray()
>
>  if (! fail && ! array)
>    return;
>
>should be - if I understand it right -
>
>  if (! fail && array)
>    return;

   Well, comparing with other methods, I think it should be like this:

void XMLRPC::begArray(void)
{
	if(fault)
		return;  // fault responses do not have arrays.

	if(!array)           // note we do not need to check !fault again.
		strBuf << "<param>";
        array++;                  // arrays must be allowed to be nested
	strBuf << "<array><data>" << endl;
}


   And also, in

void XMLRPC::endArray(void)
{
	if(!array)
		return;

	strBuf << "</data></array>";

	if(!--array && !fault)
		strBuf << "</param>";

	strBuf << endl;
}

   if(!--array && !fault) could be changed to if(!--array), since when
array is 1, we are sure we are not building a fault response. I think
know begArray and endArray match.

   What do you think? Anyone else has another suggestion?









From danielb@obfuscation.dyndns.org Sun Aug 25 19:49:59 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j78p-0002E0-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:49:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j78n-0002CK-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:49:58 -0400
Received: from fe4.rdc-kc.rr.com ([24.94.163.51] helo=mail4.wi.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j78m-0002CF-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:49:56 -0400
Received: from obfuscation.dyndns.org ([24.167.202.50]) by mail4.wi.rr.com  with Microsoft SMTPSVC(5.5.1877.537.53);
	 Sun, 25 Aug 2002 18:46:37 -0500
Received: from danielb by obfuscation.dyndns.org with local (Exim 3.35 #1 (Debian))
	id 17j78l-0003RV-00
	for <bug-commoncpp@gnu.org>; Sun, 25 Aug 2002 18:49:55 -0500
Date: Sun, 25 Aug 2002 18:49:54 -0500
From: Daniel E Baumann <baumannd@msoe.edu>
To: bug-commoncpp@gnu.org
Subject: Re: Small fix for ftp.h.
Message-ID: <20020825234954.GA5242@obfuscation.dyndns.org>
References: <20020825180822.GA6339@risitas>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020825180822.GA6339@risitas>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Sun, Aug 25, 2002 at 08:08:22PM +0200, Federico Montesino Pouzols wrote:
> 
> 	We recently added two lines:
> 
> 	using std::string;
> 	using std::set;
> 
> 	and it seemed to solve this problem. Are you having any trouble to
> compile the latest sources without adding the 'using namespace std;' line?

Well I was having problems, but I just rm'd the file, cvs up'd, and
recompiled and all is well now. I suppose this can be disregarded
now. Thanks for the heads up :).

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



From danielb@obfuscation.dyndns.org Sun Aug 25 20:00:02 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17j7IY-00043w-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 20:00:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17j7IV-00043M-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 20:00:01 -0400
Received: from fe6.rdc-kc.rr.com ([24.94.163.53] helo=mail6.wi.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17j7IV-00043B-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 19:59:59 -0400
Received: from obfuscation.dyndns.org ([24.167.202.50]) by mail6.wi.rr.com  with Microsoft SMTPSVC(5.5.1877.537.53);
	 Sun, 25 Aug 2002 18:57:31 -0500
Received: from danielb by obfuscation.dyndns.org with local (Exim 3.35 #1 (Debian))
	id 17j7IU-0003S0-00
	for <bug-commoncpp@gnu.org>; Sun, 25 Aug 2002 18:59:58 -0500
Date: Sun, 25 Aug 2002 18:59:58 -0500
From: Daniel E Baumann <baumannd@msoe.edu>
To: bug-commoncpp@gnu.org
Subject: Re: Thread Safe Iostreams Patch
Message-ID: <20020825235957.GB5242@obfuscation.dyndns.org>
References: <20020825181641.GB6339@risitas>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020825181641.GB6339@risitas>
User-Agent: Mutt/1.4i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

On Sun, Aug 25, 2002 at 08:16:41PM +0200, Federico Montesino Pouzols wrote:
> 
> > Hello all. I have been hacking away at thread-safe iostreams and am
> > including a patch containing that work. At first I attempted to do
> > recursive locking but ran into some nice deadlock problems :(. So I
> > opted to lock the stream and buffer on operator<< calls and release at
> > the end of these calls. This does not give as nice output as I would
> > like and threads can get preempted between operator<< calls. Also,
> > there's a bunch of stuff that needs finishing. So baically this is just
> > a preliminary thing for you to look at, comment on, etc. If
> > anyone has a nice strategy on how to d recursive locking I am all
> > ears, else I will just have to give it more thought and figure
> > something out for myself.
> 
> 	This looks very interesting, and it even comes with a test app
> :). I guess that now that we have a "stable" branch (RELEASE1) in CVS,
> this patch could be quickly added to HEAD so that people can start to
> play with it

Sure, that would be fine. I think the way I did the patch was kinda
goofy though and may not be the easiest to apply. I just left an
original tree in ~/tmp and had my modified one in ~/src/cvs/ and diffed
that from ~/. I really should move them into the same dir and rename one
so the patch can be applied easily with the proper -pX switch to
diff. Also, I have found some intersting design patterns here:

http://www.cs.wustl.edu/~schmidt/patterns-ace.html, and

here: http://www.cs.wustl.edu/~schmidt/PDF/locking-patterns.pdf

I know that we have the Scoped Locking pattern implemented in the
MutexLock class, but do you know of an Strategized Locking
implementations? Also I think I may be able to aviod the deadlock
issues if I follow the rules in the Thread-safe Decorator (Thread-safe
Interface) pattern. I think I was probably making intra-component calls
that did locking, which is a no no. They say you should write
"implementation" methods and only lock on the "interface methods" which
delegate to non-locking methods. At any rate, I think I'll try and
generalize the locking and write class(es) implenting these patterns.

Cheers,
Dan



From dyfet@ostel.com Sun Aug 25 23:00:01 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jA6j-0007Mw-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:00:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jA6h-0007Me-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:00:00 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jA6g-0007MU-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 22:59:58 -0400
Received: from home.sys (IDENT:AryNdQEx2gUCItBgGOYnQLEd4lWcdJ/P@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7Q3ETo17347;
	Sun, 25 Aug 2002 23:14:29 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Daniel E Baumann <baumannd@msoe.edu>, bug-commoncpp@gnu.org
Subject: Re: Thread Safe Iostreams Patch
Date: Sun, 25 Aug 2002 23:14:29 -0400
User-Agent: KMail/1.4.1
References: <20020825181641.GB6339@risitas> <20020825235957.GB5242@obfuscation.dyndns.org>
In-Reply-To: <20020825235957.GB5242@obfuscation.dyndns.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208252314.29124.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I think there are some target platforms that do have a threadsafe iostrea=
m. =20
Is the SGI "stlport" also threadsafe?  If so, then maybe this should be=20
something that could be enabled with a configure option.  This probably d=
oes=20
belong in -head so people can experiment with it for a future release.

David

On Sunday 25 August 2002 19:59, Daniel E Baumann wrote:
> On Sun, Aug 25, 2002 at 08:16:41PM +0200, Federico Montesino Pouzols wr=
ote:
> > > Hello all. I have been hacking away at thread-safe iostreams and am
> > > including a patch containing that work. At first I attempted to do
> > > recursive locking but ran into some nice deadlock problems :(. So I
> > > opted to lock the stream and buffer on operator<< calls and release=
 at
> > > the end of these calls. This does not give as nice output as I woul=
d
> > > like and threads can get preempted between operator<< calls. Also,
> > > there's a bunch of stuff that needs finishing. So baically this is =
just
> > > a preliminary thing for you to look at, comment on, etc. If
> > > anyone has a nice strategy on how to d recursive locking I am all
> > > ears, else I will just have to give it more thought and figure
> > > something out for myself.
> >
> > =09This looks very interesting, and it even comes with a test app
> >
> > :). I guess that now that we have a "stable" branch (RELEASE1) in CVS=
,
> >
> > this patch could be quickly added to HEAD so that people can start to
> > play with it
>
> Sure, that would be fine. I think the way I did the patch was kinda
> goofy though and may not be the easiest to apply. I just left an
> original tree in ~/tmp and had my modified one in ~/src/cvs/ and diffed
> that from ~/. I really should move them into the same dir and rename on=
e
> so the patch can be applied easily with the proper -pX switch to
> diff. Also, I have found some intersting design patterns here:
>
> http://www.cs.wustl.edu/~schmidt/patterns-ace.html, and
>
> here: http://www.cs.wustl.edu/~schmidt/PDF/locking-patterns.pdf
>
> I know that we have the Scoped Locking pattern implemented in the
> MutexLock class, but do you know of an Strategized Locking
> implementations? Also I think I may be able to aviod the deadlock
> issues if I follow the rules in the Thread-safe Decorator (Thread-safe
> Interface) pattern. I think I was probably making intra-component calls
> that did locking, which is a no no. They say you should write
> "implementation" methods and only lock on the "interface methods" which
> delegate to non-locking methods. At any rate, I think I'll try and
> generalize the locking and write class(es) implenting these patterns.
>
> Cheers,
> Dan
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From dyfet@ostel.com Sun Aug 25 23:02:43 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jA9L-0007ov-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:02:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jA9J-0007oe-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:02:43 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jA9J-0007oX-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:02:41 -0400
Received: from home.sys (IDENT:sr4DWfg8DZ7f9OpKrHcqKJm1VADiNfpe@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7Q3H9o17378;
	Sun, 25 Aug 2002 23:17:09 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <nkoch@gmx.de>
Subject: Re: [ Patch #490 ] wrong string tag in XMLRPC::addMember ?
Date: Sun, 25 Aug 2002 23:17:08 -0400
User-Agent: KMail/1.4.1
Cc: <bug-commoncpp@gnu.org>
References: <1836.62.37.137.63.1030318196.squirrel@webmail.suidzer0.org>
In-Reply-To: <1836.62.37.137.63.1030318196.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208252317.08691.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Yes, it was probably copied over from the int set :).  Yes, this should b=
e in=20
R1 and -HEAD...maybe we will soon do a 1.0.1 from the R1 branch once enou=
gh=20
little fixes are accumulated...

On Sunday 25 August 2002 19:29, Federico Montesino Pouzols wrote:
>    Yes, I think <i4> was copied from the method above. It has been fixe=
d
> in both RELEASE1 and HEAD branches in CVS.
>
> >in xml.cpp: void XMLRPC::addMember(const char  name, const char * valu=
e)
> >  ...
> >  <value><i4> ... </i4></value>
> >
> >Due to xmlrpc's spec - as I understand it - it should be
> >
> >  <value>string> ... </strinf></value>
>
>  (I assume you mean <value><string> ... </string></value>)
>
> >or could even be left out (?)
> >
> >  <value> ... </value>
> >
> >The tag <i4> stands for integer.
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From dyfet@ostel.com Sun Aug 25 23:04:56 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jABU-0007tQ-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:04:56 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jABS-0007t9-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:04:55 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=home.sys)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jABR-0007t4-00
	for bug-commoncpp@gnu.org; Sun, 25 Aug 2002 23:04:54 -0400
Received: from home.sys (IDENT:7cQAL2iWYKb7HDUTCV8Gp1svTfVhyHOU@home.sys [172.16.1.254])
	by home.sys (8.11.6/8.11.6) with ESMTP id g7Q3JMo17405;
	Sun, 25 Aug 2002 23:19:22 -0400
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: fedemp@suidzer0.org, <bug-commoncpp@gnu.org>
Subject: Re: Doxygen reference manual and OVERVIEW.TXT
Date: Sun, 25 Aug 2002 23:19:22 -0400
User-Agent: KMail/1.4.1
References: <1806.62.37.137.63.1030316089.squirrel@webmail.suidzer0.org>
In-Reply-To: <1806.62.37.137.63.1030316089.squirrel@webmail.suidzer0.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200208252319.22296.dyfet@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I think we should provide a pregenerated manual and make use of the web s=
ite=20
to have an online copy for reference.  If you would like to take on=20
updating/re-introducing overview.txt that would be great!  It would make =
it=20
very worthwhile to do a 1.0.1 release right after that :).

David

On Sunday 25 August 2002 18:54, Federico Montesino Pouzols wrote:
>    Now that 1.0.0 has been released and the current releases of
> Doxygen generate .png's by default instead of .gif's, I wander
> if we should make a pregenerated manual in HTML available (be it
> as a downloadable tarball or putting the HTML manual online or
> whatever).
>
>    Also with regards to documentation, I wonder if there are any
> plans for a introductory/overview manual. In fact, OVERVIEW.TXT
> would only need some updates to become a good starting for that
> manual. I would suggest TexInfo as format. If no one else
> volunteers to do this, I would do it, although it would have to
> wait a few days...
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From fedemp@suidzer0.org Mon Aug 26 12:51:08 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jN51-0002Yv-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 12:51:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jN4z-0002Yj-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 12:51:07 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jN4z-0002Yf-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 12:51:05 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7QGlKN0006093
          for <bug-commoncpp@gnu.org>; Mon, 26 Aug 2002 18:47:20 +0200
Received: from 62.36.176.35
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 26 Aug 2002 18:47:20 +0200 (CEST)
Message-ID: <1291.62.36.176.35.1030380440.squirrel@webmail.suidzer0.org>
Date: Mon, 26 Aug 2002 18:47:20 +0200 (CEST)
Subject: Re: Doxygen reference manual and OVERVIEW.TXT
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
In-Reply-To: <200208252319.22296.dyfet@ostel.com>
References: <1806.62.37.137.63.1030316089.squirrel@webmail.suidzer0.org>
        <200208252319.22296.dyfet@ostel.com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

> I think we should provide a pregenerated manual and make use of the web
> site  to have an online copy for reference.

   I will check if the reference manual is properly generated and put it
on docs/refman/html. I will also try the doxygen tags that make the demo
apps to be included in the refman.

> If you would like to take
> on  updating/re-introducing overview.txt that would be great!  It would
> make it  very worthwhile to do a 1.0.1 release right after that :).
>

   I hope to have it ready in a few days. If anyone wishes to help
or contribute some section this is the right moment :)

> David
>
> On Sunday 25 August 2002 18:54, Federico Montesino Pouzols wrote:
>>    Now that 1.0.0 has been released and the current releases of
>> Doxygen generate .png's by default instead of .gif's, I wander
>> if we should make a pregenerated manual in HTML available (be it as a
>> downloadable tarball or putting the HTML manual online or
>> whatever).
>>
>>    Also with regards to documentation, I wonder if there are any
>> plans for a introductory/overview manual. In fact, OVERVIEW.TXT
>> would only need some updates to become a good starting for that
>> manual. I would suggest TexInfo as format. If no one else
>> volunteers to do this, I would do it, although it would have to
>> wait a few days...
>>
>>
>>
>>
>>
>> _______________________________________________
>> Bug-commoncpp mailing list
>> Bug-commoncpp@gnu.org
>> http://mail.gnu.org/mailman/listinfo/bug-commoncpp






From fedemp@suidzer0.org Mon Aug 26 16:16:37 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jQHt-0006Ca-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 16:16:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jQHr-0006CO-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 16:16:36 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jQHq-0006CK-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 16:16:34 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7QKClN0008223
          for <bug-commoncpp@gnu.org>; Mon, 26 Aug 2002 22:12:47 +0200
Received: from 62.36.176.85
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 26 Aug 2002 22:12:47 +0200 (CEST)
Message-ID: <1523.62.36.176.85.1030392767.squirrel@webmail.suidzer0.org>
Date: Mon, 26 Aug 2002 22:12:47 +0200 (CEST)
Subject: Reference manual available online
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <bug-commoncpp@gnu.org>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   The doxygen reference manual for CC++ '2' 1.0 is now available
online at:

http://www.gnu.org/software/commoncpp/docs/refman/html/index.html.

   It is also linked from the main page. Comments, bug reports and
patches are welcome.







From fedemp@suidzer0.org Mon Aug 26 16:31:06 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jQVu-0001NI-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 16:31:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jQVs-0001N6-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 16:31:05 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jQVr-0001Mz-00
	for bug-commoncpp@gnu.org; Mon, 26 Aug 2002 16:31:04 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7QKQRN0008379
          ; Mon, 26 Aug 2002 22:26:36 +0200
Received: from 62.36.176.85
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Mon, 26 Aug 2002 22:26:36 +0200 (CEST)
Message-ID: <1564.62.36.176.85.1030393596.squirrel@webmail.suidzer0.org>
Date: Mon, 26 Aug 2002 22:26:36 +0200 (CEST)
Subject: Re: [ cplusplus-bug 599025 ] failed installation (mingw32)
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <ahopkins@chemmail.chem.fsu.edu>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi,

   we are really interested in supporting this platform.
The version you are using is a bit old and will probably
have issues with gcc 3.2. I would suggest you to download
the latest 1.0 release of GNU CC++ '2'.

   Under the directory win32 in the source distribution
there is a Mingw32 specific makefile "Makefile.gcc". Try
it and let us know if there is any problem (you will
probably need to edit some lines at the beginning of the
makefile in order to give the exact name and location of
your compiler). We have succesfully used that makefile to
build the library with mingw32 as cross compiler on debian.

   Bye!

> getting this error;
>
>D:\CommonC++\CommonC++-1.9.7>make
>makefile:49: *** target pattern contains no `%'. Stop.
>
>I am running mingw32 with gcc3.2 on Windows 98
>(yahoo). What to do?






From fedemp@suidzer0.org Tue Aug 27 10:03:24 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17jgwF-0007ms-00
	for bug-commoncpp@gnu.org; Tue, 27 Aug 2002 10:03:23 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17jgwD-0007me-00
	for bug-commoncpp@gnu.org; Tue, 27 Aug 2002 10:03:23 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17jgwC-0007ma-00
	for bug-commoncpp@gnu.org; Tue, 27 Aug 2002 10:03:21 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7RDxJN0015598
          ; Tue, 27 Aug 2002 15:59:24 +0200
Received: from 62.37.140.116
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Tue, 27 Aug 2002 15:59:25 +0200 (CEST)
Message-ID: <1184.62.37.140.116.1030456765.squirrel@webmail.suidzer0.org>
Date: Tue, 27 Aug 2002 15:59:25 +0200 (CEST)
Subject: Re: [ 600746 ] A few issues on the WIN32 platform
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <vr-anders@users.sourceforge.net>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

 Hi, see comments inline...

>A few issues on the WIN32 platform
>
>Using version 2-1.0.0 and compiling with VC7 (.net) I get
>some compiler warnings:
>
>
>\tools\commoncpp2-1.0.0\src\slog.cpp(68) : warning
>C4355: 'this' : used in base member initializer list
>serial.cpp
>..\include\cc++\serial.h(599) : warning C4275: non dll-
>interface class 'ost::Thread' used as base for dll-
>interface class 'ost::TTYSession'
>..\include\cc++\thread.h(1013) : see declaration
>of 'ost::Thread'
>..\include\cc++\serial.h(598) : see declaration
>of 'ost::TTYSession'
>\tools\commoncpp2-1.0.0\src\serial.cpp(948) : warning
>C4355: 'this' : used in base member initializer list
>\tools\commoncpp2-1.0.0\src\serial.cpp(967) : warning
>C4355: 'this' : used in base member initializer list
>
>c:\tools\commoncpp2-1.0.0\src\keydata.cpp(166) :
>warning C4700: local variable 'icount' used without
>having been initialized

   Umm, I recall having seen similar warnings in VC 6,
This will be fixed soon. The warning related to 'this'
being used in constructor seem harmless.


>******************************************
>
>Also, there seems to be some problems where
>ccgnu2.lib needs ccext2.lib
>
>and vice versa!
>That is, in linker settings for ccext2 ccgnu2 is listed.
>
>And when linking ccgnu2 it cries for some things in
>ccext2!!
>
>Sounds like chicken and the egg to me.
>
>ccgnu2 error LNK2019: unresolved external
>symbol "public: __thiscall ost::URLStream::URLStream
>(unsigned long)" (??0URLStream@ost@@QAE@K@Z)
>referenced in function "public: void __thiscall
>ost::URLStream::`default constructor closure'(void)" (??
>_FURLStream@ost@@QAEXXZ)
>

   There have been some changes to url.cpp recently, I was
able to compile dll's the last time I tested it however. I
will look at this again.



>*************************************
>
>install.bat still refers to ccgnu5.lib (and .dll)
>

   Oh, yes, it needs to be updated.

>************************************
>The linking settings creates ccgnu2.lib (and .dll) also for
>debug settings. This should be ccgnu2d.lib (the same
>goes for ccext2.lib)

   Ok, will be fixed soon in savannah CVS and for 1.0.1 release.

>******************************************
>
>When compiling an application using cc++ I get some
>warnings:
>
>
>c:\projects\CommonC++\win32\Include\cc++2
>\cc++\strchar.h(123) : warning C4267: 'return' :
>conversion from 'size_t' to 'int', possible loss of data
>
>c:\projects\CommonC++\win32\Include\cc++2
>\cc++\serial.h(599) : warning C4275: non dll-interface
>class 'ost::Thread' used as base for dll-interface
>class 'ost::TTYSession'
>c:\projects\CommonC++\win32\Include\cc++2
>\cc++\thread.h(1013) : see declaration of 'ost::Thread'
>c:\projects\CommonC++\win32\Include\cc++2
>\cc++\serial.h(598) : see declaration of 'ost::TTYSession'

   So you were able to solve the linking error?
   This warnings will be fixed soon too.

   Bye and thanks for your report. It seems there are much less
problems updating to VC .NET that it could be expected :)







From stanton@electric-cloud.com Wed Aug 28 14:54:41 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17k7xh-0003W8-00
	for bug-commoncpp@gnu.org; Wed, 28 Aug 2002 14:54:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17k7xf-0003Vw-00
	for bug-commoncpp@gnu.org; Wed, 28 Aug 2002 14:54:40 -0400
Received: from [64.41.141.105] (helo=electric-cloud.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17k7xe-0003Vs-00
	for bug-commoncpp@gnu.org; Wed, 28 Aug 2002 14:54:38 -0400
Received: from Laddie (localhost.localdomain [127.0.0.1])
	(authenticated)
	by electric-cloud.com (8.11.6/8.11.6) with ESMTP id g7SIsb622908
	for <bug-commoncpp@gnu.org>; Wed, 28 Aug 2002 11:54:37 -0700
From: "Scott Stanton" <stanton@electric-cloud.com>
To: <bug-commoncpp@gnu.org>
Subject: Win32 Conditional support
Date: Wed, 28 Aug 2002 11:54:16 -0700
Organization: Electric Cloud
Message-ID: <000801c24ec4$4fbb59b0$1401a8c0@Laddie>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <20020828103251.30733.40888.Mailman@monty-python.gnu.org>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Has anyone started work on providing support for Conditional objects on
the Win32 platform?  

Would it make sense for common c++ to simply leverage the existing
pthreads implementation for win32 at
http://sources.redhat.com/pthreads-win32/.  It looks to be a pretty
complete implementation that has support for condition variables, among
other things.

Personally, I would be happy with a win32 common c++ that simply linked
against the win32 pthreads library as this would give me equivalent
behavior between win32 and unix.  I'm not a big fan of the native Win32
threading API.

--Scott




From fedemp@suidzer0.org Thu Aug 29 15:10:25 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kUgS-0003GK-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 15:10:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kUgQ-0003FB-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 15:10:23 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kUgP-0003Ec-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 15:10:21 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7TJ66N0005195
          ; Thu, 29 Aug 2002 21:06:07 +0200
Received: from 80.103.119.251
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Thu, 29 Aug 2002 21:06:07 +0200 (CEST)
Message-ID: <1243.80.103.119.251.1030647967.squirrel@webmail.suidzer0.org>
Date: Thu, 29 Aug 2002 21:06:07 +0200 (CEST)
Subject: Re: Win32 Conditional support
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <stanton@electric-cloud.com>
In-Reply-To: <000801c24ec4$4fbb59b0$1401a8c0@Laddie>
References: <20020828103251.30733.40888.Mailman@monty-python.gnu.org>
        <000801c24ec4$4fbb59b0$1401a8c0@Laddie>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi,

> Has anyone started work on providing support for Conditional objects on
> the Win32 platform?
>
> Would it make sense for common c++ to simply leverage the existing
> pthreads implementation for win32 at
> http://sources.redhat.com/pthreads-win32/.  It looks to be a pretty
> complete implementation that has support for condition variables, among
> other things.
>

   Well, using pthreads-win32 as the base to implement CC++'s conditionals
would imply changing the whole threading/synchronization Win32
implementation of CC++. Currently, the Win32 port of CC++ is based on
"native" Win32 calls, so we are talking of a very deep change.

   Sometime ago I used pthreads-win32 and it certainly works quite well
and stable. There would be however three issues if CC++ based its Win32
port on pthreads-win32:

   * We would impose an additional dependency for a core component of CC++.
   * We would have three layers (CC++/pthreads-win32/Win32 native). I do
not know pthreads-win32 internals so as to say if performance would
degrade significantly.
   * I am not sure if pthreads-win32 would be able to support all CC++
threading features. There have been some problems with cygwin emulation
layer.

   With this I do not want to say using pthreads-win32 is a bad idea,
but I think it would be simpler to implement Conditional with just
Win32 system calls.

> Personally, I would be happy with a win32 common c++ that simply linked
> against the win32 pthreads library as this would give me equivalent
> behavior between win32 and unix.  I'm not a big fan of the native Win32
> threading API.
>
> --Scott
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp






From dyfet@ostel.com Thu Aug 29 15:30:21 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kUzl-0005qr-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 15:30:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kUzi-0005py-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 15:30:20 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=localhost.localdomain)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kUzh-0005oz-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 15:30:17 -0400
Received: from ostel.com (localhost.localdomain [127.0.0.1])
	by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g7TJSdS04654;
	Thu, 29 Aug 2002 15:28:39 -0400
Message-ID: <3D6E75E7.50907@ostel.com>
Date: Thu, 29 Aug 2002 15:28:39 -0400
From: David Sugar <dyfet@ostel.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: fedemp@suidzer0.org
CC: stanton@electric-cloud.com, bug-commoncpp@gnu.org
Subject: Re: Win32 Conditional support
References: <20020828103251.30733.40888.Mailman@monty-python.gnu.org>        <000801c24ec4$4fbb59b0$1401a8c0@Laddie> <1243.80.103.119.251.1030647967.squirrel@webmail.suidzer0.org>
X-Enigmail-Version: 0.63.3.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I am a little less confident about the usability of the pthread-win32 
port.  I recall historically the cygwin testing of Common C++ has always 
uncovered broken or incomplete implimentation of pthread code there.  In 
fact, even very recently, we would find segfaults in the cygwin pthread 
Common C++ test apps and we were never able to get an implimentation to 
compile and complete all regression tests successfully unlike other 
pthread platforms that had been tested successfully.  The mingw32 
cross-compile, which used the native win32 threads, would build test 
executables that have successfully completed all the standard regression 
tests, and I presume the pure native build does the same.

There is a worthwhile point that pthread is a layer on top of the native 
mechanisms, and as such, it means win32 platform code becomes removed by 
yet one more layer from the actual implimentation.  Since there is no 
benefit to freedom in the win32 port in compiling to something that 
itself is linked to the native methods anyway as to doing so directly, I 
fail to see any immediate benefit that would be derived from using 
pthread-win32.

The question that remains is if the behavior is the same.  Since the 
pthread-win32 port already has different behavior than some pthread 
implimentations, there is no clear win here either.  Common C++ also 
maintains consistent behavior at the abstract level above the native 
threading, and so applications built on a win32 native target do where 
we can make it behave the same as those built for some of the MANY 
pthread implimentations found in the posix world, many of which are also 
in subtle ways broken or incomplete.  I fully agree we need conditional 
support to be consistent between the win32 and posix platforms, and I 
think we should see if this can be done by the native calls directly.  I 
would presume it can be done if the pthread-win32 port can do this.

Federico Montesino Pouzols wrote:

>   Hi,
>
>  
>
>>Has anyone started work on providing support for Conditional objects on
>>the Win32 platform?
>>
>>Would it make sense for common c++ to simply leverage the existing
>>pthreads implementation for win32 at
>>http://sources.redhat.com/pthreads-win32/.  It looks to be a pretty
>>complete implementation that has support for condition variables, among
>>other things.
>>
>>    
>>
>
>   Well, using pthreads-win32 as the base to implement CC++'s conditionals
>would imply changing the whole threading/synchronization Win32
>implementation of CC++. Currently, the Win32 port of CC++ is based on
>"native" Win32 calls, so we are talking of a very deep change.
>
>   Sometime ago I used pthreads-win32 and it certainly works quite well
>and stable. There would be however three issues if CC++ based its Win32
>port on pthreads-win32:
>
>   * We would impose an additional dependency for a core component of CC++.
>   * We would have three layers (CC++/pthreads-win32/Win32 native). I do
>not know pthreads-win32 internals so as to say if performance would
>degrade significantly.
>   * I am not sure if pthreads-win32 would be able to support all CC++
>threading features. There have been some problems with cygwin emulation
>layer.
>
>   With this I do not want to say using pthreads-win32 is a bad idea,
>but I think it would be simpler to implement Conditional with just
>Win32 system calls.
>
>  
>
>>Personally, I would be happy with a win32 common c++ that simply linked
>>against the win32 pthreads library as this would give me equivalent
>>behavior between win32 and unix.  I'm not a big fan of the native Win32
>>threading API.
>>
>>--Scott
>>
>>
>>
>>_______________________________________________
>>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 stanton@electric-cloud.com Thu Aug 29 16:21:59 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kVni-0002uJ-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:21:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kVmy-0002iC-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:21:57 -0400
Received: from [64.41.141.105] (helo=electric-cloud.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kVmy-0002hz-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:21:12 -0400
Received: from Laddie (localhost.localdomain [127.0.0.1])
	(authenticated)
	by electric-cloud.com (8.11.6/8.11.6) with ESMTP id g7TKL3615710;
	Thu, 29 Aug 2002 13:21:03 -0700
From: "Scott Stanton" <stanton@electric-cloud.com>
To: <fedemp@suidzer0.org>
Cc: <bug-commoncpp@gnu.org>
Subject: RE: Win32 Conditional support
Date: Thu, 29 Aug 2002 13:21:06 -0700
Organization: Electric Cloud
Message-ID: <001801c24f99$9b946720$1401a8c0@Laddie>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <1243.80.103.119.251.1030647967.squirrel@webmail.suidzer0.org>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>   With this I do not want to say using pthreads-win32 is a bad idea,
>but I think it would be simpler to implement Conditional with just
>Win32 system calls.

Fair enough.  It is instructive to look at the implementation of
condition variables in the pthreads-win32 sources.  There are some
tricky subtleties in correctly implementing the semantics of condition
variables.  It's easy to make something that seems to work but results
in intermittent dropped signals, fairness problems, etc.




From stanton@electric-cloud.com Thu Aug 29 16:29:32 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kVv2-0001iN-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:29:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kVuz-0001fv-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:29:31 -0400
Received: from [64.41.141.105] (helo=electric-cloud.com)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kVuz-0001dY-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:29:29 -0400
Received: from Laddie (localhost.localdomain [127.0.0.1])
	(authenticated)
	by electric-cloud.com (8.11.6/8.11.6) with ESMTP id g7TKTR615796;
	Thu, 29 Aug 2002 13:29:27 -0700
From: "Scott Stanton" <stanton@electric-cloud.com>
To: "'David Sugar'" <dyfet@ostel.com>, <fedemp@suidzer0.org>
Cc: <bug-commoncpp@gnu.org>
Subject: RE: Win32 Conditional support
Date: Thu, 29 Aug 2002 13:29:31 -0700
Organization: Electric Cloud
Message-ID: <001901c24f9a$c8509f80$1401a8c0@Laddie>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <3D6E75E7.50907@ostel.com>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

> From: David Sugar [mailto:dyfet@ostel.com]

> The question that remains is if the behavior is the same.  Since the
> pthread-win32 port already has different behavior than some pthread
> implimentations, there is no clear win here either.  Common C++ also
> maintains consistent behavior at the abstract level above the native
> threading, and so applications built on a win32 native target do where
> we can make it behave the same as those built for some of the MANY
> pthread implimentations found in the posix world, many of which are
also
> in subtle ways broken or incomplete.  I fully agree we need
conditional
> support to be consistent between the win32 and posix platforms, and I
> think we should see if this can be done by the native calls directly.
I
> would presume it can be done if the pthread-win32 port can do this.

I know the pthread-win32 port has experimental support for exception
handling, but if you stick with the basic C implementation, is it
substantially different from unix implementations?

In any case, I have no problem with a win32 native implementation of
Common C++ as long as the behavior is predictable and consistent across
platforms.  I would argue for preserving the pthreads condition variable
semantics, though, as I think they are easier to use correctly than
Windows Event objects.

Since the pthread-win32 sources are LGPL, it seems reasonable to copy
the condition variable algorithms if possible, even if they are
reimplemented in terms of the Common C++/Win32 API instead of
pthreads-win32.





From dyfet@ostel.com Thu Aug 29 16:59:02 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17kWNZ-0004Cx-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:59:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17kWNX-0004CL-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:59:00 -0400
Received: from dsl-65-188-113-57.telocity.com ([65.188.113.57] helo=localhost.localdomain)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17kWNX-0004CF-00
	for bug-commoncpp@gnu.org; Thu, 29 Aug 2002 16:58:59 -0400
Received: from ostel.com (localhost.localdomain [127.0.0.1])
	by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g7TKvPS04848;
	Thu, 29 Aug 2002 16:57:25 -0400
Message-ID: <3D6E8AB5.5030505@ostel.com>
Date: Thu, 29 Aug 2002 16:57:25 -0400
From: David Sugar <dyfet@ostel.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Scott Stanton <stanton@electric-cloud.com>
CC: fedemp@suidzer0.org, bug-commoncpp@gnu.org
Subject: Re: Win32 Conditional support
References: <001901c24f9a$c8509f80$1401a8c0@Laddie>
X-Enigmail-Version: 0.63.3.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Besides the question of exception support, one feature missing 
completely in pthread-win32 was support for signals and the "sigwait()" 
call.  Other features seemed to shift or change on different releases, 
such as how to suspend/resume threads, while others were not implimented 
at all.  I do believe you are correct that the win32 pthread functions 
that were implimented generally did conform to the posix behavior.  In 
any case, I think you are completely right that we could and probably 
should base our implimentation conditional support in the native thread 
module based on what pthread win32 similarly had to do.

Scott Stanton wrote:

>>From: David Sugar [mailto:dyfet@ostel.com]
>>    
>>
>
>  
>
>>The question that remains is if the behavior is the same.  Since the
>>pthread-win32 port already has different behavior than some pthread
>>implimentations, there is no clear win here either.  Common C++ also
>>maintains consistent behavior at the abstract level above the native
>>threading, and so applications built on a win32 native target do where
>>we can make it behave the same as those built for some of the MANY
>>pthread implimentations found in the posix world, many of which are
>>    
>>
>also
>  
>
>>in subtle ways broken or incomplete.  I fully agree we need
>>    
>>
>conditional
>  
>
>>support to be consistent between the win32 and posix platforms, and I
>>think we should see if this can be done by the native calls directly.
>>    
>>
>I
>  
>
>>would presume it can be done if the pthread-win32 port can do this.
>>    
>>
>
>I know the pthread-win32 port has experimental support for exception
>handling, but if you stick with the basic C implementation, is it
>substantially different from unix implementations?
>
>In any case, I have no problem with a win32 native implementation of
>Common C++ as long as the behavior is predictable and consistent across
>platforms.  I would argue for preserving the pthreads condition variable
>semantics, though, as I think they are easier to use correctly than
>Windows Event objects.
>
>Since the pthread-win32 sources are LGPL, it seems reasonable to copy
>the condition variable algorithms if possible, even if they are
>reimplemented in terms of the Common C++/Win32 API instead of
>pthreads-win32.
>
>
>
>
>_______________________________________________
>Bug-commoncpp mailing list
>Bug-commoncpp@gnu.org
>http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>  
>






From fedemp@suidzer0.org Fri Aug 30 16:22:43 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17ksHz-0007Wf-00
	for bug-commoncpp@gnu.org; Fri, 30 Aug 2002 16:22:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17ksHw-0007WS-00
	for bug-commoncpp@gnu.org; Fri, 30 Aug 2002 16:22:42 -0400
Received: from sudizero.net2.nerim.net ([62.212.111.83] helo=hot.suidzer0.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17ksHw-0007WN-00
	for bug-commoncpp@gnu.org; Fri, 30 Aug 2002 16:22:40 -0400
Received: from suidzer0.org (localhost [127.0.0.1])
          by hot.suidzer0.org (8.12.4/jtpda-5.4) with SMTP id g7UKILN0020669
          ; Fri, 30 Aug 2002 22:18:23 +0200
Received: from 62.37.136.60
        (SquirrelMail authenticated user fedemp)
        by webmail.suidzer0.org with HTTP;
        Fri, 30 Aug 2002 22:18:25 +0200 (CEST)
Message-ID: <1580.62.37.136.60.1030738705.squirrel@webmail.suidzer0.org>
Date: Fri, 30 Aug 2002 22:18:25 +0200 (CEST)
Subject: Re: SunOS / g++ / 2.8.1 / (Commonc++ 1.9.7) [SF Porting forum]
From: "Federico Montesino Pouzols" <fedemp@suidzer0.org>
To: <rzr@users.sourceforge.net>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <bug-commoncpp@gnu.org>
Reply-To: fedemp@suidzer0.org
X-Mailer: SquirrelMail (version 1.2.7)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

   Hi,

> the configure script need to be hacked a bit

   I think this has been fixed in CC++ 2. Could you
detail the errors?

>and the ext lib doesnt compile too
>by the way this compiler doesnt support namespaces
>c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I/usr/local/include/libxml
>-I/usr/local/include -I../src -g -O2 -D_GNU_SOURCE -D_REENTRANT
>-D_THREAD_SAFE -c file.cpp -fPIC -DPIC -o .libs/file.lo
>In file included from file.cpp:61:
>file.h:241: syntax error before `:'
>file.h:248: destructors must be member functions
>file.h:248: virtual outside class declaration
>file.h:249: parse error before `}'
>gmake[1]: *** [file.lo] Error 1
>

   If possible, I would suggest you to upgrade to CC++ "2" 1.0, since
1.9.7 is a bit old.






From genest.david@wanadoo.fr Sat Aug 31 10:06:18 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17l8tG-0002zZ-00
	for bug-commoncpp@gnu.org; Sat, 31 Aug 2002 10:06:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17l8tD-0002z1-00
	for bug-commoncpp@gnu.org; Sat, 31 Aug 2002 10:06:17 -0400
Received: from smtp-out-3.wanadoo.fr ([193.252.19.233] helo=mel-rto3.wanadoo.fr)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17l8tD-0002yw-00
	for bug-commoncpp@gnu.org; Sat, 31 Aug 2002 10:06:15 -0400
Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto3.wanadoo.fr (6.5.007)
        id 3D49FC7D00C0CD8E for bug-commoncpp@gnu.org; Sat, 31 Aug 2002 16:06:14 +0200
Received: from localhost (80.13.6.188) by mel-rta9.wanadoo.fr (6.5.007)
        id 3D6EE83C000B0523 for bug-commoncpp@gnu.org; Sat, 31 Aug 2002 16:06:14 +0200
Date: Sat, 31 Aug 2002 16:06:56 +0200
From: David Genest <genest.david@wanadoo.fr>
To: bug-commoncpp@gnu.org
Subject: URLStream::post
Message-Id: <20020831160656.1a00af85.genest.david@wanadoo.fr>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-debian-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi,

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

More precisely, CommonC++2 uses ostringstream (whereas CommonC++1 uses
strsteam), and "ends" is not needed with ostringstream (whereas it is
with strstream). See for ex. http://www.freshsources.com/newcpp.html.
So, line 530 of url.cpp (str << "\r\n" << ends;) is wrong because str is
an ostringstream, and we have to change this line :
	str << "\r\n";

Here is a sample of code (based on demo/urlfetch.cpp) showing the
problem. This program submits a "post" query to search.apache.org.
Without this change, this code displays a page without results (args are
not sent), whereas with this change, it displays the results of the
search.

#include <cc++/common.h>
#include <iostream>
int main(int argc, char **argv)
{
	ost::URLStream url;
	ost::URLStream::Error status;
	char cbuf[1024]; int len;

	const char * args[5];
	args[0] = "keyword=httpd.conf";
	args[1] = "what=httpd.apache.org";
	args[2] = "results=20"; args[3] = "version=2";
	args[4] = NULL;
	status = url.post("http://search.apache.org/", args);
	while(!url.eof())
	{
		url.read(cbuf, sizeof(cbuf));
		len = url.gcount();
		if(len > 0) std::cout.write(cbuf, len);
	}
	url.close();
	return 0;
}

David.



