From MAILER-DAEMON Mon Jan 02 07:42:14 2006
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EtOdP-0003qf-QE
	for mharc-bug-commoncpp@gnu.org; Mon, 02 Jan 2006 07:17:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EtKE3-0007pf-BA
	for bug-commoncpp@gnu.org; Mon, 02 Jan 2006 02:35:28 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EtKDu-0007pE-Vt
	for bug-commoncpp@gnu.org; Mon, 02 Jan 2006 02:35:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EtKDt-0007oy-IS
	for bug-commoncpp@gnu.org; Mon, 02 Jan 2006 02:35:17 -0500
Received: from [66.249.92.198] (helo=uproxy.gmail.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtKEu-0004QV-3g
	for bug-commoncpp@gnu.org; Mon, 02 Jan 2006 02:36:20 -0500
Received: by uproxy.gmail.com with SMTP id u2so818372uge
	for <bug-commoncpp@gnu.org>; Sun, 01 Jan 2006 23:33:38 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:to:subject:mime-version:content-type;
	b=fixQRJUa6DSZF6Ae03gkR7OkfspIZrKvj24a1LC3nk/R+S2JVwJqeaTEDhVQsdiQVVFQhU9FPRm5rFU54T6rsIlzqhxARdyn1t147HWQl7LIbSTcqlW/L4cCgBh7NQNm3eFejRX2B/wfePJDl2DuBjlzHxe7uMp1kYf9BUnH/Yo=
Received: by 10.67.27.1 with SMTP id e1mr4313991ugj;
	Sun, 01 Jan 2006 23:33:37 -0800 (PST)
Received: by 10.66.222.20 with HTTP; Sun, 1 Jan 2006 23:33:37 -0800 (PST)
Message-ID: <e8047edf0601012333t1f086d9ex544679a49b9b9a9e@mail.gmail.com>
Date: Mon, 2 Jan 2006 13:03:37 +0530
From: Haresh Nandwani <haresh.mn@gmail.com>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_13479_6148806.1136187217924"
X-Mailman-Approved-At: Mon, 02 Jan 2006 07:17:37 -0500
Subject: Issue with running make on AIX 5.2
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jan 2006 07:35:30 -0000

------=_Part_13479_6148806.1136187217924
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

I am trying to run the make command on AIX 5.2 for commoncpp2-1.3.22. The
./configure command executes without any issues but the make command fails
with the following result:

*Making all in include
        make  all-recursive
Making all in cc++
Target "all" is up to date.
Target "all-am" is up to date.
Target "all" is up to date.
Making all in src
        /bin/sh ../libtool --mode=3Dcompile xlC_r -DHAVE_CONFIG_H -I. -I.
-I../inc
lude    -I../src -DCCXX_EXPORT_LIBRARY -D_THREAD_SAFE         -D_GNU_SOURCE
-I.
./include  -g -c thread.cpp
 xlC_r -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-D_TH
READ_SAFE -D_GNU_SOURCE -I../include -g -c thread.cpp  -DPIC
1540-5215 (W) No licenses available. Contact your program supplier to add
additi
onal users. Compilation will proceed shortly.
"/usr/include/thread.h", line 32.9: 1540-0848 (S) The macro name
"_THREAD_SAFE"
is already defined with a different definition.
"/usr/include/standards.h", line 63.9: 1540-0425 (I) "_THREAD_SAFE" is
defined o
n line 63 of "thread.cpp".
make: 1254-004 The error code from the last command is 1.*


*Stop.
make: 1254-004 The error code from the last command is 1.*


*Stop.*

Could you please point me to the possible reasons/resolutions to get around
this issue.

Regards..Haresh

------=_Part_13479_6148806.1136187217924
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>Hi,</div>
<div>&nbsp;</div>
<div>I am trying to run the make command on AIX 5.2 for commoncpp2-1.3.22. =
The ./configure command executes without any issues but the make command fa=
ils with the following result:</div>
<div>&nbsp;</div>
<div><strong><em>Making all in include<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; make&nbsp; all-recursive<br>Making all in cc++<br>Target &quot;al=
l&quot; is up to date.<br>Target &quot;all-am&quot; is up to date.<br>Targe=
t &quot;all&quot; is up to date.<br>
Making all in src<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /bin/sh ../=
libtool --mode=3Dcompile xlC_r -DHAVE_CONFIG_H -I. -I. -I../inc<br>lude&nbs=
p;&nbsp;&nbsp; -I../src -DCCXX_EXPORT_LIBRARY -D_THREAD_SAFE&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -D_GNU_SOURCE&nbsp; -I.<br>./include&nbsp=
; -g -c thread.cpp<br>&nbsp;xlC_r -DHAVE_CONFIG_H -I. -I. -I../include -I..=
/src -DCCXX_EXPORT_LIBRARY -D_TH
<br>READ_SAFE -D_GNU_SOURCE -I../include -g -c thread.cpp&nbsp; -DPIC<br>15=
40-5215 (W) No licenses available. Contact your program supplier to add add=
iti<br>onal users. Compilation will proceed shortly.<br>&quot;/usr/include/=
thread.h&quot;, line=20
32.9: 1540-0848 (S) The macro name &quot;_THREAD_SAFE&quot;<br>is already d=
efined with a different definition.<br>&quot;/usr/include/standards.h&quot;=
, line 63.9: 1540-0425 (I) &quot;_THREAD_SAFE&quot; is defined o<br>n line =
63 of &quot;
thread.cpp&quot;.<br>make: 1254-004 The error code from the last command is=
 1.</em></strong></div>
<div>
<p><br><strong><em>Stop.<br>make: 1254-004 The error code from the last com=
mand is 1.</em></strong></p>
<p><br><strong><em>Stop.</em></strong></p>
<p>Could you please point me to the possible reasons/resolutions to get aro=
und this issue.</p>
<p>Regards..Haresh</p></div>

------=_Part_13479_6148806.1136187217924--



From MAILER-DAEMON Mon Jan 09 13:42:39 2006
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Ew1yY-0004vH-CV
	for mharc-bug-commoncpp@gnu.org; Mon, 09 Jan 2006 13:42:38 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Ew1vU-0003Xt-Kq
	for bug-commoncpp@gnu.org; Mon, 09 Jan 2006 13:39:28 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1Ew1vE-0003I5-FU
	for bug-commoncpp@gnu.org; Mon, 09 Jan 2006 13:39:19 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ew1v7-0003EF-Mx
	for bug-commoncpp@gnu.org; Mon, 09 Jan 2006 13:39:06 -0500
Received: from [216.68.248.32] (helo=mail.milacron.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ew1xR-00084e-Go
	for bug-commoncpp@gnu.org; Mon, 09 Jan 2006 13:41:29 -0500
Received: from dmeusmail.dmeus.milacron.com ([143.62.132.57]) by
	mail.milacron.com with Microsoft SMTPSVC(5.0.2195.6713); 
	Mon, 9 Jan 2006 13:34:32 -0500
Received: by dmeusmail.dmeus.milacron.com with Internet Mail Service
	(5.5.2657.72) id <CNQPFJDN>; Mon, 9 Jan 2006 13:34:30 -0500
Message-ID: <EF398F42BE1BDF479B1E481F6E0053F202C40386@dmeusmail.dmeus.milacron.com>
From: erik_ohrnberger@dme.net
To: bug-commoncpp@gnu.org
Date: Mon, 9 Jan 2006 13:34:24 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2657.72)
Content-Type: text/plain;
	charset="iso-8859-1"
X-OriginalArrivalTime: 09 Jan 2006 18:34:33.0049 (UTC)
	FILETIME=[55A8BC90:01C6154B]
Subject: C++ exceptions in persistent streams
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jan 2006 18:42:35 -0000

Hi all,
	I was just wondering if someone could point me in the right
direction for using C++ exception to capture any issues that the C++
persistence engine has reading or writing from/to archive streams.

	I've created a sample program (see below) to test this without
success (I always get an "Aborted (core dumped)" error message.  Please note
that the file "testfile.ost" does not exist, and this is the condition that
I want to 'catch'.  I'd also want to catch any read or write issues to the
persistent stream, such as hard disk full, or a mal-formatted persistent
stream.

	I'm fairly sure that exceptions are being used in the
commoncpp2-1.3.1 library, as I compiled the engine.cpp source file with the
-E g++ option, which emits the post-preprocessor code, and I see that all
the Engine operators have the "throw(Engine::Exception);" as part of their
declaration.

	Any help would be greatly appreciated,
		Erik.

==================  Test Source code below
#include <iostream>
#include <string>
#include <cc++/persist.h>
using namespace std;
using namespace ost;
class PersistObj : public ost::BaseObject
{
  public:
	PersistObj( 			void ) { };
	virtual ~PersistObj(	void ) { };

	// Persistence protocol
	virtual bool 			write(
ost::Engine& archive 		) const;
	virtual bool 			read(
ost::Engine& archive 		);

	std::string				str1;
	bool					boolean1;
};

bool PersistObj::write( ost::Engine& archive ) const
{
	archive
		<<	str1
		<<	boolean1
		;
	return true;
}

bool PersistObj::read( ost::Engine& archive )
{
	archive
		>>	str1
		>>	boolean1
		;

	return true;
}
int main( int argc, char** argv )
{
	const char*			filename	= "testfile.ost";

	cout << "In main.\n";
	try
	{
		cout << "In try block, calling MyFunc().\n";
		fstream inputArchive( filename, ios::in | ios::binary );
		Engine inputEngine( inputArchive, Engine::modeRead );
		PersistObj* m = new PersistObj();

		inputEngine >> *m;
		inputArchive.close();
	}
	catch( Engine::Exception e )
	{
		cout << "Engine::Exception caught! " << e.getString() <<
endl;
	}
	catch( PersistException e )
	{
		cout << "PersistException caught! " << e.getString() <<
endl;
	}
	catch( ost::Exception e )
	{
		cout << "Caught ost::Exception" << e.getString() << endl;
	}
	catch( exception e )
	{
		cout << "Caught std::exception" << endl;
	}
	catch( char *str )
	{
		cout << "Caught some other exception: " << str << "\n";
	}
	cout << "Back in main. Execution resumes here.\n";

	return 0;
}



From MAILER-DAEMON Tue Jan 10 15:20:56 2006
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EwPzE-0002GI-Ay
	for mharc-bug-commoncpp@gnu.org; Tue, 10 Jan 2006 15:20:56 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EwPzC-0002Dt-OR
	for bug-commoncpp@gnu.org; Tue, 10 Jan 2006 15:20:54 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EwPz9-000288-IR
	for bug-commoncpp@gnu.org; Tue, 10 Jan 2006 15:20:54 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EwPz9-00027c-BY
	for bug-commoncpp@gnu.org; Tue, 10 Jan 2006 15:20:51 -0500
Received: from [216.68.248.32] (helo=mail.milacron.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EwQ1e-0000vY-QE
	for bug-commoncpp@gnu.org; Tue, 10 Jan 2006 15:23:27 -0500
Received: from dmeusmail.dmeus.milacron.com ([143.62.132.57]) by
	mail.milacron.com with Microsoft SMTPSVC(5.0.2195.6713); 
	Tue, 10 Jan 2006 15:14:42 -0500
Received: by dmeusmail.dmeus.milacron.com with Internet Mail Service
	(5.5.2657.72) id <CNQPFJ8T>; Tue, 10 Jan 2006 15:14:41 -0500
Message-ID: <EF398F42BE1BDF479B1E481F6E0053F202C40389@dmeusmail.dmeus.milacron.com>
From: erik_ohrnberger@dme.net
To: bug-commoncpp@gnu.org
Date: Tue, 10 Jan 2006 15:14:40 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2657.72)
Content-Type: text/plain;
	charset="iso-8859-1"
X-OriginalArrivalTime: 10 Jan 2006 20:14:42.0635 (UTC)
	FILETIME=[7E1089B0:01C61622]
Subject: RE: C++ exceptions in persistent streams
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Jan 2006 20:20:55 -0000

OK, so nobody responded.  OK.

Figured it out for myself.  You have to enable the stream library exception
mechanism using the fstream.exceptions( <exception mask> ) method to do so.


Well, at least you get std::exceptions at that point.  I've never seen the
PersistException or Exception (Engine::Exception) ever being thrown, so
don't know if the library even does this really.  Seems not to.



From MAILER-DAEMON Thu Jan 19 17:44:21 2006
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EziVw-0002fo-70
	for mharc-bug-commoncpp@gnu.org; Thu, 19 Jan 2006 17:44:20 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EziVt-0002eH-Ea
	for bug-commoncpp@gnu.org; Thu, 19 Jan 2006 17:44:17 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EziVs-0002cK-1z
	for bug-commoncpp@gnu.org; Thu, 19 Jan 2006 17:44:16 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EziVp-0002bc-Io
	for bug-commoncpp@gnu.org; Thu, 19 Jan 2006 17:44:15 -0500
Received: from [80.91.229.2] (helo=ciao.gmane.org)
	by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16)
	(Exim 4.34) id 1EziZw-0001Pv-2e
	for bug-commoncpp@gnu.org; Thu, 19 Jan 2006 17:48:28 -0500
Received: from root by ciao.gmane.org with local (Exim 4.43)
	id 1EziSf-0000S3-Bh
	for bug-commoncpp@gnu.org; Thu, 19 Jan 2006 23:40:58 +0100
Received: from 69.156.66.50 ([69.156.66.50])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-commoncpp@gnu.org>; Thu, 19 Jan 2006 23:40:57 +0100
Received: from jsotis by 69.156.66.50 with local (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-commoncpp@gnu.org>; Thu, 19 Jan 2006 23:40:57 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: bug-commoncpp@gnu.org
From: "J.S. Otis" <jsotis@innovmetric.com>
Date: Wed, 18 Jan 2006 14:49:26 -0500
Lines: 41
Message-ID: <dqm646$dla$1@sea.gmane.org>
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 69.156.66.50
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Sender: news <news@sea.gmane.org>
Subject: Assertion failure usign boost::format with Visual C++2005
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2006 22:44:18 -0000

Hello,


Here is a sample that generates an assertion failure with Visual C++
2005 using boost 1.33.1.
A NULL ptr is passed to std::string::append() by
boost::io::detail::mk_str().


////////////////////////////////////////////////////////////////////
#include <boost/format.hpp>


int main(int argc, char* argv[])
{
     std::string str(""); // Empty string.


     boost::format frmt( "%s" );
     std::string res = ( frmt % str ).str();


     return 0;
}


////////////////////////////////////////////////////////////////////


This is due to all the assert statements added in the new "secure" STL
that is shipped with VC2005.
But still, I don't think passing NULL to string::append() is correct
anyway...


Regards.
J.S.Otis
Software Developper
InnovMetric Software Inc.






