From MAILER-DAEMON Sat Feb 01 15:31:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18f4Il-000734-00
	for mharc-bug-commoncpp@gnu.org; Sat, 01 Feb 2003 15:31:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18f4IT-0006D6-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 15:31:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18f4II-0005iv-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 15:31:22 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18f4I8-0005DX-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 15:31:08 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18f4JE-0006fm-00; Sat, 01 Feb 2003 21:32:16 +0100
Date: Sat, 1 Feb 2003 21:32:16 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Chad Yates <cyates@uidaho.edu>
Message-ID: <20030201203216.GA10861@bulbasaur.rediris.es>
Mail-Followup-To: Chad Yates <cyates@uidaho.edu>,
	albert@dogbert.sdsl.sun.ac.za,
	bug-commoncpp <bug-commoncpp@gnu.org>
References: <20030130104845.GB269@bulbasaur.rediris.es>
	<NBBBJJODBJBNJFNIDDCNCEHODEAA.cyates@uidaho.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <NBBBJJODBJBNJFNIDDCNCEHODEAA.cyates@uidaho.edu>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: albert@dogbert.sdsl.sun.ac.za
cc: bug-commoncpp <bug-commoncpp@gnu.org>
Subject: Re: common C++ test suite
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 01 Feb 2003 20:31:44 -0000


	Ok, I have just commited the new stuff to CVS. I have modified
the Makefile.am of tests/ so that both ccxx_tests and the old
individual tests can be compiled. With the current arrangement, on
platforms where configure works, by default, only the individual tests
will be build. If you want ccxx_tests to be generated you will need to
specify

	./configure --with-cppunit

	Ah, this is the output on a Debian GNU/Linux with gcc 2.95.4:

..........E.E.E.E.E.E...E....

!!!FAILURES!!!
Test Results:
Run:  22   Failures: 0   Errors: 7


1) test: ATestFixtureType.testPrimitives (E)
 "caught unknown exception"

2) test: ATestFixtureType.testRawBinary (E)
 "caught unknown exception"

3) test: ATestFixtureType.testSTLVector (E)
 "caught unknown exception"

4) test: ATestFixtureType.testSTLDeque (E)
 "caught unknown exception"

5) test: ATestFixtureType.testSTLMap (E)
 "caught unknown exception"

6) test: ATestFixtureType.testComplexObject (E)
 "caught unknown exception"

7) test: ATestFixtureType.testIsValid (E)
 "caught unknown exception"

	I am using the 1.8.0-1 version of the cppunit debian
package. Perhaps the errors are because a newer version of cppunit is
needed?

	Also, for now I have commented Test_Digest.cpp in Makefile.am,
since it fails to compile on some gccs because of a very weird
conflict between some sha methods and some c++ streams methods.

On Thu, Jan 30, 2003 at 12:52:17PM -0800, Chad Yates wrote:
> > 	Do you agree with this plan?
> 
> Sounds good to me, as an official developer I would expect you could move
> the source/Makefile.am I sent you to tests (to go along with the msvc++
> project I sent) and make any appropriate changes to the build system.
> 
> Let me know when I should pull a new copy of commoncpp2 with the changes.
> 
> (snip)
> 
> ,Chad
> 



From MAILER-DAEMON Sat Feb 01 19:27:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18f7yf-000870-00
	for mharc-bug-commoncpp@gnu.org; Sat, 01 Feb 2003 19:27:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18f7yP-0007GM-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 19:27:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18f7y6-0006NQ-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 19:26:45 -0500
Received: from snickers.hotpop.com ([204.57.55.49])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18f7y4-00068l-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 19:26:41 -0500
Received: from punkass.com (kubrick.hotpop.com [204.57.55.16])
	by snickers.hotpop.com (Postfix) with SMTP id 371567778C
	for <bug-commoncpp@gnu.org>; Sun,  2 Feb 2003 00:26:25 +0000 (UTC)
Received: from din-cisuc13.dei.uc.pt (gtDEI-NATgw.dei.uc.pt [193.137.203.232])
	by smtp-1.hotpop.com (Postfix) with ESMTP id D67B02F8116
	for <bug-commoncpp@gnu.org>; Sun,  2 Feb 2003 00:26:22 +0000 (UTC)
From: =?iso-8859-1?q?Jos=E9=20Tavares?= <zarroba@punkass.com>
To: bug-commoncpp@gnu.org
Date: Sun, 2 Feb 2003 00:26:13 +0000
User-Agent: KMail/1.5
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <200302020023.24932.jtavares@student.dei.uc.pt>
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-HotPOP: -----------------------------------------------
                   Sent By HotPOP.com FREE Email
             Get your FREE POP email at www.HotPOP.com
          -----------------------------------------------
Subject: tcpstream and strings
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 02 Feb 2003 00:27:15 -0000

I know this must be a very very simple question, but here it is:
I can send a string throw a tcpstream object using something like this
		tcpstream tcp;
		tcp << "Something like this" << endl;

but when I use the same scheme to read the message (something like tcp >> str, 
str is a string object) and then print it out (using cout << str) only the 
first word is read. How can I resolve this?

TIA,
Jose Tavares




From MAILER-DAEMON Sat Feb 01 20:04:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18f8YX-0002gQ-00
	for mharc-bug-commoncpp@gnu.org; Sat, 01 Feb 2003 20:04:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18f8YI-0001zK-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 20:04:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18f8Y7-0001XJ-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 20:03:57 -0500
Received: from betamax.aero.und.edu ([134.129.212.13])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18f8Xq-0000ld-00
	for bug-commoncpp@gnu.org; Sat, 01 Feb 2003 20:03:38 -0500
Received: from betamax
	(IDENT:1oXW+CyV7WtGt6tDfjzMO4EdWdv3KD5m@localhost.localdomain [127.0.0.1])
	by betamax.aero.und.edu (8.12.5/8.9.0) with ESMTP id h1213bcC018879;
	Sat, 1 Feb 2003 19:03:38 -0600
Date: Sat, 1 Feb 2003 19:03:37 -0600 (CST)
From: Ari Johnson <ariston@cs.und.edu>
To: =?iso-8859-1?q?Jos=E9=20Tavares?= <zarroba@punkass.com>
In-Reply-To: <200302020023.24932.jtavares@student.dei.uc.pt>
Message-ID: <Pine.LNX.4.44.0302011902350.18659-100000@betamax.aero.und.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: QUOTED-PRINTABLE
cc: bug-commoncpp@gnu.org
Subject: Re: tcpstream and strings
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 02 Feb 2003 01:04:19 -0000


This is a known feature of iostream, and tcpstream inherits from iostream=
=20
so it is to be expected.  The best solution that I've found is to allocate=
=20
a buffer and use the .read() or .readline() methods.  For example:
  char buff[1024];
  tcpstream tcp;
  tcp.readline(buff, 1024); // or tcp.read(buff, 1024)

Ari Johnson

On Sun, 2 Feb 2003, [iso-8859-1] Jos=E9 Tavares wrote:

> I know this must be a very very simple question, but here it is:
> I can send a string throw a tcpstream object using something like this
> =09=09tcpstream tcp;
> =09=09tcp << "Something like this" << endl;
>=20
> but when I use the same scheme to read the message (something like tcp >>=
 str,=20
> str is a string object) and then print it out (using cout << str) only th=
e=20
> first word is read. How can I resolve this?
>=20
> TIA,
> Jose Tavares
>=20
>=20
>=20
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>=20




From MAILER-DAEMON Sun Feb 02 19:50:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fUoE-0001ve-00
	for mharc-bug-commoncpp@gnu.org; Sun, 02 Feb 2003 19:50:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fUoC-0001qh-00
	for bug-commoncpp@gnu.org; Sun, 02 Feb 2003 19:50:00 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fUoB-0001nZ-00
	for bug-commoncpp@gnu.org; Sun, 02 Feb 2003 19:49:59 -0500
Received: from ns2.envia-tel.net ([193.98.112.146])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fUoA-0001iz-00
	for bug-commoncpp@gnu.org; Sun, 02 Feb 2003 19:49:58 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by ns2.envia-tel.net (8.12.4/8.12.4) with ESMTP id h130ntFR009339
	for <bug-commoncpp@gnu.org>; Mon, 3 Feb 2003 01:49:55 +0100
Received: by mailserver.wige-data.de with Internet Mail Service (5.5.2653.19)
	id <CFLZ18D3>; Mon, 3 Feb 2003 01:49:50 +0100
Received: from wige-data.de (dialin-145-254-177-106.arcor-ip.net
	[145.254.177.106]) by mailserver.wige-data.de with SMTP (Microsoft Exchange
	Internet Mail Service Version 5.5.2653.13)
	id CFLZ18DN; Mon, 3 Feb 2003 01:49:44 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3E3DB1DB.1000802@wige-data.de>
Date: Mon, 03 Feb 2003 01:03:39 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: thread memory leak
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 00:50:01 -0000

Hello,

I get 3 Memory leaks when I run this example(BorlandC/Win32/latest CVS 
version)
leaks:
2x myThread each 32 byte
1x MainThread 32 byte

Can someone pls help me and point what is wrong?

Thanks,
Adib.

//---------------------------------------------------------------------------
class myThread : public Thread
{
   char m_c;
   public:
   myThread(char c){m_c=c;}
   void run(void)
   {
     setCancel(Thread::cancelImmediate);
     while(1)
     {
       std::cout << m_c;
       sleep(500);
     }
   }
};

#pragma argsused
int main(int argc, char* argv[])
{
   myThread *a=new myThread('a'), *b=new myThread('b');
   a->detach();
   b->start();
   char z=0;
   while(1)
   {
     z=getch();
     if(z=='a') a->suspend();
     else if(z=='b') b->suspend();
     else if(z=='A') a->resume();
     else if(z=='B') b->resume();
     printf("zei=%c", z);
     if(z==0x1b) break;
   }
   delete a;
   delete b;
}



From MAILER-DAEMON Sun Feb 02 20:30:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fVR5-0008PE-00
	for mharc-bug-commoncpp@gnu.org; Sun, 02 Feb 2003 20:30:11 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fVQF-00085M-00
	for bug-commoncpp@gnu.org; Sun, 02 Feb 2003 20:29:19 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fVQD-00083i-00
	for bug-commoncpp@gnu.org; Sun, 02 Feb 2003 20:29:17 -0500
Received: from pool-141-153-147-83.mad.east.verizon.net ([141.153.147.83]
	helo=home.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18fVPp-0007d0-00
	for bug-commoncpp@gnu.org; Sun, 02 Feb 2003 20:28:53 -0500
Received: from localhost.localdomain ([192.168.1.102])
	by home.bayonne.dyndns.org (8.11.6/8.11.6) with ESMTP id h1326CO07626;
	Sun, 2 Feb 2003 21:06:12 -0500
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: taraben.a@wige-data.de, bug-commoncpp@gnu.org
Date: Sun, 2 Feb 2003 20:25:56 -0500
User-Agent: KMail/1.4.3
References: <3E3DB1DB.1000802@wige-data.de>
In-Reply-To: <3E3DB1DB.1000802@wige-data.de>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302022025.56434.dyfet@ostel.com>
Subject: Re: thread memory leak
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 01:30:09 -0000

Since thread a is a detached thread, you cannot "join" or delete it from=20
another thread.  It must delete itself as it exits through it's final. =20

On Sunday 02 February 2003 19:03, taraben.a@wige-data.de wrote:
> Hello,
>
> I get 3 Memory leaks when I run this example(BorlandC/Win32/latest CVS
> version)
> leaks:
> 2x myThread each 32 byte
> 1x MainThread 32 byte
>
> Can someone pls help me and point what is wrong?
>
> Thanks,
> Adib.
>
> //---------------------------------------------------------------------=
----
>-- class myThread : public Thread
> {
>    char m_c;
>    public:
>    myThread(char c){m_c=3Dc;}
>    void run(void)
>    {
>      setCancel(Thread::cancelImmediate);
>      while(1)
>      {
>        std::cout << m_c;
>        sleep(500);
>      }
>    }
> };
>
> #pragma argsused
> int main(int argc, char* argv[])
> {
>    myThread *a=3Dnew myThread('a'), *b=3Dnew myThread('b');
>    a->detach();
>    b->start();
>    char z=3D0;
>    while(1)
>    {
>      z=3Dgetch();
>      if(z=3D=3D'a') a->suspend();
>      else if(z=3D=3D'b') b->suspend();
>      else if(z=3D=3D'A') a->resume();
>      else if(z=3D=3D'B') b->resume();
>      printf("zei=3D%c", z);
>      if(z=3D=3D0x1b) break;
>    }
>    delete a;
>    delete b;
> }
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Mon Feb 03 01:17:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fZug-0004cK-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 01:17:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fZud-0004TQ-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 01:16:59 -0500
Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fZuc-0004TH-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 01:16:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fZg4-00054J-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 01:01:56 -0500
Received: from tomts12.bellnexxia.net ([209.226.175.56]
	helo=tomts12-srv.bellnexxia.net)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18fZg3-00050U-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 01:01:55 -0500
Received: from Toronto-HSE-ppp3706837.sympatico.ca ([65.95.2.252])
	by tomts12-srv.bellnexxia.netESMTP
	<20030203060151.DDYI1478.tomts12-srv.bellnexxia.net@Toronto-HSE-ppp3706837.sympatico.ca>
	for <bug-commoncpp@gnu.org>; Mon, 3 Feb 2003 01:01:51 -0500
From: Mongryong <Mongryong@sympatico.ca>
To: "bug-commoncpp@gnu.org" <bug-commoncpp@gnu.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) 
Date: 03 Feb 2003 01:01:57 -0500
Message-Id: <1044252117.1328.79.camel@refugeeMedia>
Mime-Version: 1.0
X-TMDA-Confirmed: Mon Feb 3 01:16:58 EST 2003
Subject: Python Extension
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 06:17:00 -0000

Has there been any work to create a Python extension for CommonC++?  

Thanks.







From MAILER-DAEMON Mon Feb 03 03:23:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fbtO-00005P-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 03:23:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fbtL-0008SV-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 03:23:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fbtJ-0008Qa-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 03:23:46 -0500
Received: from pool-141-153-147-83.mad.east.verizon.net ([141.153.147.83]
	helo=home.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18fbtH-0008I0-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 03:23:44 -0500
Received: from localhost.localdomain ([192.168.1.102])
	by home.bayonne.dyndns.org (8.11.6/8.11.6) with ESMTP id h13913O09985;
	Mon, 3 Feb 2003 04:01:04 -0500
Content-Type: text/plain;
  charset="utf-8"
From: David Sugar <dyfet@ostel.com>
To: Mongryong <Mongryong@sympatico.ca>,
   "bug-commoncpp@gnu.org" <bug-commoncpp@gnu.org>
Date: Mon, 3 Feb 2003 03:20:52 -0500
User-Agent: KMail/1.4.3
References: <1044252117.1328.79.camel@refugeeMedia>
In-Reply-To: <1044252117.1328.79.camel@refugeeMedia>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302030320.52443.dyfet@ostel.com>
Subject: Re: Python Extension
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 08:23:48 -0000

Strange you should mention this.  I had actually looked at how it might b=
e=20
possible to conveniently embed python and encapsulate python contexts=20
(threads) into a convenient and easy to use Common C++ class lib=20
(libccpython).  Python lends itself well to this because it can be thread=
=20
executed (with some special considerations)...

On Monday 03 February 2003 01:01, Mongryong wrote:
> Has there been any work to create a Python extension for CommonC++?
>
> Thanks.
>
>
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Mon Feb 03 09:18:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fhQG-0007La-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 09:18:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fhQ7-00072n-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 09:17:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fhQ3-0006uo-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 09:17:56 -0500
Received: from acate.com.br ([200.215.17.89] helo=cli004.brasmap)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fhPz-0006H9-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 09:17:52 -0500
Received: from brasmap.com.br (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (Postfix) with SMTP id 1DCBC5B4EA
	for <bug-commoncpp@gnu.org>; Mon,  3 Feb 2003 12:24:04 -0200 (BRST)
Date: Mon, 3 Feb 2003 12:24:03 -0200
From: Marcelo Dalmas <mad@brasmap.com.br>
To: ccxx <bug-commoncpp@gnu.org>
Message-Id: <20030203122403.4e10e37f.mad@brasmap.com.br>
Organization: BRASMAP Sistemas
X-Mailer: Sylpheed version 0.8.7 (GTK+ 1.2.10; i586-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="Multipart_Mon__3_Feb_2003_12:24:03_-0200_08235838"
Subject: date backwards compatibility
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 14:18:07 -0000

This is a multi-part message in MIME format.

--Multipart_Mon__3_Feb_2003_12:24:03_-0200_08235838
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi all,

I'm sending a patch for date.cpp with a new setDate() to keep backwards
compatibility.


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

Linux user #114373 http://counter.li.org/


--Multipart_Mon__3_Feb_2003_12:24:03_-0200_08235838
Content-Type: application/octet-stream;
 name="date.patch"
Content-Disposition: attachment;
 filename="date.patch"
Content-Transfer-Encoding: base64

SW5kZXg6IHNyYy9kYXRlLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9jb21tb25j
cHAvY29tbW9uY3BwMi9zcmMvZGF0ZS5jcHAsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTIKZGlm
ZiAtcjEuMTIgZGF0ZS5jcHAKOTZjOTYsOTcKPCAJY29uc3QgY2hhciAqbWQgPSBzdHI7Ci0tLQo+
IAljb25zdCBjaGFyICptc3RyID0gc3RyOwo+IAljb25zdCBjaGFyICpkc3RyID0gc3RyOwo5OWEx
MDEsMTEyCj4gLy8wMDAwCj4gCWlmKHNpemUgPT0gNCkgCj4gCXsKPiAjaWZkZWYgREVCVUcKPiAJ
CWNvdXQgPDwgIkRhdGU6OlNldERhdGUoKTogMDAwMCIgPDwgZW5kbDsKPiAjZW5kaWYKPiAJCXRp
bWUoJm5vdyk7Cj4gCQlkdCA9IGxvY2FsdGltZSgmbm93KTsKPiAJCXllYXIgPSBkdC0+dG1feWVh
ciArIDE5MDA7Cj4gCQltc3RyID0gc3RyOwo+IAkJZHN0ciA9IHN0ciArIDI7Cj4gCX0JCQoxMDFj
MTE0CjwgCWlmKHNpemUgPT0gNSkKLS0tCj4gCWVsc2UgaWYoc2l6ZSA9PSA1KQoxMDJhMTE2LDEx
OAo+ICNpZmRlZiBERUJVRwo+IAkJY291dCA8PCAiRGF0ZTo6U2V0RGF0ZSgpOiAwMC8wMCIgPDwg
ZW5kbDsKPiAjZW5kaWYKMTA2YzEyMiwxNDcKPCAJCW1kID0gc3RyOwotLS0KPiAJCW1zdHIgPSBz
dHI7Cj4gCQlkc3RyID0gc3RyICsgMzsKPiAJfQo+IC8vMDAwMDAwCj4gCWVsc2UgaWYoc2l6ZSA9
PSA2KQo+IAl7Cj4gI2lmZGVmIERFQlVHCj4gCQljb3V0IDw8ICJEYXRlOjpTZXREYXRlKCk6IDAw
MDAwMCIgPDwgZW5kbDsKPiAjZW5kaWYKPiAJCXRpbWUoJm5vdyk7Cj4gCQlkdCA9IGxvY2FsdGlt
ZSgmbm93KTsKPiAJCVpOdW1iZXIgbnllYXIoKGNoYXIqKXN0ciwgMik7Cj4gCQl5ZWFyID0gKChk
dC0+dG1feWVhciArIDE5MDApIC8gMTAwKSAqIDEwMCArIG55ZWFyKCk7Cj4gCQltc3RyID0gc3Ry
ICsgMjsKPiAJCWRzdHIgPSBzdHIgKyA0Owo+IAl9Cj4gLy8wMDAwMDAwMAo+IAllbHNlIGlmKHNp
emUgPT0gOCAmJiBzdHJbMl0gPj0gJzAnICYmIHN0clsyXSA8PSAnOScgJiYgc3RyWzVdID49ICcw
JyAmJiBzdHJbNV0gPD0gJzknKQo+IAl7Cj4gI2lmZGVmIERFQlVHCj4gCQljb3V0IDw8ICJEYXRl
OjpTZXREYXRlKCk6IDAwMDAwMDAwIiA8PCBlbmRsOwo+ICNlbmRpZgo+IAkJWk51bWJlciBueWVh
cigoY2hhciopc3RyLCA0KTsKPiAJCXllYXIgPSBueWVhcigpOwo+IAkJbXN0ciA9IHN0ciArIDQ7
Cj4gCQlkc3RyID0gc3RyICsgNjsKMTEwYTE1MiwxNTQKPiAjaWZkZWYgREVCVUcKPiAJCWNvdXQg
PDwgIkRhdGU6OlNldERhdGUoKTogMDAvMDAvMDAiIDw8IGVuZGw7Cj4gI2VuZGlmCjExNWMxNTks
MTYwCjwgCQltZCA9IHN0ciArIDM7Ci0tLQo+IAkJbXN0ciA9IHN0ciArIDM7Cj4gCQlkc3RyID0g
c3RyICsgNjsKMTE2YTE2Mgo+IAoxMTlhMTY2LDE2OAo+ICNpZmRlZiBERUJVRwo+IAkJY291dCA8
PCAiRGF0ZTo6U2V0RGF0ZSgpOiAwMDAwLzAwLzAwIiA8PCBlbmRsOwo+ICNlbmRpZgoxMjJjMTcx
LDE3Mgo8IAkJbWQgPSBzdHIgKyA1OwotLS0KPiAJCW1zdHIgPSBzdHIgKyA1Owo+IAkJZHN0ciA9
IHN0ciArIDg7CjEzNiwxMzdjMTg2LDE4Nwo8IAlaTnVtYmVyIG5tb250aCgoY2hhciopbWQsIDIp
Owo8IAlaTnVtYmVyIG5kYXkoKGNoYXIqKW1kICsgMywgMik7Ci0tLQo+IAlaTnVtYmVyIG5tb250
aCgoY2hhciopbXN0ciwgMik7Cj4gCVpOdW1iZXIgbmRheSgoY2hhciopZHN0ciwgMik7Cg==

--Multipart_Mon__3_Feb_2003_12:24:03_-0200_08235838--



From MAILER-DAEMON Mon Feb 03 10:39:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18figW-0008Mo-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 10:39:00 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18figV-0008MZ-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 10:38:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18figT-0008Ly-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 10:38:58 -0500
Received: from mx1.magmacom.com ([206.191.0.217])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18figS-0008Lc-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 10:38:56 -0500
Received: from mail1.magma.ca (mail1.magma.ca [206.191.0.252])
	h13Fcqej017579;	Mon, 3 Feb 2003 10:38:52 -0500 (EST)
Received: from igough (ottawa-hs-64-26-156-25.s-ip.magma.ca [64.26.156.25])
	by mail1.magma.ca (Magma's Mail Server) with ESMTP id h13FcpnL011617;
	Mon, 3 Feb 2003 10:38:51 -0500 (EST)
From: "Ian Gough" <igough@gridiron-networks.com>
To: "'Federico Montesino Pouzols'" <fedemp@altern.org>
Date: Mon, 3 Feb 2003 10:38:51 -0500
Message-ID: <000601c2cb9a$5a6d2660$0c02a8c0@gridironnetworks.com>
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
In-Reply-To: <20030131090220.GA253@bulbasaur.rediris.es>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
cc: 'bug-commoncpp' <bug-commoncpp@gnu.org>
cc: 'David Sugar' <dyfet@ostel.com>
Subject: RE: Building CC++ on Mac OS X
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 15:39:00 -0000

!#$!@#$!@

Investigated the problem with the compiler not being able to find
lockf() on Mac OS X. So I put in an AC_CHECK_FUNCS rule to check for
lockf(), and to my surprise, autoconf found the function. After looking
at the code generated for the test, I determined that it is not
attempting to find the file in a header, but instead, checking if it
exists in the standard libs. It seems that on Mac OS X, the func is in
the libs and there is a man page, but it is NOT declared in any header
file. Grrr.

I have submitted a bug report to Apple but dunno when it will get fixed.

In the meanwhile, do you think it make sense to attempt to detect if
lockf() is declared in some header file and if not, to declare it if the
autoconf test for the function succeeds?

> -----Original Message-----
> From: Federico Montesino Pouzols 
> [mailto:fedemp@bulbasaur.rediris.es] On Behalf Of Federico 
> Montesino Pouzols
> Sent: Friday, January 31, 2003 4:02 AM
> To: Ian Gough
> Cc: 'David Sugar'; 'Federico Montesino Pouzols'; 'bug-commoncpp'
> Subject: Re: Building CC++ on Mac OS X
> 
> 
> 
> 	Ah, I have replaced the test with a call to 
> AC_CHECK_FUNCS, which I suspect is what I should have done 
> first instead of using AC_TRY_COMPILE. After all, CHECK_FUNCS 
> is the predefined autoconf macro for this issues.
> 
> On Thu, Jan 30, 2003 at 01:33:00PM -0500, Ian Gough wrote:
> > Wouldn't the C/C++ issue be a general problem for ANY test 
> that uses 
> > AC_TRY_COMPILE?. If you use the C compiler, autoconf cannot detect 
> > missing functionality properly.
> > 
> > Will somebody be making this change or is there an 
> expectation that I 
> > would make the change? Not that I know what file in which 
> to make any 
> > changes. :-)
> > 
> > > -----Original Message-----
> > > From: David Sugar [mailto:dyfet@ostel.com]
> > > Sent: Thursday, January 30, 2003 12:23 PM
> > > To: Ian Gough; 'Federico Montesino Pouzols'
> > > Cc: 'bug-commoncpp'
> > > Subject: Re: Building CC++ on Mac OS X
> > > 
> > > 
> > > The AC_LANG_CPP and AC_LANG_RESTORE options will need to be
> > > used in the 
> > > section that tests for this function.  This will make sure 
> > > they are tested 
> > > with the local machines C++ compiler rather than the C 
> compiler....
> > > 
> > > On Thursday 30 January 2003 11:41, Ian Gough wrote:
> > > > OK, found the problem.
> > > >
> > > > If I call the small sched_getscheduler test program 
> test.c, then 
> > > > it
> > > > compiles with no errors or warnings. If I call the same 
> program but 
> > > > named test.cpp, then gcc complains about an undefined 
> identifier.
> > > >
> > > > The autoconf test creates conftest.c when testing for
> > > > sched_getscheduler (and probably other functions too) 
> and so the 
> > > > compiler never complains about missing functions. Using the 
> > > -std=c99
> > > > options to gcc causes warnings to be reported on the c files.
> > > >
> > > > [commoncpp2 613] cat test.c
> > > > #include <sched.h>
> > > >
> > > > int main ()
> > > > {
> > > >   int policy;
> > > >   policy = sched_getscheduler(0);
> > > >   return 0;
> > > > }
> > > > [commoncpp2 614] cat test.cpp
> > > > #include <sched.h>
> > > >
> > > > int main ()
> > > > {
> > > >   int policy;
> > > >   policy = sched_getscheduler(0);
> > > >   return 0;
> > > > }
> > > > [commoncpp2 615] gcc -c -g -O2 test.cpp
> > > > test.cpp: In function `int main()':
> > > > test.cpp:6: `sched_getscheduler' undeclared (first use this
> > > function)
> > > > test.cpp:6: (Each undeclared identifier is reported only
> > > once for each
> > > > function
> > > >    it appears in.)
> > > > [commoncpp2 616] gcc -c -g -O2 test.c
> > > > [commoncpp2 617]
> > > > [commoncpp2 618] gcc -c -g -O2 -std=c99 test.c
> > > > test.c: In function `main':
> > > > test.c:6: warning: implicit declaration of function
> > > > `sched_getscheduler'
> > > >
> > > > > -----Original Message-----
> > > > > From: Federico Montesino Pouzols
> > > > > [mailto:fedemp@bulbasaur.rediris.es] On Behalf Of 
> > > Federico Montesino
> > > > > Pouzols
> > > > > Sent: Wednesday, January 29, 2003 4:18 PM
> > > > > To: Ian Gough
> > > > > Cc: 'bug-commoncpp'
> > > > > Subject: Re: Building CC++ on Mac OS X
> > > > >
> > > > >
> > > > >
> > > > > 	Yes, the semaphore stuff is still pending, I 
> expect to fix it 
> > > > > soon. As for the sched_getscheduler issue, it is
> > > weird that
> > > > > it is detected, since the test is like this:
> > > > >
> > > > >         AC_TRY_COMPILE(
> > > > >                 [#include <sched.h>],
> > > > >                 [
> > > > >                 int policy;
> > > > >                 policy = sched_getscheduler(0);
> > > > >                 ],
> > > > >                 [AC_DEFINE(HAVE_SCHED_GETSCHEDULER)])
> > > > >
> > > > > 	Could you try to compile on your system a 
> simple C program like 
> > > > > the one above? It should not compile, but it
> > > seems that
> > > > > autoconf is able to succesfully compile it.
> > > > >
> > > > > On Mon, Jan 27, 2003 at 11:10:46AM -0500, Ian Gough wrote:
> > > > > > Grabbed a new CVS snapshot this morning and tried to build
> > > > >
> > > > > after these
> > > > >
> > > > > > changes and I still get compilation failures:
> > > > > >
> > > > > > g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > > g++ -DCCXX_EXPORT_LIBRARY
> > > > > > -I/usr/local/include -D_GNU_SOURCE -Wall -ansi -pedantic
> > > > >
> > > > > -I../include
> > > > >
> > > > > > -c thread.cpp -MT thread.lo -MD -MP -MF .deps/thread.TPlo
> > > > >
> > > > > -fno-common
> > > > >
> > > > > > -DPIC -o .libs/thread.lo
> > > > > > cc1plus: warning: changing search order for system directory
> > > > > > "/usr/local/include"
> > > > > > cc1plus: warning:   as it has already been specified as 
> > > a non-system
> > > > > > directory
> > > > > > thread.cpp: In constructor `ost::Thread::Thread(int,
> > > long unsigned
> > > > > > int)':
> > > > > > thread.cpp:536: `sched_getscheduler' undeclared (first use 
> > > > > > this
> > > > > > function)
> > > > > > thread.cpp:536: (Each undeclared identifier is reported
> > > > >
> > > > > only once for
> > > > >
> > > > > > each
> > > > > >    function it appears in.)
> > > > > > thread.cpp:554: `sched_getparam' undeclared (first use this
> > > > >
> > > > > function)
> > > > >
> > > > > > make[1]: *** [thread.lo] Error 1
> > > > > > make: *** [all-recursive] Error 1
> > > > > >
> > > > > > Checking if HAVE_SCHED_GETSCHEDULER is defined in one of the
> > > > > > header files shows that it is defined in config.h for 
> > > some reason.
> > > > > >
> > > > > > [/var/root/src/revgen/xGrid/ccxx 552] grep -r HAVE_SCHED *
> > > > > > acconfig.h:#undef HAVE_SCHED_GETSCHEDULER acconfig.h:#ifdef 
> > > > > > HAVE_SCHED_H config.log:#define HAVE_SCHED_H 1 
> > > config.log:#define
> > > > > > HAVE_SCHED_GETSCHEDULER 1
> > > > >
> > > > > config.status:${ac_dA}HAVE_SCHED_H${ac_dB}HAVE_SCHED_H${ac_dC}
> > > > > 1${ac_dD}
> > > > >
> > > > > config.status:${ac_dA}HAVE_SCHED_GETSCHEDULER${ac_dB}HAVE_SCHE
> > > >
> > > > D_GETSCHED
> > > >
> > > > > > ULER${ac_dC}1${ac_dD}
> > > > >
> > > > > config.status:${ac_uA}HAVE_SCHED_H${ac_uB}HAVE_SCHED_H${ac_uC}
> > > > > 1${ac_uD}
> > > > >
> > > > > config.status:${ac_uA}HAVE_SCHED_GETSCHEDULER${ac_uB}HAVE_SCHE
> > > >
> > > > D_GETSCHED
> > > >
> > > > > > ULER${ac_uC}1${ac_uD}
> > > > > > configure:#define HAVE_SCHED_GETSCHEDULER 1
> > > > > > include/cc++/config.h:#define HAVE_SCHED_GETSCHEDULER 1 
> > > > > > include/cc++/config.h:#define HAVE_SCHED_H 1 
> > > > > > include/cc++/config.h:#ifdef HAVE_SCHED_H 
> > > > > > include/cc++/config.tmp:#define HAVE_SCHED_GETSCHEDULER 1 
> > > > > > include/cc++/config.tmp:#define HAVE_SCHED_H 1 
> > > > > > include/cc++/config.tmp:#ifdef HAVE_SCHED_H 
> > > > > > include/config.h:#define HAVE_SCHED_GETSCHEDULER 1 
> > > > > > include/config.h:#define HAVE_SCHED_H 1 
> include/config.h:#ifdef 
> > > > > > HAVE_SCHED_H include/config.h.in:#undef 
> HAVE_SCHED_GETSCHEDULER
> > > > > > include/config.h.in:#undef HAVE_SCHED_H
> > > > > > include/config.h.in:#ifdef HAVE_SCHED_H
> > > > > > m4/ost_pthread.m4:
> > > > >
> > > > > [AC_DEFINE(HAVE_SCHED_GETSCHEDULER)])
> > > > >
> > > > > > m4/ost_pthread.m4:dnl #undef HAVE_SCHED_GETSCHEDULER
> > > > > > m4/ost_pthread.m4:dnl #ifdef HAVE_SCHED_H 
> src/thread.cpp:#ifdef 
> > > > > > HAVE_SCHED_GETSCHEDULER src/thread.cpp:#endif // ifdef 
> > > > > > HAVE_SCHED_GETSCHEDULER
> > > > > >
> > > > > > But /usr/include/sched.h shows that there is no
> > > > >
> > > > > sched_getscheduler()
> > > > >
> > > > > > function.
> > > > > >
> > > > > > #ifndef _SCHED_H_
> > > > > > #define _SCHED_H_
> > > > > >
> > > > > > #include <pthread_impl.h>
> > > > > >
> > > > > > /*
> > > > > >  * Scheduling paramters
> > > > > >  */
> > > > > > #ifndef __POSIX_LIB__
> > > > > > struct sched_param { int sched_priority;  char
> > > > > > opaque[__SCHED_PARAM_SIZE__]; }; #endif
> > > > > >
> > > > > > extern int sched_yield(void);
> > > > > > extern int sched_get_priority_min(int);
> > > > > > extern int sched_get_priority_max(int);
> > > > > > #endif /* _SCHED_H_ */
> > > > > >
> > > > > > I grepped for sched_getscheduler and turned up no 
> hits, so I 
> > > > > > am
> > > > > > not sure why the autoconf system thinks that it exists.
> > > > > >
> > > > > > I then defined __FreeBSD__ to get around this 
> problem, but ran
> > > > > > into another compile problem.
> > > > > >
> > > > > > g++ -DHAVE_CONFIG_H -I. -I. -I../include -D__FreeBSD__ 
> > > > > > g++ -I../src
> > > > > > -DCCXX_EXPORT_LIBRARY -I/usr/local/include -D_GNU_SOURCE
> > > > >
> > > > > -Wall -ansi
> > > > >
> > > > > > -pedantic -I../include -c semaphore.cpp -MT semaphore.lo
> > > > >
> > > > > -MD -MP -MF
> > > > >
> > > > > > .deps/semaphore.TPlo  -fno-common -DPIC -o 
> .libs/semaphore.lo
> > > > > > cc1plus: warning: changing search order for system directory
> > > > > > "/usr/local/include"
> > > > > > cc1plus: warning:   as it has already been specified as 
> > > a non-system
> > > > > > directory
> > > > > > /usr/include/sys/sem.h: In destructor `virtual
> > > > > > ost::Semaphore::~Semaphore()':
> > > > > > /usr/include/sys/sem.h:242: too few arguments to 
> function `int
> > > > > > ost::semctl(int,
> > > > > >    int, int, ost::semun)'
> > > > > > semaphore.cpp:100: at this point in file
> > > > > > /usr/include/sys/sem.h: In member function `int
> > > > > > ost::Semaphore::getValue()':
> > > > > > /usr/include/sys/sem.h:242: too few arguments to 
> function `int 
> > > > > > ost::semctl(int,
> > > > > >    int, int, ost::semun)'
> > > > > > semaphore.cpp:126: at this point in file
> > > > > > make: *** [semaphore.lo] Error 1
> > > > > >
> > > > > > Mac OS X does not seem to have SYSV semaphores and an
> > > > >
> > > > > incomplete set
> > > > >
> > > > > > of POSIX semaphore functions. It does NOT have sem_init and
> > > > > > sem_destroy, but it does have sem_open and sem_close.
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Federico Montesino Pouzols
> > > > > > > [mailto:fedemp@bulbasaur.rediris.es] On Behalf Of 
> Federico 
> > > > > > > Montesino Pouzols
> > > > > > > Sent: Wednesday, January 22, 2003 3:20 AM
> > > > > > > To: Ian Gough
> > > > > > > Cc: 'bug-commoncpp'
> > > > > > > Subject: Re: Building CC++ on Mac OS X
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 	Good, I have commited some modifications that
> > > should fix this
> > > > > > > issue.
> > > > > > >
> > > > > > > On Tue, Jan 21, 2003 at 09:47:57AM -0500, Ian Gough wrote:
> > > > > > > > > 	Um, I have just looked at this and 
> actually there is
> > > > > > >
> > > > > > > already some
> > > > > > >
> > > > > > > > > autoconf stuff. Could you confirm if, in the 
> config.h of
> > > > > > >
> > > > > > > cc++, the
> > > > > > >
> > > > > > > > > symbol HAVE_SOCKLEN_T is undefined?
> > > > > > > >
> > > > > > > > It is commented out. From include/cc++/config.h
> > > > > > > >
> > > > > > > > #define HAVE_INET_ATON 1
> > > > > > > > #define HAVE_INET_SOCKETS 1
> > > > > > > > #define HAVE_UNIX_SOCKETS 1
> > > > > > > > /* #undef HAVE_SOCKLEN_T */
> > > > > > > > /* #undef HAVE_SYS_LIBCSYS_H */
> > > > > > > > /* #undef HAVE_SYS_STREAM_H */
> > > > > > > > /* #undef HAVE_SYS_POLL_H */
> > > > > > > > /* #undef HAVE_POLL_H */
> > > > > >
> > > > > > _______________________________________________
> > > > > > Bug-commoncpp mailing list
> > > > > > Bug-commoncpp@gnu.org
> > > > > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > > >
> > > > _______________________________________________
> > > > Bug-commoncpp mailing list
> > > > Bug-commoncpp@gnu.org
> > > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > > 
> > > 
> > 
> > 
> > 
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org 
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 




From MAILER-DAEMON Mon Feb 03 14:46:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fmXl-00043H-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 14:46:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fmXi-0003yC-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 14:46:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fmXe-0003rm-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 14:46:06 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fmXP-0003T2-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 14:45:51 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18fmYm-00042k-00
	for <bug-commoncpp@gnu.org>; Mon, 03 Feb 2003 20:47:16 +0100
Date: Mon, 3 Feb 2003 20:47:16 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: ccxx <bug-commoncpp@gnu.org>
Message-ID: <20030203194716.GA6850@bulbasaur.rediris.es>
Mail-Followup-To: ccxx <bug-commoncpp@gnu.org>
References: <20030203122403.4e10e37f.mad@brasmap.com.br>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030203122403.4e10e37f.mad@brasmap.com.br>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
Subject: Re: date backwards compatibility
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 19:46:11 -0000


	It is in CVS.

On Mon, Feb 03, 2003 at 12:24:03PM -0200, Marcelo Dalmas wrote:
> Hi all,
> 
> I'm sending a patch for date.cpp with a new setDate() to keep backwards
> compatibility.
> 
> 
> -- 
> Marcelo Dalmas
> BRASMAP Sistemas
> www.brasmap.com.br
> Fone/Fax: (48) 333-2218 ramal 2114
> 
> Linux user #114373 http://counter.li.org/
> 


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




From MAILER-DAEMON Mon Feb 03 15:17:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fmzw-0003bu-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 15:15:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fmzr-0003VD-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 15:15:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fmzW-0002lr-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 15:15:08 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fmzG-0001v0-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 15:14:38 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18fn0f-00047N-00; Mon, 03 Feb 2003 21:16:05 +0100
Date: Mon, 3 Feb 2003 21:16:05 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Ian Gough <igough@gridiron-networks.com>
Message-ID: <20030203201605.GB6850@bulbasaur.rediris.es>
Mail-Followup-To: Ian Gough <igough@gridiron-networks.com>,
	'bug-commoncpp' <bug-commoncpp@gnu.org>,
	'David Sugar' <dyfet@ostel.com>
References: <20030131090220.GA253@bulbasaur.rediris.es>
	<000601c2cb9a$5a6d2660$0c02a8c0@gridironnetworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <000601c2cb9a$5a6d2660$0c02a8c0@gridironnetworks.com>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: 'bug-commoncpp' <bug-commoncpp@gnu.org>
cc: 'David Sugar' <dyfet@ostel.com>
Subject: Re: Building CC++ on Mac OS X
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 03 Feb 2003 20:15:18 -0000


	Curious. Yes, I think that your solution makes sense. I would
add an ost_sysflock.m4 with the definition of OST_CC_FLOCK for this.

On Mon, Feb 03, 2003 at 10:38:51AM -0500, Ian Gough wrote:
> !#$!@#$!@
> 
> Investigated the problem with the compiler not being able to find
> lockf() on Mac OS X. So I put in an AC_CHECK_FUNCS rule to check for
> lockf(), and to my surprise, autoconf found the function. After looking
> at the code generated for the test, I determined that it is not
> attempting to find the file in a header, but instead, checking if it
> exists in the standard libs. It seems that on Mac OS X, the func is in
> the libs and there is a man page, but it is NOT declared in any header
> file. Grrr.
> 
> I have submitted a bug report to Apple but dunno when it will get fixed.
> 
> In the meanwhile, do you think it make sense to attempt to detect if
> lockf() is declared in some header file and if not, to declare it if the
> autoconf test for the function succeeds?
> 
> > -----Original Message-----
> > From: Federico Montesino Pouzols 
> > [mailto:fedemp@bulbasaur.rediris.es] On Behalf Of Federico 
> > Montesino Pouzols
> > Sent: Friday, January 31, 2003 4:02 AM
> > To: Ian Gough
> > Cc: 'David Sugar'; 'Federico Montesino Pouzols'; 'bug-commoncpp'
> > Subject: Re: Building CC++ on Mac OS X
> > 
> > 
> > 
> > 	Ah, I have replaced the test with a call to 
> > AC_CHECK_FUNCS, which I suspect is what I should have done 
> > first instead of using AC_TRY_COMPILE. After all, CHECK_FUNCS 
> > is the predefined autoconf macro for this issues.
> > 
> > On Thu, Jan 30, 2003 at 01:33:00PM -0500, Ian Gough wrote:
> > > Wouldn't the C/C++ issue be a general problem for ANY test 
> > that uses 
> > > AC_TRY_COMPILE?. If you use the C compiler, autoconf cannot detect 
> > > missing functionality properly.
> > > 
> > > Will somebody be making this change or is there an 
> > expectation that I 
> > > would make the change? Not that I know what file in which 
> > to make any 
> > > changes. :-)
> > > 
> > > > -----Original Message-----
> > > > From: David Sugar [mailto:dyfet@ostel.com]
> > > > Sent: Thursday, January 30, 2003 12:23 PM
> > > > To: Ian Gough; 'Federico Montesino Pouzols'
> > > > Cc: 'bug-commoncpp'
> > > > Subject: Re: Building CC++ on Mac OS X
> > > > 
> > > > 
> > > > The AC_LANG_CPP and AC_LANG_RESTORE options will need to be
> > > > used in the 
> > > > section that tests for this function.  This will make sure 
> > > > they are tested 
> > > > with the local machines C++ compiler rather than the C 
> > compiler....
> > > > 
> > > > On Thursday 30 January 2003 11:41, Ian Gough wrote:
> > > > > OK, found the problem.
> > > > >
> > > > > If I call the small sched_getscheduler test program 
> > test.c, then 
> > > > > it
> > > > > compiles with no errors or warnings. If I call the same 
> > program but 
> > > > > named test.cpp, then gcc complains about an undefined 
> > identifier.
> > > > >
> > > > > The autoconf test creates conftest.c when testing for
> > > > > sched_getscheduler (and probably other functions too) 
> > and so the 
> > > > > compiler never complains about missing functions. Using the 
> > > > -std=c99
> > > > > options to gcc causes warnings to be reported on the c files.
> > > > >
> > > > > [commoncpp2 613] cat test.c
> > > > > #include <sched.h>
> > > > >
> > > > > int main ()
> > > > > {
> > > > >   int policy;
> > > > >   policy = sched_getscheduler(0);
> > > > >   return 0;
> > > > > }
> > > > > [commoncpp2 614] cat test.cpp
> > > > > #include <sched.h>
> > > > >
> > > > > int main ()
> > > > > {
> > > > >   int policy;
> > > > >   policy = sched_getscheduler(0);
> > > > >   return 0;
> > > > > }
> > > > > [commoncpp2 615] gcc -c -g -O2 test.cpp
> > > > > test.cpp: In function `int main()':
> > > > > test.cpp:6: `sched_getscheduler' undeclared (first use this
> > > > function)
> > > > > test.cpp:6: (Each undeclared identifier is reported only
> > > > once for each
> > > > > function
> > > > >    it appears in.)
> > > > > [commoncpp2 616] gcc -c -g -O2 test.c
> > > > > [commoncpp2 617]
> > > > > [commoncpp2 618] gcc -c -g -O2 -std=c99 test.c
> > > > > test.c: In function `main':
> > > > > test.c:6: warning: implicit declaration of function
> > > > > `sched_getscheduler'
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Federico Montesino Pouzols
> > > > > > [mailto:fedemp@bulbasaur.rediris.es] On Behalf Of 
> > > > Federico Montesino
> > > > > > Pouzols
> > > > > > Sent: Wednesday, January 29, 2003 4:18 PM
> > > > > > To: Ian Gough
> > > > > > Cc: 'bug-commoncpp'
> > > > > > Subject: Re: Building CC++ on Mac OS X
> > > > > >
> > > > > >
> > > > > >
> > > > > > 	Yes, the semaphore stuff is still pending, I 
> > expect to fix it 
> > > > > > soon. As for the sched_getscheduler issue, it is
> > > > weird that
> > > > > > it is detected, since the test is like this:
> > > > > >
> > > > > >         AC_TRY_COMPILE(
> > > > > >                 [#include <sched.h>],
> > > > > >                 [
> > > > > >                 int policy;
> > > > > >                 policy = sched_getscheduler(0);
> > > > > >                 ],
> > > > > >                 [AC_DEFINE(HAVE_SCHED_GETSCHEDULER)])
> > > > > >
> > > > > > 	Could you try to compile on your system a 
> > simple C program like 
> > > > > > the one above? It should not compile, but it
> > > > seems that
> > > > > > autoconf is able to succesfully compile it.
> > > > > >
> > > > > > On Mon, Jan 27, 2003 at 11:10:46AM -0500, Ian Gough wrote:
> > > > > > > Grabbed a new CVS snapshot this morning and tried to build
> > > > > >
> > > > > > after these
> > > > > >
> > > > > > > changes and I still get compilation failures:
> > > > > > >
> > > > > > > g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
> > > > > > > g++ -DCCXX_EXPORT_LIBRARY
> > > > > > > -I/usr/local/include -D_GNU_SOURCE -Wall -ansi -pedantic
> > > > > >
> > > > > > -I../include
> > > > > >
> > > > > > > -c thread.cpp -MT thread.lo -MD -MP -MF .deps/thread.TPlo
> > > > > >
> > > > > > -fno-common
> > > > > >
> > > > > > > -DPIC -o .libs/thread.lo
> > > > > > > cc1plus: warning: changing search order for system directory
> > > > > > > "/usr/local/include"
> > > > > > > cc1plus: warning:   as it has already been specified as 
> > > > a non-system
> > > > > > > directory
> > > > > > > thread.cpp: In constructor `ost::Thread::Thread(int,
> > > > long unsigned
> > > > > > > int)':
> > > > > > > thread.cpp:536: `sched_getscheduler' undeclared (first use 
> > > > > > > this
> > > > > > > function)
> > > > > > > thread.cpp:536: (Each undeclared identifier is reported
> > > > > >
> > > > > > only once for
> > > > > >
> > > > > > > each
> > > > > > >    function it appears in.)
> > > > > > > thread.cpp:554: `sched_getparam' undeclared (first use this
> > > > > >
> > > > > > function)
> > > > > >
> > > > > > > make[1]: *** [thread.lo] Error 1
> > > > > > > make: *** [all-recursive] Error 1
> > > > > > >
> > > > > > > Checking if HAVE_SCHED_GETSCHEDULER is defined in one of the
> > > > > > > header files shows that it is defined in config.h for 
> > > > some reason.
> > > > > > >
> > > > > > > [/var/root/src/revgen/xGrid/ccxx 552] grep -r HAVE_SCHED *
> > > > > > > acconfig.h:#undef HAVE_SCHED_GETSCHEDULER acconfig.h:#ifdef 
> > > > > > > HAVE_SCHED_H config.log:#define HAVE_SCHED_H 1 
> > > > config.log:#define
> > > > > > > HAVE_SCHED_GETSCHEDULER 1
> > > > > >
> > > > > > config.status:${ac_dA}HAVE_SCHED_H${ac_dB}HAVE_SCHED_H${ac_dC}
> > > > > > 1${ac_dD}
> > > > > >
> > > > > > config.status:${ac_dA}HAVE_SCHED_GETSCHEDULER${ac_dB}HAVE_SCHE
> > > > >
> > > > > D_GETSCHED
> > > > >
> > > > > > > ULER${ac_dC}1${ac_dD}
> > > > > >
> > > > > > config.status:${ac_uA}HAVE_SCHED_H${ac_uB}HAVE_SCHED_H${ac_uC}
> > > > > > 1${ac_uD}
> > > > > >
> > > > > > config.status:${ac_uA}HAVE_SCHED_GETSCHEDULER${ac_uB}HAVE_SCHE
> > > > >
> > > > > D_GETSCHED
> > > > >
> > > > > > > ULER${ac_uC}1${ac_uD}
> > > > > > > configure:#define HAVE_SCHED_GETSCHEDULER 1
> > > > > > > include/cc++/config.h:#define HAVE_SCHED_GETSCHEDULER 1 
> > > > > > > include/cc++/config.h:#define HAVE_SCHED_H 1 
> > > > > > > include/cc++/config.h:#ifdef HAVE_SCHED_H 
> > > > > > > include/cc++/config.tmp:#define HAVE_SCHED_GETSCHEDULER 1 
> > > > > > > include/cc++/config.tmp:#define HAVE_SCHED_H 1 
> > > > > > > include/cc++/config.tmp:#ifdef HAVE_SCHED_H 
> > > > > > > include/config.h:#define HAVE_SCHED_GETSCHEDULER 1 
> > > > > > > include/config.h:#define HAVE_SCHED_H 1 
> > include/config.h:#ifdef 
> > > > > > > HAVE_SCHED_H include/config.h.in:#undef 
> > HAVE_SCHED_GETSCHEDULER
> > > > > > > include/config.h.in:#undef HAVE_SCHED_H
> > > > > > > include/config.h.in:#ifdef HAVE_SCHED_H
> > > > > > > m4/ost_pthread.m4:
> > > > > >
> > > > > > [AC_DEFINE(HAVE_SCHED_GETSCHEDULER)])
> > > > > >
> > > > > > > m4/ost_pthread.m4:dnl #undef HAVE_SCHED_GETSCHEDULER
> > > > > > > m4/ost_pthread.m4:dnl #ifdef HAVE_SCHED_H 
> > src/thread.cpp:#ifdef 
> > > > > > > HAVE_SCHED_GETSCHEDULER src/thread.cpp:#endif // ifdef 
> > > > > > > HAVE_SCHED_GETSCHEDULER
> > > > > > >
> > > > > > > But /usr/include/sched.h shows that there is no
> > > > > >
> > > > > > sched_getscheduler()
> > > > > >
> > > > > > > function.
> > > > > > >
> > > > > > > #ifndef _SCHED_H_
> > > > > > > #define _SCHED_H_
> > > > > > >
> > > > > > > #include <pthread_impl.h>
> > > > > > >
> > > > > > > /*
> > > > > > >  * Scheduling paramters
> > > > > > >  */
> > > > > > > #ifndef __POSIX_LIB__
> > > > > > > struct sched_param { int sched_priority;  char
> > > > > > > opaque[__SCHED_PARAM_SIZE__]; }; #endif
> > > > > > >
> > > > > > > extern int sched_yield(void);
> > > > > > > extern int sched_get_priority_min(int);
> > > > > > > extern int sched_get_priority_max(int);
> > > > > > > #endif /* _SCHED_H_ */
> > > > > > >
> > > > > > > I grepped for sched_getscheduler and turned up no 
> > hits, so I 
> > > > > > > am
> > > > > > > not sure why the autoconf system thinks that it exists.
> > > > > > >
> > > > > > > I then defined __FreeBSD__ to get around this 
> > problem, but ran
> > > > > > > into another compile problem.
> > > > > > >
> > > > > > > g++ -DHAVE_CONFIG_H -I. -I. -I../include -D__FreeBSD__ 
> > > > > > > g++ -I../src
> > > > > > > -DCCXX_EXPORT_LIBRARY -I/usr/local/include -D_GNU_SOURCE
> > > > > >
> > > > > > -Wall -ansi
> > > > > >
> > > > > > > -pedantic -I../include -c semaphore.cpp -MT semaphore.lo
> > > > > >
> > > > > > -MD -MP -MF
> > > > > >
> > > > > > > .deps/semaphore.TPlo  -fno-common -DPIC -o 
> > .libs/semaphore.lo
> > > > > > > cc1plus: warning: changing search order for system directory
> > > > > > > "/usr/local/include"
> > > > > > > cc1plus: warning:   as it has already been specified as 
> > > > a non-system
> > > > > > > directory
> > > > > > > /usr/include/sys/sem.h: In destructor `virtual
> > > > > > > ost::Semaphore::~Semaphore()':
> > > > > > > /usr/include/sys/sem.h:242: too few arguments to 
> > function `int
> > > > > > > ost::semctl(int,
> > > > > > >    int, int, ost::semun)'
> > > > > > > semaphore.cpp:100: at this point in file
> > > > > > > /usr/include/sys/sem.h: In member function `int
> > > > > > > ost::Semaphore::getValue()':
> > > > > > > /usr/include/sys/sem.h:242: too few arguments to 
> > function `int 
> > > > > > > ost::semctl(int,
> > > > > > >    int, int, ost::semun)'
> > > > > > > semaphore.cpp:126: at this point in file
> > > > > > > make: *** [semaphore.lo] Error 1
> > > > > > >
> > > > > > > Mac OS X does not seem to have SYSV semaphores and an
> > > > > >
> > > > > > incomplete set
> > > > > >
> > > > > > > of POSIX semaphore functions. It does NOT have sem_init and
> > > > > > > sem_destroy, but it does have sem_open and sem_close.
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Federico Montesino Pouzols
> > > > > > > > [mailto:fedemp@bulbasaur.rediris.es] On Behalf Of 
> > Federico 
> > > > > > > > Montesino Pouzols
> > > > > > > > Sent: Wednesday, January 22, 2003 3:20 AM
> > > > > > > > To: Ian Gough
> > > > > > > > Cc: 'bug-commoncpp'
> > > > > > > > Subject: Re: Building CC++ on Mac OS X
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 	Good, I have commited some modifications that
> > > > should fix this
> > > > > > > > issue.
> > > > > > > >
> > > > > > > > On Tue, Jan 21, 2003 at 09:47:57AM -0500, Ian Gough wrote:
> > > > > > > > > > 	Um, I have just looked at this and 
> > actually there is
> > > > > > > >
> > > > > > > > already some
> > > > > > > >
> > > > > > > > > > autoconf stuff. Could you confirm if, in the 
> > config.h of
> > > > > > > >
> > > > > > > > cc++, the
> > > > > > > >
> > > > > > > > > > symbol HAVE_SOCKLEN_T is undefined?
> > > > > > > > >
> > > > > > > > > It is commented out. From include/cc++/config.h
> > > > > > > > >
> > > > > > > > > #define HAVE_INET_ATON 1
> > > > > > > > > #define HAVE_INET_SOCKETS 1
> > > > > > > > > #define HAVE_UNIX_SOCKETS 1
> > > > > > > > > /* #undef HAVE_SOCKLEN_T */
> > > > > > > > > /* #undef HAVE_SYS_LIBCSYS_H */
> > > > > > > > > /* #undef HAVE_SYS_STREAM_H */
> > > > > > > > > /* #undef HAVE_SYS_POLL_H */
> > > > > > > > > /* #undef HAVE_POLL_H */
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Bug-commoncpp mailing list
> > > > > > > Bug-commoncpp@gnu.org
> > > > > > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > > > >
> > > > > _______________________________________________
> > > > > Bug-commoncpp mailing list
> > > > > Bug-commoncpp@gnu.org
> > > > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Bug-commoncpp mailing list
> > > Bug-commoncpp@gnu.org 
> > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Mon Feb 03 19:57:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18frK4-0004nX-00
	for mharc-bug-commoncpp@gnu.org; Mon, 03 Feb 2003 19:52:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18frJv-0004eV-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 19:52:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18frJ0-00041x-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 19:51:23 -0500
Received: from ns2.envia-tel.net ([193.98.112.146])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18frD3-00028D-00
	for bug-commoncpp@gnu.org; Mon, 03 Feb 2003 19:45:09 -0500
Received: from mailserver.wige-data.de (gw1.wige-data.de [80.243.44.1])
	by ns2.envia-tel.net (8.12.4/8.12.4) with ESMTP id h140j8FR015117
	for <bug-commoncpp@gnu.org>; Tue, 4 Feb 2003 01:45:08 +0100
Received: by mailserver.wige-data.de with Internet Mail Service (5.5.2653.19)
	id <CFLZ19H2>; Tue, 4 Feb 2003 01:45:04 +0100
Received: from wige-data.de (dialin-145-254-179-108.arcor-ip.net
	[145.254.179.108]) by mailserver.wige-data.de with SMTP (Microsoft Exchange
	Internet Mail Service Version 5.5.2653.13)
	id CFLZ19HH; Tue, 4 Feb 2003 01:44:55 +0100
From: taraben.a@wige-data.de
To: bug-commoncpp@gnu.org
Message-ID: <3E3EF1A7.6040306@wige-data.de>
Date: Mon, 03 Feb 2003 23:48:07 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: threads win32 + possible bug
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 04 Feb 2003 00:52:22 -0000

Hm, how do I start? I still have this memory leaks.
Pls can someone point me to a correct thread example.
The examples in tests should they fail?

BTW join is _not_ linked to the WIN32 target as it is in a #ifndef WIN32 
section. Move this below the *blocked_signals(sigset_t *sig) function 
solve this problem.

Adib.



From MAILER-DAEMON Tue Feb 04 03:01:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fy0u-0003SH-00
	for mharc-bug-commoncpp@gnu.org; Tue, 04 Feb 2003 03:01:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fy0p-0003EQ-00
	for bug-commoncpp@gnu.org; Tue, 04 Feb 2003 03:00:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fy0e-0002mG-00
	for bug-commoncpp@gnu.org; Tue, 04 Feb 2003 03:00:52 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fy0S-00025b-00
	for bug-commoncpp@gnu.org; Tue, 04 Feb 2003 03:00:36 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18fy1s-0000Q8-00; Tue, 04 Feb 2003 09:02:04 +0100
Date: Tue, 4 Feb 2003 09:02:04 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: taraben.a@wige-data.de
Message-ID: <20030204080204.GA256@bulbasaur.rediris.es>
Mail-Followup-To: taraben.a@wige-data.de, bug-commoncpp@gnu.org
References: <3E3EF1A7.6040306@wige-data.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3E3EF1A7.6040306@wige-data.de>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: threads win32 + possible bug
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 04 Feb 2003 08:01:03 -0000

On Mon, Feb 03, 2003 at 11:48:07PM +0100, taraben.a@wige-data.de wrote:
> Hm, how do I start? I still have this memory leaks.
> Pls can someone point me to a correct thread example.
> The examples in tests should they fail?
> 

	You can use start(), for joinable threads, or detach(), for
detached threads. I would suggest you the 'tcpservice' and 'tcpthread'
demos. The demos and tests are meant to work well, but there is a
thread test (thread2) that tries to raise an access violation.

> BTW join is _not_ linked to the WIN32 target as it is in a #ifndef WIN32 
> section. Move this below the *blocked_signals(sigset_t *sig) function 
> solve this problem.
> 
	Fixed in CVS.

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



From MAILER-DAEMON Tue Feb 04 12:26:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18g6oF-0008K9-00
	for mharc-bug-commoncpp@gnu.org; Tue, 04 Feb 2003 12:24:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18g6mY-0007HX-00
	for bug-commoncpp@gnu.org; Tue, 04 Feb 2003 12:22:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18g6kd-0006Cc-00
	for bug-commoncpp@gnu.org; Tue, 04 Feb 2003 12:20:52 -0500
Received: from acate.com.br ([200.215.17.89] helo=cli004.brasmap)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18g6i9-0005hw-00
	for bug-commoncpp@gnu.org; Tue, 04 Feb 2003 12:18:18 -0500
Received: from brasmap.com.br (localhost.localdomain [127.0.0.1])
	by cli004.brasmap (Postfix) with SMTP id C2EE25B4EA
	for <bug-commoncpp@gnu.org>; Tue,  4 Feb 2003 15:17:51 -0200 (BRST)
Date: Tue, 4 Feb 2003 15:17:51 -0200
From: Marcelo Dalmas <mad@brasmap.com.br>
To: ccxx <bug-commoncpp@gnu.org>
Message-Id: <20030204151751.7ad0dcbf.mad@brasmap.com.br>
Organization: BRASMAP Sistemas
X-Mailer: Sylpheed version 0.8.7 (GTK+ 1.2.10; i586-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="Multipart_Tue__4_Feb_2003_15:17:51_-0200_08199438"
Subject: suite test for date.cpp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 04 Feb 2003 17:24:34 -0000

This is a multi-part message in MIME format.

--Multipart_Tue__4_Feb_2003_15:17:51_-0200_08199438
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

I'm sending a patch with a modification in Test_Date.h to set exception mode to throwNothing and a correction to setDate method.

Regards,

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

Linux user #114373 http://counter.li.org/


--Multipart_Tue__4_Feb_2003_15:17:51_-0200_08199438
Content-Type: application/octet-stream;
 name="date.patch"
Content-Disposition: attachment;
 filename="date.patch"
Content-Transfer-Encoding: base64

SW5kZXg6IHNyYy9kYXRlLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9jb21tb25j
cHAvY29tbW9uY3BwMi9zcmMvZGF0ZS5jcHAsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTMKZGlm
ZiAtdSAtcjEuMTMgZGF0ZS5jcHAKLS0tIHNyYy9kYXRlLmNwcAkzIEZlYiAyMDAzIDE5OjM5OjUy
IC0wMDAwCTEuMTMKKysrIHNyYy9kYXRlLmNwcAk0IEZlYiAyMDAzIDExOjQyOjQxIC0wMDAwCkBA
IC0xODAsNiArMTgwLDcgQEAKIAkJdGhyb3cgRXhjZXB0aW9uKCJEYXRlOjpzZXREYXRlKCk6IElu
dmFsaWQgZGF0ZS4iKTsKIAl9CSAgICAJCiAJZWxzZSB7CisJCWp1bGlhbiA9IDB4N2ZmZmZmZmZs
OwogCQlyZXR1cm47CiAJfQogCQpJbmRleDogdGVzdHMvVGVzdF9EYXRlLmgKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpS
Q1MgZmlsZTogL2N2c3Jvb3QvY29tbW9uY3BwL2NvbW1vbmNwcDIvdGVzdHMvVGVzdF9EYXRlLmgs
dgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMQpkaWZmIC11IC1yMS4xIFRlc3RfRGF0ZS5oCi0tLSB0
ZXN0cy9UZXN0X0RhdGUuaAkxIEZlYiAyMDAzIDIwOjA5OjE2IC0wMDAwCTEuMQorKysgdGVzdHMv
VGVzdF9EYXRlLmgJNCBGZWIgMjAwMyAxMTo0Mjo0MSAtMDAwMApAQCAtMzksNiArMzksNyBAQAog
Ly8gSWYgeW91IGRvIG5vdCB3aXNoIHRoYXQsIGRlbGV0ZSB0aGlzIGV4Y2VwdGlvbiBub3RpY2Uu
CiAKICNpbmNsdWRlIDxjcHB1bml0L2V4dGVuc2lvbnMvSGVscGVyTWFjcm9zLmg+CisjaW5jbHVk
ZSA8Y2MrKy90aHJlYWQuaD4KICNpbmNsdWRlIDxjYysrL251bWJlcnMuaD4gLy8gaW5jbHVkZXMg
RGF0ZQogI2luY2x1ZGUgPGlvc3RyZWFtPgogI2luY2x1ZGUgPGlvbWFuaXA+CkBAIC03OCw2ICs3
OSw4IEBACiBwdWJsaWM6CiAgIHZvaWQgc2V0VXAoKQogICB7CisgICAgc2V0RXhjZXB0aW9uKFRo
cmVhZDo6dGhyb3dOb3RoaW5nKTsKKyAgICAKICAgICBkYXRlID0gRGF0ZSgyMDAzLCAxLCA2KTsK
ICAgICBleHBfeWVhciA9IDIwMDM7CiAgICAgZXhwX21vbnRoID0gMTsK

--Multipart_Tue__4_Feb_2003_15:17:51_-0200_08199438--



From MAILER-DAEMON Wed Feb 05 04:59:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18gMJJ-0000Ib-00
	for mharc-bug-commoncpp@gnu.org; Wed, 05 Feb 2003 04:57:41 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18gMJ0-0000A3-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 04:57:22 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18gMH8-0007xq-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 04:55:27 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18gMH5-0007pU-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 04:55:24 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18gMFV-000451-00; Wed, 05 Feb 2003 10:53:45 +0100
Date: Wed, 5 Feb 2003 10:53:44 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Marcelo Dalmas <mad@brasmap.com.br>
Message-ID: <20030205095344.GA5274@bulbasaur.rediris.es>
Mail-Followup-To: Marcelo Dalmas <mad@brasmap.com.br>,
	ccxx <bug-commoncpp@gnu.org>
References: <20030204151751.7ad0dcbf.mad@brasmap.com.br>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030204151751.7ad0dcbf.mad@brasmap.com.br>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: ccxx <bug-commoncpp@gnu.org>
Subject: Re: suite test for date.cpp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 05 Feb 2003 09:57:40 -0000


	Commited. I guess you have been able to successfully run the
tests?

On Tue, Feb 04, 2003 at 03:17:51PM -0200, Marcelo Dalmas wrote:
> Hi,
> 
> I'm sending a patch with a modification in Test_Date.h to set exception mode to throwNothing and a correction to setDate method.
> 
> Regards,
> 
> -- 
> Marcelo Dalmas
> BRASMAP Sistemas
> www.brasmap.com.br
> Fone/Fax: (48) 333-2218 ramal 2114
> 
> Linux user #114373 http://counter.li.org/
> 


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




From MAILER-DAEMON Wed Feb 05 17:45:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18gYHE-0001lA-00
	for mharc-bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:44:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18gYHA-0001bj-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:44:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18gYGi-00019X-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:43:51 -0500
Received: from shockwave.systems.pipex.net ([62.241.160.9])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18gYGd-0000zC-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:43:43 -0500
Received: from bigfoot.com (81-86-233-34.dsl.pipex.com [81.86.233.34])
	by shockwave.systems.pipex.net (Postfix) with ESMTP id 442E7160010B2
	for <bug-commoncpp@gnu.org>; Wed,  5 Feb 2003 22:43:41 +0000 (GMT)
Message-ID: <3E41938C.8060503@bigfoot.com>
Date: Wed, 05 Feb 2003 22:43:24 +0000
From: Jon Wilson <sendmemymail@bigfoot.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Building 1.0.8 on windows with MingW
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 05 Feb 2003 22:44:19 -0000

I am attempting to build commoncpp2-1.0.8 on windows 2000 using gcc 3.2 
(mingw 20020817-1), however,  install.bat seems to be aimed at vc++ 
users and "make -f Makefile.gcc" gives:

i586-mingw32msvc-c++ -c -I. -I../include 
-I/usr/i586-mingw32msvc/include/libxml
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 
-mthreads -
o ../win32/../win32/thread.o ../src/thread.cpp
process_begin: CreateProcess((null), i586-mingw32msvc-c++ -c -I. 
-I../include -I
/usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE 
-include ../w
in32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/thread.o 
../src/thread.
cpp, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [../win32/thread.o] Error 2

Am I doing something wrong? I read that some people managed to get 1.9.3 
working with patches in the mail archives, but I have not found anywhere 
to download that version?

Hope you can help.
Thanks.
Jon Wilson




From MAILER-DAEMON Wed Feb 05 17:52:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18gYOP-0002ja-00
	for mharc-bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:51:45 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18gYO0-0002Qi-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:51:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18gYNl-0002Ge-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:51:07 -0500
Received: from pool-141-153-147-83.mad.east.verizon.net ([141.153.147.83]
	helo=home.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18gYNM-0001kv-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 17:50:40 -0500
Received: from localhost.sys ([192.168.1.104])
	by home.bayonne.dyndns.org (8.11.6/8.11.6) with ESMTP id h15NSL903957;
	Wed, 5 Feb 2003 18:28:21 -0500
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Jon Wilson <sendmemymail@bigfoot.com>, bug-commoncpp@gnu.org
Date: Wed, 5 Feb 2003 17:51:05 -0500
User-Agent: KMail/1.4.3
References: <3E41938C.8060503@bigfoot.com>
In-Reply-To: <3E41938C.8060503@bigfoot.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302051751.05644.dyfet@ostel.com>
Subject: Re: Building 1.0.8 on windows with MingW
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 05 Feb 2003 22:51:43 -0000

The "makefile.gcc" was actually prepared for use in cross-compiling from =
a=20
Debian host (using the Debian mingw32 cross compile package).  It probabl=
y=20
works fine with other unix hosted mingw32-gcc cross compilers, but I have=
 no=20
idea if it works on win32, or what problems one may experiance on that=20
platform.

On Wednesday 05 February 2003 17:43, Jon Wilson wrote:
> I am attempting to build commoncpp2-1.0.8 on windows 2000 using gcc 3.2
> (mingw 20020817-1), however,  install.bat seems to be aimed at vc++
> users and "make -f Makefile.gcc" gives:
>
> i586-mingw32msvc-c++ -c -I. -I../include
> -I/usr/i586-mingw32msvc/include/libxml
> -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> -mthreads -
> o ../win32/../win32/thread.o ../src/thread.cpp
> process_begin: CreateProcess((null), i586-mingw32msvc-c++ -c -I.
> -I../include -I
> /usr/i586-mingw32msvc/include/libxml -DHAVE_CONFIG_H -D_GNU_SOURCE
> -include ../w
> in32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/thread.o
> ../src/thread.
> cpp, ...) failed.
> make (e=3D2): The system cannot find the file specified.
> make: *** [../win32/thread.o] Error 2
>
> Am I doing something wrong? I read that some people managed to get 1.9.=
3
> working with patches in the mail archives, but I have not found anywher=
e
> to download that version?
>
> Hope you can help.
> Thanks.
> Jon Wilson
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Wed Feb 05 22:24:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18gcbq-00078i-00
	for mharc-bug-commoncpp@gnu.org; Wed, 05 Feb 2003 22:21:54 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18gcbn-00072E-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 22:21:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18gcbK-0006M7-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 22:21:26 -0500
Received: from pool-141-153-147-83.mad.east.verizon.net ([141.153.147.83]
	helo=home.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18gcbG-0006DC-00
	for bug-commoncpp@gnu.org; Wed, 05 Feb 2003 22:21:18 -0500
Received: from localhost.sys ([192.168.1.104])
	by home.bayonne.dyndns.org (8.11.6/8.11.6) with ESMTP id h163x4905778;
	Wed, 5 Feb 2003 22:59:06 -0500
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Ari Johnson <ariston@cs.und.edu>, bug-commoncpp@gnu.org
Date: Wed, 5 Feb 2003 22:21:52 -0500
User-Agent: KMail/1.4.3
References: <Pine.GSO.4.10.10301311929240.23478-100000@agassiz.cs.und.edu>
In-Reply-To: <Pine.GSO.4.10.10301311929240.23478-100000@agassiz.cs.und.edu>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302052221.52077.dyfet@ostel.com>
Subject: Re: Recommended way of specifying file paths?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 06 Feb 2003 03:21:52 -0000

File was designed originally for a very different purpose than fstream; i=
t was=20
meant for portable paged (block oriented) i/o, such as might be used in=20
creating data stores in database systems, or in record oriented operation=
s. =20
It exists in several flavors representing ideas for block i/o in regards =
to=20
threading and could be an interesting foundation for a threaded database=20
engine.

On Friday 31 January 2003 20:31, Ari Johnson wrote:
> Is there a recommended cross-platform way to specify paths to files tha=
t
> works on both Windows and *nix, using CommonC++?  Also, would the
> CommonC++ File interface be any more or less portable to use than fstre=
am
> and friends?
>
> Ari Johnson
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Thu Feb 06 20:37:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18gxSS-0004Z2-00
	for mharc-bug-commoncpp@gnu.org; Thu, 06 Feb 2003 20:37:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18gxSQ-0004Y1-00
	for bug-commoncpp@gnu.org; Thu, 06 Feb 2003 20:37:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18gxQk-00049y-00
	for bug-commoncpp@gnu.org; Thu, 06 Feb 2003 20:36:02 -0500
Received: from pengo.systems.pipex.net ([62.241.160.193])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18gxNK-0002Pu-00
	for bug-commoncpp@gnu.org; Thu, 06 Feb 2003 20:32:18 -0500
Received: from bigfoot.com (81-86-233-34.dsl.pipex.com [81.86.233.34])
	by pengo.systems.pipex.net (Postfix) with ESMTP id 2EDBE4C00371
	for <bug-commoncpp@gnu.org>; Fri,  7 Feb 2003 01:32:14 +0000 (GMT)
Message-ID: <3E430C8D.4000400@bigfoot.com>
Date: Fri, 07 Feb 2003 01:31:57 +0000
From: Jon Wilson <sendmemymail@bigfoot.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Building on windows 2000 in mingw (some progress)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 01:37:35 -0000

I have managed to get commoncpp to partially build on windows using 
mingw and gcc, however, I need a little guidance. First of all I had to 
change the win32 config.h to switch off HAVE_OLD_IOSTREAM, dunno what 
this did, just seemed to make it compile! Then I had to tell dev-cpp to 
build getopt.c and friends using gcc instead of g++ (duh). However, I 
don't have libxml installed, but I don't think that I need it? I am 
building a multithreaded multiplatform app which requires sockets but no 
XML. So unless this is vital to make things work, I will give it a miss 
unless libxml comes for windows and is simple to fix? Anyway, the 
problem I have is during linking. It is obviously missing something as 
it complains like crazy!

inaddr.o(.text+0x89a):inaddr.cpp: undefined reference to `gethostname@8'
inaddr.o(.text+0x928):inaddr.cpp: undefined reference to `gethostname@8'
inaddr.o(.text+0x996):inaddr.cpp: undefined reference to `inet_addr@4'
inaddr.o(.text+0xa08):inaddr.cpp: undefined reference to `htonl@4'
inaddr.o(.text+0xa40):inaddr.cpp: undefined reference to `gethostbyname@4'
inaddr.o(.text+0xc7b):inaddr.cpp: undefined reference to `htonl@4'
inaddr.o(.text+0xd5f):inaddr.cpp: undefined reference to `htonl@4'
inaddr.o(.text+0xdee):inaddr.cpp: undefined reference to `gethostbyaddr@12'
inaddr.o(.text+0xe15):inaddr.cpp: undefined reference to `inet_ntoa@4'
network.o(.text+0x40a):network.cpp: undefined reference to `WSASocketA@24'
network.o(.text+0x41b):network.cpp: undefined reference to 
`WSAGetLastError@0'
network.o(.text+0x433):network.cpp: undefined reference to `WSAStartup@8'
network.o(.text+0x472):network.cpp: undefined reference to `WSAIoctl@36'
network.o(.text+0x73b):network.cpp: undefined reference to `closesocket@4'
peer.o(.text+0x4c):peer.cpp: undefined reference to `shutdown@8'
peer.o(.text+0xc8):peer.cpp: undefined reference to `shutdown@8'
peer.o(.text+0x130):peer.cpp: undefined reference to `shutdown@8'
peer.o(.text+0x198):peer.cpp: undefined reference to `shutdown@8'
peer.o(.text+0x213):peer.cpp: undefined reference to `htons@4'
peer.o(.text+0x232):peer.cpp: undefined reference to `connect@12'
peer.o(.text+0x473):peer.cpp: undefined reference to `connect@12'
peer.o(.text+0x4dc):peer.cpp: undefined reference to `shutdown@8'
peer.o(.text+0x54a):peer.cpp: undefined reference to `shutdown@8'
peer.o(.text+0x5c5):peer.cpp: undefined reference to `htons@4'
peer.o(.text+0x5e4):peer.cpp: undefined reference to `connect@12'
peer.o(.text+0x651):peer.cpp: undefined reference to `connect@12'
port.o(.text+0x13e):port.cpp: undefined reference to `accept@12'
port.o(.text+0x224):port.cpp: undefined reference to `accept@12'
port.o(.text+0x39b):port.cpp: undefined reference to `htons@4'
port.o(.text+0x3b6):port.cpp: undefined reference to `bind@12'
port.o(.text+0x4e7):port.cpp: undefined reference to `htons@4'
port.o(.text+0x502):port.cpp: undefined reference to `bind@12'
port.o(.text+0x633):port.cpp: undefined reference to `htons@4'
port.o(.text+0x659):port.cpp: undefined reference to `ioctlsocket@12'
port.o(.text+0x670):port.cpp: undefined reference to `connect@12'
port.o(.text+0x68d):port.cpp: undefined reference to `WSAGetLastError@0'
port.o(.text+0x699):port.cpp: undefined reference to `WSAGetLastError@0'
port.o(.text+0x6ee):port.cpp: undefined reference to `ioctlsocket@12'
port.o(.text+0x807):port.cpp: undefined reference to `htons@4'
port.o(.text+0x82d):port.cpp: undefined reference to `ioctlsocket@12'
port.o(.text+0x844):port.cpp: undefined reference to `connect@12'
port.o(.text+0x861):port.cpp: undefined reference to `WSAGetLastError@0'
port.o(.text+0x86d):port.cpp: undefined reference to `WSAGetLastError@0'
port.o(.text+0x8c2):port.cpp: undefined reference to `ioctlsocket@12'
port.o(.text+0xb2c):port.cpp: undefined reference to `htons@4'
port.o(.text+0xb52):port.cpp: undefined reference to `ioctlsocket@12'
port.o(.text+0xb69):port.cpp: undefined reference to `connect@12'
port.o(.text+0xba0):port.cpp: undefined reference to `ioctlsocket@12'
port.o(.text+0x1469):port.cpp: undefined reference to `WSAEventSelect@12'
port.o(.text+0x1632):port.cpp: undefined reference to 
`WSAEnumNetworkEvents@12'
socket.o(.text+0x2e):socket.cpp: undefined reference to `socket@12'
socket.o(.text+0x92):socket.cpp: undefined reference to `socket@12'
socket.o(.text+0x3ca):socket.cpp: undefined reference to `recv@16'
socket.o(.text+0x448):socket.cpp: undefined reference to `recv@16'
socket.o(.text+0x56d):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x57e):socket.cpp: undefined reference to `closesocket@4'
socket.o(.text+0x599):socket.cpp: undefined reference to `WSAGetLastError@0'
socket.o(.text+0x889):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x90d):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x9b9):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0xa3a):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0xbe4):socket.cpp: undefined reference to `select@20'
socket.o(.text+0xc0a):socket.cpp: undefined reference to `select@20'
socket.o(.text+0xc30):socket.cpp: undefined reference to `select@20'
socket.o(.text+0xc5d):socket.cpp: undefined reference to `__WSAFDIsSet@8'
socket.o(.text+0xd60):socket.cpp: undefined reference to `ioctlsocket@12'
socket.o(.text+0xd7b):socket.cpp: undefined reference to `ioctlsocket@12'
socket.o(.text+0xdab):socket.cpp: undefined reference to `recvfrom@24'
socket.o(.text+0xdcf):socket.cpp: undefined reference to `ntohs@4'
socket.o(.text+0xe55):socket.cpp: undefined reference to `getsockname@12'
socket.o(.text+0xeac):socket.cpp: undefined reference to `ntohs@4'
socket.o(.text+0xef3):socket.cpp: undefined reference to `getpeername@12'
socket.o(.text+0xf4a):socket.cpp: undefined reference to `ntohs@4'
socket.o(.text+0x10c1):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x10ed):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x1107):socket.cpp: undefined reference to `bind@12'
socket.o(.text+0x11df):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x120b):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x1225):socket.cpp: undefined reference to `bind@12'
socket.o(.text+0x13b8):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x13f2):socket.cpp: undefined reference to `recvfrom@24'
socket.o(.text+0x1403):socket.cpp: undefined reference to 
`WSAGetLastError@0'
socket.o(.text+0x144b):socket.cpp: undefined reference to `ntohs@4'
socket.o(.text+0x15ba):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x1630):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x1659):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x1670):socket.cpp: undefined reference to `bind@12'
socket.o(.text+0x16aa):socket.cpp: undefined reference to `listen@8'
socket.o(.text+0x1770):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x1799):socket.cpp: undefined reference to `setsockopt@20'
socket.o(.text+0x17b0):socket.cpp: undefined reference to `bind@12'
socket.o(.text+0x17ea):socket.cpp: undefined reference to `listen@8'
socket.o(.text+0x185e):socket.cpp: undefined reference to `accept@12'
socket.o(.text+0x1871):socket.cpp: undefined reference to `shutdown@8'
socket.o(.text+0x187f):socket.cpp: undefined reference to `closesocket@4'
socket.o(.text+0x18b4):socket.cpp: undefined reference to `accept@12'
socket.o(.text+0x1b2e):socket.cpp: undefined reference to `accept@12'
socket.o(.text+0x2103):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x2144):socket.cpp: undefined reference to `connect@12'
socket.o(.text+0x2167):socket.cpp: undefined reference to 
`WSAGetLastError@0'
socket.o(.text+0x227e):socket.cpp: undefined reference to `select@20'
socket.o(.text+0x22b0):socket.cpp: undefined reference to `getsockopt@20'
socket.o(.text+0x22eb):socket.cpp: undefined reference to `socket@12'
socket.o(.text+0x2bcc):socket.cpp: undefined reference to `recv@16'
socket.o(.text+0x2dae):socket.cpp: undefined reference to `recv@16'
socket.o(.text+0x2f97):socket.cpp: undefined reference to `send@16'
socket.o(.text+0x30b7):socket.cpp: undefined reference to `send@16'
socket.o(.text+0x3717):socket.cpp: undefined reference to `accept@12'
socket.o(.text+0x398b):socket.cpp: undefined reference to `socket@12'
socket.o(.text+0x3ae4):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x3b02):socket.cpp: undefined reference to `connect@12'
socket.o(.text+0x3b10):socket.cpp: undefined reference to 
`WSAGetLastError@0'
socket.o(.text+0x3d1c):socket.cpp: undefined reference to `htons@4'
socket.o(.text+0x3d3a):socket.cpp: undefined reference to `connect@12'
socket.o(.text+0x3d48):socket.cpp: undefined reference to 
`WSAGetLastError@0'
socket.o(.text+0x4146):socket.cpp: undefined reference to `getsockopt@20'
socket.o(.text+0x41e4):socket.cpp: undefined reference to `inet_ntoa@4'
socket.o(.text+0x4215):socket.cpp: undefined reference to `WSAStartup@8'
socket.o(.text+0x4241):socket.cpp: undefined reference to `WSAStartup@8'
socket.o(.text+0x425b):socket.cpp: undefined reference to `WSACleanup@0'
socket.o(.text+0x4269):socket.cpp: undefined reference to `WSACleanup@0'
url.o(.text+0x560):url.cpp: undefined reference to `recv@16'
url.o(.text+0x590):url.cpp: undefined reference to `recv@16'
url.o(.text+0xe71):url.cpp: undefined reference to `socket@12'
url.o(.text+0x187f):url.cpp: undefined reference to `send@16'
url.o(.text+0x19ae):url.cpp: undefined reference to `send@16'
url.o(.text+0x19ea):url.cpp: undefined reference to `send@16'
url.o(.text+0x1a09):url.cpp: undefined reference to `send@16'
url.o(.text$_ZN3ost9URLStream5aReadEPcjm+0x18):url.cpp: undefined 
reference to `
recv@16'
url.o(.text$_ZN3ost9URLStream6aWriteEPcjm+0x18):url.cpp: undefined 
reference to
`send@16'

I think I have probably missed a link target (I didn't specify any!) , 
and I couldn't guess what it should be. If you can help I would much 
appreciate it.
Thanks.
Jon Wilson




From MAILER-DAEMON Thu Feb 06 22:00:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18gykC-0007VB-00
	for mharc-bug-commoncpp@gnu.org; Thu, 06 Feb 2003 22:00:00 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18gykA-0007Sy-00
	for bug-commoncpp@gnu.org; Thu, 06 Feb 2003 21:59:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18gyk6-0007Jk-00
	for bug-commoncpp@gnu.org; Thu, 06 Feb 2003 21:59:57 -0500
Received: from a.smtp-out.sonic.net ([208.201.224.38])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18gyk5-0007DZ-00
	for bug-commoncpp@gnu.org; Thu, 06 Feb 2003 21:59:53 -0500
Received: (qmail 22464 invoked from network); 7 Feb 2003 02:59:51 -0000
Received: from prop.sonic.net (208.201.224.193)
  by a.smtp-out.sonic.net with SMTP; 7 Feb 2003 02:59:51 -0000
Received: from mailman.eason.com (adsl-209-204-139-80.sonic.net
	[209.204.139.80])
	by prop.sonic.net (8.11.6/8.8.5) with ESMTP id h172xpq24044
	for <bug-commoncpp@gnu.org>; Thu, 6 Feb 2003 18:59:51 -0800
X-envelope-info: <apavloff@eason.com>
Received: by mailman.eason.com with Internet Mail Service (5.5.2653.19)
	id <1LS8KRWK>; Thu, 6 Feb 2003 18:59:51 -0800
Message-ID: <D3AF5F134D627243993F2F2FC32EE4D229C56D@mailman.eason.com>
From: Alex Pavloff <apavloff@eason.com>
To: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Date: Thu, 6 Feb 2003 18:59:50 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: TCPStream problem
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 02:59:58 -0000


Would someone please explain how this backtrace can be?  This is from using
cc++ 1.0.7 compiled with the g++ 3.2 shipped with RedHat.

#0  0x420d224b in poll () from /lib/i686/libc.so.6
#1  0x4004836f in ost::Socket::isPending(ost::Socket::Pending, unsigned
long) (this=0xfffffffc, pending=257,
    timeout=1079697996) at socket.cpp:502
#2  0x4004a6bc in ost::TCPStream::isPending(ost::Socket::Pending, unsigned
long) (this=0x80b0778,
    pending=pendingInput, timeout=500) at socket.cpp:1158

Could the fact that TCPStream has a badly-named member called "timeout"
that's being hidden by the "timeout" that's being passed to
TCPStream::isPending be an issue?  (I doubt it, even though that seems to be
something that needs to be fixed).

The this pointer is being clobbered, but how?  

If I slow down the socket communications, the problem doesn't occur.

Any ideas?

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



From MAILER-DAEMON Fri Feb 07 03:02:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18h3Sv-0004Cm-00
	for mharc-bug-commoncpp@gnu.org; Fri, 07 Feb 2003 03:02:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18h3Sh-00048Z-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 03:02:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18h3SW-0003lJ-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 03:02:09 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18h3SP-0003Xg-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 03:01:57 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18h3Tz-00004Q-00; Fri, 07 Feb 2003 09:03:35 +0100
Date: Fri, 7 Feb 2003 09:03:35 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Jon Wilson <sendmemymail@bigfoot.com>
Message-ID: <20030207080334.GA251@bulbasaur.rediris.es>
Mail-Followup-To: Jon Wilson <sendmemymail@bigfoot.com>,
	bug-commoncpp@gnu.org
References: <3E430C8D.4000400@bigfoot.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3E430C8D.4000400@bigfoot.com>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: Building on windows 2000 in mingw (some progress)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 08:02:18 -0000


	Hi,

On Fri, Feb 07, 2003 at 01:31:57AM +0000, Jon Wilson wrote:
> I have managed to get commoncpp to partially build on windows using 
> mingw and gcc, however, I need a little guidance. First of all I had to 
> change the win32 config.h to switch off HAVE_OLD_IOSTREAM, dunno what 
> this did, just seemed to make it compile! 

	Probably you are using gcc 3.x? This symbol needs to be
defined with gcc 2.9x based mingw systems but will not work with 3.x
because the old iostream stuff has been removed in these releases.

> Then I had to tell dev-cpp to 
> build getopt.c and friends using gcc instead of g++ (duh). However, I 
> don't have libxml installed, but I don't think that I need it? I am 
> building a multithreaded multiplatform app which requires sockets but no 
> XML. So unless this is vital to make things work, I will give it a miss 
> unless libxml comes for windows and is simple to fix? 

	Of course libxml sources can be compiled under win32, and I
believe there are binary packages. However, as you guessed, you can
give libxml a miss. See INSTALL.win32; you just need to comment
'#define COMMON_XML_PARSING' in config.h

	I would say that the linking errors would disappear if you
link ws2_32.lib/dll in. You can take a look at the ms vc++ project
files that come with the sources to see what libraries need to be
linked.

> Anyway, the 
> problem I have is during linking. It is obviously missing something as 
> it complains like crazy!
> 
> inaddr.o(.text+0x89a):inaddr.cpp: undefined reference to `gethostname@8'
> inaddr.o(.text+0x928):inaddr.cpp: undefined reference to `gethostname@8'
> inaddr.o(.text+0x996):inaddr.cpp: undefined reference to `inet_addr@4'
> inaddr.o(.text+0xa08):inaddr.cpp: undefined reference to `htonl@4'
> inaddr.o(.text+0xa40):inaddr.cpp: undefined reference to `gethostbyname@4'
> inaddr.o(.text+0xc7b):inaddr.cpp: undefined reference to `htonl@4'
> inaddr.o(.text+0xd5f):inaddr.cpp: undefined reference to `htonl@4'
> inaddr.o(.text+0xdee):inaddr.cpp: undefined reference to `gethostbyaddr@12'
> inaddr.o(.text+0xe15):inaddr.cpp: undefined reference to `inet_ntoa@4'
> network.o(.text+0x40a):network.cpp: undefined reference to `WSASocketA@24'
> network.o(.text+0x41b):network.cpp: undefined reference to 
> `WSAGetLastError@0'
> network.o(.text+0x433):network.cpp: undefined reference to `WSAStartup@8'
> network.o(.text+0x472):network.cpp: undefined reference to `WSAIoctl@36'
> network.o(.text+0x73b):network.cpp: undefined reference to `closesocket@4'
> peer.o(.text+0x4c):peer.cpp: undefined reference to `shutdown@8'
> peer.o(.text+0xc8):peer.cpp: undefined reference to `shutdown@8'
> peer.o(.text+0x130):peer.cpp: undefined reference to `shutdown@8'
> peer.o(.text+0x198):peer.cpp: undefined reference to `shutdown@8'
> peer.o(.text+0x213):peer.cpp: undefined reference to `htons@4'
> peer.o(.text+0x232):peer.cpp: undefined reference to `connect@12'
> peer.o(.text+0x473):peer.cpp: undefined reference to `connect@12'
> peer.o(.text+0x4dc):peer.cpp: undefined reference to `shutdown@8'
> peer.o(.text+0x54a):peer.cpp: undefined reference to `shutdown@8'
> peer.o(.text+0x5c5):peer.cpp: undefined reference to `htons@4'
> peer.o(.text+0x5e4):peer.cpp: undefined reference to `connect@12'
> peer.o(.text+0x651):peer.cpp: undefined reference to `connect@12'
> port.o(.text+0x13e):port.cpp: undefined reference to `accept@12'
> port.o(.text+0x224):port.cpp: undefined reference to `accept@12'
> port.o(.text+0x39b):port.cpp: undefined reference to `htons@4'
> port.o(.text+0x3b6):port.cpp: undefined reference to `bind@12'
> port.o(.text+0x4e7):port.cpp: undefined reference to `htons@4'
> port.o(.text+0x502):port.cpp: undefined reference to `bind@12'
> port.o(.text+0x633):port.cpp: undefined reference to `htons@4'
> port.o(.text+0x659):port.cpp: undefined reference to `ioctlsocket@12'
> port.o(.text+0x670):port.cpp: undefined reference to `connect@12'
> port.o(.text+0x68d):port.cpp: undefined reference to `WSAGetLastError@0'
> port.o(.text+0x699):port.cpp: undefined reference to `WSAGetLastError@0'
> port.o(.text+0x6ee):port.cpp: undefined reference to `ioctlsocket@12'
> port.o(.text+0x807):port.cpp: undefined reference to `htons@4'
> port.o(.text+0x82d):port.cpp: undefined reference to `ioctlsocket@12'
> port.o(.text+0x844):port.cpp: undefined reference to `connect@12'
> port.o(.text+0x861):port.cpp: undefined reference to `WSAGetLastError@0'
> port.o(.text+0x86d):port.cpp: undefined reference to `WSAGetLastError@0'
> port.o(.text+0x8c2):port.cpp: undefined reference to `ioctlsocket@12'
> port.o(.text+0xb2c):port.cpp: undefined reference to `htons@4'
> port.o(.text+0xb52):port.cpp: undefined reference to `ioctlsocket@12'
> port.o(.text+0xb69):port.cpp: undefined reference to `connect@12'
> port.o(.text+0xba0):port.cpp: undefined reference to `ioctlsocket@12'
> port.o(.text+0x1469):port.cpp: undefined reference to `WSAEventSelect@12'
> port.o(.text+0x1632):port.cpp: undefined reference to 
> `WSAEnumNetworkEvents@12'
> socket.o(.text+0x2e):socket.cpp: undefined reference to `socket@12'
> socket.o(.text+0x92):socket.cpp: undefined reference to `socket@12'
> socket.o(.text+0x3ca):socket.cpp: undefined reference to `recv@16'
> socket.o(.text+0x448):socket.cpp: undefined reference to `recv@16'
> socket.o(.text+0x56d):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x57e):socket.cpp: undefined reference to `closesocket@4'
> socket.o(.text+0x599):socket.cpp: undefined reference to `WSAGetLastError@0'
> socket.o(.text+0x889):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x90d):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x9b9):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0xa3a):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0xbe4):socket.cpp: undefined reference to `select@20'
> socket.o(.text+0xc0a):socket.cpp: undefined reference to `select@20'
> socket.o(.text+0xc30):socket.cpp: undefined reference to `select@20'
> socket.o(.text+0xc5d):socket.cpp: undefined reference to `__WSAFDIsSet@8'
> socket.o(.text+0xd60):socket.cpp: undefined reference to `ioctlsocket@12'
> socket.o(.text+0xd7b):socket.cpp: undefined reference to `ioctlsocket@12'
> socket.o(.text+0xdab):socket.cpp: undefined reference to `recvfrom@24'
> socket.o(.text+0xdcf):socket.cpp: undefined reference to `ntohs@4'
> socket.o(.text+0xe55):socket.cpp: undefined reference to `getsockname@12'
> socket.o(.text+0xeac):socket.cpp: undefined reference to `ntohs@4'
> socket.o(.text+0xef3):socket.cpp: undefined reference to `getpeername@12'
> socket.o(.text+0xf4a):socket.cpp: undefined reference to `ntohs@4'
> socket.o(.text+0x10c1):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x10ed):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x1107):socket.cpp: undefined reference to `bind@12'
> socket.o(.text+0x11df):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x120b):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x1225):socket.cpp: undefined reference to `bind@12'
> socket.o(.text+0x13b8):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x13f2):socket.cpp: undefined reference to `recvfrom@24'
> socket.o(.text+0x1403):socket.cpp: undefined reference to 
> `WSAGetLastError@0'
> socket.o(.text+0x144b):socket.cpp: undefined reference to `ntohs@4'
> socket.o(.text+0x15ba):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x1630):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x1659):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x1670):socket.cpp: undefined reference to `bind@12'
> socket.o(.text+0x16aa):socket.cpp: undefined reference to `listen@8'
> socket.o(.text+0x1770):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x1799):socket.cpp: undefined reference to `setsockopt@20'
> socket.o(.text+0x17b0):socket.cpp: undefined reference to `bind@12'
> socket.o(.text+0x17ea):socket.cpp: undefined reference to `listen@8'
> socket.o(.text+0x185e):socket.cpp: undefined reference to `accept@12'
> socket.o(.text+0x1871):socket.cpp: undefined reference to `shutdown@8'
> socket.o(.text+0x187f):socket.cpp: undefined reference to `closesocket@4'
> socket.o(.text+0x18b4):socket.cpp: undefined reference to `accept@12'
> socket.o(.text+0x1b2e):socket.cpp: undefined reference to `accept@12'
> socket.o(.text+0x2103):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x2144):socket.cpp: undefined reference to `connect@12'
> socket.o(.text+0x2167):socket.cpp: undefined reference to 
> `WSAGetLastError@0'
> socket.o(.text+0x227e):socket.cpp: undefined reference to `select@20'
> socket.o(.text+0x22b0):socket.cpp: undefined reference to `getsockopt@20'
> socket.o(.text+0x22eb):socket.cpp: undefined reference to `socket@12'
> socket.o(.text+0x2bcc):socket.cpp: undefined reference to `recv@16'
> socket.o(.text+0x2dae):socket.cpp: undefined reference to `recv@16'
> socket.o(.text+0x2f97):socket.cpp: undefined reference to `send@16'
> socket.o(.text+0x30b7):socket.cpp: undefined reference to `send@16'
> socket.o(.text+0x3717):socket.cpp: undefined reference to `accept@12'
> socket.o(.text+0x398b):socket.cpp: undefined reference to `socket@12'
> socket.o(.text+0x3ae4):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x3b02):socket.cpp: undefined reference to `connect@12'
> socket.o(.text+0x3b10):socket.cpp: undefined reference to 
> `WSAGetLastError@0'
> socket.o(.text+0x3d1c):socket.cpp: undefined reference to `htons@4'
> socket.o(.text+0x3d3a):socket.cpp: undefined reference to `connect@12'
> socket.o(.text+0x3d48):socket.cpp: undefined reference to 
> `WSAGetLastError@0'
> socket.o(.text+0x4146):socket.cpp: undefined reference to `getsockopt@20'
> socket.o(.text+0x41e4):socket.cpp: undefined reference to `inet_ntoa@4'
> socket.o(.text+0x4215):socket.cpp: undefined reference to `WSAStartup@8'
> socket.o(.text+0x4241):socket.cpp: undefined reference to `WSAStartup@8'
> socket.o(.text+0x425b):socket.cpp: undefined reference to `WSACleanup@0'
> socket.o(.text+0x4269):socket.cpp: undefined reference to `WSACleanup@0'
> url.o(.text+0x560):url.cpp: undefined reference to `recv@16'
> url.o(.text+0x590):url.cpp: undefined reference to `recv@16'
> url.o(.text+0xe71):url.cpp: undefined reference to `socket@12'
> url.o(.text+0x187f):url.cpp: undefined reference to `send@16'
> url.o(.text+0x19ae):url.cpp: undefined reference to `send@16'
> url.o(.text+0x19ea):url.cpp: undefined reference to `send@16'
> url.o(.text+0x1a09):url.cpp: undefined reference to `send@16'
> url.o(.text$_ZN3ost9URLStream5aReadEPcjm+0x18):url.cpp: undefined 
> reference to `
> recv@16'
> url.o(.text$_ZN3ost9URLStream6aWriteEPcjm+0x18):url.cpp: undefined 
> reference to
> `send@16'
> 
> I think I have probably missed a link target (I didn't specify any!) , 
> and I couldn't guess what it should be. If you can help I would much 
> appreciate it.
> Thanks.
> Jon Wilson
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Fri Feb 07 04:39:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18h4yx-0002vb-00
	for mharc-bug-commoncpp@gnu.org; Fri, 07 Feb 2003 04:39:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18h4yu-0002o4-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 04:39:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18h4yp-0002bc-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 04:39:33 -0500
Received: from h-62.96.239.30.host.de.colt.net ([62.96.239.30]
	helo=mail.freiverkehr.de)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18h4yo-0002Vr-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 04:39:30 -0500
Received: from cproch.freiverkehr.de (CPROCH [10.100.101.37]) by
	mail.freiverkehr.de with SMTP (Microsoft Exchange Internet Mail Service
	Version 5.5.2653.13)	id D7NV1B7R; Fri, 7 Feb 2003 10:39:27 +0100
Content-Type: text/plain;
  charset="iso-8859-15"
From: "Prochnow, Christian" <cproch@freiverkehr.de>
Organization: Berliner Freiverkehr AG
To: bug-commoncpp@gnu.org
Date: Fri, 7 Feb 2003 11:02:08 +0100
User-Agent: KMail/1.4.3
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302071102.08510.cproch@freiverkehr.de>
Subject: Problems with Mutex/MutexLock on Win32
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 09:39:37 -0000

Hi !

I'm having strange problems with Mutex and MutexLock under Win32.
Under high application load the program crashes randomly with an exceptio=
n
thrown by Mutex::leaveMutex() !=20
I do not know how this can be - cause a previous Mutex::enterMutex()=20
succeeded. I havent tracked it down to the operating system error yet - a=
ny=20
ideas are welcome.=20

Regards,
Christian Prochnow

--=20
Christian Prochnow
Berliner Freiverkehr (Aktien) AG - Kurf=FCrstendamm 117 - 10711 Berlin, G=
ermany
Fon: +49-30-89606409, Fax: +49-30-89021389 - EMail: cproch@freiverkehr.de




From MAILER-DAEMON Fri Feb 07 14:59:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18hEeT-00035J-00
	for mharc-bug-commoncpp@gnu.org; Fri, 07 Feb 2003 14:59:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18hEeL-0002p1-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 14:59:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18hEeB-0002LW-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 14:58:53 -0500
Received: from b.smtp-out.sonic.net ([208.201.224.39])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18hEe1-000284-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 14:58:41 -0500
Received: (qmail 540 invoked from network); 7 Feb 2003 19:58:39 -0000
Received: from ultra.sonic.net (208.201.224.22)
  by b.smtp-out.sonic.net with SMTP; 7 Feb 2003 19:58:39 -0000
Received: from mailman.eason.com (adsl-209-204-139-80.sonic.net
	[209.204.139.80])
	by ultra.sonic.net (8.11.6/8.8.5) with ESMTP id h17Jwdt09729
	for <bug-commoncpp@gnu.org>; Fri, 7 Feb 2003 11:58:39 -0800
X-envelope-info: <apavloff@eason.com>
Received: by mailman.eason.com with Internet Mail Service (5.5.2653.19)
	id <1LS8KR6V>; Fri, 7 Feb 2003 11:58:39 -0800
Message-ID: <D3AF5F134D627243993F2F2FC32EE4D229C56F@mailman.eason.com>
From: Alex Pavloff <apavloff@eason.com>
To: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Date: Fri, 7 Feb 2003 11:58:33 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: TCPProblem -- more info -- short program that hangs included
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 19:59:07 -0000


Here is a sample program that duplicates the problems I described yesterday.
What's going on here?  Is it CC++ that's broken or gcc?  Would other people
try this and see what the result is?  It appears that after 32 or 33 quickly
repeated call to isPending(), something breaks horribly.


#include <cc++/socket.h>

int main()
{
	try
	{
		// Just connect to a port that won't send data -- doesn't
matter what
		ost::TCPStream foo("10.0.0.5",5800,512,true,100);
		for( ; ; )
		{
			while( foo.isPending(ost::Socket::pendingInput,100)
);
		}
	}
	catch( ost::Socket* s )
	{
		std::cout << "Socket error" << std::endl;
	}
	return 0;
}

   Here is the GDB backtrace.  Notice how the this pointer got completely
clobbered
   resulting in a massively large value being passed to poll(), which causes
the hang
   but what causes the clobbering in the first place?

(gdb) bt
#0  0x420d224b in poll () from /lib/i686/libc.so.6
#1  0x4004436f in ost::Socket::isPending(ost::Socket::Pending, unsigned
long) (
    this=0xfffffffc, pending=53, timeout=3221222896) at socket.cpp:502
#2  0x400466bc in ost::TCPStream::isPending(ost::Socket::Pending, unsigned
long) (this=0xbffff670, pending=pendingInput, timeout=100) at
socket.cpp:1158
#3  0x0804903e in main () at cute.cpp:12
#4  0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6



From MAILER-DAEMON Fri Feb 07 16:08:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18hFj4-0007kd-00
	for mharc-bug-commoncpp@gnu.org; Fri, 07 Feb 2003 16:07:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18hFj2-0007gS-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 16:07:56 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18hFiu-0007YZ-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 16:07:49 -0500
Received: from mailb.its.uidaho.edu ([129.101.155.251])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18hFiE-0006vc-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 16:07:06 -0500
Received: from falcon ([129.101.69.98]) by mailB.its.uidaho.edu (Go Vandals!)
 with ESMTPP id <0H9Y00DGKINRIO@mailB.its.uidaho.edu> for
 bug-commoncpp@gnu.org; Fri, 07 Feb 2003 13:07:03 -0800 (PST)
Date: Fri, 07 Feb 2003 13:07:03 -0800
From: Chad Yates <cyates@uidaho.edu>
In-reply-to: <D3AF5F134D627243993F2F2FC32EE4D229C56F@mailman.eason.com>
To: Alex Pavloff <apavloff@eason.com>, bug-commoncpp@gnu.org
Message-id: <NBBBJJODBJBNJFNIDDCNGEKLDEAA.cyates@uidaho.edu>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Content-type: multipart/mixed; boundary="Boundary_(ID_lJ4QGninHkwQImLqX0r/hg)"
Importance: Normal
X-Priority: 3 (Normal)
X-MSMail-priority: Normal
Subject: RE: TCPProblem -- more info -- short program that hangs included
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 21:07:57 -0000

This is a multi-part message in MIME format.

--Boundary_(ID_lJ4QGninHkwQImLqX0r/hg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Don't know what your problem is, but I've converted your test routine to a
testcase of a TCPStream test fixture.  It seems to run fine under
msvc++6.0/win32  I originally had the loop terminate after 1000 reps
(instead of infinity), but have moved it down to 50 in the provided code.

attached is a zip file with the sourcefiles, and a new msvc++ project file.
the last msvc project file I sent for the test suite didn't seem to get the
references to the source files (my bad, I think I sent the wrong version
when i was cleaning things up), so unless someone has made changes to the
.dsp file, I'd recommend replacing it with this version.

,chad



> -----Original Message-----
> From: bug-commoncpp-bounces+cyates=uidaho.edu@gnu.org
> [mailto:bug-commoncpp-bounces+cyates=uidaho.edu@gnu.org]On Behalf Of
> Alex Pavloff
> Sent: Friday, February 07, 2003 11:59 AM
> To: 'bug-commoncpp@gnu.org'
> Subject: TCPProblem -- more info -- short program that hangs included
>
>
>
> Here is a sample program that duplicates the problems I described
> yesterday.
> What's going on here?  Is it CC++ that's broken or gcc?  Would
> other people
> try this and see what the result is?  It appears that after 32 or
> 33 quickly
> repeated call to isPending(), something breaks horribly.
>
>
> #include <cc++/socket.h>
>
> int main()
> {
> 	try
> 	{
> 		// Just connect to a port that won't send data -- doesn't
> matter what
> 		ost::TCPStream foo("10.0.0.5",5800,512,true,100);
> 		for( ; ; )
> 		{
> 			while( foo.isPending(ost::Socket::pendingInput,100)
> );
> 		}
> 	}
> 	catch( ost::Socket* s )
> 	{
> 		std::cout << "Socket error" << std::endl;
> 	}
> 	return 0;
> }
>
>    Here is the GDB backtrace.  Notice how the this pointer got completely
> clobbered
>    resulting in a massively large value being passed to poll(),
> which causes
> the hang
>    but what causes the clobbering in the first place?
>
> (gdb) bt
> #0  0x420d224b in poll () from /lib/i686/libc.so.6
> #1  0x4004436f in ost::Socket::isPending(ost::Socket::Pending, unsigned
> long) (
>     this=0xfffffffc, pending=53, timeout=3221222896) at socket.cpp:502
> #2  0x400466bc in ost::TCPStream::isPending(ost::Socket::Pending, unsigned
> long) (this=0xbffff670, pending=pendingInput, timeout=100) at
> socket.cpp:1158
> #3  0x0804903e in main () at cute.cpp:12
> #4  0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp

--Boundary_(ID_lJ4QGninHkwQImLqX0r/hg)
Content-type: application/x-zip-compressed; name=Test_TCPStream.zip
Content-transfer-encoding: base64
Content-disposition: attachment; filename=Test_TCPStream.zip

UEsDBBQAAAAIAPBlRy5ynF3a+AMAAF4IAAAuAAAAUHJvamVjdHMvQy9jb21tb25jcHAyL3Rlc3Rz
L1Rlc3RfVENQU3RyZWFtLmNwcJVVXW/bOBB8D5D/sOi9JKhi5wOHQ+GXUw0nFZA6hiWj8FNAS3RE
HEUaJGXH//6GK8dyDmmLe3FiSzucnZ1ZDoc0tpu9Uy91oIvxJd1eX99e4eOOxrWoaDygpQjSU7mP
f/5uVSVqO5BVe342HBLxZ1ErTxtnX5xoCP+unZTk7TrshJMj2tuWSmHIyUr54NSqDZJUIGGqoXXU
2Eqt9wyEH1tTSUehlhSkazzZNX95mC7oQRrphKZZu9KqpEdVSuMlCZwdf/G1rGjVAcWS+8giP7Cg
ewtkEZQ1I5IKzx1tpfP4TrdvhxwQE7KOUS5EiOQd2U0svATjPWnocKwd8HsfitD3WpEyzKi2G7RV
AxWN7pTWtJLUerludcIYUIZ+ZMW3p0VB6XRJP9L5PJ0WyxHeDrXFU7mVHZZqNlqhYUjshAl79MAQ
3yfz8TfUpF+zx6xYohW6z4rpJM/p/mlOKc3SeZGNF4/pnGaL+ewpnwyIckgFVEb4hdRrHpeTVMkg
lPbcPhctMWMPhrqiWmwlZl1KtQU/QSX89fsxMorQ1rxwr2DTe2pEak3GhoR2TsE7wX4wYAbop5xQ
ZspBQn9+oUJCK0kzLUpJV5S3EePu7jqhr9YHaxL6ntL17c3NzdXN3fVfCS3y9GSwqUcTfiNLBe/J
11KyGd5I/FythDZwsPLsMTTDBBEREyBLVFJUlYpQgIUJjlYP8jVANAOFDd6Ed1TwEFRLAbczCkIx
tk0D3PHnz+88KE8Y4sxotiSqFzOolfmHhetr8dvKCbfvNLcxFnzAWmkQgs5IddVCNsRXvsqyDWKl
ZdJNp7J4B2NB6CJFqdeIOTo5OslJ3+qgMNK+NoLC9aVF+jivv4l31x3s5aJInY8QoBNAMIFGxiIK
e8gUN0wZJYY6oiwR+/CWjShAZPMTDUpbIVcGBFXonc3LrR/7sena7hBGh4Kt0NiK8FRcD6whaAhv
jadd3e+jE8pRXmp45/5vLfpl05MSm7gM4CCjoWeXDu7m4JrqZK1yvRHNqQ2wAbLOIxxWLl072xy7
Ye9FnQF+TDQj9V5K4ibmXf3xnuY0BB/Nc+rSKGjHCU6KjbzvgKcdmSEt3R7FODBpUC7AZWtVBSU9
CFYYbbdFzN4avhcOUvggQsv58m1ZdxdO3J3s8oTRm9YHbDUtQ7cE+ZheYHDDbdNpAvrNSeYOwnWb
qYMu+Z7hA7vrY2c48Kda4QbACfy4rC3A+dhdLdk/MXks13+JRP3fNOLidyd2tA6MKsuS7nAxHvZA
19/HvaH0/OwPZUrdYvifCuTouRjP8gArN4P6U3w8ns0W06x4LiZ58ZwvsmLyPJ88ZHkxT4vsaXpx
fD9WX47Oz/4FUEsDBBQAAAAIAGVnRy78DehorgUAAPwLAAAsAAAAUHJvamVjdHMvQy9jb21tb25j
cHAyL3Rlc3RzL1Rlc3RfVENQU3RyZWFtLmiVVu9PG0cQ/Vwk/ocR/VADh3+AUFuTVnEck7gKxPIP
RXxCy92aW+W8e9rdw1hV/ve+mbOxoaRRQQL7dvfNmzdvZq/Vor4rV97c55Ea/UM6bbdPT/DnjPq5
yqjfpBsVdaB0xf/eViZTuWvqrNrfa7WI5O80N4FK7+69WhA+zr3WFNw8LpXXF7RyFaXKkteZCdGb
uypqMpGUzVrO08JlZr4SIDysbKY9xVxT1H4RyM3ly4frGX3QVntV0Ki6K0xKn0yqbdCkEJufhFxn
dFcD8ZFLZjFZs6BLB2QVjbMXpA3WPT1oH/CdTjdB1ogJOS8oDRWZvCdX8sFDMF5RAR2ezjZl36si
bHPNyFhhlLsSaeVARaJLUxR0p6kKel4ViWBAGfoynH78PJtS7/qGvvTG49719OYCu2PusKofdI1l
FmVhkDAk9srGFXIQiKvBuP8RZ3rvhp+G0xukQpfD6fVgMqHLz2Pq0ag3ng77s0+9MY1m49HnyaBJ
NIFUQBWE/5B6LuXymjIdlSmCpC+HblDjAIZFRrl60Kh1qs0D+ClK4a8fl1FQVOHsveQKNltPXZCZ
k3UxoaU38E50rxRYALZVTmho02ZC57/TVEMrTaNCpZpOaFIxxtlZO6F3LkRnE7rqUfu00+mcdM7a
vyY0m/R2CtsLSCKUOjXwnn5MtZhhQ+L7aiVUwsEmiMeQjBBEi9gIWVhJlWWGoQALEzxZPerHCNEs
FLbYCe+YGCBooRXcLihoir5bLIDbPz5+5kG9wxAx2WwJq8c9WBj7VYTbnsWzO6/8qtbccVtIgLkp
QAg6o6uzCrKhffWjTquo7gqd1NXJHPagLGg6pqiLOdocmTw5yetQFdGgpNuzDArXpw7dJ/36g/au
s4O9PItU+wgNtAMIJtDIOrTCCjLxhElZYqij0hRtHze9wQIwm+9okLoMfWVB0MSts2W4bcv+lHTu
lmhGjwMPqsBUhKd4PIiGoKGCs4GW+XYe7VBmeWkhM/d/a7EdNltSquRhAAfZAnrW3SHZrF2T7YxV
OW/VYtcGmADD2iPSrHJ07t3iKRvxHusM8KeOFqStlxKexDKrX5/T0g0xsHl2XcqC1pzgJE7keQZS
bWaGbqnnKMqBSoPyFFwenMmgZADBDKWtp4hdOSv3wlqKEFWspL9Cleb1hcOzU1yeCPqiChFTrdCx
HoISZiswuOG2qTUB/cVOz62FqydTDZ3KPSMB6+tjaaXhd7XCDYAIspzmDuASdplr8Q93nsj1kgjr
v9FIDj+LWNNaM8qcSLrExbieA3V+r+eGo/t7PxubFhWK/yYty8qa2MIswiXL2bQ+6gKcrlTqXWjm
f3Konf3p8XEr5vB99vqarRZ3uG+xSHzR13ECvUffPIvLOMGlX3UUnG0Eg1kN+MWLhwtlTYln+3tV
4N5mZ4eSJz32X2yehph1uzwZ7D2egfrR0f4eHeFqQNkvzWOscKlBW664T009w3bnZOWL+jjNK5tK
eRlAQN6qCpczyrv7wsQruBrTQoVA0/5oIuQlXrd+X0mpX5YziNzt8uM1i/29v3GU+qPR7Ho4vZ0O
JtPbyWw4HTSegRwijee7Gng9i8Mw0pYb4d/rNcrt4Pp9gxf39zDao+ZJ2ZVvQgkfiaSngo6zsnHI
34XQN960XnsWaWcPUfSYdz8RfnDoJ/mAav/FzYUbzSIcq6yodJ6tjdZeOvtLRDSbEWaoopMTuVf4
4UJFftVaYtsGDDWFWhs10VSucdBpN/n3/CA5/63dTs47p0n0lU467TYnWrNA+zUqGPm+vlLRfPQH
tfFiQW/ovE34cHyMZOvNwl0+LXOMiAbHaZqNtA0hMRGPdrtlrffQllWUkNuYa8kYZ1uq3mQyGE8b
zFB28ho2yn/MjTRvsHE3+EcUiGmtWdVQL8Fur/B21/swaBzUpEh77/wBBu2LIBKJ39m/iQH+AVBL
AwQUAAAACABlZkcuCYY3Eo8FAABKGAAANAAAAFByb2plY3RzL0MvY29tbW9uY3BwMi93aW4zMi90
ZXN0cy9jY3h4X3Rlc3RzdWl0ZS5kc3DtWF1v2kgUfY/Ef7hL9yGpWpxCVXXjZSWCHYoaPoTJdlsh
IXs8mGlsjzVjN+Tf752xARMCpA2r7UOlEIb5OHPmzPU943kBPUYEl3yWgkW/0ZAnVICTZj7jMBT8
KyUpXLGQwmvouxFtVglZLKYplanMWEqrWD90ya0bUBjcxVQ0/3z7V+XkxT7YDsV+bkp9uMxY6Gv4
V3DFReSm8DcVkvEY3tXOzxXOy5dgDaA/GINtdcf4s3KiqsetUWf8eWhD9ROLG3U4Xbx/dwZtHkuO
XFtJEjLipghUhfPF+ZvzhhrWvuo0N+kj+3y8Rb0sqJz81rMdp9WxYTxnEvAv5im48M0NmQ+Re0tn
yLUGYw6epp6qbkkhUyZZHEC/1/povypBZZJiPwr2IuEihV6BAoRHkRv7oD4ii0sjSkWNBsYMHuhe
QzLV2uNjPvMMiBuDTChhs3vkT3g8Y0GGoitp7+Y0VjPGK7olHO8efFylblOsIxfDA1A5wJGqYkk7
ZDEqgbsGdOFGSUgvfmAFCvhhSG3uSfVx1CGXknm41WTOGaESZkhkc5mu2EXpgZarCUc0pK7EmD71
8MtXKz4YXmclfrtwdXD9MGoe8Jc0YPHyiVQVw9FgCK0w5HdDKjDwcYMtmtDYpzFhKIh+enQnh5Cp
epTV8wtVFLRUf82JGw7ddK4b2sNhk4Q1uqCVk5HTbgqSl3GN3SuA6u+nuF9nVWg2H8bjloY5az3/
Zcux4UbSae+qXaK1qtbyTK+ZJ1yxyVx3GWRpkqVTiwmoLndoE7sbp1RE1GeYVPb1G7sioAXSWoZt
ZqpmN6m9fJ5ApRvEXNBpng7UskuabDFsWVauH24NGDEPecDB+NQAo/MPGIM6GBbGaLffqFd1sW/Z
lzedvDxtD/rO4NoufvUu2w4WP+O4KwsMojRU8BvIPWw5Kromj7EERoiZ+O35H2D4K5pLCrvbL512
o970JFHJNw/GnLXG1a1LWVYtm5XX3f5HhMB0dbs1Pm+DWypiGjbqtRA3A9O1KIqBz4rSHYtlwnmo
e2AG9MOgaHH9b26y7CbnNFzioA8VXbDkZukSPmO+RuG+R5YdsEiS4sdPRWYVcTLz5L1MaXSBSVZ7
rIHOMEcPuOg23r9bav9L0AO7+1RBweBZelGt1Ywi5RmbBxcVyjqF5b7gKKt3w+JANcZIrZzkuUTl
9uakOMnJSXui/JvHJEnqE4zqRn1STDDZnqBy4gxuRm27iYm/G2MSVmBnOC26b6rPbpgmJWmOirNE
O0luYpbCWJ0Oy73akS+bv5+uGZ3Ba0nDmTpGqkXYeAR6bAnoO/a1Yz/Ve3KffYbzvNn0lXKmX2KX
PW072T/W6zmusya0h8tBGsdynCh3nS9ddB7/ofNMn+w8nS+73Qdhtf38F1M9bkUF751WtGr/ZUX/
qy/uy5y+evA3HQmMxPfS+4ReSJroJKNODb/86YA/oS9kmML9qR/mh53vln3pWzoVPuZa2zvzfA/T
k/2sDta30MDKb3G5I+Q1+UvZjluJ8uvO3o5r38m17AieJVB1eCYI1RcssuyLFp25WZhOsQHfnHD6
JDGJiRc7piAmvv6bwuR+aDL8zJOvpuem5bPGGlQtoTgi1GoT/NP3QqV9qCHyyuDL41YHl4Ngjr5c
GHjqJupocE7mHURUhxKt4/qYVcj6gbo+ynZQ1jmql5hzlHUemSwOv0vEjXXPjyLietW78HaveUTl
E4OJEW6STJhelJj4noQhVcdPanosNkUgzYDNzK9JgB+q/2lVdk+sD5P7gve7VFVoUwvvCY4QSmus
525PjsQC/DoarxztKMzsGHPK0RQr0I7CzPnQGmcR3gOK46x03B46qaBudKxtWAMeZb03o2vkh3ez
x+K3BnxSSlCP6dK98oe2eLOsnPwLUEsBAhQAFAAAAAgA8GVHLnKcXdr4AwAAXggAAC4AAAAAAAAA
AQAgALaBAAAAAFByb2plY3RzL0MvY29tbW9uY3BwMi90ZXN0cy9UZXN0X1RDUFN0cmVhbS5jcHBQ
SwECFAAUAAAACABlZ0cu/A3oaK4FAAD8CwAALAAAAAAAAAABACAAtoFEBAAAUHJvamVjdHMvQy9j
b21tb25jcHAyL3Rlc3RzL1Rlc3RfVENQU3RyZWFtLmhQSwECFAAUAAAACABlZkcuCYY3Eo8FAABK
GAAANAAAAAAAAAABACAAtoE8CgAAUHJvamVjdHMvQy9jb21tb25jcHAyL3dpbjMyL3Rlc3RzL2Nj
eHhfdGVzdHN1aXRlLmRzcFBLBQYAAAAAAwADABgBAAAdEAAAAAA=

--Boundary_(ID_lJ4QGninHkwQImLqX0r/hg)--



From MAILER-DAEMON Sat Feb 08 10:44:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18hX9X-0008LV-00
	for mharc-bug-commoncpp@gnu.org; Sat, 08 Feb 2003 10:44:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18hX9V-0008Hn-00
	for bug-commoncpp@gnu.org; Sat, 08 Feb 2003 10:44:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18hX9T-0008B6-00
	for bug-commoncpp@gnu.org; Sat, 08 Feb 2003 10:44:24 -0500
Received: from colossus.systems.pipex.net ([62.241.160.73])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18hX9T-00089c-00
	for bug-commoncpp@gnu.org; Sat, 08 Feb 2003 10:44:23 -0500
Received: from bigfoot.com (81-86-233-34.dsl.pipex.com [81.86.233.34])
	by colossus.systems.pipex.net (Postfix) with ESMTP id E1A7116000445
	for <bug-commoncpp@gnu.org>; Sat,  8 Feb 2003 15:44:20 +0000 (GMT)
Message-ID: <3E4525C5.9090709@bigfoot.com>
Date: Sat, 08 Feb 2003 15:44:05 +0000
From: Jon Wilson <sendmemymail@bigfoot.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Reading from a TCP socket into a file using binary.
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 08 Feb 2003 15:44:26 -0000

I am trying to write an application to read data from a TCP socket into 
a file using binary. It is to be used to transfer a PNG file from a 
client to the server. However, I am having problems getting it to work.

The program is a multithreaded server which dispatches a thread upon an 
attempted connection which generates a random filename from the current 
time and then writes the data sent to the socket into the file.

As it stands, the program seems to copy one byte into the file, but 
doesn't seem to be the first bit from the file sent by the client. 
Please can someone help me with this. Have I missused the library? Or am 
I missing something obvious, I have been struggling with this for a 
while now!

Many Thanks.

Jon Wilson

#include <cc++/socket.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <sstream>
#include <ctime>

#ifdef	CCXX_NAMESPACES
using namespace std;
using namespace ost;
#endif
class ThreadOut: public Thread{
     tcpstream* tcp;
public:
	ThreadOut(tcpstream* tcp)
	{
         this->tcp=tcp;
		start();
	}
	void run(){
         time_t seconds= time(NULL);
         int i=seconds;

         ostringstream istr;
         istr << i;
         string name=istr.str()+"out.png";

         char nm[name.length()];
         strcpy(nm,name.c_str());
         ofstream out(nm,ios::binary);

         /*ERROR HERE
         while(*tcp){
             out.put(tcp->get());
         }
         */

         cout << "Read complete, closing" << endl;
         tcp->close();
         out.close();
	}
};

int main(int argc, char *argv[]){
     if(argc!=2){
         cout << "Arguments wrong" << endl;
         exit(1);
     }
     cout << argv[1] << endl;
	InetAddress addr = argv[1];
	TCPSocket *sock = new TCPSocket(addr, 9382);

     cout << "Streams open" << endl;
     char c;
	while (1){
         cout << "WAITING" << endl;
		if (sock->isPendingConnection()){
             cout << "Connection Established" << endl;
             tcpstream* tcp=new tcpstream(*sock,ios::binary);
			new ThreadOut(tcp);

		}
	}
	return 0;
}




From MAILER-DAEMON Sun Feb 09 11:41:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18huWS-0008RG-00
	for mharc-bug-commoncpp@gnu.org; Sun, 09 Feb 2003 11:41:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18huWQ-0008Qi-00
	for bug-commoncpp@gnu.org; Sun, 09 Feb 2003 11:41:38 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18huWO-0008QG-00
	for bug-commoncpp@gnu.org; Sun, 09 Feb 2003 11:41:37 -0500
Received: from smtpout1.vtr.net ([200.83.1.22] helo=hudson.vtr.net)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18huWO-0008JD-00
	for bug-commoncpp@gnu.org; Sun, 09 Feb 2003 11:41:36 -0500
Received: from [200.83.10.21] by hudson.vtr.net with HTTP;
	Sun, 9 Feb 2003 13:34:19 -0300
Date: Sun, 9 Feb 2003 13:34:19 -0300
Message-ID: <3E0445DC000307D2@hudson.vtr.net>
From: jcvnueva@vtr.net
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
Subject: No errors making commoncpp on mingw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 09 Feb 2003 16:41:38 -0000

I got no errors making the libraries on mingw32, i used Mingw 2.0 (GCC 3.=
2)
and MSYS 1.0.8. I've only had to change config.h and comment HAVE_OLD_IOS=
TREAM,
and get a precompiled libxml2 from the web.
I used the Makefile.gcc on win32 directory, the only problem is that i co=
uldn't
make the demos or tests with the makefile.




From MAILER-DAEMON Mon Feb 10 13:44:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iIuS-00016Y-00
	for mharc-bug-commoncpp@gnu.org; Mon, 10 Feb 2003 13:44:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iIuQ-000149-00
	for bug-commoncpp@gnu.org; Mon, 10 Feb 2003 13:44:02 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iIuO-00013u-00
	for bug-commoncpp@gnu.org; Mon, 10 Feb 2003 13:44:01 -0500
Received: from [208.201.224.39] (helo=b.smtp-out.sonic.net)
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18iIuN-0000sL-00
	for bug-commoncpp@gnu.org; Mon, 10 Feb 2003 13:44:00 -0500
Received: (qmail 16774 invoked from network); 10 Feb 2003 18:43:29 -0000
Received: from prop.sonic.net (208.201.224.193)
  by b.smtp-out.sonic.net with SMTP; 10 Feb 2003 18:43:29 -0000
Received: from mailman.eason.com (adsl-209-204-139-80.sonic.net
	[209.204.139.80])
	by prop.sonic.net (8.11.6/8.8.5) with ESMTP id h1AIhT712302;
	Mon, 10 Feb 2003 10:43:29 -0800
X-envelope-info: <apavloff@eason.com>
Received: by mailman.eason.com with Internet Mail Service (5.5.2653.19)
	id <1LS8KSLG>; Mon, 10 Feb 2003 10:43:28 -0800
Message-ID: <D3AF5F134D627243993F2F2FC32EE4D229C577@mailman.eason.com>
From: Alex Pavloff <apavloff@eason.com>
To: "'Jon Wilson'" <sendmemymail@bigfoot.com>
Date: Mon, 10 Feb 2003 10:43:28 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
cc: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Subject: RE: Reading from a TCP socket into a file using binary.
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 18:44:02 -0000


Why are you creating this seperate tcpstream and then passing it?

What I have done (and works) is create a class that derives from
ost::TCPSession (which derives from ost::Thread) itself.  Then, when the
listening socket accepts a connection, I do this:

CMyTCPSession* pMySession = new CMyTCPSession( *sock );
pMySession->start(); // (or detach, what works for you)

The run() method of CMyTCPSession then does the work.  I believe this is how
the examples do it.

Oh, and whats with the strange std::string,then allocate buffer and strcpy
thing?  Just do a .c_str() in the fstream open call.

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


> -----Original Message-----
> From: Jon Wilson [mailto:sendmemymail@bigfoot.com]
> Sent: Saturday, February 08, 2003 7:44 AM
> To: bug-commoncpp@gnu.org
> Subject: Reading from a TCP socket into a file using binary.
> 
> 
> I am trying to write an application to read data from a TCP 
> socket into 
> a file using binary. It is to be used to transfer a PNG file from a 
> client to the server. However, I am having problems getting 
> it to work.
> 
> The program is a multithreaded server which dispatches a 
> thread upon an 
> attempted connection which generates a random filename from 
> the current 
> time and then writes the data sent to the socket into the file.
> 
> As it stands, the program seems to copy one byte into the file, but 
> doesn't seem to be the first bit from the file sent by the client. 
> Please can someone help me with this. Have I missused the 
> library? Or am 
> I missing something obvious, I have been struggling with this for a 
> while now!
> 
> Many Thanks.
> 
> Jon Wilson
> 
> #include <cc++/socket.h>
> #include <iostream>
> #include <fstream>
> #include <cstdlib>
> #include <sstream>
> #include <ctime>
> 
> #ifdef	CCXX_NAMESPACES
> using namespace std;
> using namespace ost;
> #endif
> class ThreadOut: public Thread{
>      tcpstream* tcp;
> public:
> 	ThreadOut(tcpstream* tcp)
> 	{
>          this->tcp=tcp;
> 		start();
> 	}
> 	void run(){
>          time_t seconds= time(NULL);
>          int i=seconds;
> 
>          ostringstream istr;
>          istr << i;
>          string name=istr.str()+"out.png";
> 
>          char nm[name.length()];
>          strcpy(nm,name.c_str());
>          ofstream out(nm,ios::binary);
> 
>          /*ERROR HERE
>          while(*tcp){
>              out.put(tcp->get());
>          }
>          */
> 
>          cout << "Read complete, closing" << endl;
>          tcp->close();
>          out.close();
> 	}
> };
> 
> int main(int argc, char *argv[]){
>      if(argc!=2){
>          cout << "Arguments wrong" << endl;
>          exit(1);
>      }
>      cout << argv[1] << endl;
> 	InetAddress addr = argv[1];
> 	TCPSocket *sock = new TCPSocket(addr, 9382);
> 
>      cout << "Streams open" << endl;
>      char c;
> 	while (1){
>          cout << "WAITING" << endl;
> 		if (sock->isPendingConnection()){
>              cout << "Connection Established" << endl;
>              tcpstream* tcp=new tcpstream(*sock,ios::binary);
> 			new ThreadOut(tcp);
> 
> 		}
> 	}
> 	return 0;
> }
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 



From MAILER-DAEMON Wed Feb 12 04:17:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18it0X-00035y-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:16:45 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18it0S-0002rl-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:16:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18it0L-0002lL-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:16:34 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18it07-0002jg-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:16:19 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18it1V-00006K-00; Wed, 12 Feb 2003 10:17:45 +0100
Date: Wed, 12 Feb 2003 10:17:39 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Chad Yates <cyates@uidaho.edu>
Message-ID: <20030212091736.GA254@bulbasaur.rediris.es>
Mail-Followup-To: Chad Yates <cyates@uidaho.edu>, bug-commoncpp@gnu.org
References: <NBBBJJODBJBNJFNIDDCNCELIDEAA.cyates@uidaho.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <NBBBJJODBJBNJFNIDDCNCELIDEAA.cyates@uidaho.edu>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: recent persist.cpp change
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 09:16:43 -0000


	Yes, I think you are right, thanks for pointing it out. I have
reverted it to the previous '==' assertion.

On Tue, Feb 11, 2003 at 04:27:23PM -0800, Chad Yates wrote:
> I think the change to the assert statement:
> 
> void TypeManager::add(const char* name, NewBaseObjectFunction construction)
> {
>   if (refCount++ == 0)
>   {
>     theInstantiationFunctions = new StringFunctionMap;
>   }
>   assert(_internal_GetMap().find(string(name)) != _internal_GetMap().end());
>   _internal_GetMap()[string(name)] = construction;
> }
> 
> in persist.cpp was incorrect.  it is supposed to assert that the persistable
> class has only been added to the type manager once.  hence the find() should
> not find anything in the stl map and therefore should return end().
> 
> it should be == not !=
> 
> if you have some other info I don't know about, please correct me.
> 
> ,chad
> 



From MAILER-DAEMON Wed Feb 12 04:22:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18it6M-0000mb-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:22:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18it6K-0000m2-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:22:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18it6I-0000la-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:22:43 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18it6I-0000lQ-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:22:42 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18it83-00006e-00
	for <bug-commoncpp@gnu.org>; Wed, 12 Feb 2003 10:24:31 +0100
Date: Wed, 12 Feb 2003 10:24:28 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: bug-commoncpp@gnu.org
Message-ID: <20030212092424.GB254@bulbasaur.rediris.es>
Mail-Followup-To: bug-commoncpp@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
Subject: Patch for Socket (read/write and network interface index)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 09:22:44 -0000


	Hi, Donald Wycoff has recently submitted a patch through the
Savannah patch manager. He proposes new methods for Socket: two new
read/write for blocks -with separators and timeout-, as well as
methods for getting the network interface index for a given interface
name, and joining a multicast group on a specified interface.

	I find it quite useful and would apply the patch soon, but
perhaps you would like to make some comments...



From MAILER-DAEMON Wed Feb 12 04:35:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18itIq-0002wC-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:35:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18itIa-0002dw-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:35:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18itIR-0002Vl-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:35:16 -0500
Received: from pool-141-153-147-83.mad.east.verizon.net ([141.153.147.83]
	helo=home.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18itIL-0002Da-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:35:10 -0500
Received: from localhost.sys ([192.168.1.104])
	by home.bayonne.dyndns.org (8.11.6/8.11.6) with ESMTP id h1CADr900526;
	Wed, 12 Feb 2003 05:13:53 -0500
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Federico Montesino Pouzols <fedemp@altern.org>, bug-commoncpp@gnu.org
Date: Wed, 12 Feb 2003 04:38:25 -0500
User-Agent: KMail/1.4.3
References: <20030212092424.GB254@bulbasaur.rediris.es>
In-Reply-To: <20030212092424.GB254@bulbasaur.rediris.es>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302120438.26451.dyfet@ostel.com>
Subject: Re: Patch for Socket (read/write and network interface index)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 09:35:37 -0000

There is such member functions for the serial I/O class already, and it w=
ould=20
be very natural to have this for sockets if it is fully portable.  I have=
 not=20
looked at it yet, but it does fit in well with something I would have=20
included in the original library if I had thought about how to do that at=
 the=20
time.

On Wednesday 12 February 2003 04:24, Federico Montesino Pouzols wrote:
> Hi, Donald Wycoff has recently submitted a patch through the
> Savannah patch manager. He proposes new methods for Socket: two new
> read/write for blocks -with separators and timeout-, as well as
> methods for getting the network interface index for a given interface
> name, and joining a multicast group on a specified interface.
>
> =09I find it quite useful and would apply the patch soon, but
> perhaps you would like to make some comments...
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Wed Feb 12 19:39:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18j7Os-0004iG-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 19:38:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18hH2z-00076q-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 17:32:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18hH2l-0006qO-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 17:32:25 -0500
Received: from 216-107-91-226.wan.networktel.net ([216.107.91.226]
	helo=mail.oarcorp.com)
	by monty-python.gnu.org with smtp (Exim 4.10.13)	id 18hH2g-0006kP-00
	for bug-commoncpp@gnu.org; Fri, 07 Feb 2003 17:32:18 -0500
Received: (qmail 3065 invoked from network); 7 Feb 2003 22:32:14 -0000
Received: from unknown (HELO OARcorp.com) (136.205.65.100)
  by 0 with SMTP; 7 Feb 2003 22:32:14 -0000
Message-ID: <3E4433E9.E9CCDAAA@OARcorp.com>
Date: Fri, 07 Feb 2003 16:32:09 -0600
From: Joel Sherrill <joel.sherrill@OARcorp.com>
Organization: OAR Corporation
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: multipart/mixed;
 boundary="------------853E3ADA579033A5AB268CBE"
X-Mailman-Approved-At: Wed, 12 Feb 2003 19:38:46 -0500
Subject: LynxOS 3.1.1 Port
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 07 Feb 2003 22:32:38 -0000

This is a multi-part message in MIME format.
--------------853E3ADA579033A5AB268CBE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi,

I am entering the test phase of my port of Common C++ to LynxOS
3.1.1.  I am filing the appropriate paperwork with the FSF but
for now want to get some feedback on some porting issues and
how to do them more cleanly.  Right now, there are a handful
of __Lynx__ conditionals I want to eliminate.

(1) LynxOS has this prototype for sigwait() 

int sigwait            (sigset_t *, void **);

Currently, OST_CC_SIGNAL checks for 1 or 2 arguments to sigwait()
but the common 2 arg variety if not this one.  Any ideas on how to
detect it so I don't have to stoop to an ifdef on __Lynx__

(2) inet_aton(char *, .. )     not inet_aton(const char *, ..)
    gethostbyname(char *, .. ) not gethostbyname(const char *, ..)
    openlog(char *,..)         not openlog(const char *, ..)

Again how to detect and deal with this without stopping to 
ifdef __Lynx__.

(3) autoconf decides that LynxOS has PTHREAD_MUTEXTYPE_RECURSIVE
but LynxOS doesn't have pthread_mutexattr_settype().

(4) The structure used for SIOCGIFNETMASK around line 120
in src/network.cpp has different names in LynxOS:

#if defined(__Lynx__)
                        (InetAddress&)maskaddr =
((sockaddr_in&)devifreq).sin_addr;
#else
                        (InetAddress&)maskaddr =
((sockaddr_in&)devifreq.ifr_netmask).sin_addr;
#endif

(5) SIOCGIFMTU is not defined in LynxOS so I just set mtu.c in
src/network.cpp around line 128.

(6) In src/process.cpp and src/thread.cpp, signalexec_t has to be this:

#if defined(__Lynx__)
typedef RETSIGTYPE (*signalexec_t)(...);
#else
typedef RETSIGTYPE (*signalexec_t)(int);
#endif

The rest of the changes I managed to accomodate with autoconf macro
changes
or minor type changes to remove warnings.  I have attached the entire 
patch for review and comments.   I still have testing to go so I am
sure this is not the final iteration of it. :)

Thanks.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985
--------------853E3ADA579033A5AB268CBE
Content-Type: text/plain; charset=us-ascii;
 name="commoncpp2-1.0.7-20030207.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="commoncpp2-1.0.7-20030207.diff"

diff -u -r commoncpp2-1.0.7-orig/acconfig.h commoncpp2-1.0.7/acconfig.h
--- commoncpp2-1.0.7-orig/acconfig.h	Thu Nov 21 08:38:02 2002
+++ commoncpp2-1.0.7/acconfig.h	Tue Feb  4 12:02:41 2003
@@ -83,6 +83,7 @@
 #undef HAVE_ARPA_INET_H
 #undef HAVE_NETINET_IN_SYSTM_H
 #undef HAVE_NETINET_IP_H
+#undef HAVE_BSD_IN_H
 #undef HAVE_SYS_UN_H
 #undef HAVE_SELECT_H
 #undef HAVE_SYS_SELECT_H
@@ -260,6 +261,12 @@
 #define	memmove(d, s, l)	memcpy(d, s, l)
 #endif
 
+#if defined(__Lynx__)
+#define HAVE_STRCASECMP
+int strcasecmp(const char *s1, const char *s2);
+int strncasecmp(const char *s1, const char *s2, size_t n);
+#endif
+
 #ifdef HAVE_STRCASECMP
 #ifndef stricmp
 #define stricmp(x,y) strcasecmp(x,y)
@@ -359,7 +366,9 @@
 #ifdef HAVE_PTHREAD_NANOSLEEP
 #ifndef HAVE_PTHREAD_DELAY
 #define HAVE_PTHREAD_DELAY
+#ifndef __Lynx__
 extern "C" int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
+#endif
 #define pthread_delay(x) nanosleep(x, NULL)
 #endif
 #endif
@@ -452,12 +461,20 @@
 #ifdef HAVE_NETINET_IP_H
 #include <netinet/ip.h>
 #endif
+#ifdef HAVE_BSD_IN_H
+#include <bsd/in.h>
+typedef u_long in_addr;
+#endif
 #ifdef HAVE_SYS_UN_H
 #include <sys/un.h>
 #endif
 #endif
 #endif
 
+#if defined(__Lynx__)
+#include <bsd/in.h>
+#endif
+
 #ifndef HAVE_INET_ATON
 #define inet_aton(cp, addr) \
 	(((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)
@@ -487,6 +504,8 @@
 #ifdef HAVE_SOCKLEN_U
 #if !defined(__CYGWIN32__) && !defined(__MINGW32__)
 typedef unsigned socklen_t;
+#elif defined(__Lynx__)
+typedef unsigned int socklen_t;
 #else
 typedef int socklen_t;
 #endif
diff -u -r commoncpp2-1.0.7-orig/aclocal.m4 commoncpp2-1.0.7/aclocal.m4
--- commoncpp2-1.0.7-orig/aclocal.m4	Mon Nov 25 14:38:41 2002
+++ commoncpp2-1.0.7/aclocal.m4	Wed Jan 22 12:53:08 2003
@@ -156,6 +156,14 @@
 
 # Some flags need to be propagated to the compiler or linker for good
 # libtool support.
+case $target in
+powerpc-xcoff-lynxos)
+  CFLAGS="$CFLAGS -mthreads"
+  ;;
+*-*-*)
+  ;;
+esac
+
 case $host in
 *-*-irix6*)
   # Find out which ABI we are using.
@@ -4255,6 +4263,7 @@
 
 AC_DEFUN(OST_CC_STRING,[
 	AC_REQUIRE([OST_SYS_POSIX])
+        AC_CHECK_FUNC(strcasecmp, , AC_CHECK_LIB(bsd, strcasecmp))
 	AC_CHECK_FUNCS(strcasecmp strdup snprintf memmove)
 	AC_CHECK_HEADERS(strings.h)
 ])
@@ -4287,7 +4296,6 @@
 dnl 
 dnl END ACCONFIG
 
-
 dnl Copyright (C) 1999-2001 Open Source Telecom Corporation.
 dnl  
 dnl This program is free software; you can redistribute it and/or modify
@@ -5251,6 +5259,8 @@
 	AC_SUBST(XML_LIBS)
 	AC_SUBST(XML_FLAGS)
 ])
+  ;;
+fi
 
 dnl ACCONFIG TEMPLATE
 dnl #undef HAVE_LIBXML
diff -u -r commoncpp2-1.0.7-orig/configure.in commoncpp2-1.0.7/configure.in
--- commoncpp2-1.0.7-orig/configure.in	Mon Nov 25 08:53:53 2002
+++ commoncpp2-1.0.7/configure.in	Wed Jan 22 12:53:14 2003
@@ -117,6 +117,23 @@
 
 AC_SUBST(BASE_LIB)
 
+### JOEL
+### AC_CHECK_HEADERS(bsd/in.h)
+
+### dnl ACCONFIG TEMPLATE
+### dnl #undef HAVE_BSD_IN_H
+### dnl END ACCONFIG
+### 
+### dnl ACCONFIG BOTTOM
+### dnl #ifdef HAVE_BSD_IN_H
+### dnl #include <bsd/in.h>
+### dnl typedef u_long in_addr;
+### dnl #endif
+### dnl END ACCONFIG
+### JOEL
+
+
+
 AC_OUTPUT(src/ccgnu2-config src/Makefile win32/Makefile m4/Makefile config/Makefile
 doc/Makefile demo/Makefile include/Makefile include/cc++/Makefile Makefile template/Makefile freebsd/pkg-plist
 pkginfo commoncpp2.spec freebsd/Makefile win32/CCXX2.rc tests/Makefile
@@ -132,5 +149,3 @@
 sed -e s!"@thrprefix@"!"$thrprefix"! -e s!"@USR_PREFIX@"!"$prefix"! \
 	-e s!PACKAGE!CCXX_PACKAGE! -e s!VERSION!CCXX_VERSION! <config.tmp >config.h
 cd ../..
-
-
diff -u -r commoncpp2-1.0.7-orig/include/cc++/file.h commoncpp2-1.0.7/include/cc++/file.h
--- commoncpp2-1.0.7-orig/include/cc++/file.h	Thu Nov 21 08:33:07 2002
+++ commoncpp2-1.0.7/include/cc++/file.h	Wed Jan 22 11:35:55 2003
@@ -729,6 +729,14 @@
 	 * the disk file and wait for completion.  This assures the memory
 	 * mapped from the file is written back.
 	 */
+// LynxOS 3.1.1 did not define these :(
+#if defined(__Lynx__) 
+#if !defined(MS_SYNC)
+#define MS_ASYNC        1
+#define MS_INVALIDATE   2
+#define MS_SYNC         4
+#endif
+#endif	
 	inline void sync(void)
 		{msync(fcb.address, fcb.len, MS_SYNC);};
 
diff -u -r commoncpp2-1.0.7-orig/include/cc++/persist.h commoncpp2-1.0.7/include/cc++/persist.h
--- commoncpp2-1.0.7-orig/include/cc++/persist.h	Thu Nov 21 08:29:48 2002
+++ commoncpp2-1.0.7/include/cc++/persist.h	Wed Jan 22 13:02:00 2003
@@ -469,7 +469,7 @@
 Engine& operator <<( Engine& ar, typename std::vector<T> const& ob) THROWS (Engine::Exception)
 {
 	ar << (uint32)ob.size();
-	for(uint i=0; i < ob.size(); ++i)
+	for(uint32 i=0; i < ob.size(); ++i)
 		ar << ob[i];
 	return ar;
 }
diff -u -r commoncpp2-1.0.7-orig/include/cc++/socket.h commoncpp2-1.0.7/include/cc++/socket.h
--- commoncpp2-1.0.7-orig/include/cc++/socket.h	Thu Nov 21 08:33:07 2002
+++ commoncpp2-1.0.7/include/cc++/socket.h	Tue Feb  4 11:54:12 2003
@@ -50,6 +50,7 @@
 #include <cc++/config.h>
 #endif
 
+
 #ifndef	CCXX_THREAD_H_
 #include <cc++/thread.h>
 #endif
@@ -65,6 +66,13 @@
 typedef int SOCKET;
 #endif
 
+#if defined(__Lynx__)
+typedef int32_t socklen_t;
+#include <socket.h>
+#include <netdb.h>
+#include <arpa/inet.h>
+#endif
+
 #include <iostream>
 
 #ifndef	MSG_DONTWAIT
@@ -120,7 +128,7 @@
 	 * algorithm specific to derived classes.  
 	 */
 	inline virtual void 
-	operator()(const in_addr address) const = 0;
+	operator()(const struct in_addr address) const = 0;
 };
 
 /**
@@ -144,7 +152,7 @@
 	 * specific to multicast addresses
 	 */
 	inline void 
-	operator()(const in_addr address) const; 
+	operator()(const struct in_addr address) const; 
 private:
 #if __BYTE_ORDER == __BIG_ENDIAN
 	enum {
diff -u -r commoncpp2-1.0.7-orig/include/config.h.in commoncpp2-1.0.7/include/config.h.in
--- commoncpp2-1.0.7-orig/include/config.h.in	Mon Nov 25 08:53:57 2002
+++ commoncpp2-1.0.7/include/config.h.in	Tue Feb  4 12:12:27 2003
@@ -101,6 +101,7 @@
 #undef HAVE_ARPA_INET_H
 #undef HAVE_NETINET_IN_SYSTM_H
 #undef HAVE_NETINET_IP_H
+#undef HAVE_BSD_IN_H
 #undef HAVE_SYS_UN_H
 #undef HAVE_SELECT_H
 #undef HAVE_SYS_SELECT_H
@@ -181,6 +182,9 @@
 /* Define if you have the <netinet/ip.h> header file.  */
 #undef HAVE_NETINET_IP_H
 
+/* Define if you have the <bsd/in.h> header file.  */
+#undef HAVE_BSD_IN_H
+
 /* Define if you have the <poll.h> header file.  */
 #undef HAVE_POLL_H
 
@@ -421,6 +425,12 @@
 #define	memmove(d, s, l)	memcpy(d, s, l)
 #endif
 
+#if defined(__Lynx__)
+#define HAVE_STRCASECMP
+int strcasecmp(const char *s1, const char *s2);
+int strncasecmp(const char *s1, const char *s2, size_t n);
+#endif
+
 #ifdef HAVE_STRCASECMP
 #ifndef stricmp
 #define stricmp(x,y) strcasecmp(x,y)
@@ -520,7 +530,9 @@
 #ifdef HAVE_PTHREAD_NANOSLEEP
 #ifndef HAVE_PTHREAD_DELAY
 #define HAVE_PTHREAD_DELAY
+#ifndef __Lynx__
 extern "C" int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
+#endif
 #define pthread_delay(x) nanosleep(x, NULL)
 #endif
 #endif
@@ -613,12 +625,20 @@
 #ifdef HAVE_NETINET_IP_H
 #include <netinet/ip.h>
 #endif
+#ifdef HAVE_BSD_IN_H
+#include <bsd/in.h>
+typedef u_long in_addr;
+#endif
 #ifdef HAVE_SYS_UN_H
 #include <sys/un.h>
 #endif
 #endif
 #endif
 
+#if defined(__Lynx__)
+#include <bsd/in.h>
+#endif
+
 #ifndef HAVE_INET_ATON
 #define inet_aton(cp, addr) \
 	(((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)
@@ -711,4 +731,19 @@
 #define	ETC_PREFIX "/etc/"
 #endif
 
+/* provide prototypes for present routines without them */
+#if defined(__Lynx__)
+// should be in stdio.h 
+int snprintf(char *str, size_t size, const  char  *format, ...);
+
+// should be prototyped in stdlib.h 
+int putenv(char *string);
+
+// should be prototyped in unistd.h 
+pid_t vfork(void);
+
+// should be in sys/file.h
+int lockf(int fd, int cmd, off_t len);
+#endif
+
 #endif
diff -u -r commoncpp2-1.0.7-orig/m4/ost_socket.m4 commoncpp2-1.0.7/m4/ost_socket.m4
--- commoncpp2-1.0.7-orig/m4/ost_socket.m4	Thu May 30 07:10:15 2002
+++ commoncpp2-1.0.7/m4/ost_socket.m4	Wed Jan 22 09:01:55 2003
@@ -26,7 +26,7 @@
 	ost_cv_lib_socket="c"
 	SOCKET_LIBS=""
 	AC_CHECK_HEADERS(sys/socket.h,[
-		AC_CHECK_HEADERS(select.h sys/select.h netinet/in_systm.h netinet/ip.h)
+		AC_CHECK_HEADERS(select.h sys/select.h netinet/in_systm.h netinet/ip.h bsd/in.h)
 		AC_CHECK_HEADERS(arpa/inet.h,
 			ost_cv_inet_sockets=yes)
 		AC_CHECK_HEADERS(sys/un.h,
@@ -66,6 +66,7 @@
 dnl #undef HAVE_ARPA_INET_H
 dnl #undef HAVE_NETINET_IN_SYSTM_H
 dnl #undef HAVE_NETINET_IP_H
+dnl #undef HAVE_BSD_IN_H
 dnl #undef HAVE_SYS_UN_H
 dnl #undef HAVE_SELECT_H
 dnl #undef HAVE_SYS_SELECT_H
diff -u -r commoncpp2-1.0.7-orig/m4/ost_systime.m4 commoncpp2-1.0.7/m4/ost_systime.m4
--- commoncpp2-1.0.7-orig/m4/ost_systime.m4	Fri Feb 22 04:11:32 2002
+++ commoncpp2-1.0.7/m4/ost_systime.m4	Tue Feb  4 10:30:11 2003
@@ -20,8 +20,8 @@
 dnl distribution terms that you use for the rest of that program.
 
 AC_DEFUN(OST_HEADER_SYSTIME,[
-	AC_HEADER_TIME
-	AC_CHECK_HEADERS(sys/time.h)
+     AC_HEADER_TIME
+     AC_CHECK_HEADERS(sys/time.h)
 ])
 
 dnl ACCONFIG TEMPLATE
diff -u -r commoncpp2-1.0.7-orig/src/file.cpp commoncpp2-1.0.7/src/file.cpp
--- commoncpp2-1.0.7-orig/src/file.cpp	Sat Nov  9 23:19:36 2002
+++ commoncpp2-1.0.7/src/file.cpp	Tue Feb  4 12:12:29 2003
@@ -490,7 +490,7 @@
 #else
 	enterMutex();
 	lseek(fd, fcb->pos, SEEK_SET);
-	io = ::read(fd, fcb->address, fcb->len);
+	int io = ::read(fd, fcb->address, fcb->len);
 	leaveMutex();
 #endif
 
@@ -551,7 +551,7 @@
 #else
 	enterMutex();
 	lseek(fd, fcb->pos, SEEK_SET);
-	io = ::write(fd, fcb->address, fcb->len);
+	int io = ::write(fd, fcb->address, fcb->len);
 	leaveMutex();
 #endif
 
diff -u -r commoncpp2-1.0.7-orig/src/friends.cpp commoncpp2-1.0.7/src/friends.cpp
--- commoncpp2-1.0.7-orig/src/friends.cpp	Mon Aug 12 09:22:20 2002
+++ commoncpp2-1.0.7/src/friends.cpp	Tue Feb  4 11:06:30 2003
@@ -47,7 +47,12 @@
 
 #ifndef WIN32
 
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#else
+#include <time.h>
+#endif
+
 #ifdef	SIGTSTP
 #include <sys/file.h>
 #include <sys/ioctl.h>
@@ -108,7 +113,11 @@
 	sigemptyset(&mask);
 	sigaddset(&mask, signo);
 #ifdef	HAVE_SIGWAIT2
+#if defined(__Lynx__)
+	sigwait(&mask, (void **)&signo);
+#else
 	sigwait(&mask, &signo);
+#endif
 #else
 	sigwait(&mask);
 #endif
diff -u -r commoncpp2-1.0.7-orig/src/inaddr.cpp commoncpp2-1.0.7/src/inaddr.cpp
--- commoncpp2-1.0.7-orig/src/inaddr.cpp	Wed May  8 18:18:30 2002
+++ commoncpp2-1.0.7/src/inaddr.cpp	Tue Feb  4 12:11:36 2003
@@ -254,7 +254,11 @@
 #else
 	struct in_addr l_addr;
 	
+#if defined(__Lynx__)
+	int ok = inet_aton((char *)host, &l_addr);
+#else
 	int ok = inet_aton(host, &l_addr);
+#endif
 	if ( validator )
 		(*validator)(l_addr);
 	if ( !ok )
@@ -293,7 +297,11 @@
 		hp = gethostbyname(host);
 #else
 		mutex.enterMutex();
+#if defined(__Lynx__)
+		hp = gethostbyname((char *)host);
+#else
 		hp = gethostbyname(host);
+#endif
 		mutex.leaveMutex();
 #endif
 		if(!hp)
diff -u -r commoncpp2-1.0.7-orig/src/mutex.cpp commoncpp2-1.0.7/src/mutex.cpp
--- commoncpp2-1.0.7-orig/src/mutex.cpp	Wed May  8 18:18:30 2002
+++ commoncpp2-1.0.7/src/mutex.cpp	Tue Feb  4 11:01:53 2003
@@ -163,8 +163,10 @@
 
 	pthread_mutexattr_init(&_attr);
 #ifdef	PTHREAD_MUTEXTYPE_RECURSIVE
+#ifndef __Lynx__
 	pthread_mutexattr_settype(&_attr, PTHREAD_MUTEXTYPE_RECURSIVE);
 #endif
+#endif
 	pthread_mutex_init(&_mutex, &_attr);
 	pthread_mutexattr_destroy(&_attr);
 
diff -u -r commoncpp2-1.0.7-orig/src/network.cpp commoncpp2-1.0.7/src/network.cpp
--- commoncpp2-1.0.7-orig/src/network.cpp	Mon Nov 25 08:54:27 2002
+++ commoncpp2-1.0.7/src/network.cpp	Wed Jan 22 12:30:47 2003
@@ -113,15 +113,26 @@
 		else
 			(InetAddress&)brdaddr = ((sockaddr_in&)devifreq.ifr_broadaddr).sin_addr;
 
+
 		if(ioctl(fd, SIOCGIFNETMASK, &devifreq) == -1)
 			maskaddr = htonl(INADDR_BROADCAST);
 		else
+#if defined(__Lynx__)
+			(InetAddress&)maskaddr = ((sockaddr_in&)devifreq).sin_addr;
+#else
 			(InetAddress&)maskaddr = ((sockaddr_in&)devifreq.ifr_netmask).sin_addr;
+#endif
+
 
+		// SIOCGIFMTU not defined
+#if defined(__Lynx__)
+		mtu = 0;
+#else
 		if(ioctl(fd, SIOCGIFMTU, &devifreq) == -1)
 			mtu = 0;
 		else
 			mtu = devifreq.ifr_mtu;
+#endif
 
 		devs.push_back(NetworkDeviceInfo(ifc.ifc_req[i].ifr_name, addr, brdaddr, maskaddr, mtu));
 	}
diff -u -r commoncpp2-1.0.7-orig/src/process.cpp commoncpp2-1.0.7/src/process.cpp
--- commoncpp2-1.0.7-orig/src/process.cpp	Thu Nov 21 08:33:07 2002
+++ commoncpp2-1.0.7/src/process.cpp	Tue Feb  4 12:12:00 2003
@@ -46,7 +46,12 @@
 #include <cstdio>
 
 #ifndef	WIN32
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#else
+#include <time.h>
+#endif
+
 #include <sys/wait.h>
 
 #ifdef	SIGTSTP
@@ -68,6 +73,12 @@
 namespace ost {
 #endif
 
+#if defined(__Lynx__)
+typedef	RETSIGTYPE (*signalexec_t)(...);
+#else
+typedef	RETSIGTYPE (*signalexec_t)(int);
+#endif
+
 #ifdef	WIN32
 int Process::spawn(const char *exename, const char **args)
 {
@@ -105,7 +116,7 @@
 {
 	struct	sigaction	sig_act, old_act;
 
-	sig_act.sa_handler = func;
+	sig_act.sa_handler = (signalexec_t)func;
 	sigemptyset(&sig_act.sa_mask);
 	if(signo != SIGALRM)
 		sigaddset(&sig_act.sa_mask, SIGALRM);
@@ -124,7 +135,7 @@
 {
 	struct	sigaction	sig_act, old_act;
 
-	sig_act.sa_handler = func;
+	sig_act.sa_handler = (signalexec_t)func;
 	sigemptyset(&sig_act.sa_mask);
 	sig_act.sa_flags = 0;
 	if(signo == SIGALRM)
@@ -207,7 +218,7 @@
 		if(getenv(strbuf))
 			return;
 
-	::putenv(strbuf);
+	putenv(strbuf);
 #endif
 }
 
diff -u -r commoncpp2-1.0.7-orig/src/serial.cpp commoncpp2-1.0.7/src/serial.cpp
--- commoncpp2-1.0.7-orig/src/serial.cpp	Sat Nov  9 23:19:37 2002
+++ commoncpp2-1.0.7/src/serial.cpp	Wed Jan 22 12:34:04 2003
@@ -314,7 +314,10 @@
 	if(size > max)
 		size = max;
 
-	attr->c_cc[VEOL] = attr->c_cc[VEOL2] = 0;
+	attr->c_cc[VEOL] = 0;
+#if defined(VEOL2)                    // LynxOS doesn't appear to have this
+	attr->c_cc[VEOL2] = 0;
+#endif
 	attr->c_cc[VMIN] = (unsigned char)size;
 	attr->c_cc[VTIME] = btimer;
 	attr->c_lflag &= ~ICANON;
@@ -334,7 +337,9 @@
 	struct termios *attr = (struct termios *)current;
 	attr->c_cc[VMIN] = attr->c_cc[VTIME] = 0;
 	attr->c_cc[VEOL] = newline;
+#if defined(VEOL2)                    // LynxOS doesn't appear to have this
 	attr->c_cc[VEOL2] = nl1;
+#endif
 	attr->c_lflag |= ICANON;
 	tcsetattr(dev, TCSANOW, attr);
 #ifdef _PC_MAX_CANON
diff -u -r commoncpp2-1.0.7-orig/src/slog.cpp commoncpp2-1.0.7/src/slog.cpp
--- commoncpp2-1.0.7-orig/src/slog.cpp	Sun Jun 23 23:53:29 2002
+++ commoncpp2-1.0.7/src/slog.cpp	Tue Feb  4 11:33:08 2003
@@ -163,7 +163,11 @@
 		fac = LOG_USER;
 		break;
 	}
+#if defined(__Lynx__)
+	openlog((char *)ident, 0, fac);
+#else
 	openlog(ident, 0, fac);
+#endif
 #else
 	lock.enterMutex();
 	syslog.close();
diff -u -r commoncpp2-1.0.7-orig/src/thread.cpp commoncpp2-1.0.7/src/thread.cpp
--- commoncpp2-1.0.7-orig/src/thread.cpp	Sat Nov  9 23:19:37 2002
+++ commoncpp2-1.0.7/src/thread.cpp	Tue Feb  4 10:52:51 2003
@@ -71,7 +71,11 @@
 
 #ifndef WIN32
 typedef	void	*(*exec_t)(void *);
+#if defined(__Lynx__)
+typedef	RETSIGTYPE (*signalexec_t)(...);
+#else
 typedef	RETSIGTYPE (*signalexec_t)(int);
+#endif
 extern "C"
 {
 #ifndef CCXX_SIG_THREAD_STOPCONT
@@ -236,8 +240,13 @@
 	while ( (getThread()->priv->_suspendcount) > 0)
 	{
 #ifdef	HAVE_SIGWAIT2
+#if defined(__Lynx__)
+		void *return_info;
+		sigwait(&sigs, &return_info);
+#else
 		int signo;
 		sigwait(&sigs, &signo);
+#endif
 #else
 		sigwait(&sigs);
 #endif
@@ -418,7 +427,7 @@
 # endif		
 
 # if CCXX_SUSPEND_MODE == CCXX_SUSPEND_MODE_ONE_SIGNAL
-		act.sa_handler = ccxx_sigsuspend;
+		act.sa_handler = (signalexec_t)ccxx_sigsuspend;
 		sigemptyset(&act.sa_mask);
 #  ifdef	SA_RESTART
 		act.sa_flags = SA_RESTART;
@@ -1336,8 +1345,12 @@
 #ifndef HAVE_SIGWAIT2
 	signo = sigwait(&mask);
 #else
+#if defined(__Lynx__)
+	sigwait(&mask, (void **)&signo);
+#else
 	sigwait(&mask, &signo);
 #endif
+#endif
 }
 
 void	PosixThread::setSignal(int signo, bool mode)

--------------853E3ADA579033A5AB268CBE--




From MAILER-DAEMON Wed Feb 12 19:39:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18j7Ot-0004iZ-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 19:38:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18j6E2-0007eK-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 18:23:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18j6Dv-0007dr-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 18:23:28 -0500
Received: from f15.pav3.hotmail.com ([64.4.39.15] helo=hotmail.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18j6BS-0006jf-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 18:20:54 -0500
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Wed, 12 Feb 2003 15:20:51 -0800
Received: from 62.30.231.44 by pv3fd.pav3.hotmail.msn.com with HTTP;
	Wed, 12 Feb 2003 23:20:51 GMT
X-Originating-IP: [62.30.231.44]
From: "David Forrester" <davidforrester25@msn.com>
To: bug-commoncpp@gnu.org
Bcc: 
Date: Wed, 12 Feb 2003 23:20:51 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <F15hRnEXgzcjJVSFCYq0000556b@hotmail.com>
X-OriginalArrivalTime: 12 Feb 2003 23:20:51.0697 (UTC)
	FILETIME=[623BE610:01C2D2ED]
X-Mailman-Approved-At: Wed, 12 Feb 2003 19:38:46 -0500
Subject: BUG #2251
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 23:23:37 -0000

I have read the bug report about the difficulties and the fix for the 
problem with installing on Solaris but I am still not sure what I have to in 
order to get a version of commoncpp2 that will Install under solaris.  Sorry 
if this is a stupid question.

Thanks in advance

David Forrester




_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8 
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059




From MAILER-DAEMON Wed Feb 12 19:41:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18j7Os-0004iL-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 19:38:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18hc8V-0001vG-00
	for bug-commoncpp@gnu.org; Sat, 08 Feb 2003 16:03:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18hc8P-0001iZ-00
	for bug-commoncpp@gnu.org; Sat, 08 Feb 2003 16:03:39 -0500
Received: from subversions.gnu.org ([199.232.41.2])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18hc8E-0001X8-00
	for bug-commoncpp@gnu.org; Sat, 08 Feb 2003 16:03:26 -0500
Received: from www-data by subversions.gnu.org with local (Exim 3.35 #1
	(Debian))	id 18hc8D-0005Xa-00; Sat, 08 Feb 2003 16:03:25 -0500
To: bug-commoncpp@gnu.org,fedemp@altern.org,noreply@savannah.gnu.org
From: nobody@savannah.gnu.org
Message-Id: <E18hc8D-0005Xa-00@subversions.gnu.org>
Date: Sat, 08 Feb 2003 16:03:25 -0500
X-Mailman-Approved-At: Wed, 12 Feb 2003 19:38:46 -0500
Subject: [Bug #2484] file persit.h: typing error in Method " void
 TypeManager::add(...)"
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 08 Feb 2003 21:04:01 -0000


=================== BUG #2484: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2484&group_id=89

Changes by: Federico Montesino Pouzols <fedemp@altern.org>
Date: 2003-Feb-08 22:03 (Europe/Madrid)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | fedemp
              Status | Open                      | Closed
                  CC |                           | bug-commoncpp@gnu.org


------------------ Additional Follow-up Comments ----------------------------
 Fixed in CVS.



=================== BUG #2484: FULL BUG SNAPSHOT ===================


Submitted by: None                    Project: commonc++                    
Submitted on: 2003-Feb-05 21:27
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  fedemp                  Status:  Closed                       

Summary:  file persit.h: typing error in Method " void TypeManager::add(...)"

Original Submission:  void TypeManager::add(const char* name, NewBaseObjectFunction construction)
{
  if (refCount++ == 0)
  {
    theInstantiationFunctions = new StringFunctionMap;
  }
  /* BUG: == must be != */
  assert(_internal_GetMap().find(string(name)) == _internal_GetMap().end());
  _internal_GetMap()[string(name)] = construction;
}

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2003-Feb-08 22:03             By: fedemp
 Fixed in CVS.


CC List
*******

CC Address                          | Comment
------------------------------------+-----------------------------
bug-commoncpp@gnu.org               | 



No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2484&group_id=89



From MAILER-DAEMON Wed Feb 12 19:41:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18j7Os-0004iW-00
	for mharc-bug-commoncpp@gnu.org; Wed, 12 Feb 2003 19:38:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18itFX-0008WF-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:32:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18itFO-00080b-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:32:08 -0500
Received: from subversions.gnu.org ([199.232.41.2])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18itFI-0007d8-00
	for bug-commoncpp@gnu.org; Wed, 12 Feb 2003 04:32:00 -0500
Received: from www-data by subversions.gnu.org with local (Exim 3.35 #1
	(Debian))	id 18itFG-00024Y-00; Wed, 12 Feb 2003 04:31:58 -0500
To: bug-commoncpp@gnu.org,fedemp@altern.org,noreply@savannah.gnu.org
From: nobody@savannah.gnu.org
Message-Id: <E18itFG-00024Y-00@subversions.gnu.org>
Date: Wed, 12 Feb 2003 04:31:58 -0500
X-Mailman-Approved-At: Wed, 12 Feb 2003 19:38:46 -0500
Subject: [Bug #2510] StringTokenizer skipAllDelimiters: StringTokenizer ctor
 doesn't initialize skipAll right
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 09:34:11 -0000


=================== BUG #2510: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2510&group_id=89

Changes by: Federico Montesino Pouzols <fedemp@altern.org>
Date: 2003-Feb-12 10:31 (Europe/Madrid)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | fedemp
              Status | Open                      | Closed
                  CC |                           | bug-commoncpp@gnu.org


------------------ Additional Follow-up Comments ----------------------------
   Yes, this looks like a typo. It is fixed in CVS.



=================== BUG #2510: FULL BUG SNAPSHOT ===================


Submitted by: None                    Project: commonc++                    
Submitted on: 2003-Feb-10 12:54
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  fedemp                  Status:  Closed                       

Summary:  StringTokenizer skipAllDelimiters: StringTokenizer ctor doesn't initialize skipAll right

Original Submission:  this is the ctor:
StringTokenizer::StringTokenizer (const char *_str,
				  const char *_delim,
				  bool _skipAll,
				  bool _trim) 
	: str(_str),delim(_delim),skipAll(skipAll),trim(_trim) {....
notice that skipAll is initizlize with its own value. (should be (...,skipAll(_skipAll))).
this means there is no skipping of delimiters

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2003-Feb-12 10:31             By: fedemp
   Yes, this looks like a typo. It is fixed in CVS.


CC List
*******

CC Address                          | Comment
------------------------------------+-----------------------------
bug-commoncpp@gnu.org               | 



No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2510&group_id=89



From MAILER-DAEMON Thu Feb 13 02:53:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18jEBx-0005Y0-00
	for mharc-bug-commoncpp@gnu.org; Thu, 13 Feb 2003 02:53:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18jEBv-0005Xs-00
	for bug-commoncpp@gnu.org; Thu, 13 Feb 2003 02:53:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18jEBr-0005X5-00
	for bug-commoncpp@gnu.org; Thu, 13 Feb 2003 02:53:54 -0500
Received: from vulcain.delta.fr ([194.51.5.4])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18jEBr-0005Wz-00
	for bug-commoncpp@gnu.org; Thu, 13 Feb 2003 02:53:51 -0500
Received: from hebe (hebe.delta.fr [194.51.5.11])
	by vulcain.delta.fr (8.12.6/8.12.6) with SMTP id h1D7rkIY020194;
	Thu, 13 Feb 2003 08:53:46 +0100 (MET)
From: "Pierre Bacquet" <pbacquet@delta.fr>
To: <bug-commoncpp@gnu.org>
Date: Thu, 13 Feb 2003 08:53:46 +0100
Message-ID: <AF46271CABC7D51197330060086E49CC30164A@pluton1.delta.fr>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <AF46271CABC7D51197330060086E49CC352257@pluton1.delta.fr>
X-Scanned-By: MIMEDefang 2.23 (www . roaringpenguin . com / mimedefang)
cc: 'Joel Sherrill' <joel.sherrill@OARcorp.com>
Subject: RE: LynxOS 3.1.1 Port
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: pbacquet@delta.fr
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 13 Feb 2003 07:53:55 -0000

Joel,

> I am entering the test phase of my port of Common C++ to LynxOS
> 3.1.1.  I am filing the appropriate paperwork with the FSF but
> for now want to get some feedback on some porting issues and
> how to do them more cleanly.  Right now, there are a handful
> of __Lynx__ conditionals I want to eliminate.
> 
> (2) inet_aton(char *, .. )     not inet_aton(const char *, ..)
>     gethostbyname(char *, .. ) not gethostbyname(const char *, ..)
>     openlog(char *,..)         not openlog(const char *, ..)
> 
> Again how to detect and deal with this without stopping to 
> ifdef __Lynx__.

Well, taking into account the fact that these 3 functions shouldn't
change their "char *" arg., hence the const keyword, one possible
action would be to patch the LynxOS headers to change the signature
and send the patched files to LynxOS maintainers for possible
consideration.

Cheers,

Pierre.




From MAILER-DAEMON Thu Feb 13 10:31:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18jLKk-0001Vt-00
	for mharc-bug-commoncpp@gnu.org; Thu, 13 Feb 2003 10:31:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18jKsz-0000HC-00
	for bug-commoncpp@gnu.org; Thu, 13 Feb 2003 10:02:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18jKsy-0000FS-00
	for bug-commoncpp@gnu.org; Thu, 13 Feb 2003 10:02:49 -0500
Received: from 216-107-91-226.wan.networktel.net ([216.107.91.226]
	helo=mail.oarcorp.com)
	by monty-python.gnu.org with smtp (Exim 4.10.13)	id 18jKsC-0008Q8-00
	for bug-commoncpp@gnu.org; Thu, 13 Feb 2003 10:02:01 -0500
Received: (qmail 22985 invoked from network); 13 Feb 2003 15:01:58 -0000
Received: from unknown (HELO OARcorp.com) (136.205.65.100)
  by 0 with SMTP; 13 Feb 2003 15:01:58 -0000
Message-ID: <3E4BB368.E048EFE1@OARcorp.com>
Date: Thu, 13 Feb 2003 09:02:00 -0600
From: Joel Sherrill <joel.sherrill@OARcorp.com>
Organization: OAR Corporation
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: pbacquet@delta.fr
References: <AF46271CABC7D51197330060086E49CC30164A@pluton1.delta.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Thu, 13 Feb 2003 10:31:28 -0500
cc: bug-commoncpp@gnu.org
Subject: Re: LynxOS 3.1.1 Port
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 13 Feb 2003 15:02:50 -0000



Pierre Bacquet wrote:
> 
> Joel,
> 
> > I am entering the test phase of my port of Common C++ to LynxOS
> > 3.1.1.  I am filing the appropriate paperwork with the FSF but
> > for now want to get some feedback on some porting issues and
> > how to do them more cleanly.  Right now, there are a handful
> > of __Lynx__ conditionals I want to eliminate.
> >
> > (2) inet_aton(char *, .. )     not inet_aton(const char *, ..)
> >     gethostbyname(char *, .. ) not gethostbyname(const char *, ..)
> >     openlog(char *,..)         not openlog(const char *, ..)
> >
> > Again how to detect and deal with this without stopping to
> > ifdef __Lynx__.
> 
> Well, taking into account the fact that these 3 functions shouldn't
> change their "char *" arg., hence the const keyword, one possible
> action would be to patch the LynxOS headers to change the signature
> and send the patched files to LynxOS maintainers for possible
> consideration.

That occurred to me as well.  But there is already a major update to
LynxOS which transitions to ELF (4.0.0) and it has inet_aton() and
gethostbyname() with const but openlog() still doesn't have a const.
So that isn't going to get fixed in the near future.  

If I added a README.LynxOS with specific instructions on fixing the 
LynxOS 3.1.1 and 4.0.0 header files, would that help?  

But at least fixing the 3.1.1 header files by hand would eliminate
most of the hacks for both versions.  openlog() is used only once.

Thanks for making me doublecheck my thoughts.  I don't want to
ugly things up. :)

> Cheers,
> 
> Pierre.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



From MAILER-DAEMON Sun Feb 16 08:06:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18kOVB-0002bo-00
	for mharc-bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:06:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18kOV9-0002Xt-00
	for bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:06:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18kOV4-0002Ks-00
	for bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:06:31 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18kOUq-00022q-00
	for bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:06:16 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18kOWw-0001J1-00; Sun, 16 Feb 2003 14:08:26 +0100
Date: Sun, 16 Feb 2003 14:08:26 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Forrester <davidforrester25@msn.com>
Message-ID: <20030216130825.GA4944@bulbasaur.rediris.es>
Mail-Followup-To: David Forrester <davidforrester25@msn.com>,
	bug-commoncpp@gnu.org
References: <F15hRnEXgzcjJVSFCYq0000556b@hotmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F15hRnEXgzcjJVSFCYq0000556b@hotmail.com>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: BUG #2251
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 16 Feb 2003 13:06:35 -0000


	Hi, I cannot guess what report you refer to. Are you having
troubles installing on solaris? The tarballs at the GNU mirrors should
compile and work cleanly.

On Wed, Feb 12, 2003 at 11:20:51PM +0000, David Forrester wrote:
> I have read the bug report about the difficulties and the fix for the 
> problem with installing on Solaris but I am still not sure what I have to 
> in order to get a version of commoncpp2 that will Install under solaris.  
> Sorry if this is a stupid question.
> 
> Thanks in advance
> 
> David Forrester
> 



From MAILER-DAEMON Sun Feb 16 08:50:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18kPC0-00017M-00
	for mharc-bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:50:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18kPBx-0000xS-00
	for bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:50:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18kPBr-0000o3-00
	for bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:50:47 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18kPBq-0000kr-00
	for bug-commoncpp@gnu.org; Sun, 16 Feb 2003 08:50:43 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18kPDy-0001JR-00; Sun, 16 Feb 2003 14:52:54 +0100
Date: Sun, 16 Feb 2003 14:52:51 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: Joel Sherrill <joel.sherrill@OARcorp.com>
Message-ID: <20030216135251.GB4944@bulbasaur.rediris.es>
Mail-Followup-To: Joel Sherrill <joel.sherrill@OARcorp.com>,
	bug-commoncpp@gnu.org
References: <3E4433E9.E9CCDAAA@OARcorp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3E4433E9.E9CCDAAA@OARcorp.com>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: LynxOS 3.1.1 Port
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 16 Feb 2003 13:50:50 -0000


	Hi,...

On Fri, Feb 07, 2003 at 04:32:09PM -0600, Joel Sherrill wrote:
> 
> Hi,
> 
> I am entering the test phase of my port of Common C++ to LynxOS
> 3.1.1.  I am filing the appropriate paperwork with the FSF but
> for now want to get some feedback on some porting issues and
> how to do them more cleanly.  Right now, there are a handful
> of __Lynx__ conditionals I want to eliminate.
> 
> (1) LynxOS has this prototype for sigwait() 
> 
> int sigwait            (sigset_t *, void **);
> 
> Currently, OST_CC_SIGNAL checks for 1 or 2 arguments to sigwait()
> but the common 2 arg variety if not this one.  Any ideas on how to
> detect it so I don't have to stoop to an ifdef on __Lynx__
> 

	I do not know if this flavour of sigwait exists on platforms
other than lynxos, but we could have a more general test if we added a
grep to check if 'void **' appears in the sigwait prototype.

> (2) inet_aton(char *, .. )     not inet_aton(const char *, ..)
>     gethostbyname(char *, .. ) not gethostbyname(const char *, ..)
>     openlog(char *,..)         not openlog(const char *, ..)
> 
> Again how to detect and deal with this without stopping to 
> ifdef __Lynx__.
> 

	As Pierre Bacquet has pointed out, this looks like a bug in
lynxos headers. It seems that the code will have to be uglyfied if we
want it to work on lynxos.

> (3) autoconf decides that LynxOS has PTHREAD_MUTEXTYPE_RECURSIVE
> but LynxOS doesn't have pthread_mutexattr_settype().
> 

	So it seems that the checks in ost_pthread.m4 should be
strengthened to check for pthread_mutexattr_settype() as well as the
other things currently checked for.

> (4) The structure used for SIOCGIFNETMASK around line 120
> in src/network.cpp has different names in LynxOS:
> 
> #if defined(__Lynx__)
>                         (InetAddress&)maskaddr =
> ((sockaddr_in&)devifreq).sin_addr;
> #else
>                         (InetAddress&)maskaddr =
> ((sockaddr_in&)devifreq.ifr_netmask).sin_addr;
> #endif
> 
> (5) SIOCGIFMTU is not defined in LynxOS so I just set mtu.c in
> src/network.cpp around line 128.
> 

	Perhaps a TRY_COMPILE for (4) and (5) would be more general
than a 'defined(__Lynx__)'.

> (6) In src/process.cpp and src/thread.cpp, signalexec_t has to be this:
> 
> #if defined(__Lynx__)
> typedef RETSIGTYPE (*signalexec_t)(...);
> #else
> typedef RETSIGTYPE (*signalexec_t)(int);
> #endif
> 
> The rest of the changes I managed to accomodate with autoconf macro
> changes
> or minor type changes to remove warnings.  I have attached the entire 
> patch for review and comments.   I still have testing to go so I am
> sure this is not the final iteration of it. :)
> 

	By the way, how does cc++ work on RTEMS?

> Thanks.
> 
> -- 
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel@OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985



From MAILER-DAEMON Mon Feb 17 04:45:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18khpl-0001r0-00
	for mharc-bug-commoncpp@gnu.org; Mon, 17 Feb 2003 04:45:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18khpc-0001SW-00
	for bug-commoncpp@gnu.org; Mon, 17 Feb 2003 04:45:00 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18khpR-00014F-00
	for bug-commoncpp@gnu.org; Mon, 17 Feb 2003 04:44:51 -0500
Received: from comix-files.vub.ac.be ([134.184.129.2] helo=guppy.vub.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18khpN-0000tU-00
	for bug-commoncpp@gnu.org; Mon, 17 Feb 2003 04:44:46 -0500
Received: from mach.vub.ac.be (mach.vub.ac.be [134.184.129.3]) by
	guppy.vub.ac.be (8.9.1b+Sun/3.17.1.ap (guppy))        id KAA24318;
	Mon, 17 Feb 2003 10:44:38 +0100 (MET) for <bug-commoncpp@gnu.org>
Received: from cfao20.ulb.ac.be (cfao20.ulb.ac.be [164.15.80.120]) by
	mach.vub.ac.be (8.9.3/3.13.3.ap (mach))        id KAA11107;
	Mon, 17 Feb 2003 10:44:37 +0100 (MET) for <bug-commoncpp@gnu.org>
From: Pascal Francq <pfrancq@ulb.ac.be>
Organization: =?iso-8859-1?q?Universit=E9=20Libre=20de?= Bruxelles
To: bug-commoncpp@gnu.org
Date: Mon, 17 Feb 2003 10:44:35 +0100
User-Agent: KMail/1.5
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200302171044.35293.pfrancq@ulb.ac.be>
Subject: Basic question about Common C++
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 17 Feb 2003 09:45:07 -0000

Hi,
My question is very stupid: the examples distribute with Common C++=20
demonstrate how servers works, but I don't not find a basic client apps tha=
t=20
can send and receive data to and from the server. Where can I find a little=
=20
example of such a basic application?
Thanks in advance.
=2D-=20


Ir Pascal Francq
Researcher
Universit=E9 Libre de Bruxelles
CAD/CAM Department
Avenue F.D. Roosevelt, 50
CP 165/14
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
=46ax +32-2-650 47 24
ICQ: 91206668




From MAILER-DAEMON Mon Feb 17 14:43:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18krAN-0001T0-00
	for mharc-bug-commoncpp@gnu.org; Mon, 17 Feb 2003 14:43:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18krAL-0001Q0-00
	for bug-commoncpp@gnu.org; Mon, 17 Feb 2003 14:43:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18krAJ-0001Ow-00
	for bug-commoncpp@gnu.org; Mon, 17 Feb 2003 14:43:00 -0500
Received: from merlin.com.ua ([195.66.196.180])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18krAI-00012N-00
	for bug-commoncpp@gnu.org; Mon, 17 Feb 2003 14:42:58 -0500
Received: from daemonw.odessa.likewhoa.com (DaemonW.odessa.likewhoa.com
	[213.130.8.66])	by merlin.com.ua (8.9.3/8.9.3) with ESMTP id VAA11620
	for <bug-commoncpp@gnu.org>; Mon, 17 Feb 2003 21:42:20 +0200 (EET)
	(envelope-from michael@merlin.com.ua)
Date: Mon, 17 Feb 2003 21:42:22 +0200
From: michael <michael@merlin.com.ua>
X-Mailer: The Bat! (v1.62i) Personal
X-Priority: 3 (Normal)
Message-ID: <17374410453.20030217214222@merlin.com.ua>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Bug in threads
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: michael <michael@merlin.com.ua>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 17 Feb 2003 19:43:01 -0000

Hello bug-commoncpp,

bug in demo tcpthread, commoncpp2 1.0.8
I try run "wget http://localhost:4096/"
After ~1016 times pthread_create return EAGAIN

system: linux-2.4.20, glibc 2.2.6, gcc 3.2.1

-- 
Best regards,
 michael                          mailto:michael@merlin.com.ua




From MAILER-DAEMON Wed Feb 19 18:34:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ldfU-0004nm-00
	for mharc-bug-commoncpp@gnu.org; Wed, 19 Feb 2003 18:30:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ldfD-0004XZ-00
	for bug-commoncpp@gnu.org; Wed, 19 Feb 2003 18:30:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18lder-00044f-00
	for bug-commoncpp@gnu.org; Wed, 19 Feb 2003 18:29:48 -0500
Received: from [24.84.60.246] (helo=mail.deadly.ca)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ldeR-0003Rr-00
	for bug-commoncpp@gnu.org; Wed, 19 Feb 2003 18:29:20 -0500
Received: from dragon.intra.deadly.ca (dragon.intra.deadly.ca [192.168.0.3])
	by mail.deadly.ca (Postfix) with ESMTP id 66C7638112
	for <bug-commoncpp@gnu.org>; Wed, 19 Feb 2003 15:29:17 -0800 (PST)
From: Greg Hookey <g@deadly.ca>
To: bug-commoncpp@gnu.org
Content-Type: text/plain
Organization: www.deadly.ca
Message-Id: <1045697357.427.56.camel@dragon.intra.deadly.ca>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.2 
Date: 19 Feb 2003 15:29:17 -0800
Content-Transfer-Encoding: 7bit
Subject: exceptions and threads
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: g@deadly.ca
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 19 Feb 2003 23:30:23 -0000

Hi,
	I was wondering if someone could help me sort out a problem that I am
having with commoncpp2 on Debian Linux.
	I have an object, MesgClient, which has a connect() method.  The
connect() method attempts to spin a NetworkThread, which is defined as
follows (I have omitted the private declarations as they are
irrelevant):

class NetworkThread : public ost::Thread {
        
        public:
                
                NetworkThread( MesgClientI *master );
                virtual ~NetworkThread();

                virtual void run();
                void final() { delete this; };

                void requestExit();
};

The run() method of NetworkThread is defined as follows:

void NetworkThread::run() {

        ServerConfig config = mesgClient->getServerConfig();

        ost::InetHostAddress addr = config.getServerName().c_str();
                
        ost::TCPStream server( addr, config.getPort(), 2048, true );

        while( quit == false ) {
		// do stuff
                ost::Thread::sleep( 50 );
        }
        
        server.sync();

        ost::Thread::exit();
}

The connect() method of MesgClient is defined as follows:

void MesgClient::connect( std::string &serverName, short port ) throw ()
{

        serverConfig.setServerName( serverName );
        serverConfig.setPort( port );

        /* startNetworkThread may throw an ost::Socket *
	 * if an exception occurs during networkThread->run().
         * The exception will be rethrown as MesgClientEx when
	 * I get the ost exception sorted out.
         */

        try {
                startNetworkThread();
        } catch ( ost::Socket *s ) {
                std::cerr << "connect(): exception caught" << std::endl;
        }

        ost::Thread::sleep( 250 );

        if( networkThreadRunning() == true ) {
                startPollThread();
        }
}

	I have a test program that I run, that creates a MesgClient, and then
runs the connect() method.  I supply an unresolvable hostname to the
client in order to have the exception thrown.  Currently, when I run the
program, I get the following output:

MesgClient() created!
Aborted

	So, I am wondering if I am missing something here with respect to
exception handling here, or maybe this is a bug.  Consequently, if I run
the code with a correct host name, the program runs to termination and
exits correctly.

Any help here would be appreciated.

Greg

-- 
Greg Hookey <g@deadly.ca>
www.deadly.ca




From MAILER-DAEMON Fri Feb 21 06:12:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mB4b-00026x-00
	for mharc-bug-commoncpp@gnu.org; Fri, 21 Feb 2003 06:10:33 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mB3x-0001cy-00
	for bug-commoncpp@gnu.org; Fri, 21 Feb 2003 06:09:53 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mB3D-00018w-00
	for bug-commoncpp@gnu.org; Fri, 21 Feb 2003 06:09:08 -0500
Received: from shockwave.systems.pipex.net ([62.241.160.9])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mAw8-0007up-00
	for bug-commoncpp@gnu.org; Fri, 21 Feb 2003 06:01:48 -0500
Received: from bigfoot.com (81-86-233-34.dsl.pipex.com [81.86.233.34])
	by shockwave.systems.pipex.net (Postfix) with ESMTP id 532911600B6EE
	for <bug-commoncpp@gnu.org>; Fri, 21 Feb 2003 11:01:45 +0000 (GMT)
Message-ID: <3E560329.1050209@bigfoot.com>
Date: Fri, 21 Feb 2003 10:44:57 +0000
From: Jon Wilson <sendmemymail@bigfoot.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Having problems with TCPSession
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 11:10:23 -0000

I have written the code below, however, this is the problem I have. When 
I telnet at the same port and ip as the server, It constructs a 
ThreadOut object and both
"Creating"
and
"Created"
print
as well as "Constructor"
However, the tread never starts, The run() is never invoked despite a 
call to detach(). Nothing happens! If I call run() in the constructor, 
then it runs, but obviously finalize doesn't and this defeats the entire 
point of having threads! Have I missed something? I am running on MingW 
with gcc3.2 on winXP.
Many Thanks.
Jon Wilson

///////////////////////////////////////////////////////////////////////////////////////////MAIN.CPP
#include "server.h"
using namespace std;
using namespace ost;

int main(int argc, char *argv[]){
    if(argc!=2){
        cout << "Arguments wrong" << endl;
        exit(1);
    }
    cout << argv[1] << endl;
    TCPSocket *sock = new TCPSocket(argv[1], 9382);
    cout << "Streams open" << endl;
    while(true){
        cout << "WAITING" << endl;
        if (sock->isPendingConnection()){
            cout << "Creating" << endl;
            (new ThreadOut(*sock))->detach();
            cout << "Created" << endl;
        }
    }
    exit(0);
}
///////////////////////////////////////////////////////////////////////////////////////////SERVER.H
#include <cc++/socket.h>

using namespace std;
using namespace ost;

class ThreadOut : public TCPSession {
    public:
        ThreadOut(TCPSocket& s):TCPSession(s){
            cout << "Constrcuter" << endl;
        }
        void run();
        void final();
};
///////////////////////////////////////////////////////////////////////////////////////////SERVER.CPP
#include "server.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <sstream>
#include <ctime>

using namespace std;
using namespace ost;
void ThreadOut::run(){
    cout << "Running" << endl;
    iostream* tcp=(iostream*)this;
    time_t seconds= time(NULL);
    int i=seconds;
    cout << "Constructing Filename" << endl;
    ostringstream istr;
    istr << i;
    string name=istr.str()+"out.png";
    cout << "NAME "<< name << endl;
    ofstream out(name.c_str(),ios::binary);
    while(tcp->good()){
        out.put(tcp->get());
    }
    cout << "Read complete, closing" << endl;
    out.close();
    delete tcp;
}
void ThreadOut::final(){
    cout << "Thread complete" << endl;
    delete this;
}





From MAILER-DAEMON Sun Feb 23 01:38:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mpmC-0004uI-00
	for mharc-bug-commoncpp@gnu.org; Sun, 23 Feb 2003 01:38:16 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mpm9-0004mJ-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 01:38:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mply-0004C1-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 01:38:07 -0500
Received: from mx.style.net ([67.29.176.102] helo=style.net)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mplu-0003aO-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 01:37:58 -0500
Received: from [66.108.175.86] (HELO canvas)
	by style.net (CommuniGate Pro SMTP 4.0.5)
	with ESMTP-TLS id 1173085 for bug-commoncpp@gnu.org;
	Sun, 23 Feb 2003 01:37:51 -0500
From: "Spinka, Kristofer" <kspinka@style.net>
To: <bug-commoncpp@gnu.org>
Date: Sun, 23 Feb 2003 01:37:46 -0500
Message-ID: <036101c2db06$14edca10$1600200a@hq.style.net>
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.4024
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: Minor repair needed
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 23 Feb 2003 06:38:14 -0000

  I thought I had submitted this before, but it seems as though it still
exists in the latest code.  In include/config.h.in, on line 339, this
define should be set to 1.

Original:
---------
#define __EXTENSIONS__

Requested Change:
-----------------
#define __EXTENSIONS__ 1



  /kristofer




From MAILER-DAEMON Sun Feb 23 02:08:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mqFW-0007hw-00
	for mharc-bug-commoncpp@gnu.org; Sun, 23 Feb 2003 02:08:34 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mqFT-0007Zu-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 02:08:31 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mqF6-0007Bd-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 02:08:09 -0500
Received: from mx.style.net ([67.29.176.102] helo=style.net)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mqDj-0006M3-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 02:06:43 -0500
Received: from [66.108.175.86] (HELO canvas)
	by style.net (CommuniGate Pro SMTP 4.0.5)
	with ESMTP-TLS id 1173093 for bug-commoncpp@gnu.org;
	Sun, 23 Feb 2003 02:06:40 -0500
From: "Spinka, Kristofer" <kspinka@style.net>
To: <bug-commoncpp@gnu.org>
Date: Sun, 23 Feb 2003 02:06:36 -0500
Message-ID: <038001c2db0a$1b50ef00$1600200a@hq.style.net>
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.4024
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [PATCH]: src/network.cpp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 23 Feb 2003 07:08:32 -0000

  This patch converts the ifreq requests of the old days to lifreq
structure compliance.  It wasn't much work, honestly, mostly just
"il[ESC]" (insert "l").  There were a couple other minor things, but I
only tested this on Solaris 9, SPARC.  I'm not even sure of the extent
of lifreq support in other UNIX implementations, sorry.  Patch
follows...

   /kristofer

==========
*** network.cpp.orig	Sun Feb 23 01:34:09 2003
--- network.cpp	Sun Feb 23 01:44:42 2003
***************
*** 81,96 ****
  	
  #ifndef WIN32
  	char buffer[8192];
! 	struct ifconf ifc;
  	
  	int fd = socket(AF_INET, SOCK_DGRAM, 0);
  	if(fd == -1)
  		return false;
  
! 	ifc.ifc_len = sizeof(buffer);
! 	ifc.ifc_buf = buffer;
  
! 	if(ioctl(fd, SIOCGIFCONF, &ifc) == -1)
  		return false;
  
  	InetHostAddress addr;
--- 81,96 ----
  	
  #ifndef WIN32
  	char buffer[8192];
! 	struct lifconf lifc;
  	
  	int fd = socket(AF_INET, SOCK_DGRAM, 0);
  	if(fd == -1)
  		return false;
  
! 	lifc.lifc_len = sizeof(buffer);
! 	lifc.lifc_buf = buffer;
  
! 	if(ioctl(fd, SIOCGIFCONF, &lifc) == -1)
  		return false;
  
  	InetHostAddress addr;
***************
*** 100,132 ****
  //	sockaddr_in maskinaddr;
  	int mtu;
  
! 	int count = ifc.ifc_len / sizeof(ifreq);
  	for(int i = 0; i < count; ++i)
  	{
! 		if(ifc.ifc_req[i].ifr_addr.sa_family != AF_INET)
  			continue;
  
! 		addr = ((sockaddr_in&)ifc.ifc_req[i].ifr_addr).sin_addr;
  
! 		struct ifreq devifreq;
! 		strcpy(devifreq.ifr_name, ifc.ifc_req[i].ifr_name);
  
  		if(ioctl(fd, SIOCGIFBRDADDR, &devifreq) == -1)
  			(InetAddress&)brdaddr = htonl(INADDR_ANY);
  		else
! 			(InetAddress&)brdaddr =
((sockaddr_in&)devifreq.ifr_broadaddr).sin_addr;
  
  		if(ioctl(fd, SIOCGIFNETMASK, &devifreq) == -1)
  			maskaddr = htonl(INADDR_BROADCAST);
  		else
! 			(InetAddress&)maskaddr =
((sockaddr_in&)devifreq.ifr_addr).sin_addr;
  
  		if(ioctl(fd, SIOCGIFMTU, &devifreq) == -1)
  			mtu = 0;
  		else
! 			mtu = devifreq.ifr_mtu;
  
!
devs.push_back(NetworkDeviceInfo(ifc.ifc_req[i].ifr_name, addr, brdaddr,
maskaddr, mtu));
  	}
  
  	close(fd);
--- 100,132 ----
  //	sockaddr_in maskinaddr;
  	int mtu;
  
! 	int count = lifc.lifc_len / sizeof(lifreq);
  	for(int i = 0; i < count; ++i)
  	{
! 		if(lifc.lifc_req[i].lifr_addr.ss_family != AF_INET)
  			continue;
  
! 		addr =
((sockaddr_in&)lifc.lifc_req[i].lifr_addr).sin_addr;
  
! 		struct lifreq devifreq;
! 		strcpy(devifreq.lifr_name, lifc.lifc_req[i].lifr_name);
  
  		if(ioctl(fd, SIOCGIFBRDADDR, &devifreq) == -1)
  			(InetAddress&)brdaddr = htonl(INADDR_ANY);
  		else
! 			(InetAddress&)brdaddr =
((sockaddr_in&)devifreq.lifr_broadaddr).sin_addr;
  
  		if(ioctl(fd, SIOCGIFNETMASK, &devifreq) == -1)
  			maskaddr = htonl(INADDR_BROADCAST);
  		else
! 			(InetAddress&)maskaddr =
((sockaddr_in&)devifreq.lifr_addr).sin_addr;
  
  		if(ioctl(fd, SIOCGIFMTU, &devifreq) == -1)
  			mtu = 0;
  		else
! 			mtu = devifreq.lifr_mtu;
  
!
devs.push_back(NetworkDeviceInfo(lifc.lifc_req[i].lifr_name, addr,
brdaddr, maskaddr, mtu));
  	}
  
  	close(fd);

==============




From MAILER-DAEMON Sun Feb 23 08:53:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mwZp-0007nQ-00
	for mharc-bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:53:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mwZn-0007is-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:53:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mwZm-0007gb-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:53:54 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mwZl-0007cI-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:53:53 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18mwc4-0001Gv-00; Sun, 23 Feb 2003 14:56:16 +0100
Date: Sun, 23 Feb 2003 14:56:15 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: David Sugar <dyfet@ostel.com>
Message-ID: <20030223135615.GA21814@bulbasaur.rediris.es>
Mail-Followup-To: David Sugar <dyfet@ostel.com>, bug-commoncpp@gnu.org
References: <20030212092424.GB254@bulbasaur.rediris.es>
	<200302120438.26451.dyfet@ostel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200302120438.26451.dyfet@ostel.com>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: Patch for Socket (read/write and network interface index)
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 23 Feb 2003 13:53:55 -0000


	Ok, I have just committed the patch. The multicast related
methods have still to be implemented for Win32.

On Wed, Feb 12, 2003 at 04:38:25AM -0500, David Sugar wrote:
> There is such member functions for the serial I/O class already, and it would 
> be very natural to have this for sockets if it is fully portable.  I have not 
> looked at it yet, but it does fit in well with something I would have 
> included in the original library if I had thought about how to do that at the 
> time.
> 
> On Wednesday 12 February 2003 04:24, Federico Montesino Pouzols wrote:
> > Hi, Donald Wycoff has recently submitted a patch through the
> > Savannah patch manager. He proposes new methods for Socket: two new
> > read/write for blocks -with separators and timeout-, as well as
> > methods for getting the network interface index for a given interface
> > name, and joining a multicast group on a specified interface.
> >
> > 	I find it quite useful and would apply the patch soon, but
> > perhaps you would like to make some comments...
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 



From MAILER-DAEMON Sun Feb 23 08:54:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mwaj-00089k-00
	for mharc-bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:54:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mwah-00088h-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:54:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mwag-00086e-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:54:50 -0500
Received: from bulbasaur.rediris.es ([130.206.194.34])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mwaf-00086M-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 08:54:50 -0500
Received: from fedemp by bulbasaur.rediris.es with local (Exim 3.36 #1
	(Debian))	id 18mwdI-0001H7-00; Sun, 23 Feb 2003 14:57:32 +0100
Date: Sun, 23 Feb 2003 14:57:32 +0100
From: Federico Montesino Pouzols <fedemp@altern.org>
To: "Spinka, Kristofer" <kspinka@style.net>
Message-ID: <20030223135731.GA13478@bulbasaur.rediris.es>
Mail-Followup-To: "Spinka, Kristofer" <kspinka@style.net>,
	bug-commoncpp@gnu.org
References: <036101c2db06$14edca10$1600200a@hq.style.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <036101c2db06$14edca10$1600200a@hq.style.net>
User-Agent: Mutt/1.4i
Sender: Federico Montesino Pouzols <fedemp@bulbasaur.rediris.es>
cc: bug-commoncpp@gnu.org
Subject: Re: Minor repair needed
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Federico Montesino Pouzols <fedemp@altern.org>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 23 Feb 2003 13:54:52 -0000


	It is fixed in CVS.

On Sun, Feb 23, 2003 at 01:37:46AM -0500, Spinka, Kristofer wrote:
>   I thought I had submitted this before, but it seems as though it still
> exists in the latest code.  In include/config.h.in, on line 339, this
> define should be set to 1.
> 
> Original:
> ---------
> #define __EXTENSIONS__
> 
> Requested Change:
> -----------------
> #define __EXTENSIONS__ 1
> 
> 
> 
>   /kristofer
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From MAILER-DAEMON Sun Feb 23 16:01:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18n3FE-0002uF-00
	for mharc-bug-commoncpp@gnu.org; Sun, 23 Feb 2003 16:01:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18n3FB-0002qq-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 16:01:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18n3F9-0002pL-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 16:01:04 -0500
Received: from pool-141-153-147-83.mad.east.verizon.net ([141.153.147.83]
	helo=home.bayonne.dyndns.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18n3F9-0002pH-00
	for bug-commoncpp@gnu.org; Sun, 23 Feb 2003 16:01:03 -0500
Received: from localhost.sys ([192.168.1.104])
	by home.bayonne.dyndns.org (8.11.6/8.11.6) with ESMTP id h1NLfNf26333;
	Sun, 23 Feb 2003 16:41:23 -0500
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Sugar <dyfet@ostel.com>
To: Federico Montesino Pouzols <fedemp@altern.org>,
   "Spinka, Kristofer" <kspinka@style.net>
Date: Sun, 23 Feb 2003 16:01:21 -0500
User-Agent: KMail/1.4.3
References: <036101c2db06$14edca10$1600200a@hq.style.net>
	<20030223135731.GA13478@bulbasaur.rediris.es>
In-Reply-To: <20030223135731.GA13478@bulbasaur.rediris.es>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302231601.21495.dyfet@ostel.com>
cc: bug-commoncpp@gnu.org
Subject: Re: Minor repair needed
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 23 Feb 2003 21:01:06 -0000

Maybe we will do another r1 point release early next week...

On Sunday 23 February 2003 08:57, Federico Montesino Pouzols wrote:
> It is fixed in CVS.
>
> On Sun, Feb 23, 2003 at 01:37:46AM -0500, Spinka, Kristofer wrote:
> >   I thought I had submitted this before, but it seems as though it st=
ill
> > exists in the latest code.  In include/config.h.in, on line 339, this
> > define should be set to 1.
> >
> > Original:
> > ---------
> > #define __EXTENSIONS__
> >
> > Requested Change:
> > -----------------
> > #define __EXTENSIONS__ 1
> >
> >
> >
> >   /kristofer
> >
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > Bug-commoncpp@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp




From MAILER-DAEMON Tue Feb 25 08:44:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nfND-0000n8-00
	for mharc-bug-commoncpp@gnu.org; Tue, 25 Feb 2003 08:43:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nfMy-0000Xz-00
	for bug-commoncpp@gnu.org; Tue, 25 Feb 2003 08:43:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nfKm-0007o0-00
	for bug-commoncpp@gnu.org; Tue, 25 Feb 2003 08:41:31 -0500
Received: from gnudist.gnu.org ([199.232.41.7])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18nfKd-0007Rw-00
	for bug-commoncpp@gnu.org; Tue, 25 Feb 2003 08:41:15 -0500
Received: from riker.skynet.be ([195.238.3.89])
	by gnudist.gnu.org with esmtp (Exim 4.10.13)
	id 18nfKX-0001Ea-00
	for bug-commoncpp@gnu.org; Tue, 25 Feb 2003 08:41:09 -0500
Received: from 192.168.164.129 (171.176-136-217.adsl.skynet.be
	[217.136.176.171])h1PDer9u016796
	for <bug-commoncpp@gnu.org>; Tue, 25 Feb 2003 14:40:53 +0100 (MET)
	(envelope-from <dimitar@yucom.be>)
From: Dimitar Dimitrov <dimitar@yucom.be>
To: bug-commoncpp@gnu.org
Date: Tue, 25 Feb 2003 14:46:05 +0100
User-Agent: KMail/1.5
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200302251446.05186.dimitar@yucom.be>
Subject: Synchronization problem in TCPSocket <-> SocketPort interaction
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 25 Feb 2003 13:43:52 -0000

Hi,

First to say that I downloaded Common C++ library just couple of days ago and 
may be I don't get everything right. I think I run into a problem which may 
turn out to be a result only of my misunderstanding.

I'll try to explain it step by step. It can be reproduced with 
SampleSocketPort example although not very easily.

The issue is the following:

1. TCPSocket class is not part of SocketPort hierarchy. No problem with that 
as far as we don't come to the fact that SocketService cannot handle directly 
a TCPSocket object. 

2. As a result of 1. if someone tries to create a DerivedFromSocketPort object 
(TCPSocket a parameter in the constructor of SocketPort) she has to do this 
in a thread different from the thread of the SocketService object. 
SampleSocketPort is a good example for this.

So far so good... 
But, during construction of our DerivedFromSocketPort object it attaches 
itself to the SocketService. If the constructor of DerivedFromSocketPort 
class is very heavy it can happen that the SocketService thread tries to 
delete our object before it is fully constructed, which will quite possible 
result in a crash...

An easy workaround is to provide a 0 to the constructor of SocketPort and to 
use attach at the end of DerivedFromSocketPort's constructor. 
Although this will not prevent some first-time users like me to spend half a 
day trying to figure out what is going on it solves the problem somehow.

I apologize for asking you to read that much till here ;-)  but I have one may 
be not that smart idea: Wouldn't it be good if SocketService can handle 
TCPSocket somehow? After all it is more than natural to include a listening 
socket in a select or poll...

Regards,
Dimitar


PS: Did I forget to say thank you guys for this library. I think it is really 
cool and I plan to spend some more time with it.



From MAILER-DAEMON Thu Feb 27 22:44:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18obRz-0006uu-00
	for mharc-bug-commoncpp@gnu.org; Thu, 27 Feb 2003 22:44:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18obRw-0006o7-00
	for bug-commoncpp@gnu.org; Thu, 27 Feb 2003 22:44:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18obRu-0006ip-00
	for bug-commoncpp@gnu.org; Thu, 27 Feb 2003 22:44:39 -0500
Received: from [203.117.145.34] (helo=localhost.localdomain)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18obRt-0006XY-00
	for bug-commoncpp@gnu.org; Thu, 27 Feb 2003 22:44:38 -0500
Received: from Angeh ([137.134.8.88])
	by localhost.localdomain (8.9.3/8.9.3) with SMTP id FAA07964
	for <bug-commoncpp@gnu.org>; Fri, 28 Feb 2003 05:28:43 -0500
Message-ID: <005801c2dedb$b1d49ba0$e864a8c0@Angeh>
From: "Eng Hian" <angenghian@optasia-group.com>
To: <bug-commoncpp@gnu.org>
Date: Fri, 28 Feb 2003 11:44:27 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0055_01C2DF1E.BF9F8270"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Subject: howto create a thread to connect to tcp server and send binary data?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Eng Hian <angenghian@optasia-group.com>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 03:44:41 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_0055_01C2DF1E.BF9F8270
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi

I know this is a "Bug" mailing list. Forgive me but I am quite a newbie =
for C++ and commoncpp.

I want to write a program and can connect to a TCP server and then send =
and receive binary data (which may contain zeroes).

I found that are various classes like TCPSocket, TCPStream, tcpstream, =
...

I also see that only TCP server example programs are available in the =
commoncpp.

If I use tcpstream to send binary with embedded '\0' I cannot use << =
operator.

Furthermore the data may not be terminated by endl. So to send I use:

class ThreadClient: public Thread
{
public:
 ThreadClient()
 {
  sleep(1000);
  start();
 }
 void run()
 {
  char inbuf[1024], outbuf[10];
  tcpstream tcp("127.0.0.1:3999");
  //CHUSocketPort tcp("127.0.0.1:3999");
 =20
  outbuf[0] =3D 'p';
  outbuf[1] =3D 'i';
  outbuf[2] =3D 'p';
  outbuf[3] =3D 'a';
  outbuf[4] =3D '\0';
  outbuf[5] =3D 'o';
  outbuf[6] =3D 'g';
  outbuf[7] =3D '\r';
  outbuf[8] =3D '\n';
  outbuf[9] =3D '\0';
 =20
  cout << "[Client]: Connected" << endl;
  //tcp << "pippo\r" << endl;
  //tcp << outbuf << endl;
  for (int i =3D 0; i < 8; i++) {
   cout << "[Client]: sent=3D" << outbuf[i] << endl;
   tcp.put(outbuf[i]);
  }
  tcp.sync();
 =20
  cout << "[Client]: Sent Message" << endl;
  tcp >> inbuf;
  cout << "[Reply]: " << inbuf << endl;
  tcp.close();
  cout << "[Client]: Disconnected" << endl;
 }
};

Questions:
(1) any other way to flush the send data without using sync()? Because I =
dont want to flush the input at the same time.
(2) the document says tcpstream is for non-threaded application. Can my =
code above be use then?
(3) If possible, can anyone provide me a sample source code that =
implements simple TCP client for send/receive binary data?

Thanks in advance.
/enghian
------=_NextPart_000_0055_01C2DF1E.BF9F8270
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I know this is a "Bug" mailing list. =
Forgive me but=20
I am quite a newbie for C++ and commoncpp.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I want to write a program and can =
connect to a TCP=20
server and then send and receive binary data (which may contain=20
zeroes).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I found that are various classes like =
TCPSocket,=20
TCPStream, tcpstream, ...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I also see that only TCP server example =
programs=20
are available in the commoncpp.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I use tcpstream to send binary with =
embedded=20
'\0' I cannot use &lt;&lt; operator.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Furthermore the data may not be =
terminated by endl.=20
So to send I use:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>class ThreadClient: public=20
Thread<BR>{<BR>public:<BR>&nbsp;ThreadClient()<BR>&nbsp;{<BR>&nbsp;&nbsp;=
sleep(1000);<BR>&nbsp;&nbsp;start();<BR>&nbsp;}<BR>&nbsp;void=20
run()<BR>&nbsp;{<BR>&nbsp;&nbsp;char inbuf[1024],=20
outbuf[10];<BR>&nbsp;&nbsp;tcpstream=20
tcp("127.0.0.1:3999");<BR>&nbsp;&nbsp;//CHUSocketPort=20
tcp("127.0.0.1:3999");<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;outbuf[0] =3D=20
'p';<BR>&nbsp;&nbsp;outbuf[1] =3D 'i';<BR>&nbsp;&nbsp;outbuf[2] =3D=20
'p';<BR>&nbsp;&nbsp;outbuf[3] =3D 'a';<BR>&nbsp;&nbsp;outbuf[4] =3D=20
'\0';<BR>&nbsp;&nbsp;outbuf[5] =3D 'o';<BR>&nbsp;&nbsp;outbuf[6] =3D=20
'g';<BR>&nbsp;&nbsp;outbuf[7] =3D '\r';<BR>&nbsp;&nbsp;outbuf[8] =3D=20
'\n';<BR>&nbsp;&nbsp;outbuf[9] =3D =
'\0';<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;cout=20
&lt;&lt; "[Client]: Connected" &lt;&lt; endl;<BR>&nbsp;&nbsp;//tcp =
&lt;&lt;=20
"pippo\r" &lt;&lt; endl;<BR>&nbsp;&nbsp;//tcp &lt;&lt; outbuf &lt;&lt;=20
endl;<BR>&nbsp;&nbsp;for (int i =3D 0; i &lt; 8; i++) =
{<BR>&nbsp;&nbsp;&nbsp;cout=20
&lt;&lt; "[Client]: sent=3D" &lt;&lt; outbuf[i] &lt;&lt;=20
endl;<BR>&nbsp;&nbsp;&nbsp;tcp.put(outbuf[i]);<BR>&nbsp;&nbsp;}<BR>&nbsp;=
&nbsp;tcp.sync();<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;cout=20
&lt;&lt; "[Client]: Sent Message" &lt;&lt; endl;<BR>&nbsp;&nbsp;tcp =
&gt;&gt;=20
inbuf;<BR>&nbsp;&nbsp;cout &lt;&lt; "[Reply]: " &lt;&lt; inbuf &lt;&lt;=20
endl;<BR>&nbsp;&nbsp;tcp.close();<BR>&nbsp;&nbsp;cout &lt;&lt; =
"[Client]:=20
Disconnected" &lt;&lt; endl;<BR>&nbsp;}<BR>};</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Questions:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(1) any other way to flush the send =
data without=20
using sync()? Because I dont want to flush the input at the same=20
time.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(2) the document says tcpstream is for =
non-threaded=20
application. Can my code above be use then?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(3) If possible, can anyone provide me =
a sample=20
source code that implements simple TCP client for send/receive binary=20
data?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/enghian</FONT></DIV></BODY></HTML>

------=_NextPart_000_0055_01C2DF1E.BF9F8270--





From MAILER-DAEMON Fri Feb 28 12:46:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ooYN-0001y4-00
	for mharc-bug-commoncpp@gnu.org; Fri, 28 Feb 2003 12:44:11 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ooWi-0001aO-00
	for bug-commoncpp@gnu.org; Fri, 28 Feb 2003 12:42:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ooVy-00019b-00
	for bug-commoncpp@gnu.org; Fri, 28 Feb 2003 12:41:42 -0500
Received: from viefep11-int.chello.at ([213.46.255.27])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ooVR-00017B-00
	for bug-commoncpp@gnu.org; Fri, 28 Feb 2003 12:41:09 -0500
Received: from dev1xp ([80.109.135.71]) by viefep11-int.chello.at
          (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP
          id <20030228165223.WJUA16768.viefep11-int.chello.at@dev1xp>
          for <bug-commoncpp@gnu.org>; Fri, 28 Feb 2003 17:52:23 +0100
From: "klaus triendl" <triendl.kj@mbox.at>
To: "Bug-Commoncpp@Gnu. Org" <bug-commoncpp@gnu.org>
Date: Fri, 28 Feb 2003 17:52:23 +0100
Message-ID: <MNENKPHMOOKIHGCMGMEBKEMMCCAA.triendl.kj@mbox.at>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Subject: sometimes no data sent with a tcpstream
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 17:44:09 -0000

hi,


i have the following problem:

i have successfully written a server very similar to the SocketPort-example
and a client with my own derived tcpstream-class.
the communication between them works so far.

if both server and client are running on the same machine and communicate
over localhost it almost runs smooth - seldom it happens that no data is
sent to the server after establishing the connection.

but if the server runs on a remote machine it is terrible; most of the time
the server doesn't get the data from the client right after establishing the
connection.
if i make a short break of 100ms after connecting to the server then it
works but after some time of heavy communication (the server is the remote
part of a database application) no data is sent to the server anymore and my
read-methods reports a timeout.
pausing for some milliseconds solves the problem but this is not a good
solution.


the connection is established only once and used throughout a whole session.
does somebody have an idea what i could do?





--
klaus triendl




From MAILER-DAEMON Fri Feb 28 19:04:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ouUh-0007Ry-00
	for mharc-bug-commoncpp@gnu.org; Fri, 28 Feb 2003 19:04:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ouUV-0007EP-00
	for bug-commoncpp@gnu.org; Fri, 28 Feb 2003 19:04:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ouTu-0006sY-00
	for bug-commoncpp@gnu.org; Fri, 28 Feb 2003 19:03:59 -0500
Received: from mx4.magma.ca ([206.191.0.253])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ouSu-0005fA-00
	for bug-commoncpp@gnu.org; Fri, 28 Feb 2003 19:02:56 -0500
Received: from mail5.magma.ca (mail5.magma.ca [206.191.0.225])
	by mx4.magma.ca (Magma's Mail Server) with ESMTP id h2102tcO018839
	for <bug-commoncpp@gnu.org>; Fri, 28 Feb 2003 19:02:55 -0500
Received: from igough (ottawa-hs-64-26-156-25.s-ip.magma.ca [64.26.156.25])
	by mail5.magma.ca (Magma's Mail Server) with ESMTP id h2102ssm026129
	for <bug-commoncpp@gnu.org>; Fri, 28 Feb 2003 19:02:54 -0500 (EST)
From: "Ian Gough" <igough@gridironsoftware.com>
To: <bug-commoncpp@gnu.org>
Date: Fri, 28 Feb 2003 19:02:50 -0500
Message-ID: <000001c2df85$e6fc3d10$3102a8c0@gridironnetworks.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0001_01C2DF5B.FE263510"
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.2800.1106
Subject: CommonCpp2 compile errors on Win32
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
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-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 01 Mar 2003 00:04:44 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C2DF5B.FE263510
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

latest CVS snapshot. 3 compile errors using MSVC 6 in socket.cpp
 
---------------------------------------------------------------
C:\src\GridIron\revgen\xGrid\ccxx\src\socket.cpp(236) : error C2664:
'recv' : cannot convert parameter 2 from 'void *' to 'char *'
        Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
 

      nstat =::recv (so, Target, Size, 0);
 
Target is declared as a void*, but recv's 2nd arg should be a char*
 
---------------------------------------------------------------
C:\src\GridIron\revgen\xGrid\ccxx\src\socket.cpp(924) : error C4716:
'ost::UDPSocket::join' : must return a value
 
UDPSocket::join does not return a value on Win32
 
---------------------------------------------------------------
C:\src\GridIron\revgen\xGrid\ccxx\src\socket.cpp(954) : error C4716:
'ost::UDPSocket::getInterfaceIndex' : must return a value
 
UDPSocket::getInterfaceIndex does not return a value on Win32

------=_NextPart_000_0001_01C2DF5B.FE263510
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D696160100-01032003>latest =
CVS snapshot.=20
3 compile errors using MSVC 6 in socket.cpp</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D696160100-01032003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D696160100-01032003>----------------------------------------------=
-----------------<BR>C:\src\GridIron\revgen\xGrid\ccxx\src\socket.cpp(236=
)=20
: error C2664: 'recv' : cannot convert parameter 2 from 'void *' to =
'char=20
*'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Conversion from 'void*' =
to=20
pointer to non-'void' requires an explicit cast</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =
size=3D2><SPAN=20
class=3D696160100-01032003>
<DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nstat =3D::recv (so, Target, =
Size,=20
0);</DIV>
<DIV>&nbsp;</DIV>
<DIV>Target is declared as a void*, but recv's 2nd arg should be a =
char*</DIV>
<DIV>&nbsp;</DIV>
<DIV>---------------------------------------------------------------<BR>C=
:\src\GridIron\revgen\xGrid\ccxx\src\socket.cpp(924)=20
: error C4716: 'ost::UDPSocket::join' : must return a value</DIV>
<DIV>&nbsp;</DIV>
<DIV>UDPSocket::join does not return a value on Win32</DIV>
<DIV>&nbsp;</DIV>
<DIV>---------------------------------------------------------------<BR>C=
:\src\GridIron\revgen\xGrid\ccxx\src\socket.cpp(954)=20
: error C4716: 'ost::UDPSocket::getInterfaceIndex' : must return a =
value</DIV>
<DIV>&nbsp;</DIV>
<DIV>UDPSocket::getInterfaceIndex does not return a value on=20
Win32</SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_0001_01C2DF5B.FE263510--




