From MAILER-DAEMON Thu Sep 01 01:22:20 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAhWZ-00072L-I7
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:22:07 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAhW5-0006us-DO
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:21:37 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAhVt-0006ot-09
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:21:26 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAhVs-0006nQ-Fv
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:21:24 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAhRO-0004YF-Nn
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:16:47 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 31 Aug 2005 22:13:53 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Wed, 31 Aug 2005 22:13:52 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBOECIEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Microsoft w32/tests/*.dsp Build Files - cc*.lib Order
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 05:21:43 -0000

This patch updates Microsoft build files:

	w32/tests/digest.dsp
	w32/tests/url1.dsp

to reference GNU Common C++ libraries in this order:

	ccext2.lib ccgnu2.lib
	ccext2d.lib ccgnu2d.lib

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0012" and "dev-bcb6-arm-0013".

Index: tests/digest.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/digest.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 digest.dsp
--- tests/digest.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/digest.dsp	1 Sep 2005 05:02:34 -0000
@@ -50,7 +50,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ccgnu2.lib ccext2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /machine:I386 /libpath:"..\Release"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /machine:I386 /libpath:"..\Release"

 !ELSEIF  "$(CFG)" == "digest - Win32 Debug"

Index: tests/url1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/url1.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 url1.dsp
--- tests/url1.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/url1.dsp	1 Sep 2005 05:02:34 -0000
@@ -50,7 +50,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ccgnu2.lib ccext2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /machine:I386 /libpath:"..\Release"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /machine:I386 /libpath:"..\Release"

 !ELSEIF  "$(CFG)" == "url1 - Win32 Debug"





From MAILER-DAEMON Thu Sep 01 01:51:48 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAhzH-0006Wk-CE
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:51:47 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAhz8-0006T2-Ce
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:51:41 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAhz4-0006Q5-UD
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:51:35 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAhz4-0006N2-8r
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:51:34 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAhu3-00063t-Az
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 01:46:23 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 31 Aug 2005 22:43:29 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Wed, 31 Aug 2005 22:43:29 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBIECJEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Project w32/tests/ccxx_testsuite.dsp Build Fails
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 05:51:43 -0000

The "#include <cc++/persist.h>" can be fixed by adding an include path.

However all "#include <cppunit/...>" of which there are serveral:

tests\Test_Date.h:41      #include <cppunit/extensions/HelperMacros.h>
tests\Test_Digest.h:41      #include <cppunit/extensions/HelperMacros.h>
tests\Test_Engine.h:41      #include <cppunit/extensions/HelperMacros.h>
tests\Test_SHATumbler.h:2       #include <cppunit/extensions/HelperMacros.h>
tests\Test_TCPStream.h:41      #include <cppunit/extensions/HelperMacros.h>
tests\Test_URLString.h:41      #include <cppunit/extensions/HelperMacros.h>
tests\ccxx_tests.cpp:1       #include <cppunit/extensions/TestFactoryRegistry.h>
tests\ccxx_tests.cpp  2       #include <cppunit/CompilerOutputter.h>
tests\ccxx_tests.cpp  3       #include <cppunit/ui/text/TestRunner.h>

can't be easily fixed since the required files appear to be part of another project:
http://sourceforge.net/projects/cppunit

--------------------Configuration: ccxx_testsuite - Win32 Release--------------------
Compiling...
ccxx_tests.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\ccxx_tests.cpp(1) : fatal error C1083: Cannot open include file:
'cppunit/extensions/TestFactoryRegistry.h': No such file or directory
SampleObject.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\SampleObject.h(44) : fatal error C1083: Cannot open include file: 'cc++/persist.h': No
such file or directory
SampleSubObject.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\SampleSubObject.h(44) : fatal error C1083: Cannot open include file: 'cc++/persist.h':
No such file or directory
Test_Date.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\Test_Date.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_Digest.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\Test_Digest.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_Engine.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\Test_Engine.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_TCPStream.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\Test_TCPStream.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_URLString.cpp
H:\Clients\Trakker\T3i\lib\commoncpp20\tests\Test_URLString.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Error executing cl.exe.

ccxx_testsuite.exe - 8 error(s), 0 warning(s)
--------------------Configuration: ccxx_testsuite - Win32 Debug--------------------
Compiling...
ccxx_tests.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\ccxx_tests.cpp(1) : fatal error C1083: Cannot open include file:
'cppunit/extensions/TestFactoryRegistry.h': No such file or directory
SampleObject.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\sampleobject.h(44) : fatal error C1083: Cannot open include file: 'cc++/persist.h': No
such file or directory
SampleSubObject.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\samplesubobject.h(44) : fatal error C1083: Cannot open include file: 'cc++/persist.h':
No such file or directory
Test_Date.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\test_date.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_Digest.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\test_digest.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_Engine.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\test_engine.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_TCPStream.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\test_tcpstream.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Test_URLString.cpp
h:\clients\trakker\t3i\lib\commoncpp20\tests\test_urlstring.h(41) : fatal error C1083: Cannot open include file:
'cppunit/extensions/HelperMacros.h': No such file or directory
Error executing cl.exe.

ccxx_testsuite.exe - 8 error(s), 0 warning(s)




From MAILER-DAEMON Thu Sep 01 02:04:09 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAiBC-0002an-Sm
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:04:07 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAiB9-0002YX-AJ
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:04:03 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAiB5-0002WZ-JS
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:04:01 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAiB5-0002Rm-2N
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:03:59 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAi9a-00079A-SP
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:02:27 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 31 Aug 2005 22:59:31 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Wed, 31 Aug 2005 22:59:32 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBCECKEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: CVS Commit: tests/thread1.cpp & ChangeLog
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 06:04:05 -0000

Microsoft Visual C++ 6.0 is unhappy:
Compiling...
thread1.cpp
H:\commoncpp2\tests\thread1.cpp(5) : error C2871: 'std' : does not exist or is not a namespace
Error executing cl.exe.

Removing line 5 fixes the problem and g++ on Linux doesn't care.

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/ChangeLog,v
retrieving revision 1.17
diff -u -p -r1.17 ChangeLog
--- ChangeLog	31 Aug 2005 23:55:45 -0000	1.17
+++ ChangeLog	1 Sep 2005 05:50:12 -0000
@@ -1,4 +1,5 @@
 From Common C++ 1.3.18 to 1.3.19
+- fix tests/thread1.cpp to compile with Microsoft Visual C++ 6.0
 - fix Microsoft build file line end convention from -kb to -ko
 - fix for w32 TCPSession connect issue
  
Index: tests/thread1.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/tests/thread1.cpp,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 thread1.cpp
--- tests/thread1.cpp	23 Apr 2005 22:08:32 -0000	1.1.1.1
+++ tests/thread1.cpp	1 Sep 2005 05:50:12 -0000
@@ -2,7 +2,6 @@
 #include <cstdio>
 
 #ifdef	CCXX_NAMESPACES
-using namespace std;
 using namespace ost;
 #endif
 



From MAILER-DAEMON Thu Sep 01 02:53:28 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAiww-00087v-QA
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:53:27 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAiws-00086X-0Y
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:53:22 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAiwp-00085k-TK
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:53:20 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAiwo-0007wm-VI
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:53:19 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAilN-00015k-7R
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 02:41:29 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 31 Aug 2005 23:38:34 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "David Sugar" <dyfet@ostel.com>
Date: Wed, 31 Aug 2005 23:38:34 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBGECNEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
In-Reply-To: <NBBBKGBBDBMONCPMINHBOECFEOAB.Conrad@Pino.com>
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: RE: Microsoft w32/tests/*.dsp Projects Question
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 06:53:24 -0000

The end of this messages contains a patch implementing Option #1.
This patch is not committed as yet.  The build output look like:

H:\commoncpp2>dir w32\Debug\*.exe w32\Release\*.exe
 Volume in drive H is CTP-RAID-001
 Volume Serial Number is 6897-6A9D

 Directory of H:\commoncpp2\w32\Debug

08/31/2005  23:30               98,380 buffer.exe
08/31/2005  23:30               98,378 bug1.exe
08/31/2005  23:31               98,378 bug2.exe
08/31/2005  23:31               98,379 crc32.exe
08/31/2005  23:31               98,380 digest.exe
08/31/2005  23:30              110,678 SampleSocketPort.exe
08/31/2005  23:31               94,286 slogTest.exe
08/31/2005  23:31              102,473 tcp.exe
08/31/2005  23:31              110,672 tcpservice.exe
08/31/2005  23:31               98,381 tcpstr1.exe
08/31/2005  23:32              106,575 tcpthread.exe
08/31/2005  23:32               98,381 thread1.exe
08/31/2005  23:32               98,381 thread2.exe
08/31/2005  23:32               94,282 url1.exe
08/31/2005  23:32               98,382 urlfetch.exe
08/31/2005  23:32              106,574 xmlfetch.exe
              16 File(s)      1,610,960 bytes

 Directory of H:\commoncpp2\w32\Release

08/31/2005  23:30               16,384 buffer.exe
08/31/2005  23:30               16,384 bug1.exe
08/31/2005  23:31               16,384 bug2.exe
08/31/2005  23:31               16,384 crc32.exe
08/31/2005  23:31               16,384 digest.exe
08/31/2005  23:30               24,576 SampleSocketPort.exe
08/31/2005  23:31               16,384 slogTest.exe
08/31/2005  23:31               16,384 tcp.exe
08/31/2005  23:31               20,480 tcpservice.exe
08/31/2005  23:31               16,384 tcpstr1.exe
08/31/2005  23:32               16,384 tcpthread.exe
08/31/2005  23:32               16,384 thread1.exe
08/31/2005  23:32               16,384 thread2.exe
08/31/2005  23:32               16,384 url1.exe
08/31/2005  23:32               16,384 urlfetch.exe
08/31/2005  23:32               16,384 xmlfetch.exe
              16 File(s)        274,432 bytes
               0 Dir(s)      98,033,664 bytes free

H:\commoncpp2>

> -----Original Message-----
> From: bug-commoncpp-bounces+conrad=pino.com@gnu.org
> [mailto:bug-commoncpp-bounces+conrad=pino.com@gnu.org]On Behalf Of
> Conrad T. Pino
> Sent: Wednesday, August 31, 2005 19:54
> To: David Sugar
> Cc: Bug Common C++
> Subject: Microsoft w32/tests/*.dsp Projects Question
> 
> 
> Hi David,
> 
> The "tests" programs build on Linux but they are omitted
> from both Microsoft "common.dsw" and "common.sln".
> 
> I can add them to "common.dsw" or new "tests.dsw" file.
> 
> What's the reason the omission?
> 
> Please choose:
> 
> 	1. Add "tests" to "common.dsw"
> 	2. Add  "tests" to new "test.dsw"
> 	3. Do nothing with "tests"
> 
> Conrad

Index: w32/common.dsw
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/common.dsw,v
retrieving revision 1.2
diff -u -p -r1.2 common.dsw
--- w32/common.dsw	31 Aug 2005 23:50:26 -0000	1.2
+++ w32/common.dsw	1 Sep 2005 06:33:52 -0000
@@ -36,6 +36,36 @@ Package=<4>
 
 ###############################################################################
 
+Project: "bug1"=.\tests\bug1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "bug2"=.\tests\bug2.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "ccext2"=.\ccext2.dsp - Package Owner=<4>
 
 Package=<5>
@@ -81,6 +111,24 @@ Package=<4>
 
 ###############################################################################
 
+Project: "digest"=.\tests\digest.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+    Begin Project Dependency
+    Project_Dep_Name ccext2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "slogTest"=.\demo\slogTest.dsp - Package Owner=<4>
 
 Package=<5>
@@ -129,6 +177,21 @@ Package=<4>
 
 ###############################################################################
 
+Project: "tcpstr1"=.\tests\tcpstr1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "tcpthread"=.\demo\tcpthread.dsp - Package Owner=<4>
 
 Package=<5>
@@ -144,6 +207,54 @@ Package=<4>
 
 ###############################################################################
 
+Project: "thread1"=.\tests\thread1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "thread2"=.\tests\thread2.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "url1"=.\tests\url1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+    Begin Project Dependency
+    Project_Dep_Name ccext2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "urlfetch"=.\demo\urlfetch.dsp - Package Owner=<4>
 
 Package=<5>



From MAILER-DAEMON Thu Sep 01 08:23:43 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAo6Y-000883-Un
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 08:23:43 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAo6E-00082c-2z
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 08:23:24 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAo68-00081f-5D
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 08:23:21 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAo65-0007tx-AE
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 08:23:14 -0400
Received: from [63.208.196.171] (helo=outbound.mailhop.org)
	by monty-python.gnu.org with esmtp
	(TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EAnzm-0007yN-Nn
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 08:16:42 -0400
Received: from pool-138-89-247-176.atc.east.verizon.net ([138.89.247.176]
	helo=[192.168.1.111])
	by outbound.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.51) id 1EAnwv-0006vt-Le; Thu, 01 Sep 2005 08:13:45 -0400
X-Mail-Handler: MailHop Outbound by DynDNS.org
X-Originating-IP: 138.89.247.176
X-Report-Abuse-To: abuse@dyndns.org (see
	http://www.mailhop.org/outbound/abuse.html for abuse reporting
	information)
X-MHO-User: dyfet
Message-ID: <4316F079.5030907@ostel.com>
Date: Thu, 01 Sep 2005 08:13:45 -0400
From: David Sugar <dyfet@ostel.com>
Organization: GNU Telephony
User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Conrad T. Pino" <Conrad@Pino.com>
References: <NBBBKGBBDBMONCPMINHBGECNEOAB.Conrad@Pino.com>
In-Reply-To: <NBBBKGBBDBMONCPMINHBGECNEOAB.Conrad@Pino.com>
Content-Type: multipart/mixed; boundary="------------040105060503060905020500"
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: Microsoft w32/tests/*.dsp Projects Question
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: dyfet@gnutelephony.org
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 12:23:25 -0000

This is a multi-part message in MIME format.
--------------040105060503060905020500
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

They probably do belong in common.  And yes, it will be much more 
convenient having them there than having to pick and choose the 
individual project file.

Conrad T. Pino wrote:
> The end of this messages contains a patch implementing Option #1.
> This patch is not committed as yet.  The build output look like:
> 
> H:\commoncpp2>dir w32\Debug\*.exe w32\Release\*.exe
>  Volume in drive H is CTP-RAID-001
>  Volume Serial Number is 6897-6A9D
> 
>  Directory of H:\commoncpp2\w32\Debug
> 
> 08/31/2005  23:30               98,380 buffer.exe
> 08/31/2005  23:30               98,378 bug1.exe
> 08/31/2005  23:31               98,378 bug2.exe
> 08/31/2005  23:31               98,379 crc32.exe
> 08/31/2005  23:31               98,380 digest.exe
> 08/31/2005  23:30              110,678 SampleSocketPort.exe
> 08/31/2005  23:31               94,286 slogTest.exe
> 08/31/2005  23:31              102,473 tcp.exe
> 08/31/2005  23:31              110,672 tcpservice.exe
> 08/31/2005  23:31               98,381 tcpstr1.exe
> 08/31/2005  23:32              106,575 tcpthread.exe
> 08/31/2005  23:32               98,381 thread1.exe
> 08/31/2005  23:32               98,381 thread2.exe
> 08/31/2005  23:32               94,282 url1.exe
> 08/31/2005  23:32               98,382 urlfetch.exe
> 08/31/2005  23:32              106,574 xmlfetch.exe
>               16 File(s)      1,610,960 bytes
> 
>  Directory of H:\commoncpp2\w32\Release
> 
> 08/31/2005  23:30               16,384 buffer.exe
> 08/31/2005  23:30               16,384 bug1.exe
> 08/31/2005  23:31               16,384 bug2.exe
> 08/31/2005  23:31               16,384 crc32.exe
> 08/31/2005  23:31               16,384 digest.exe
> 08/31/2005  23:30               24,576 SampleSocketPort.exe
> 08/31/2005  23:31               16,384 slogTest.exe
> 08/31/2005  23:31               16,384 tcp.exe
> 08/31/2005  23:31               20,480 tcpservice.exe
> 08/31/2005  23:31               16,384 tcpstr1.exe
> 08/31/2005  23:32               16,384 tcpthread.exe
> 08/31/2005  23:32               16,384 thread1.exe
> 08/31/2005  23:32               16,384 thread2.exe
> 08/31/2005  23:32               16,384 url1.exe
> 08/31/2005  23:32               16,384 urlfetch.exe
> 08/31/2005  23:32               16,384 xmlfetch.exe
>               16 File(s)        274,432 bytes
>                0 Dir(s)      98,033,664 bytes free
> 
> H:\commoncpp2>
> 
>>-----Original Message-----
>>From: bug-commoncpp-bounces+conrad=pino.com@gnu.org
>>[mailto:bug-commoncpp-bounces+conrad=pino.com@gnu.org]On Behalf Of
>>Conrad T. Pino
>>Sent: Wednesday, August 31, 2005 19:54
>>To: David Sugar
>>Cc: Bug Common C++
>>Subject: Microsoft w32/tests/*.dsp Projects Question
>>
>>
>>Hi David,
>>
>>The "tests" programs build on Linux but they are omitted
>>from both Microsoft "common.dsw" and "common.sln".
>>
>>I can add them to "common.dsw" or new "tests.dsw" file.
>>
>>What's the reason the omission?
>>
>>Please choose:
>>
>>	1. Add "tests" to "common.dsw"
>>	2. Add  "tests" to new "test.dsw"
>>	3. Do nothing with "tests"
>>
>>Conrad
> 
> 
> Index: w32/common.dsw
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/common.dsw,v
> retrieving revision 1.2
> diff -u -p -r1.2 common.dsw
> --- w32/common.dsw	31 Aug 2005 23:50:26 -0000	1.2
> +++ w32/common.dsw	1 Sep 2005 06:33:52 -0000
> @@ -36,6 +36,36 @@ Package=<4>
>  
>  ###############################################################################
>  
> +Project: "bug1"=.\tests\bug1.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
> +Project: "bug2"=.\tests\bug2.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
>  Project: "ccext2"=.\ccext2.dsp - Package Owner=<4>
>  
>  Package=<5>
> @@ -81,6 +111,24 @@ Package=<4>
>  
>  ###############################################################################
>  
> +Project: "digest"=.\tests\digest.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +    Begin Project Dependency
> +    Project_Dep_Name ccext2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
>  Project: "slogTest"=.\demo\slogTest.dsp - Package Owner=<4>
>  
>  Package=<5>
> @@ -129,6 +177,21 @@ Package=<4>
>  
>  ###############################################################################
>  
> +Project: "tcpstr1"=.\tests\tcpstr1.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
>  Project: "tcpthread"=.\demo\tcpthread.dsp - Package Owner=<4>
>  
>  Package=<5>
> @@ -144,6 +207,54 @@ Package=<4>
>  
>  ###############################################################################
>  
> +Project: "thread1"=.\tests\thread1.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
> +Project: "thread2"=.\tests\thread2.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
> +Project: "url1"=.\tests\url1.dsp - Package Owner=<4>
> +
> +Package=<5>
> +{{{
> +}}}
> +
> +Package=<4>
> +{{{
> +    Begin Project Dependency
> +    Project_Dep_Name ccgnu2
> +    End Project Dependency
> +    Begin Project Dependency
> +    Project_Dep_Name ccext2
> +    End Project Dependency
> +}}}
> +
> +###############################################################################
> +
>  Project: "urlfetch"=.\demo\urlfetch.dsp - Package Owner=<4>
>  
>  Package=<5>

--------------040105060503060905020500
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="dyfet.vcf"

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
adr:;;;;;;USA
email;internet:dyfet@gnutelephony.org
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard


--------------040105060503060905020500--



From MAILER-DAEMON Thu Sep 01 09:04:42 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAokD-0006b1-Vo
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 09:04:42 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAojK-00066y-32
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 09:03:46 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAois-0005t9-VT
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 09:03:22 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAoik-0004qd-Li
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 09:03:10 -0400
Received: from [63.208.196.171] (helo=outbound.mailhop.org)
	by monty-python.gnu.org with esmtp
	(TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EAo92-0000Kd-Lb
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 08:26:16 -0400
Received: from pool-138-89-247-176.atc.east.verizon.net ([138.89.247.176]
	helo=[192.168.1.111])
	by outbound.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.51) id 1EAo6A-0007zB-Lk; Thu, 01 Sep 2005 08:23:19 -0400
X-Mail-Handler: MailHop Outbound by DynDNS.org
X-Originating-IP: 138.89.247.176
X-Report-Abuse-To: abuse@dyndns.org (see
	http://www.mailhop.org/outbound/abuse.html for abuse reporting
	information)
X-MHO-User: dyfet
Message-ID: <4316F2B6.7010809@ostel.com>
Date: Thu, 01 Sep 2005 08:23:18 -0400
From: David Sugar <dyfet@ostel.com>
Organization: GNU Telephony
User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Conrad T. Pino" <Conrad@Pino.com>
References: <NBBBKGBBDBMONCPMINHBIECEEOAB.Conrad@Pino.com>
In-Reply-To: <NBBBKGBBDBMONCPMINHBIECEEOAB.Conrad@Pino.com>
Content-Type: multipart/mixed; boundary="------------070802060203070105050602"
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: Patch: Microsoft *.dsp Build Files - Debug Libraries
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: dyfet@gnutelephony.org
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 13:04:40 -0000

This is a multi-part message in MIME format.
--------------070802060203070105050602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hmm...I think I removed the d naming so that later one could substitute 
the debug version for testing of an app by changing the PATH, without 
having to use a different link name.  This was otherwise causing all 
sorts of headaches in Bayonne's w32 build and testing because I could 
not directly substitute between debug and live libs, which were on 
different paths.

I think it would be better to use the same name, and make sure the 
library link path is correct "../Debug" rather than "../Release", rather 
than using multiple/different names as well.  I also noticed that later 
vs releases no longer automatically generate dll projects with debug 
dll's named differently.

Conrad T. Pino wrote:
> This patch updates Microsft build files:
> 
> 	w32/*.dsp
> 	w32/demo/*.dsp
> 
> to create distinctly name the "Debug" libraries as:
> 
> 	ccgnu2d.*
> 	ccext2d.*
> 
> which was inspired because the "demo" projects attempted to
> link with "*d.lib" library files which couldn't work since
> they didn't exist.
> 
> Now the libraries and demos all build and the "Debug" version
> have symbols for everything:
> 
> H:\commoncpp20\w32>dir Debug\*.exe Release\*.exe
>  Volume in drive H is CTP-RAID-001
>  Volume Serial Number is 6897-6A9D
> 
>  Directory of H:\commoncpp20\w32\Debug
> 
> 08/31/2005  19:13               98,380 buffer.exe
> 08/31/2005  19:20               98,379 crc32.exe
> 08/31/2005  19:13              110,678 SampleSocketPort.exe
> 08/31/2005  19:13               94,286 slogTest.exe
> 08/31/2005  19:13              102,473 tcp.exe
> 08/31/2005  19:13              110,672 tcpservice.exe
> 08/31/2005  19:13              106,575 tcpthread.exe
> 08/31/2005  19:14               98,382 urlfetch.exe
> 08/31/2005  19:14              106,574 xmlfetch.exe
>                9 File(s)        926,399 bytes
> 
>  Directory of H:\commoncpp20\w32\Release
> 
> 08/31/2005  19:13               16,384 buffer.exe
> 08/31/2005  19:12               16,384 crc32.exe
> 08/31/2005  19:13               24,576 SampleSocketPort.exe
> 08/31/2005  19:13               16,384 slogTest.exe
> 08/31/2005  19:13               16,384 tcp.exe
> 08/31/2005  19:13               20,480 tcpservice.exe
> 08/31/2005  19:13               16,384 tcpthread.exe
> 08/31/2005  19:13               16,384 urlfetch.exe
> 08/31/2005  19:14               16,384 xmlfetch.exe
>                9 File(s)        159,744 bytes
>                0 Dir(s)     163,280,896 bytes free
> 
> H:\commoncpp20\w32>
> 
> This patch is committed on "dev-bcb6-arm" branch between revision
> tags "dev-bcb6-arm-0011" and "dev-bcb6-arm-0012".
> 
> Index: ccext2.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/ccext2.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 ccext2.dsp
> --- ccext2.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ ccext2.dsp	1 Sep 2005 02:31:32 -0000
> @@ -80,7 +80,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /dll /debug
> /machine:I386 /pdbtype:sept
> -# ADD LINK32 ws2_32.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /version:1.3 /dll /debug /machine:I386 /pdbtype:sept /libpath:"Debug"
> +# ADD LINK32 ccgnu2d.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /version:1.3 /dll /debug /machine:I386 /out:"Debug/ccext2d.dll" /pdbtype:sept /libpath:"Debug"
>  # SUBTRACT LINK32 /pdb:none
> 
>  !ENDIF
> Index: ccgnu2.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/ccgnu2.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 ccgnu2.dsp
> --- ccgnu2.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ ccgnu2.dsp	1 Sep 2005 02:31:32 -0000
> @@ -80,7 +80,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /dll /debug
> /machine:I386 /pdbtype:sept
> -# ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /version:1.3
> /dll /debug /machine:I386 /pdbtype:sept
> +# ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /version:1.3
> /dll /debug /machine:I386 /out:"Debug/ccgnu2d.dll" /pdbtype:sept
>  # SUBTRACT LINK32 /pdb:none
> 
>  !ENDIF
> Index: demo/SampleSocketPort.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/SampleSocketPort.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 SampleSocketPort.dsp
> --- demo/SampleSocketPort.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/SampleSocketPort.dsp	1 Sep 2005 02:31:32 -0000
> @@ -50,7 +50,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /machine:I386
> -# ADD LINK32 ccgnu2.lib ccext2.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
> /nologo /subsystem:console /machine:I386 /libpath:"..\Release"
> +# ADD LINK32 ccext2.lib ccgnu2.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
> /nologo /subsystem:console /machine:I386 /libpath:"..\Release"
>  # SUBTRACT LINK32 /pdb:none
> 
>  !ELSEIF  "$(CFG)" == "SampleSocketPort - Win32 Debug"
> @@ -75,7 +75,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccext2.lib ws2_32.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
> /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
> shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
>  # SUBTRACT LINK32 /pdb:none
> 
>  !ENDIF
> Index: demo/buffer.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/buffer.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 buffer.dsp
> --- demo/buffer.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/buffer.dsp	1 Sep 2005 02:31:32 -0000
> @@ -49,7 +49,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /machine:I386
> -# ADD LINK32 ccgnu2.lib ccext2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> +# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> 
>  !ELSEIF  "$(CFG)" == "buffer - Win32 Debug"
> 
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug
> /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/crc32.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/crc32.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 crc32.dsp
> --- demo/crc32.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/crc32.dsp	1 Sep 2005 02:31:32 -0000
> @@ -50,7 +50,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /machine:I386
> -# ADD LINK32 ccgnu2.lib ccext2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> +# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> 
>  !ELSEIF  "$(CFG)" == "crc32 - Win32 Debug"
> 
> @@ -74,7 +74,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/netdevices.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/netdevices.dsp,v
> retrieving revision 1.2
> diff -u -p -r1.2 netdevices.dsp
> --- demo/netdevices.dsp	31 Aug 2005 23:50:26 -0000	1.2
> +++ demo/netdevices.dsp	1 Sep 2005 02:31:32 -0000
> @@ -49,7 +49,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /machine:I386
> -# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> +# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> 
>  !ELSEIF  "$(CFG)" == "netdevices - Win32 Debug"
> 
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/slogTest.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/slogTest.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 slogTest.dsp
> --- demo/slogTest.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/slogTest.dsp	1 Sep 2005 02:31:32 -0000
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/tcp.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/tcp.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 tcp.dsp
> --- demo/tcp.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/tcp.dsp	1 Sep 2005 02:31:32 -0000
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/tcpservice.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/tcpservice.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 tcpservice.dsp
> --- demo/tcpservice.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/tcpservice.dsp	1 Sep 2005 02:31:32 -0000
> @@ -74,7 +74,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/tcpthread.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/tcpthread.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 tcpthread.dsp
> --- demo/tcpthread.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/tcpthread.dsp	1 Sep 2005 02:31:32 -0000
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/urlfetch.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/urlfetch.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 urlfetch.dsp
> --- demo/urlfetch.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/urlfetch.dsp	1 Sep 2005 02:31:32 -0000
> @@ -49,7 +49,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /machine:I386
> -# ADD LINK32 ccgnu2.lib ccext2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> +# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> 
>  !ELSEIF  "$(CFG)" == "urlfetch - Win32 Debug"
> 
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> Index: demo/xmlfetch.dsp
> ===================================================================
> RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/xmlfetch.dsp,v
> retrieving revision 1.2.2.1
> diff -u -p -r1.2.2.1 xmlfetch.dsp
> --- demo/xmlfetch.dsp	1 Sep 2005 00:58:38 -0000	1.2.2.1
> +++ demo/xmlfetch.dsp	1 Sep 2005 02:31:32 -0000
> @@ -49,7 +49,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /machine:I386
> -# ADD LINK32 ccgnu2.lib ccext2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> +# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /machine:I386 /libpath:"..\Release"
> 
>  !ELSEIF  "$(CFG)" == "xmlfetch - Win32 Debug"
> 
> @@ -73,7 +73,7 @@ BSC32=bscmake.exe
>  # ADD BSC32 /nologo
>  LINK32=link.exe
>  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
> /debug /machine:I386 /pdbtype:sept
> -# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> +# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
> /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
> 
>  !ENDIF
> 
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-commoncpp

--------------070802060203070105050602
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="dyfet.vcf"

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
adr:;;;;;;USA
email;internet:dyfet@gnutelephony.org
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard


--------------070802060203070105050602--



From MAILER-DAEMON Thu Sep 01 13:11:47 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAsbI-0007ji-O6
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:11:45 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAsbA-0007g1-Am
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:11:37 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAsb3-0007cC-SQ
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:11:30 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAsb3-0007bg-OQ
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:11:29 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAsY7-00073d-Hi
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:08:28 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Thu, 1 Sep 2005 10:05:27 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Thu, 1 Sep 2005 10:05:26 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBMEEKEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
In-Reply-To: <4316F079.5030907@ostel.com>
Subject: Patch: Add w32/tests/*.dsp to w32/common.dsw
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 17:11:40 -0000

> From: David Sugar
> Sent: Thursday, September 01, 2005 05:14
> 
> They probably do belong in common.  And yes, it will be much more 
> convenient having them there than having to pick and choose the 
> individual project file.

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0013" and "dev-bcb6-arm-0014".

Index: common.dsw
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/common.dsw,v
retrieving revision 1.2
diff -u -p -r1.2 common.dsw
--- common.dsw	31 Aug 2005 23:50:26 -0000	1.2
+++ common.dsw	1 Sep 2005 17:00:12 -0000
@@ -36,6 +36,36 @@ Package=<4>
 
 ###############################################################################
 
+Project: "bug1"=.\tests\bug1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "bug2"=.\tests\bug2.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "ccext2"=.\ccext2.dsp - Package Owner=<4>
 
 Package=<5>
@@ -81,6 +111,24 @@ Package=<4>
 
 ###############################################################################
 
+Project: "digest"=.\tests\digest.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+    Begin Project Dependency
+    Project_Dep_Name ccext2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "slogTest"=.\demo\slogTest.dsp - Package Owner=<4>
 
 Package=<5>
@@ -129,6 +177,21 @@ Package=<4>
 
 ###############################################################################
 
+Project: "tcpstr1"=.\tests\tcpstr1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "tcpthread"=.\demo\tcpthread.dsp - Package Owner=<4>
 
 Package=<5>
@@ -144,6 +207,54 @@ Package=<4>
 
 ###############################################################################
 
+Project: "thread1"=.\tests\thread1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "thread2"=.\tests\thread2.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "url1"=.\tests\url1.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+    Begin Project Dependency
+    Project_Dep_Name ccext2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "urlfetch"=.\demo\urlfetch.dsp - Package Owner=<4>
 
 Package=<5>



From MAILER-DAEMON Thu Sep 01 13:15:31 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAsex-0000G0-OQ
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:15:31 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAsew-0000Fa-Ad
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:15:30 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAseu-0000FO-SQ
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:15:30 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAsbh-0007bg-L8
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:12:09 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAsaK-0007Gf-6g
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:10:44 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Thu, 1 Sep 2005 10:07:44 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "David Sugar" <dyfet@ostel.com>
Date: Thu, 1 Sep 2005 10:07:44 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBAEELEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Debug Libraries With "d" Suffix & *.vcproj Files
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 17:15:30 -0000

There seems to be a problem in these *.vcproj files:

	H:\commoncpp2\w32>grep -din "cc(ext|gnu)2d" *.vcproj

	File ccext2.vcproj:
	23 AdditionalOptions="/out:&quot;debug/ccext2d.dll&quot; "

	File ccgnu2.vcproj:
	23 AdditionalOptions="/out:&quot;debug/ccgnu2d.dll&quot; "

and I don't have a compiler that uses these files to test a fix.




From MAILER-DAEMON Thu Sep 01 13:27:56 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAsqx-0004Sq-PF
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:55 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAsqR-0004Jd-QU
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:24 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAsqO-0004Hk-OM
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:22 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAsqN-0004Eg-9i
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:19 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAsjm-00086O-Km
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:20:31 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Thu, 1 Sep 2005 10:17:30 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: <dyfet@gnutelephony.org>
Date: Thu, 1 Sep 2005 10:17:30 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBOEEOEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
In-Reply-To: <4316F2B6.7010809@ostel.com>
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: RE: Patch: Microsoft *.dsp Build Files - Debug Libraries
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 17:27:25 -0000

Hi David,

> From: David Sugar
> Sent: Thursday, September 01, 2005 05:23
> 
> Hmm...I think I removed the d naming so that later one could substitute 
> the debug version for testing of an app by changing the PATH, without 
> having to use a different link name.  This was otherwise causing all 
> sorts of headaches in Bayonne's w32 build and testing because I could 
> not directly substitute between debug and live libs, which were on 
> different paths.
> 
> I think it would be better to use the same name, and make sure the 
> library link path is correct "../Debug" rather than "../Release", rather 
> than using multiple/different names as well.  I also noticed that later 
> vs releases no longer automatically generate dll projects with debug 
> dll's named differently.

Reviving the "d" versions was the shortest path given so many *.dsp were
referencing them.  Removing the "d" won't take long and the *.dsp files
seem to resolve selection with "/libpath" option.  The outputs are very
similar:

H:\commoncpp2\w32>dir Debug\*.exe Release\*.exe
 Volume in drive H is CTP-RAID-001
 Volume Serial Number is 6897-6A9D

 Directory of H:\commoncpp2\w32\Debug

09/01/2005  09:49               98,378 bug1.exe
09/01/2005  09:49               98,378 bug2.exe
09/01/2005  09:49               98,379 crc32.exe
09/01/2005  09:49               98,380 digest.exe
09/01/2005  09:49               94,286 slogTest.exe
09/01/2005  09:49              102,473 tcp.exe
09/01/2005  09:49              110,672 tcpservice.exe
09/01/2005  09:49               98,381 tcpstr1.exe
09/01/2005  09:49              106,575 tcpthread.exe
09/01/2005  09:49               98,381 thread1.exe
09/01/2005  09:49               98,381 thread2.exe
09/01/2005  09:49               94,282 url1.exe
09/01/2005  09:50               98,382 urlfetch.exe
09/01/2005  09:50              106,574 xmlfetch.exe
              14 File(s)      1,401,902 bytes

 Directory of H:\commoncpp2\w32\Release

09/01/2005  09:49               16,384 bug1.exe
09/01/2005  09:49               16,384 bug2.exe
09/01/2005  09:49               16,384 crc32.exe
09/01/2005  09:49               16,384 digest.exe
09/01/2005  09:49               16,384 slogTest.exe
09/01/2005  09:49               16,384 tcp.exe
09/01/2005  09:49               20,480 tcpservice.exe
09/01/2005  09:49               16,384 tcpstr1.exe
09/01/2005  09:49               16,384 tcpthread.exe
09/01/2005  09:49               16,384 thread1.exe
09/01/2005  09:49               16,384 thread2.exe
09/01/2005  09:49               16,384 url1.exe
09/01/2005  09:49               16,384 urlfetch.exe
09/01/2005  09:50               16,384 xmlfetch.exe
              14 File(s)        233,472 bytes
               0 Dir(s)      99,231,744 bytes free

H:\commoncpp2\w32>



From MAILER-DAEMON Thu Sep 01 13:27:56 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAsqy-0004Sv-48
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:56 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAsqR-0004JJ-MV
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:24 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAsqK-0004F8-JO
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:20 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAsqK-0004Eg-Ew
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:27:16 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAsop-0008QN-Gp
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:25:45 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Thu, 1 Sep 2005 10:22:43 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Thu, 1 Sep 2005 10:22:41 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBGEEPEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Microsoft *.dsp Files - Remove "d" Suffix From Debug Library
	Names
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 17:27:25 -0000

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0014" and "dev-bcb6-arm-0015".

Index: ccext2.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/ccext2.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 ccext2.dsp
--- ccext2.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ ccext2.dsp	1 Sep 2005 16:29:50 -0000
@@ -70,7 +70,7 @@ LINK32=link.exe
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CCEXT2_EXPORTS"
/YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /Gi /GX /ZI /Od /I "..\w32" /I "..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D
"_USRDLL" /D "CCEXT2_EXPORTS" /FR /YX /FD /GZ /out:"debug/ccext2d.dll" /c
+# ADD CPP /nologo /MDd /W3 /Gm /Gi /GX /ZI /Od /I "..\w32" /I "..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D
"_USRDLL" /D "CCEXT2_EXPORTS" /FR /YX /FD /GZ /out:"debug/ccext2.dll" /c
 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0xc0a /d "_DEBUG"
@@ -80,7 +80,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /dll /debug
/machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/version:1.3 /dll /debug /machine:I386 /out:"Debug/ccext2d.dll" /pdbtype:sept /libpath:"Debug"
+# ADD LINK32 ccgnu2.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/version:1.3 /dll /debug /machine:I386 /out:"Debug/ccext2.dll" /pdbtype:sept /libpath:"Debug"
 # SUBTRACT LINK32 /pdb:none

 !ENDIF
Index: ccgnu2.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/ccgnu2.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 ccgnu2.dsp
--- ccgnu2.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ ccgnu2.dsp	1 Sep 2005 16:29:50 -0000
@@ -70,7 +70,7 @@ LINK32=link.exe
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CCGNU2_EXPORTS"
/YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /Gi /GX /ZI /Od /I "..\w32" /I "..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D
"_USRDLL" /D "CCGNU2_EXPORTS" /FR /YX /FD /GZ /out:"debug/ccgnu2d.dll" /c
+# ADD CPP /nologo /MDd /W3 /Gm /Gi /GX /ZI /Od /I "..\w32" /I "..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D
"_USRDLL" /D "CCGNU2_EXPORTS" /FR /YX /FD /GZ /out:"debug/ccgnu2.dll" /c
 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0xc0a /d "_DEBUG"
@@ -80,7 +80,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /dll /debug
/machine:I386 /pdbtype:sept
-# ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /version:1.3
/dll /debug /machine:I386 /out:"Debug/ccgnu2d.dll" /pdbtype:sept
+# ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /version:1.3
/dll /debug /machine:I386 /out:"Debug/ccgnu2.dll" /pdbtype:sept
 # SUBTRACT LINK32 /pdb:none

 !ENDIF
Index: demo/SampleSocketPort.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/SampleSocketPort.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 SampleSocketPort.dsp
--- demo/SampleSocketPort.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/SampleSocketPort.dsp	1 Sep 2005 16:29:50 -0000
@@ -75,7 +75,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
 # SUBTRACT LINK32 /pdb:none

 !ENDIF
Index: demo/buffer.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/buffer.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 buffer.dsp
--- demo/buffer.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/buffer.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/crc32.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/crc32.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 crc32.dsp
--- demo/crc32.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/crc32.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/netdevices.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/netdevices.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 netdevices.dsp
--- demo/netdevices.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.1
+++ demo/netdevices.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/slogTest.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/slogTest.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 slogTest.dsp
--- demo/slogTest.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/slogTest.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/tcp.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/tcp.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 tcp.dsp
--- demo/tcp.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/tcp.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/tcpservice.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/tcpservice.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 tcpservice.dsp
--- demo/tcpservice.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/tcpservice.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/tcpthread.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/tcpthread.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 tcpthread.dsp
--- demo/tcpthread.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/tcpthread.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/urlfetch.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/urlfetch.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 urlfetch.dsp
--- demo/urlfetch.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/urlfetch.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: demo/xmlfetch.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/demo/xmlfetch.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 xmlfetch.dsp
--- demo/xmlfetch.dsp	1 Sep 2005 02:32:32 -0000	1.2.2.2
+++ demo/xmlfetch.dsp	1 Sep 2005 16:29:50 -0000
@@ -73,7 +73,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/bug1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/bug1.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 bug1.dsp
--- tests/bug1.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/bug1.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/bug2.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/bug2.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 bug2.dsp
--- tests/bug2.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/bug2.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/digest.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/digest.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 digest.dsp
--- tests/digest.dsp	1 Sep 2005 05:12:13 -0000	1.2.2.1
+++ tests/digest.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/tcpstr1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/tcpstr1.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 tcpstr1.dsp
--- tests/tcpstr1.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/tcpstr1.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/thread1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/thread1.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 thread1.dsp
--- tests/thread1.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/thread1.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/thread2.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/thread2.dsp,v
retrieving revision 1.2
diff -u -p -r1.2 thread2.dsp
--- tests/thread2.dsp	31 Aug 2005 23:50:26 -0000	1.2
+++ tests/thread2.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF

Index: tests/url1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/url1.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 url1.dsp
--- tests/url1.dsp	1 Sep 2005 05:12:13 -0000	1.2.2.1
+++ tests/url1.dsp	1 Sep 2005 16:29:50 -0000
@@ -74,7 +74,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 ccext2d.lib ccgnu2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"
+# ADD LINK32 ccext2.lib ccgnu2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo
/subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\Debug"

 !ENDIF





From MAILER-DAEMON Thu Sep 01 14:12:59 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAtYY-0000ju-Gv
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 14:12:58 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAtV8-0008M5-1o
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 14:09:26 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAtUw-0008IE-TN
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 14:09:16 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAtUw-00087F-C0
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 14:09:14 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAtFs-0001Wr-SY
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 13:53:41 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Thu, 1 Sep 2005 10:50:40 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Thu, 1 Sep 2005 10:50:40 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBMEFBEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Microsoft w32/tests/*.dsp Header Files Update
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 18:12:55 -0000

The "Header Files" section of the "tests" project now have current
header file dependencies explicitly specified.

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0015" and "dev-bcb6-arm-0016".

Index: tests/bug1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/bug1.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 bug1.dsp
--- tests/bug1.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.1
+++ tests/bug1.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,14 @@ SOURCE=..\..\tests\bug1.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 
Index: tests/bug2.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/bug2.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 bug2.dsp
--- tests/bug2.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.1
+++ tests/bug2.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,14 @@ SOURCE=..\..\tests\bug2.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 
Index: tests/digest.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/digest.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 digest.dsp
--- tests/digest.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.2
+++ tests/digest.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,34 @@ SOURCE=..\..\tests\digest.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\digest.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\exception.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\misc.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\missing.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\strchar.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 
Index: tests/tcpstr1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/tcpstr1.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 tcpstr1.dsp
--- tests/tcpstr1.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.1
+++ tests/tcpstr1.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,34 @@ SOURCE=..\..\tests\tcpstr1.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\..\include\cc++\address.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\exception.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\missing.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\socket.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\strchar.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 
Index: tests/thread1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/thread1.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 thread1.dsp
--- tests/thread1.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.1
+++ tests/thread1.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,14 @@ SOURCE=..\..\tests\thread1.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 
Index: tests/thread2.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/thread2.dsp,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 thread2.dsp
--- tests/thread2.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.1
+++ tests/thread2.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,14 @@ SOURCE=..\..\tests\thread2.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 
Index: tests/url1.dsp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/tests/url1.dsp,v
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.2 url1.dsp
--- tests/url1.dsp	1 Sep 2005 17:21:01 -0000	1.2.2.2
+++ tests/url1.dsp	1 Sep 2005 17:44:30 -0000
@@ -93,6 +93,82 @@ SOURCE=..\..\tests\url1.cpp
 # Begin Group "Header Files"
 
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\..\include\cc++\address.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\cmdoptns.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\common.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\digest.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\exception.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\file.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\mime.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\misc.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\missing.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\numbers.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\persist.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\serial.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\slog.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\socket.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\strchar.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\url.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\xml.h"
+# End Source File
 # End Group
 # Begin Group "Resource Files"
 



From MAILER-DAEMON Thu Sep 01 16:53:23 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EAw3m-000115-Vn
	for mharc-bug-commoncpp@gnu.org; Thu, 01 Sep 2005 16:53:23 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EAw3k-00010M-Mx
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 16:53:20 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EAw3i-0000z4-Sf
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 16:53:20 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EAw2d-0000Ia-TU
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 16:52:12 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAvfa-0004FK-9Z
	for bug-commoncpp@gnu.org; Thu, 01 Sep 2005 16:28:22 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Thu, 1 Sep 2005 13:25:19 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "David Sugar" <dyfet@ostel.com>
Date: Thu, 1 Sep 2005 13:25:19 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBMEFKEOAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: GCC Libraries Thread Safe?
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Sep 2005 20:53:21 -0000

Hi David,

I notice the "demo" and "tests" programs use the
"cout" object from possibly different threads.

In general is thread safety well taken care of in
the GCC supplied libraries?

Thank you in advance,

Conrad




From MAILER-DAEMON Fri Sep 02 07:58:57 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EBAC8-0000GV-Dt
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:58:56 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EBAC2-0000FE-Gd
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:58:50 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EBABz-0000EB-Ju
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:58:49 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EBAAV-0008E2-9Z
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:57:15 -0400
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.34) id 1EB9hW-0006ac-FW
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:27:18 -0400
Received: (qmail 32547 invoked by uid 0); 2 Sep 2005 11:24:07 -0000
Received: from 194.145.89.65 by www59.gmx.net with HTTP;
	Fri, 2 Sep 2005 13:24:07 +0200 (MEST)
Date: Fri, 2 Sep 2005 13:24:07 +0200 (MEST)
From: "Holger Tasch" <holger.tasch@gmx.de>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #5988733
Message-ID: <2751.1125660247@www59.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: 
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Sep 2005 11:58:51 -0000

Hello List,

a problem occured while trying to build commoncpp2-1.3.19 in MSYS with MINGW
(all latest):

./configure 
completed just fine, but make comes only to file.cpp and complains:

 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-D_GNU_SOURCE -I../w32 -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c
file.cpp  -DDLL_EXPORT -DPIC -o .libs/file.o
file.cpp: In function `time_t ost::lastAccessed(const char*)':
file.cpp:1455: error: `SECS_BETWEEN_EPOCHS' undeclared (first use this
function)
file.cpp:1455: error: (Each undeclared identifier is reported only once for
each function it appears in.)
file.cpp:1455: error: `SECS_TO_100NS' undeclared (first use this function)
file.cpp: In function `time_t ost::lastModified(const char*)':
file.cpp:1481: error: `SECS_BETWEEN_EPOCHS' undeclared (first use this
function)
file.cpp:1481: error: `SECS_TO_100NS' undeclared (first use this function)
make[1]: *** [file.lo] Error 1
make[1]: Leaving directory `/d/install/sonstiges/commoncpp2-1.3.19/src'
make: *** [all-recursive] Error 1

which is perfectly true, because these macros are not defined in
./include/cc++/config.h, which is included, but only in ./w32/cc++/config.h,
which is not included. Am I missing something, or is there something wrong?

Thanks in advance & kind regards

Holger

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl



From MAILER-DAEMON Fri Sep 02 08:01:02 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EBAE9-0000f3-47
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Sep 2005 08:01:01 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EBAE2-0000e4-Fl
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 08:00:55 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EBADz-0000di-IM
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 08:00:52 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EBAAU-00082G-FL
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:57:14 -0400
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.34) id 1EB9jD-0006hw-Bc
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 07:29:03 -0400
Received: (qmail 29148 invoked by uid 0); 2 Sep 2005 11:25:52 -0000
Received: from 194.145.89.65 by www45.gmx.net with HTTP;
	Fri, 2 Sep 2005 13:25:52 +0200 (MEST)
Date: Fri, 2 Sep 2005 13:25:52 +0200 (MEST)
From: "Holger Tasch" <holger.tasch@gmx.de>
To: bug-commoncpp@gnu.org
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-Authenticated: #5988733
Message-ID: <28673.1125660352@www45.gmx.net>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: commoncpp2-1.3.19 won't compile with MINGW/MSYS under Win32
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Sep 2005 12:00:56 -0000

Hello List,

(sorry, forgot the subject in the original post)

a problem occured while trying to build commoncpp2-1.3.19 in MSYS with MINGW
(all latest):

./configure 
completed just fine, but make comes only to file.cpp and complains:

 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-D_GNU_SOURCE -I../w32 -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c
file.cpp  -DDLL_EXPORT -DPIC -o .libs/file.o
file.cpp: In function `time_t ost::lastAccessed(const char*)':
file.cpp:1455: error: `SECS_BETWEEN_EPOCHS' undeclared (first use this
function)
file.cpp:1455: error: (Each undeclared identifier is reported only once for
each function it appears in.)
file.cpp:1455: error: `SECS_TO_100NS' undeclared (first use this function)
file.cpp: In function `time_t ost::lastModified(const char*)':
file.cpp:1481: error: `SECS_BETWEEN_EPOCHS' undeclared (first use this
function)
file.cpp:1481: error: `SECS_TO_100NS' undeclared (first use this function)
make[1]: *** [file.lo] Error 1
make[1]: Leaving directory `/d/install/sonstiges/commoncpp2-1.3.19/src'
make: *** [all-recursive] Error 1

which is perfectly true, because these macros are not defined in
./include/cc++/config.h, which is included, but only in ./w32/cc++/config.h,
which is not included. Am I missing something, or is there something wrong?

Thanks in advance & kind regards

Holger

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl



From MAILER-DAEMON Fri Sep 02 09:26:07 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EBBXi-0005Cx-Q3
	for mharc-bug-commoncpp@gnu.org; Fri, 02 Sep 2005 09:25:19 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EBBXS-00057X-4z
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 09:25:03 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EBBXH-00051x-Ok
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 09:24:53 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EBBXH-0004z5-CO
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 09:24:51 -0400
Received: from [63.208.196.171] (helo=outbound.mailhop.org)
	by monty-python.gnu.org with esmtp
	(TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EBBPF-0005xW-F4
	for bug-commoncpp@gnu.org; Fri, 02 Sep 2005 09:16:33 -0400
Received: from pool-138-89-247-176.atc.east.verizon.net ([138.89.247.176]
	helo=[192.168.1.111])
	by outbound.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.51) id 1EBBMA-000CzR-6l; Fri, 02 Sep 2005 09:13:22 -0400
X-Mail-Handler: MailHop Outbound by DynDNS.org
X-Originating-IP: 138.89.247.176
X-Report-Abuse-To: abuse@dyndns.org (see
	http://www.mailhop.org/outbound/abuse.html for abuse reporting
	information)
X-MHO-User: dyfet
Message-ID: <43184FF1.5030608@ostel.com>
Date: Fri, 02 Sep 2005 09:13:21 -0400
From: David Sugar <dyfet@ostel.com>
Organization: GNU Telephony
User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Holger Tasch <holger.tasch@gmx.de>
References: <2751.1125660247@www59.gmx.net>
In-Reply-To: <2751.1125660247@www59.gmx.net>
Content-Type: multipart/mixed; boundary="------------040208090501020400040406"
Cc: bug-commoncpp@gnu.org
Subject: Re: 
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: dyfet@gnutelephony.org
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Sep 2005 13:25:09 -0000

This is a multi-part message in MIME format.
--------------040208090501020400040406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

The other config.h is generated from configure.ac, so really then these 
defines should migrate into something emitted from 
configure.ac...perhaps wrapped in a #ifdef WIN32 block....

Holger Tasch wrote:
> Hello List,
> 
> a problem occured while trying to build commoncpp2-1.3.19 in MSYS with MINGW
> (all latest):
> 
> ./configure 
> completed just fine, but make comes only to file.cpp and complains:
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> -D_GNU_SOURCE -I../w32 -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c
> file.cpp  -DDLL_EXPORT -DPIC -o .libs/file.o
> file.cpp: In function `time_t ost::lastAccessed(const char*)':
> file.cpp:1455: error: `SECS_BETWEEN_EPOCHS' undeclared (first use this
> function)
> file.cpp:1455: error: (Each undeclared identifier is reported only once for
> each function it appears in.)
> file.cpp:1455: error: `SECS_TO_100NS' undeclared (first use this function)
> file.cpp: In function `time_t ost::lastModified(const char*)':
> file.cpp:1481: error: `SECS_BETWEEN_EPOCHS' undeclared (first use this
> function)
> file.cpp:1481: error: `SECS_TO_100NS' undeclared (first use this function)
> make[1]: *** [file.lo] Error 1
> make[1]: Leaving directory `/d/install/sonstiges/commoncpp2-1.3.19/src'
> make: *** [all-recursive] Error 1
> 
> which is perfectly true, because these macros are not defined in
> ./include/cc++/config.h, which is included, but only in ./w32/cc++/config.h,
> which is not included. Am I missing something, or is there something wrong?
> 
> Thanks in advance & kind regards
> 
> Holger
> 

--------------040208090501020400040406
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="dyfet.vcf"

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
adr:;;;;;;USA
email;internet:dyfet@gnutelephony.org
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard


--------------040208090501020400040406--



From MAILER-DAEMON Wed Sep 07 14:28:03 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1ED4eR-0005gO-Pp
	for mharc-bug-commoncpp@gnu.org; Wed, 07 Sep 2005 14:28:03 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1ED4di-0005DJ-7K
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 14:27:18 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1ED4df-0005BL-2P
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 14:27:16 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1ED4de-0005A6-LX
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 14:27:14 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1ED4h2-0001g6-2Z
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 14:30:44 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 7 Sep 2005 11:26:17 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Wed, 7 Sep 2005 11:26:16 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBMEGPEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: New Microsoft Project file - w32/demo/serial.dsp
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Sep 2005 18:27:18 -0000

I added file "w32/demo/serial.dsp" to build serial "demo" files:

	serialecho.cpp
	serialecho.h
	serialmain.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0016" and "dev-bcb6-arm-0017".

Index: w32/common.dsw
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/common.dsw,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -p -r1.2.2.1 -r1.2.2.2
--- w32/common.dsw	1 Sep 2005 17:03:30 -0000	1.2.2.1
+++ w32/common.dsw	7 Sep 2005 18:01:53 -0000	1.2.2.2
@@ -129,6 +129,24 @@ Package=<4>

 ###############################################################################

+Project: "serial"=.\demo\serial.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name ccgnu2
+    End Project Dependency
+    Begin Project Dependency
+    Project_Dep_Name ccext2
+    End Project Dependency
+}}}
+
+###############################################################################
+
 Project: "slogTest"=.\demo\slogTest.dsp - Package Owner=<4>

 Package=<5>
Index: w32/demo/serial.dsp
===================================================================
RCS file: w32/demo/serial.dsp
diff -N w32/demo/serial.dsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ w32/demo/serial.dsp	7 Sep 2005 18:20:39 -0000	1.1.2.1
@@ -0,0 +1,136 @@
+# Microsoft Developer Studio Project File - Name="serial" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=serial - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "serial.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "serial.mak" CFG="serial - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "serial - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "serial - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  "$(CFG)" == "serial - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "..\Release"
+# PROP BASE Intermediate_Dir "..\Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "..\Release"
+# PROP Intermediate_Dir "..\Release\serial"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\w32" /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  "$(CFG)" == "serial - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "..\Debug"
+# PROP BASE Intermediate_Dir "..\Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "..\Debug"
+# PROP Intermediate_Dir "..\Debug\serial"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\w32" /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD
/GZ /c
+# SUBTRACT CPP /YX
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF
+
+# Begin Target
+
+# Name "serial - Win32 Release"
+# Name "serial - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=..\..\demo\serialecho.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\demo\serialmain.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE="..\cc++\config.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\exception.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\missing.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\serial.h"
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\demo\serialecho.h
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\strchar.h"
+# End Source File
+# Begin Source File
+
+SOURCE="..\..\include\cc++\thread.h"
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project




From MAILER-DAEMON Wed Sep 07 15:24:18 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1ED5Us-00089W-MM
	for mharc-bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:22:14 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1ED5UL-000848-Ok
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:21:42 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1ED5UB-0007yP-7e
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:21:39 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1ED5U9-0007uo-7w
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:21:29 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1ED5Nh-0004Ql-Sf
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:14:51 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 7 Sep 2005 12:10:24 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Wed, 7 Sep 2005 12:10:24 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBMEHDEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Serial Port Interactive Mode Buffering Improved
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Sep 2005 19:21:44 -0000

This patch modifies the following files:

	demo/serialecho.cpp
	demo/serialecho.h
	demo/serialmain.cpp

	include/cc++/serial.h

	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0050" and "dev-bcb6-arm-0051".

Index: demo/serialecho.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/demo/serialecho.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -p -r1.1.1.1 -r1.1.1.1.2.1
--- demo/serialecho.cpp	23 Apr 2005 22:08:01 -0000	1.1.1.1
+++ demo/serialecho.cpp	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
@@ -28,45 +28,56 @@
 using namespace std;
 
 SerialEcho::SerialEcho(const char *device, 
+                       unsigned long speed,
+                       int char_bits,
+                       Parity parity,
+                       int stop_bits,
+                       Flow flow,
                        int priority, int stacksize) :
   TTYSession( device, priority, stacksize ) {
 
   cout << "Creating SerialEcho" << endl;
 
-  if (!(*this)) {
+  if (!isOpen()) {
     throw xError();
     ::exit(1);
   } else {
     cout << "modem ready" << endl;
   }
 
-  interactive(false);
+  interactive(true);
 
-  if (setSpeed(38400)) cout << getErrorString() << endl;
-  if (setCharBits(8)) cout << getErrorString() << endl;
-  if (setParity(Serial::parityNone)) cout << getErrorString() << endl;
-  if (setStopBits(1)) cout << getErrorString() << endl;
-  if (setFlowControl(Serial::flowHard)) cout << getErrorString() << endl;
+  if (setSpeed(speed)) cout << getErrorString() << endl;
+  if (setCharBits(char_bits)) cout << getErrorString() << endl;
+  if (setParity(parity)) cout << getErrorString() << endl;
+  if (setStopBits(stop_bits)) cout << getErrorString() << endl;
+  if (setFlowControl(flow)) cout << getErrorString() << endl;
+
+//  setPacketInput(16,100);
 
   cout << "config done" << endl;
 }
 
 void SerialEcho::run() {
-  char* s = new char[getBufferSize()];
-
   cout << "start monitor" << endl;
 
-  while (s[0] != 'X') {
-    while (isPending(Serial::pendingInput)) {
-      cout.put( TTYStream::get() );
-    } 
-    sleep(500);
+#if 0
+//FILE *fout = fopen("serial.out", "wt");
+  FILE *fout = stdout;
+  while (isPending(pendingInput)) {
+    fputc( TTYStream::get(), fout );
+    if ( ! isPending( pendingInput, 0 ) ) fflush( fout );
   }
+#else
+  int data;
+  while ( ( data = TTYStream::get() ) ) {
+    cout.put( data );
+    if ( ! isPending( pendingInput, 0 ) ) cout.flush();
+  } 
+#endif
 
   cout << "end of monitor" << endl;
 
-  delete [] s;
-  
   exit();
 }
 
Index: demo/serialecho.h
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/demo/serialecho.h,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -p -r1.1.1.1 -r1.1.1.1.2.1
--- demo/serialecho.h	23 Apr 2005 22:08:01 -0000	1.1.1.1
+++ demo/serialecho.h	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
@@ -18,7 +18,7 @@
 #ifndef SERIALECHO_H
 #define SERIALECHO_H
 
-#include <cc++/common.h>
+#include <cc++/serial.h>
 
 #ifdef	CCXX_NAMESPACES
 using namespace std;
@@ -28,7 +28,12 @@ using namespace ost;
 class SerialEcho : public TTYSession {
  public:
 
-  SerialEcho(const char *device,  
+  SerialEcho(const char *device, 
+             unsigned long speed = 38400,
+             int char_bits = 8,
+             Parity parity = parityNone,
+             int stop_bits = 1,
+             Flow flow = flowHard,
              int priority = 0, int stacksize = 0);
 
   // Exception classes
Index: demo/serialmain.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/demo/serialmain.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -p -r1.1.1.1 -r1.1.1.1.2.1
--- demo/serialmain.cpp	23 Apr 2005 22:08:01 -0000	1.1.1.1
+++ demo/serialmain.cpp	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
@@ -29,16 +29,60 @@
 
 int main(int argc, char **argv)
 {
+  const char *device = "/dev/modem2";
+  unsigned long speed = 38400;
+  int char_bits = 8;
+  Serial::Parity parity = Serial::parityNone;
+  int stop_bits = 1;
+  Serial::Flow flow = Serial::flowHard;
+
+  if ( argc > 1 ) device = argv[ 1 ];
+  if ( argc > 2 ) speed = atol( argv[ 2 ] );
+  if ( argc > 3 ) char_bits = atoi( argv[ 3 ] );
+  if ( argc > 4 )
+    switch ( *argv[ 4 ] ) {
+    case 'e':
+    case 'E':
+      parity = Serial::parityEven;
+      break;
+    case 'o':
+    case 'O':
+      parity = Serial::parityOdd;
+      break;
+    default:
+      parity = Serial::parityNone;
+      break;
+	}
+  if ( argc > 5 ) stop_bits = atoi( argv[ 5 ] );
+  if ( argc > 6 )
+    switch ( *argv[ 6 ] ) {
+    case 'b':
+    case 'B':
+      flow = Serial::flowBoth;
+      break;
+    case 'h':
+    case 'H':
+      flow = Serial::flowHard;
+      break;
+    case 's':
+    case 'S':
+      flow = Serial::flowSoft;
+      break;
+    default:
+      flow = Serial::flowNone;
+      break;
+	}
+
   cout << "Serial Echo to TCP Sessions" << endl;
   SerialEcho *modem;
   try {
-    modem = new SerialEcho("/dev/modem2");
+    modem = new SerialEcho(device, speed, char_bits, parity, stop_bits, flow);
   } catch (SerialEcho::xError *e) {
     cout << "Modem Error; aborting" << endl;
     ::exit(1);
   } catch (Serial *e) {
     cout << "Serial Error: " 
-         << modem->getErrorString() 
+         << e->getErrorString()
          << "; aborting" 
          << endl;
     ::exit(1);
@@ -46,7 +90,7 @@ int main(int argc, char **argv)
 
   char* b = new char[modem->getBufferSize()];
 
-  cout << "Modem code:" << modem->start() << endl;
+  cout << "Modem start code: " << modem->start() << endl;
 
   while (cin >> b, b[0]) {
 
@@ -64,4 +108,3 @@ int main(int argc, char **argv)
 }
 
 /**  2000 by TeleDynamics Communications Inc - teledynamics@canada.com*/
-
Index: include/cc++/serial.h
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/include/cc++/serial.h,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -p -r1.1.1.1 -r1.1.1.1.2.1
--- include/cc++/serial.h	23 Apr 2005 22:08:11 -0000	1.1.1.1
+++ include/cc++/serial.h	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
@@ -143,7 +143,7 @@ public:
 
 private:
 	Error errid;
-	char *errstr;
+	const char *errstr;
 
 	struct
 	{
@@ -160,11 +160,10 @@ private:
 	void initSerial(void);
 
 protected:
+	size_t getsize;
 
 	HANDLE	dev;
 
-	int bufsize;
-
 	/**
 	 * Opens the serial device.
 	 *
@@ -179,6 +178,13 @@ protected:
 	void		close(void);
 
 	/**
+	 * Tests if the serial device is open.
+	 *
+	 */
+	inline bool	isOpen(void) const
+		{return dev != INVALID_HANDLE_VALUE;}
+
+	/**
 	 * Reads from serial device.
 	 *
 	 * @param Data  Point to character buffer to receive data.  Buffers MUST
@@ -202,7 +208,7 @@ protected:
 	 * @param error defined serial error id.
 	 * @param errstr string or message to optionally pass.
 	 */
-	Error error(Error error, char *errstr = NULL);
+	Error error(const Error error, const char *errstr = NULL);
 
 	/**
 	 * This service is used to thow application defined serial
@@ -210,7 +216,7 @@ protected:
 	 *
 	 * @param errstr string or message to pass.
 	 */
-	inline void error(char *err)
+	inline void error(const char *err)
 		{error(errExtended, err);};
 
 
@@ -254,17 +260,17 @@ protected:
 	/**
 	 * Used to flush the input waiting queue.
 	 */
-	void flushInput(void);
+	virtual void flushInput(void);
 
 	/**
 	 * Used to flush any pending output data.
 	 */
-	void flushOutput(void);
+	virtual void flushOutput(void);
 
 	/**
 	 * Used to wait until all output has been sent.
 	 */
-	void waitOutput(void);
+	virtual void waitOutput(void);
 
 	/**
 	 * Used as the default destructor for ending serial I/O
@@ -378,7 +384,7 @@ public:
 	 *
 	 * @return string for error message.
 	 */
-	inline char *getErrorString(void)
+	inline const char *getErrorString(void)
 		{return errstr;};
 
 	/**
@@ -388,8 +394,7 @@ public:
 	 *
 	 * @return number of bytes used for buffering.
 	 */
-	inline int getBufferSize(void)
-		{return bufsize;};
+	virtual size_t getBufferSize(void);
 
 	/**
 	 * Get the status of pending operations.  This can be used to
@@ -427,12 +432,12 @@ public:
 class __EXPORT TTYStream : protected std::streambuf, public Serial, public std::iostream
 {
 private:
-	int doallocate();
-
 	friend TTYStream& crlf(TTYStream&);
 	friend TTYStream& lfcr(TTYStream&);
 
 protected:
+	size_t bufsize;
+
 	char *gbuf, *pbuf;
 	timeout_t timeout;
 
@@ -455,6 +460,21 @@ protected:
 	void endStream(void);
 
 	/**
+	 * Used to flush the input waiting queue.
+	 */
+	virtual void flushInput(void);
+
+	/**
+	 * Used to flush any pending output data.
+	 */
+	virtual void flushOutput(void);
+
+	/**
+	 * Used to wait until all output has been sent.
+	 */
+	virtual void waitOutput(void);
+
+	/**
 	 * This streambuf method is used to load the input buffer
 	 * through the established tty serial port.
 	 *
Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -p -r1.1.1.1 -r1.1.1.1.2.1
--- src/serial.cpp	23 Apr 2005 22:08:24 -0000	1.1.1.1
+++ src/serial.cpp	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
@@ -130,11 +130,7 @@ Serial::Serial(const char *fname)
 
 	open(fname);
 
-#ifdef	WIN32
-	if(dev == INVALID_HANDLE_VALUE)
-#else
-	if(dev < 0)
-#endif
+	if(!isOpen())
 	{
 		error(errOpenFailed);
 		return;
@@ -154,9 +150,7 @@ Serial::Serial(const char *fname)
     CommTimeOuts.WriteTotalTimeoutConstant = 1000;
 
     SetCommTimeouts(dev, &CommTimeOuts) ;
-
 #else
-	
 	if(!isatty(dev))
 	{
 		Serial::close();
@@ -206,7 +200,6 @@ void Serial::initConfig(void)
     attr->fParity = true;
 
     SetCommState(dev, attr);
-
 #else
 	struct termios *attr = (struct termios *)current;
 	struct termios *orig = (struct termios *)original;
@@ -275,34 +268,61 @@ void Serial::initSerial(void)
 
 void Serial::endSerial(void)
 {
+	if(isOpen())
+	{
+		if(original)
 #ifdef	WIN32
-	if(dev == INVALID_HANDLE_VALUE && original)
-		SetCommState(dev, (DCB *)original);
+			SetCommState(dev, (DCB *)original);
+#else
+			tcsetattr(dev, TCSANOW, (struct termios *)original);
+#endif
+		Serial::close();
+	}
 
 	if(current)
+	{
+#ifdef	WIN32
 		delete (DCB *)current;
+#else
+		delete (struct termios *)original;
+#endif
+		current = NULL;
+	}
 
 	if(original)
+	{
+#ifdef	WIN32
 		delete (DCB *)original;
 #else
-	if(dev < 0 && original)
-		tcsetattr(dev, TCSANOW, (struct termios *)original);
-
-	if(current)
-		delete (struct termios *)current;
-
-	if(original)
 		delete (struct termios *)original;
 #endif
-	Serial::close();
-
-	current = NULL;
-	original = NULL;
-
+		original = NULL;
+	}
 }
 
-Serial::Error Serial::error(Error err, char *errs)
+Serial::Error Serial::error(const Error err, const char *errs)
 {
+	static const char * errorStrings[ ] =
+	{
+		"errSuccess",
+		"errOpenNoTty",
+		"errOpenFailed",
+		"errSpeedInvalid",
+		"errFlowInvalid",
+		"errParityInvalid",
+		"errCharsizeInvalid",
+		"errStopbitsInvalid",
+		"errOptionInvalid",
+		"errResourceFailure",
+		"errOutput",
+		"errInput",
+		"errTimeout",
+		"errExtended"
+	};
+
+	if(!errs)
+		errs = errorStrings[ err ];
+
 	errid = err;
 	errstr = errs;
 	if(!err)
@@ -336,13 +356,13 @@ int Serial::setPacketInput(int size, uns
 	return 0;
 #else
 
-#ifdef	_PC_MAX_INPUT
-	int max = fpathconf(dev, _PC_MAX_INPUT);
-#else
-	int max = MAX_INPUT;
-#endif
+	size_t max = getBufferSize();
+
 	struct termios *attr = (struct termios *)current;
 
+	if(size < 0)
+		size = 1;
+
 	if(size > max)
 		size = max;
 
@@ -351,7 +371,7 @@ int Serial::setPacketInput(int size, uns
 	attr->c_cc[VTIME] = btimer;
 	attr->c_lflag &= ~ICANON;
 	tcsetattr(dev, TCSANOW, attr);
-	bufsize = size;
+	getsize = size;
 	return size;
 #endif
 }
@@ -362,7 +382,6 @@ int Serial::setLineInput(char newline, c
 	//	Still to be done......
 	return 0;
 #else
-
 	struct termios *attr = (struct termios *)current;
 	attr->c_cc[VMIN] = attr->c_cc[VTIME] = 0;
 	attr->c_cc[VEOL] = newline;
@@ -370,13 +389,12 @@ int Serial::setLineInput(char newline, c
 	attr->c_lflag |= ICANON;
 	tcsetattr(dev, TCSANOW, attr);
 #ifdef _PC_MAX_CANON
-	bufsize = fpathconf(dev, _PC_MAX_CANON);
+	getsize = fpathconf(dev, _PC_MAX_CANON);
 #else
-	bufsize = MAX_CANON;
+	getsize = MAX_CANON;
 #endif
-	return bufsize;
+	return getsize;
 #endif
-
 }
 
 void Serial::flushInput(void)
@@ -400,7 +418,7 @@ void Serial::flushOutput(void)
 void Serial::waitOutput(void)
 {
 #ifdef	WIN32
-
+	FlushFileBuffers(dev);
 #else
 	tcdrain(dev);
 #endif
@@ -410,7 +428,7 @@ Serial &Serial::operator=(const Serial &
 {
 	Serial::close();
 
-	if(ser.dev < 0)
+	if(!ser.isOpen())
 		return *this;
 
 #ifdef	WIN32
@@ -435,12 +453,11 @@ Serial &Serial::operator=(const Serial &
 
 void Serial::open(const char * fname)
 {
-
 #ifndef	WIN32
 	int cflags = O_RDWR | O_NDELAY;
 	dev = ::open(fname, cflags);
-	if(dev > -1)
-		initConfig();
+	if(dev < 0)
+		dev = INVALID_HANDLE_VALUE;
 #else
     // open COMM device
     dev = CreateFile(fname,
@@ -450,21 +467,20 @@ void Serial::open(const char * fname)
                     OPEN_EXISTING,
                     FILE_FLAG_OVERLAPPED | FILE_ATTRIBUTE_NORMAL | FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING,
                     NULL);
-	if(dev != INVALID_HANDLE_VALUE)
-		initConfig();
 #endif
+	if(isOpen())
+		initConfig();
 }
 
 #ifdef	WIN32
 int Serial::aRead(char * Data, const int Length)
 {
-
 	unsigned long	dwLength = 0, dwError, dwReadLength;
 	COMSTAT	cs;
     OVERLAPPED ol;
     
     // Return zero if handle is invalid
-    if(dev == INVALID_HANDLE_VALUE)
+    if(!isOpen())
         return 0;
 
     // Read max length or only what is available
@@ -552,29 +568,6 @@ void Serial::close()
 	dev = INVALID_HANDLE_VALUE;	
 }
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 /*
 const int iAsync::getTimeOuts(unsigned long & readTimeout, unsigned long & writeTimeout)
 {
@@ -687,14 +680,12 @@ Serial::Error Serial::setSpeed(unsigned 
 	}
 
 #ifdef	WIN32
-
 	DCB		* dcb = (DCB *)current;
     dcb->DCBlength = sizeof(DCB);
     GetCommState(dev, dcb);
 
     dcb->BaudRate = rate;
     SetCommState(dev, dcb) ;
-
 #else
 	struct termios *attr = (struct termios *)current;
 	cfsetispeed(attr, rate);
@@ -706,14 +697,23 @@ Serial::Error Serial::setSpeed(unsigned 
 
 Serial::Error Serial::setFlowControl(Flow flow)
 {
-#ifdef	WIN32
+	switch(flow)
+	{
+	case flowSoft:
+	case flowBoth:
+	case flowHard:
+	case flowNone:
+		break;
+	default:
+		return error(errFlowInvalid);
+	}
 
+#ifdef	WIN32
 	DCB * attr = (DCB *)current;
     attr->XonChar = ASCII_XON;
     attr->XoffChar = ASCII_XOFF;
     attr->XonLim = 100;
     attr->XoffLim = 100;
-
 	switch(flow)
 	{
 	case flowSoft:
@@ -727,18 +727,12 @@ Serial::Error Serial::setFlowControl(Flo
 		break;
 	case flowNone:
 		break;
-	default:
-		return error(errFlowInvalid);
 	}
-
 	SetCommState(dev, attr);
 #else
-
 	struct termios *attr = (struct termios *)current;
-	
 	attr->c_cflag &= ~CRTSCTS;
 	attr->c_iflag &= ~(IXON | IXANY | IXOFF);
- 
 	switch(flow)
 	{
 	case flowSoft:
@@ -751,20 +745,24 @@ Serial::Error Serial::setFlowControl(Flo
 		break;
 	case flowNone:
 		break;
-	default:
-		return error(errFlowInvalid);
 	}                                                                       
-	
 	tcsetattr(dev, TCSANOW, attr);
-
 #endif
 	return errSuccess;
 }
 
 Serial::Error Serial::setStopBits(int bits)
 {
-#ifdef	WIN32
+	switch(bits)
+	{
+	case 1:
+	case 2:
+		break;
+	default:
+		return error(errStopbitsInvalid);
+	}
 
+#ifdef	WIN32
 	DCB * attr = (DCB *)current;
 	switch(bits)
 	{
@@ -774,15 +772,11 @@ Serial::Error Serial::setStopBits(int bi
 	case 2:
 		attr->StopBits = TWOSTOPBITS;
 		break;
-	default:
-		return error(errStopbitsInvalid);
 	}
-
 	SetCommState(dev, attr);
 #else
 	struct termios *attr = (struct termios *)current;
 	attr->c_cflag &= ~CSTOPB;
-
 	switch(bits)
 	{
 	case 1:
@@ -790,8 +784,6 @@ Serial::Error Serial::setStopBits(int bi
 	case 2:
 		attr->c_cflag |= CSTOPB;
 		break;
-	default:
-		return error(errStopbitsInvalid);
 	}
 	tcsetattr(dev, TCSANOW, attr);
 #endif
@@ -800,25 +792,24 @@ Serial::Error Serial::setStopBits(int bi
 
 Serial::Error Serial::setCharBits(int bits)
 {
-#ifdef	WIN32
-
-	DCB * attr = (DCB *)current;
 	switch(bits)
 	{
 	case 5:
 	case 6:
 	case 7:
 	case 8:
-		attr->ByteSize = bits;
 		break;
 	default:
 		return error(errCharsizeInvalid);
 	}
+
+#ifdef	WIN32
+	DCB * attr = (DCB *)current;
+	attr->ByteSize = bits;
 	SetCommState(dev, attr);
 #else
 	struct termios *attr = (struct termios *)current;
 	attr->c_cflag &= ~CSIZE;
-
 	switch(bits)
 	{
 	case 5:
@@ -833,8 +824,6 @@ Serial::Error Serial::setCharBits(int bi
 	case 8:
 		attr->c_cflag |= CS8;
 		break;
-	default:
-		return error(errCharsizeInvalid);
 	}
 	tcsetattr(dev, TCSANOW, attr);
 #endif
@@ -843,8 +832,17 @@ Serial::Error Serial::setCharBits(int bi
 
 Serial::Error Serial::setParity(Parity parity)
 {
-#ifdef	WIN32
+	switch(parity)
+	{
+	case parityEven:
+	case parityOdd:
+	case parityNone:
+		break;
+	default:
+		return error(errParityInvalid);
+	}
 
+#ifdef	WIN32
 	DCB * attr = (DCB *)current;
 	switch(parity)
 	{
@@ -857,14 +855,11 @@ Serial::Error Serial::setParity(Parity p
 	case parityNone:
 		attr->Parity = NOPARITY;
 		break;
-	default:
-		return error(errParityInvalid);
 	}
 	SetCommState(dev, attr);
 #else
 	struct termios *attr = (struct termios *)current;
 	attr->c_cflag &= ~(PARENB | PARODD);
-
 	switch(parity)
 	{
 	case parityEven:
@@ -875,8 +870,6 @@ Serial::Error Serial::setParity(Parity p
 		break;
 	case parityNone:
 		break;
-	default:
-		return error(errParityInvalid);
 	}
 	tcsetattr(dev, TCSANOW, attr);
 #endif
@@ -920,6 +913,20 @@ void Serial::toggleDTR(timeout_t millise
 #endif
 }
 
+size_t Serial::getBufferSize(void)
+{
+	size_t maxsize;
+#ifdef _PC_MAX_INPUT
+	if(isOpen())
+		maxsize = fpathconf(dev, _PC_MAX_INPUT);
+	else
+		maxsize = pathconf("/dev/tty", _PC_MAX_INPUT);
+#else
+	maxsize = MAX_INPUT;
+#endif
+	return maxsize;
+}
+
 bool Serial::isPending(Pending pending, timeout_t timeout)
 {
 #ifdef	WIN32
@@ -992,7 +999,7 @@ bool Serial::isPending(Pending pending, 
 	switch(pending)
 	{
 	case pendingInput:
-		pfd.events = POLLIN;
+		pfd.events = POLLIN | POLLPRI;
 		break;
 	case pendingOutput:
 		pfd.events = POLLOUT;
@@ -1020,7 +1027,6 @@ bool Serial::isPending(Pending pending, 
 
 	if(pfd.revents & pfd.events)
 		return true;
-
 #else
 	struct timeval tv;
 	fd_set grp;
@@ -1080,7 +1086,7 @@ TTYStream::TTYStream(const char *filenam
 	gbuf = pbuf = NULL;
 	timeout = to;
 
-	if(INVALID_HANDLE_VALUE != dev)
+	if(isOpen())
 		allocate();
 }
 
@@ -1111,6 +1117,9 @@ void TTYStream::endStream(void)
 	if(bufsize)
 		sync();
 
+	setg(NULL, NULL, NULL);
+	setp(NULL, NULL);
+
 	if(gbuf)
 	{
 		delete[] gbuf;
@@ -1127,14 +1136,12 @@ void TTYStream::endStream(void)
 
 void TTYStream::allocate(void)
 {
-	if(INVALID_HANDLE_VALUE == dev)
+	if(!isOpen())
 		return;
 
-#ifdef _PC_MAX_INPUT
-	bufsize = fpathconf(dev, _PC_MAX_INPUT);
-#else
-	bufsize = MAX_INPUT;
-#endif
+	bufsize = getBufferSize();
+	if(!getsize)
+		getsize = bufsize;
 
 	gbuf = new char[bufsize];
 	pbuf = new char[bufsize];
@@ -1155,119 +1162,110 @@ void TTYStream::allocate(void)
 	setp(pbuf, pbuf + bufsize);
 }
 
-int TTYStream::doallocate()
+void TTYStream::flushInput(void)
 {
-	if(bufsize)
-		return 0;
-	
-	allocate();
-	return 1;
+	if(gbuf)
+		setg(gbuf, gbuf + bufsize, gbuf + bufsize);
+
+	Serial::flushInput();
 }
 
-void TTYStream::interactive(bool iflag)
+void TTYStream::flushOutput(void)
 {
-#ifdef	WIN32
-	if(dev == INVALID_HANDLE_VALUE)
-#else
-	if(dev < 0)
-#endif
-		return;
+	if(pbuf)
+		setp(pbuf, pbuf + bufsize);
 
-	if(bufsize >= 1)
-		endStream();
+	Serial::flushOutput();
+}
 
-	if(iflag)
-	{
-		// setting to unbuffered mode
+void TTYStream::waitOutput(void)
+{
+//	while(overflow(EOF) == EOF);
+	overflow(EOF);
 
-		bufsize = 1;
-		gbuf = new char[bufsize];
+	Serial::waitOutput();
+}
 
-#if !(defined(STLPORT) || defined(__KCC))
-#if defined(__GNUC__) && (__GNUC__ < 3)
-		setb(0,0);
-#endif 
-#endif
-		setg(gbuf, gbuf+bufsize, gbuf+bufsize);
-		setp(pbuf, pbuf);
+void TTYStream::interactive(bool iflag)
+{
+	if(!isOpen())
 		return;
-	}
 
-	if(bufsize < 2)
-		allocate();
+	// interactive is 1 else standard size
+	getsize = iflag ? 1 : getBufferSize();
 }
 
 int TTYStream::uflow(void)
 {
-	int rlen;
-	unsigned char ch;
+	int ch = underflow();
+
+	if(ch != EOF && gptr())
+		gbump(1);
+
+	return (unsigned char)ch;
+}
 
-	if(bufsize < 2)
+int TTYStream::underflow(void)
+{
+	ssize_t rlen;
+
+	if(!gptr())
 	{
-		if(timeout)
+		if(timeout && !Serial::isPending(pendingInput, timeout))
 		{
-			if(Serial::isPending(pendingInput, timeout))
-				rlen = aRead((char *)&ch, 1);
-			else
-				rlen = -1;
+			setstate(failbit);
+			error(errTimeout);
+			return EOF;
 		}
-		else
-			rlen = aRead((char *)&ch, 1);
+
+		unsigned char ch;
+
+		rlen = aRead((char *)&ch, 1);
 		if(rlen < 1)
 		{
 			if(rlen < 0)
-				clear(ios::failbit | rdstate());
+			{
+				setstate(failbit);
+				error(errInput);
+			}
 			return EOF;
 		}
 		return ch;
 	}
-	else
-	{
-		ch = underflow();
-		gbump(1);
-		return ch;
-	}
-}
-
-int TTYStream::underflow(void)
-{
-	ssize_t rlen = 1;
-
-	if(!gptr())
-		return EOF;
 
 	if(gptr() < egptr())
 		return (unsigned char)*gptr();
 
-	rlen = (ssize_t)((gbuf + bufsize) - eback());
 	if(timeout && !Serial::isPending(pendingInput, timeout))
-		rlen = -1;
-	else
-		rlen = aRead((char *)eback(), rlen);
+	{
+		setstate(failbit);
+		error(errTimeout);
+		return EOF;
+	}
 
+	if(getsize < 1)
+		return EOF;
+
+	rlen = aRead(gbuf, getsize);
 	if(rlen < 1)
 	{
 		if(rlen < 0)
 		{
-			clear(ios::failbit | rdstate());
+			setstate(failbit);
 			error(errInput);
 		}
 		return EOF;
 	}
 
-	setg(eback(), eback(), eback() + rlen);
+	setg(gbuf, gbuf, gbuf + rlen);
 	return (unsigned char) *gptr();
 }
 
 int TTYStream::sync(void)
 {
-	if(bufsize > 1 && pbase() && ((pptr() - pbase()) > 0))
-	{
-		overflow(0);
-		waitOutput();
-		setp(pbuf, pbuf + bufsize);
-	}
-	setg(gbuf, gbuf + bufsize, gbuf + bufsize);
+	waitOutput();
+	flushOutput();
+	flushInput();
 	return 0;
 }
 
@@ -1276,7 +1274,7 @@ int TTYStream::overflow(int c)
 	unsigned char ch;
 	ssize_t rlen, req;
 
-	if(bufsize < 2)
+	if(!pbase())
 	{
 		if(c == EOF)
 			return 0;
@@ -1286,15 +1284,15 @@ int TTYStream::overflow(int c)
 		if(rlen < 1)
 		{
 			if(rlen < 0)
-				clear(ios::failbit | rdstate());
+			{
+				setstate(failbit);
+				error(errOutput);
+			}
 			return EOF;
 		}
-		else
-			return c;
-	}
 
-	if(!pbase())
-		return EOF;
+		return c;
+	}
 
 	req = (ssize_t)(pptr() - pbase());
 	if(req)
@@ -1303,31 +1301,41 @@ int TTYStream::overflow(int c)
 		if(rlen < 1)
 		{
 			if(rlen < 0)
-				clear(ios::failbit | rdstate());
+			{
+				setstate(failbit);
+				error(errOutput);
+			}
 			return EOF;
 		}
 		req -= rlen;
 	}
-	
+
 	if(req)
 //		memmove(pptr(), pptr() + rlen, req);
 		memmove(pbuf, pbuf + rlen, req);
 	setp(pbuf + req, pbuf + bufsize);
 
-	if(c != EOF)
-	{
-		*pptr() = (unsigned char)c;
-		pbump(1);
-	}
+	if(c == EOF)
+		return 0;
+
+	*pptr() = (unsigned char)c;
+	pbump(1);
+
 	return c;
 }
 
 bool TTYStream::isPending(Pending pending, timeout_t timer)
 {
-//	if(pending == pendingInput && in_avail())
-//		return true;
-//	else if(pending == pendingOutput)
-//		flush();
+	switch ( pending )
+	{
+	case pendingInput:
+		if(in_avail())
+			return true;
+		break;
+	case pendingOutput:
+		flush();
+		break;
+	}
 
 	return Serial::isPending(pending, timer);
 }
@@ -1352,11 +1360,7 @@ TTYStream()
 
 void ttystream::close(void)
 {
-#ifdef	WIN32
-	if (INVALID_HANDLE_VALUE == dev)
-#else
-	if(dev < 0)
-#endif
+	if (!isOpen())
 		return;
 
 	endStream();
@@ -1372,7 +1376,7 @@ void ttystream::open(const char *name)
 	size_t namelen;
 	long opt;
 
-	if (INVALID_HANDLE_VALUE != dev)
+	if (isOpen())
 	{
 		restore();
 		close();
@@ -1408,7 +1412,7 @@ void ttystream::open(const char *name)
 	
 	Serial::open(pathname);
 
-	if(INVALID_HANDLE_VALUE == dev)
+	if(!isOpen())
 	{
 		error(errOpenFailed);
 		return;
@@ -1492,6 +1496,7 @@ Thread(pri, stack), TTYStream(filename)
 TTYSession::~TTYSession()
 {
 	terminate();
+	endStream();
 	endSerial();
 }
 
@@ -1508,11 +1513,7 @@ detect_disconnect(true)
 	next = prev = NULL;
 	service = NULL;
 
-#ifdef	WIN32
-	if(INVALID_HANDLE_VALUE != dev)
-#else
-	if(dev > -1)
-#endif
+	if(isOpen())
 	{
 		setError(false);
 		service = svc;



From MAILER-DAEMON Wed Sep 07 15:25:41 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1ED5YD-0000nF-H8
	for mharc-bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:25:41 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1ED5YA-0000mO-P4
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:25:38 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1ED5YA-0000m4-1G
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:25:38 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1ED5Ue-0007uo-Rt
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:22:00 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1ED5C7-0003yv-EB
	for bug-commoncpp@gnu.org; Wed, 07 Sep 2005 15:02:51 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Wed, 7 Sep 2005 11:58:25 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "David Sugar" <dyfet@ostel.com>
Date: Wed, 7 Sep 2005 11:58:25 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBEEHAEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Serial & TTYStream Buffering Improvements
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Sep 2005 19:25:39 -0000

Hi David,

The Serial & TTYStream classes as written won't operate
very well except in canonical line mode.  My project is
interactive and/or packet oriented since I'm doing real
time data acquisition.

The problems I see in TTYStream are:

1. Method "underflow" doesn't support the unbuffered case.

2. Method "overflow" doesn't support buffer drain without
generating spurious output i.e. a zero byte.

3. Output buffer size synchronized to input buffer size
is problematic for my application.

4. Method "getBufferSize" as implemented not useful for
external buffer allocation in all cases.

5. Methods "flushInput" & "flushOutput" not virtual so
data held by "streambuf" is not flushed properly.

6. Method "isPending" while virtual and overridden didn't
consider data held by "streambuf".

I'm committing a patch that works in interactive mode as
a work in progress.  I'll test packet mode next.  I'll
test line input mode but not extensively.

Please review the patch which follows in a separate message
if serial ports are part of your work.  The above issue list
might not be complete when compared to submitted patch.

Best regards,

Conrad Pino




From MAILER-DAEMON Fri Sep 09 16:09:12 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EDp9g-0005FD-Jd
	for mharc-bug-commoncpp@gnu.org; Fri, 09 Sep 2005 16:07:25 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EDp9W-000583-8I
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 16:07:15 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EDp9O-00051V-Gk
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 16:07:07 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EDp9L-0004xW-DF
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 16:07:03 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EDp5Z-0000J5-MQ
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 16:03:10 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Fri, 9 Sep 2005 13:03:06 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Fri, 9 Sep 2005 13:03:06 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBKEMHEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Importance: Normal
Subject: Patch: Serial Port "overflow" Method Improved
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Sep 2005 20:07:17 -0000

I've concluded the "overflow" method should iterate the write
buffer process until the entire buffer is written or a write
fails.  A write failure carefully preserves unwritten data so
the next call to "overflow" can resume the write operation.

This patch modifies the following files:

	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0051" and "dev-bcb6-arm-0052".

Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -u -p -r1.1.1.1.2.1 -r1.1.1.1.2.2
--- src/serial.cpp	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
+++ src/serial.cpp	9 Sep 2005 18:46:36 -0000	1.1.1.1.2.2
@@ -1180,7 +1180,6 @@ void TTYStream::flushOutput(void)
 
 void TTYStream::waitOutput(void)
 {
-//	while(overflow(EOF) == EOF);
 	overflow(EOF);
 
 	Serial::waitOutput();
@@ -1272,7 +1271,7 @@ int TTYStream::sync(void)
 int TTYStream::overflow(int c)
 {
 	unsigned char ch;
-	ssize_t rlen, req;
+	ssize_t plen, poff, wlen;
 
 	if(!pbase())
 	{
@@ -1280,10 +1279,10 @@ int TTYStream::overflow(int c)
 			return 0;
 
 		ch = (unsigned char)(c);
-		rlen = aWrite((char *)&ch, 1);
-		if(rlen < 1)
+		wlen = aWrite((char *)&ch, 1);
+		if(wlen < 1)
 		{
-			if(rlen < 0)
+			if(wlen < 0)
 			{
 				setstate(failbit);
 				error(errOutput);
@@ -1294,26 +1293,31 @@ int TTYStream::overflow(int c)
 		return c;
 	}
 
-	req = (ssize_t)(pptr() - pbase());
-	if(req)
+	for(plen = (ssize_t)(pptr() - pbase()), poff = 0; plen > 0;)
 	{
-		rlen = aWrite((char *)pbase(), req);
-		if(rlen < 1)
+		wlen = aWrite((char *)pbase() + poff, plen);
+		if(wlen < 1)
 		{
-			if(rlen < 0)
+			if(wlen < 0)
 			{
 				setstate(failbit);
 				error(errOutput);
 			}
+
+			// poff written, plen unwritten
+			if(poff > 0 && plen > 0)
+			{
+				memmove(pbuf, pbuf + poff, plen);
+				setp(pbuf + plen, pbuf + bufsize);
+			}
+
 			return EOF;
 		}
-		req -= rlen;
+		plen -= wlen;
+		poff += wlen;
 	}
 
-	if(req)
-//		memmove(pptr(), pptr() + rlen, req);
-		memmove(pbuf, pbuf + rlen, req);
-	setp(pbuf + req, pbuf + bufsize);
+	setp(pbuf, pbuf + bufsize);
 
 	if(c == EOF)
 		return 0;



From MAILER-DAEMON Fri Sep 09 18:06:44 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EDr1A-0005zo-7Y
	for mharc-bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:06:44 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EDr18-0005zH-JD
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:06:42 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EDr15-0005xJ-FK
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:06:41 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EDr14-0005vy-SR
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:06:38 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EDr0O-0001Q8-3n
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:05:56 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Fri, 9 Sep 2005 15:05:51 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Fri, 9 Sep 2005 15:05:51 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBCEMJEPAB.Conrad@Pino.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 1 (Highest)
X-MSMail-Priority: High
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Importance: High
Subject: Bug: WIN32 "aRead" Buffer Overflow When "Length" < "cs.cbInQue"
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Sep 2005 22:06:43 -0000

The WIN32 "aRead" methods *always* reads "cs.cbInQue" bytes.
A buffer overflow occurs when the "Length" argument is less
than the "cs.cbInQue" value.




From MAILER-DAEMON Fri Sep 09 18:35:38 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EDrT7-0003XI-K3
	for mharc-bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:35:37 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EDrT3-0003UV-FY
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:35:33 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EDrT0-0003Sk-TO
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:35:31 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EDrSz-0003Qa-4Z
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:35:29 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EDrOx-00037U-LZ
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:31:20 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Fri, 9 Sep 2005 15:31:16 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Fri, 9 Sep 2005 15:31:16 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBCENAEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Importance: Normal
Subject: Patch: WIN32 "aRead" Buffer Overflow Fix & Optimize WIN32 "aRead" &
	"aWrite"
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Sep 2005 22:35:35 -0000

This patch fixes a buffer overflow in WIN32 "aRead" and implements
a zero request length optimization in WIN32 "aRead" and "aWrite".

This patch modifies the following files:

	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0052" and "dev-bcb6-arm-0053".

Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1.2.2
retrieving revision 1.1.1.1.2.3
diff -u -p -r1.1.1.1.2.2 -r1.1.1.1.2.3
--- src/serial.cpp	9 Sep 2005 18:46:36 -0000	1.1.1.1.2.2
+++ src/serial.cpp	9 Sep 2005 22:29:29 -0000	1.1.1.1.2.3
@@ -475,75 +475,74 @@ void Serial::open(const char * fname)
 #ifdef	WIN32
 int Serial::aRead(char * Data, const int Length)
 {
-	unsigned long	dwLength = 0, dwError, dwReadLength;
+	DWORD	dwActualLength = 0, dwError = 0, dwReadLength = Length;
 	COMSTAT	cs;
-    OVERLAPPED ol;
-    
-    // Return zero if handle is invalid
-    if(!isOpen())
-        return 0;
+	OVERLAPPED ol;
 
-    // Read max length or only what is available
-    ClearCommError(dev, &dwError, &cs);
+	// Return zero if handle is invalid
+	if(!isOpen())
+		return 0;
 
-    // If not requiring an exact byte count, get whatever is available
-    if(dwLength > (int)cs.cbInQue)
-        dwReadLength = cs.cbInQue;
-    else
-        dwReadLength = Length;
+	// Read max length or only what is available
+	ClearCommError(dev, &dwError, &cs);
+
+	// If not requiring an exact byte count, get whatever is available
+	if(dwReadLength > cs.cbInQue)
+		dwReadLength = cs.cbInQue;
 
-    memset(&ol, 0, sizeof(OVERLAPPED));
-    ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
+	if(dwReadLength > 0)
+	{
+		memset(&ol, 0, sizeof(OVERLAPPED));
+		ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
     
-    if(dwReadLength > 0)
-    {
-        if(ReadFile(dev, Data, dwReadLength, &dwLength, &ol) == FALSE) 
-        {
-            if(GetLastError() == ERROR_IO_PENDING)
-            {
-                WaitForSingleObject(ol.hEvent, INFINITE);
-                GetOverlappedResult(dev, &ol, &dwLength, TRUE);
-            }
-            else
-                ClearCommError(dev, &dwError, &cs);
-        }
+			if(ReadFile(dev, Data, dwReadLength, &dwActualLength, &ol) == FALSE)
+			{
+				if(GetLastError() == ERROR_IO_PENDING)
+				{
+					WaitForSingleObject(ol.hEvent, INFINITE);
+					GetOverlappedResult(dev, &ol, &dwActualLength, TRUE);
+				}
+				else
+					ClearCommError(dev, &dwError, &cs);
+			}
+
+		if(ol.hEvent != INVALID_HANDLE_VALUE)
+			CloseHandle(ol.hEvent);
     }
-        
-    if(ol.hEvent != INVALID_HANDLE_VALUE)
-        CloseHandle(ol.hEvent);
-        
-	return dwLength;
+
+	return dwActualLength;
 }
 
 int Serial::aWrite(const char * Data, const int Length)
 {
+	DWORD	dwActualLength = 0, dwError = 0, dwWriteLength = Length;
 	COMSTAT	cs;
-	unsigned long dwError = 0;
-    OVERLAPPED ol;
+	OVERLAPPED ol;
 
-	// Clear the com port of any error condition prior to read
+	// Clear the com port of any error condition prior to write
 	ClearCommError(dev, &dwError, &cs);
 
-	unsigned long retSize = 0;
-    
-    memset(&ol, 0, sizeof(OVERLAPPED));
-    ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
-	
-    if(WriteFile(dev, Data, Length, &retSize, &ol) == FALSE)
-    {
-        if(GetLastError() == ERROR_IO_PENDING)
-        {
-            WaitForSingleObject(ol.hEvent, INFINITE);
-            GetOverlappedResult(dev, &ol, &retSize, TRUE);
-        }
-        else
-            ClearCommError(dev, &dwError, &cs);
-    }
-    
-    if(ol.hEvent != INVALID_HANDLE_VALUE)
-        CloseHandle(ol.hEvent);
-        
-	return retSize;
+	if(dwWriteLength > 0)
+	{
+		memset(&ol, 0, sizeof(OVERLAPPED));
+		ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
+
+		if(WriteFile(dev, Data, dwWriteLength, &dwActualLength, &ol) == FALSE)
+		{
+			if(GetLastError() == ERROR_IO_PENDING)
+			{
+				WaitForSingleObject(ol.hEvent, INFINITE);
+				GetOverlappedResult(dev, &ol, &dwActualLength, TRUE);
+			}
+			else
+				ClearCommError(dev, &dwError, &cs);
+		}
+
+		if(ol.hEvent != INVALID_HANDLE_VALUE)
+			CloseHandle(ol.hEvent);
+	}
+
+	return dwActualLength;
 }
 #else
 int Serial::aRead(char *Data, const int Length)



From MAILER-DAEMON Fri Sep 09 18:53:18 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EDrkE-0008Dt-7n
	for mharc-bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:53:18 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EDrk2-00089O-F8
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:53:07 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EDrjv-00085v-ND
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:53:00 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EDrjv-00080x-LJ
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:52:59 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EDrcQ-0004LM-7q
	for bug-commoncpp@gnu.org; Fri, 09 Sep 2005 18:45:14 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Fri, 9 Sep 2005 15:45:10 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "David Sugar" <dyfet@ostel.com>
Date: Fri, 9 Sep 2005 15:45:10 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBCENBEPAB.Conrad@Pino.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 1 (Highest)
X-MSMail-Priority: High
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Importance: High
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Serial Design Issue: "Serial::isPending" Semantics
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Sep 2005 22:53:09 -0000

Hi David,
=======================================================================
The "Serial::isPending( pendingInput )" implementation looks clean.

A "true" return means data is available for reading on all platforms.
=======================================================================
The "Serial::isPending( pendingOutput )" implementation is problematic.

A "true" return on WIN32 platform means either:

	data was written but the write is NOT complete: 0 != cs.cbOutQue

	transmit buffer is empty

A "true" return on UNIX platform means either:

	device file handle is ready for writing

The second WIN32 case and UNIX case are sufficiently consistent to be
useful to thread that needs to know when a write can happen.

The first WIN32 case is inconsistent with other two cases and isn't
useful to a thread that wants to keep data moving whenever possible.
I recommend removing this case altogether.
=======================================================================
The "Serial::isPending( pendingError )" implementation is inconsistent.

A "true" return on UNIX platform means an exceptional conditions or a
disconnect has occurred.

The WIN32 platform *never* returns true.  Worse errors on WIN32 are
often cleared without being recorded which effectively ignores them.
Clearly WIN32 not supported well in this class family.  I believe the
documentation should state the limitations better.
=======================================================================
Best regards,

Conrad Pino




From MAILER-DAEMON Sun Sep 11 01:02:11 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EEJyj-0004gV-Lj
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:09 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EEJyh-0004dd-4b
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:07 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EEJyf-0004cQ-7w
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:05 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EEJyf-0004au-25
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:05 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EEJwD-0001AY-1b
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 00:59:33 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Sat, 10 Sep 2005 21:59:11 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Sat, 10 Sep 2005 21:59:11 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBCEPGEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Fix Indentation Error In WIN32 "aRead" Method
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Sep 2005 05:02:08 -0000

This patch depends upon patch committed on "dev-bcb6-arm" branch
between revision tags "dev-bcb6-arm-0052" and "dev-bcb6-arm-0053".

This patch modifies the following files:

	ChangeLog
	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0053" and "dev-bcb6-arm-0054".

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/ChangeLog,v
retrieving revision 1.18.2.3
retrieving revision 1.18.2.4
diff -u -p -r1.18.2.3 -r1.18.2.4
--- ChangeLog	11 Sep 2005 04:17:55 -0000	1.18.2.3
+++ ChangeLog	11 Sep 2005 04:19:18 -0000	1.18.2.4
@@ -1,4 +1,5 @@
 From Common C++ 1.3.18 to 1.3.19
+- fix indentation error in WIN32 aRead method
 - fix WIN32 aRead buffer overflow when Length < available data
 - optimize WIN32 aRead and aWrite method zero length request cases
 - TTYStream::overflow method writes *all* buffered output when passed EOF
Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1.2.3
retrieving revision 1.1.1.1.2.4
diff -u -p -r1.1.1.1.2.3 -r1.1.1.1.2.4
--- src/serial.cpp	9 Sep 2005 22:29:29 -0000	1.1.1.1.2.3
+++ src/serial.cpp	11 Sep 2005 04:04:56 -0000	1.1.1.1.2.4
@@ -495,16 +495,16 @@ int Serial::aRead(char * Data, const int
 		memset(&ol, 0, sizeof(OVERLAPPED));
 		ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
     
-			if(ReadFile(dev, Data, dwReadLength, &dwActualLength, &ol) == FALSE)
+		if(ReadFile(dev, Data, dwReadLength, &dwActualLength, &ol) == FALSE)
+		{
+			if(GetLastError() == ERROR_IO_PENDING)
 			{
-				if(GetLastError() == ERROR_IO_PENDING)
-				{
-					WaitForSingleObject(ol.hEvent, INFINITE);
-					GetOverlappedResult(dev, &ol, &dwActualLength, TRUE);
-				}
-				else
-					ClearCommError(dev, &dwError, &cs);
+				WaitForSingleObject(ol.hEvent, INFINITE);
+				GetOverlappedResult(dev, &ol, &dwActualLength, TRUE);
 			}
+			else
+				ClearCommError(dev, &dwError, &cs);
+		}
 
 		if(ol.hEvent != INVALID_HANDLE_VALUE)
 			CloseHandle(ol.hEvent);



From MAILER-DAEMON Sun Sep 11 01:02:58 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EEJzV-0004yp-If
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:58 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EEJz7-0004nh-0P
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:33 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EEJz3-0004lR-Cg
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:29 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EEJz2-0004au-RX
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:02:28 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EEJdY-0000i8-VW
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 00:40:17 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Sat, 10 Sep 2005 21:39:54 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Sat, 10 Sep 2005 21:39:54 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBCEPFEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Bug: Win32 Platform SDK Says CreateEvent Returns NULL On Failure
	Not INVALID_HANDLE_VALUE
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Sep 2005 05:02:38 -0000

http://msdn.microsoft.com/library/en-us/dllproc/base/createevent.asp




From MAILER-DAEMON Sun Sep 11 01:04:28 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EEK0y-00068i-78
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:04:28 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EEK0v-00068H-GJ
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:04:25 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EEK0u-00067n-LV
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:04:25 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EEK0u-00067b-Gr
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:04:24 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EEK0X-0001gF-GI
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 01:04:02 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Sat, 10 Sep 2005 22:03:40 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Sat, 10 Sep 2005 22:03:40 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBAEPHEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Fix Win32 CreateEvent returns NULL on failure,
	not INVALID_HANDLE_VALUE
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Sep 2005 05:04:26 -0000

This patch depends upon patches committed on "dev-bcb6-arm" branch
between revision tags "dev-bcb6-arm-0052" and "dev-bcb6-arm-0054".

This patch modifies the following files:

	ChangeLog
	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0054" and "dev-bcb6-arm-0055".

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/ChangeLog,v
retrieving revision 1.18.2.4
retrieving revision 1.18.2.5
diff -u -p -r1.18.2.4 -r1.18.2.5
--- ChangeLog	11 Sep 2005 04:19:18 -0000	1.18.2.4
+++ ChangeLog	11 Sep 2005 04:45:01 -0000	1.18.2.5
@@ -1,4 +1,5 @@
 From Common C++ 1.3.18 to 1.3.19
+- fix Win32 CreateEvent returns NULL on failure, not INVALID_HANDLE_VALUE
 - fix indentation error in WIN32 aRead method
 - fix WIN32 aRead buffer overflow when Length < available data
 - optimize WIN32 aRead and aWrite method zero length request cases
Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1.2.4
retrieving revision 1.1.1.1.2.5
diff -u -p -r1.1.1.1.2.4 -r1.1.1.1.2.5
--- src/serial.cpp	11 Sep 2005 04:04:56 -0000	1.1.1.1.2.4
+++ src/serial.cpp	11 Sep 2005 04:45:01 -0000	1.1.1.1.2.5
@@ -473,6 +473,24 @@ void Serial::open(const char * fname)
 }
 
 #ifdef	WIN32
+static bool overlapped_init(LPOVERLAPPED overlapped)
+{
+	memset(overlapped, 0, sizeof *overlapped);
+	overlapped->hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
+
+	return overlapped->hEvent != NULL;
+}
+
+static void overlapped_fini(LPOVERLAPPED overlapped)
+{
+	if(overlapped->hEvent != NULL)
+	{
+		CloseHandle(overlapped->hEvent);
+
+		overlapped->hEvent = NULL;
+	}
+}
+
 int Serial::aRead(char * Data, const int Length)
 {
 	DWORD	dwActualLength = 0, dwError = 0, dwReadLength = Length;
@@ -490,11 +508,8 @@ int Serial::aRead(char * Data, const int
 	if(dwReadLength > cs.cbInQue)
 		dwReadLength = cs.cbInQue;
 
-	if(dwReadLength > 0)
+	if(dwReadLength > 0 && overlapped_init(&ol))
 	{
-		memset(&ol, 0, sizeof(OVERLAPPED));
-		ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
-    
 		if(ReadFile(dev, Data, dwReadLength, &dwActualLength, &ol) == FALSE)
 		{
 			if(GetLastError() == ERROR_IO_PENDING)
@@ -506,8 +521,7 @@ int Serial::aRead(char * Data, const int
 				ClearCommError(dev, &dwError, &cs);
 		}
 
-		if(ol.hEvent != INVALID_HANDLE_VALUE)
-			CloseHandle(ol.hEvent);
+		overlapped_fini(&ol);
     }
 
 	return dwActualLength;
@@ -522,11 +536,8 @@ int Serial::aWrite(const char * Data, co
 	// Clear the com port of any error condition prior to write
 	ClearCommError(dev, &dwError, &cs);
 
-	if(dwWriteLength > 0)
+	if(dwWriteLength > 0 && overlapped_init(&ol))
 	{
-		memset(&ol, 0, sizeof(OVERLAPPED));
-		ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
-
 		if(WriteFile(dev, Data, dwWriteLength, &dwActualLength, &ol) == FALSE)
 		{
 			if(GetLastError() == ERROR_IO_PENDING)
@@ -538,8 +549,7 @@ int Serial::aWrite(const char * Data, co
 				ClearCommError(dev, &dwError, &cs);
 		}
 
-		if(ol.hEvent != INVALID_HANDLE_VALUE)
-			CloseHandle(ol.hEvent);
+		overlapped_fini(&ol);
 	}
 
 	return dwActualLength;
@@ -954,8 +964,7 @@ bool Serial::isPending(Pending pending, 
         DWORD dwMask;
         BOOL suc;
                 
-        memset(&ol, 0, sizeof(OVERLAPPED));
-        ol.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
+        overlapped_init(&ol);
 
     	if(pending == pendingInput)
             dwMask = EV_RXCHAR;
@@ -978,8 +987,7 @@ bool Serial::isPending(Pending pending, 
                 ClearCommError(dev, &dwError, &cs);
         }
 	
-        if(ol.hEvent != INVALID_HANDLE_VALUE)
-            CloseHandle(ol.hEvent);
+        overlapped_fini(&ol);
 
         Thread::exitCancel(save);
 		if(suc == FALSE)



From MAILER-DAEMON Sun Sep 11 04:00:58 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EEMlj-0000TY-8i
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Sep 2005 04:00:56 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EEMla-0000R9-Kx
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 04:00:47 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EEMlW-0000Q4-5y
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 04:00:43 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EEMlS-0000Ls-B8
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 04:00:39 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EEMlm-0001WI-0M
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 04:00:58 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Sun, 11 Sep 2005 01:00:34 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Sun, 11 Sep 2005 01:00:34 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBAEPIEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Add Serial::AnyPending enumeration and Serial::anyPending
	method
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Sep 2005 08:00:52 -0000

This patch depends upon patches committed on "dev-bcb6-arm" branch
between revision tags "dev-bcb6-arm-0052" and "dev-bcb6-arm-0055".

This patch modifies the following files:

	ChangeLog
	include/cc++/serial.h
	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0055" and "dev-bcb6-arm-0056".

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/ChangeLog,v
retrieving revision 1.18.2.5
retrieving revision 1.18.2.6
diff -u -p -r1.18.2.5 -r1.18.2.6
--- ChangeLog	11 Sep 2005 04:45:01 -0000	1.18.2.5
+++ ChangeLog	11 Sep 2005 07:04:20 -0000	1.18.2.6
@@ -1,4 +1,5 @@
 From Common C++ 1.3.18 to 1.3.19
+- add Serial::AnyPending enumeration and Serial::anyPending method
 - fix Win32 CreateEvent returns NULL on failure, not INVALID_HANDLE_VALUE
 - fix indentation error in WIN32 aRead method
 - fix WIN32 aRead buffer overflow when Length < available data
Index: include/cc++/serial.h
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/include/cc++/serial.h,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -u -p -r1.1.1.1.2.1 -r1.1.1.1.2.2
--- include/cc++/serial.h	7 Sep 2005 19:01:20 -0000	1.1.1.1.2.1
+++ include/cc++/serial.h	11 Sep 2005 07:04:20 -0000	1.1.1.1.2.2
@@ -141,6 +141,25 @@ public:
 	};
 	typedef enum Pending Pending;
 
+	enum AnyPending
+	{
+		// 1 taken 0 at a time
+		anyPendingNone              = 0,
+		// 3 taken 1 at a time
+		anyPendingInput             = 1 << pendingInput,
+		anyPendingOutput            = 1 << pendingOutput,
+		anyPendingError             = 1 << pendingError,
+		// 3 taken 2 at a time
+		anyPendingInputOutput       = anyPendingInput  |  anyPendingOutput,
+		anyPendingInputError        = anyPendingInput  |  anyPendingError,
+		anyPendingOutputError       = anyPendingOutput |  anyPendingError,
+		// 1 taken 3 at a time
+		anyPendingInputOutputError  = anyPendingInput  |  anyPendingOutput  |  anyPendingError,
+		// synonyms
+		anyPendingAll               = anyPendingInputOutputError
+	};
+	typedef enum AnyPending AnyPending;
+
 private:
 	Error errid;
 	const char *errstr;
@@ -397,6 +416,17 @@ public:
 	virtual size_t getBufferSize(void);
 
 	/**
+	 * Get the status of specified pending operations.  This can be used to
+	 * examine if input is waiting, if output is ready or if an error has
+	 * occured on the serial device.
+	 *
+	 * @return AnyPending enumeration value.
+	 * @param pendingMask check or checks to perform.
+	 * @param timeout in milliseconds.
+	 */
+	virtual AnyPending anyPending(const AnyPending pendingMask, const timeout_t timeout = TIMEOUT_INF);
+
+	/**
 	 * Get the status of pending operations.  This can be used to
 	 * examine if input or output is waiting, or if an error has
 	 * occured on the serial device.
Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1.2.5
retrieving revision 1.1.1.1.2.6
diff -u -p -r1.1.1.1.2.5 -r1.1.1.1.2.6
--- src/serial.cpp	11 Sep 2005 04:45:01 -0000	1.1.1.1.2.5
+++ src/serial.cpp	11 Sep 2005 07:04:20 -0000	1.1.1.1.2.6
@@ -936,6 +936,226 @@ size_t Serial::getBufferSize(void)
 	return maxsize;
 }
 
+#if !defined(WIN32) && !defined(HAVE_POLL)
+static fd_set *fd_set_init(	fd_set *pfd_set, const HANDLE dev,
+							const Serial::AnyPending pendingMask,
+							const Serial::AnyPending pendingSelect
+							)
+{
+	if(pendingMask & pendingSelect)
+	{
+		FD_ZERO(pfd_set); FD_SET(dev, pfd_set);
+		return pfd_set;
+	}
+
+	return NULL;
+}
+#endif // !defined(WIN32) && !defined(HAVE_POLL)
+
+Serial::AnyPending Serial::anyPending(const AnyPending pendingMask, const timeout_t timeout)
+{
+	if(pendingMask == anyPendingNone)
+		return anyPendingNone;
+
+	int isPending = anyPendingNone;
+
+#ifdef	WIN32
+	static const DWORD dwErrorMask = CE_FRAME | CE_IOE | CE_OVERRUN | CE_RXOVER | CE_RXPARITY | CE_TXFULL;
+	DWORD	dwError;
+	COMSTAT	cs;
+
+	ClearCommError(dev, &dwError, &cs);
+
+	if(dwError & dwErrorMask)
+		isPending |= anyPendingError;
+
+	if(cs.cbInQue)
+		isPending |= anyPendingInput;
+
+	if	(
+			((isPending & pendingMask) == anyPendingNone)
+		||
+			((pendingMask & anyPendingOutput) && (timeout == 0))
+		)
+	{
+		OVERLAPPED ol;
+		DWORD dwLastError, dwCommMask, dwCommMaskSaved, dwCommEvent = 0;
+		BOOL restoreMask;
+
+		dwCommMask = 0;
+		if(pendingMask & anyPendingError)
+			dwCommMask |= EV_ERR;
+		if(pendingMask & anyPendingInput)
+			dwCommMask |= EV_RXCHAR | EV_RXFLAG;
+		if(pendingMask & anyPendingOutput)
+			dwCommMask |= EV_TXEMPTY;
+
+		Thread::Cancel save = Thread::enterCancel();
+
+		if(! overlapped_init(&ol))
+			dwLastError = GetLastError();
+		else
+		if(! (restoreMask = GetCommMask(dev, &dwCommMaskSaved)))
+			dwLastError = GetLastError();
+		else
+		if(! SetCommMask(dev, dwCommMask))
+			dwLastError = GetLastError();
+		else // let's wait for event or timeout
+		if(! WaitCommEvent(dev, &dwCommEvent, &ol))
+		{
+			dwLastError = GetLastError();
+
+			if(dwLastError == ERROR_IO_PENDING)
+			{
+				DWORD dwActualLength;
+
+				dwError = WaitForSingleObject(ol.hEvent, timeout);
+				switch(dwError)
+				{
+				case WAIT_OBJECT_0:
+					// dwCommEvent is valid only after GetOverlappedResult succeeds
+					if(GetOverlappedResult(dev, &ol, &dwActualLength, TRUE))
+						dwLastError = NO_ERROR;
+					else
+						dwLastError = GetLastError();
+					break;
+
+				case WAIT_ABANDONED:
+				case WAIT_TIMEOUT:
+					dwLastError = ERROR_TIMEOUT;
+					CancelIo(dev);
+					break;
+
+				case WAIT_FAILED:
+					dwLastError = GetLastError();
+					CancelIo(dev);
+					break;
+
+				default:
+					dwLastError = ~NO_ERROR;
+					CancelIo(dev);
+				}
+			}
+		}
+		else
+			dwLastError = NO_ERROR;
+
+		if(restoreMask)
+			SetCommMask(dev, dwCommMaskSaved);
+
+		overlapped_fini(&ol);
+
+		switch(dwLastError)
+		{
+		case NO_ERROR:
+
+			if(dwCommEvent & EV_ERR)
+				isPending |= anyPendingError;
+
+			if(dwCommEvent & (EV_RXCHAR | EV_RXFLAG))
+				isPending |= anyPendingInput;
+
+			if(dwCommEvent & EV_TXEMPTY)
+				isPending |= anyPendingOutput;
+
+			break;
+
+		case ERROR_TIMEOUT:
+			break;
+
+		default:
+			isPending |= anyPendingError;
+		}
+
+		ClearCommError(dev, &dwError, &cs);
+
+		if(dwError & dwErrorMask)
+			isPending |= anyPendingError;
+
+		if(cs.cbInQue)
+			isPending |= anyPendingInput;
+
+		Thread::exitCancel(save);
+	}
+#else	//	WIN32
+
+	int status;
+#ifdef HAVE_POLL
+	struct pollfd pfd;
+	int polltimeout;
+
+	if(timeout == TIMEOUT_INF)
+		polltimeout = -1;
+	else
+		polltimeout = timeout;
+
+	do {
+		pfd.fd = dev;
+		pfd.revents = 0;
+		pfd.events = 0;
+		if(pendingMask & anyPendingError)
+			pfd.events |= POLLERR | POLLHUP;
+		if(pendingMask & anyPendingInput)
+			pfd.events |= POLLIN | POLLPRI;
+		if(pendingMask & anyPendingOutput)
+			pfd.events |= POLLOUT;
+
+		status = poll(&pfd, 1, polltimeout);
+	} while(status == -1 && errno == EINTR);
+
+	if(status == -1)
+		isPending |= anyPendingError;
+	else
+	if(status > 0)
+	{
+		if(pfd.revents & (POLLERR | POLLHUP))
+			isPending |= anyPendingError;
+
+		if(pfd.revents & (POLLIN | POLLPRI))
+			isPending |= anyPendingInput;
+
+		if(pfd.revents & POLLOUT)
+			isPending |= anyPendingOutput;
+	}
+#else	//	HAVE_POLL
+	struct timeval tv, *tvp;
+	fd_set egrp, *egrpp, rgrp, *rgrpp, wgrp, *wgrpp;
+
+	if(timeout != TIMEOUT_INF)
+	{
+		tv.tv_usec = (timeout % 1000) * 1000;
+		tv.tv_sec = timeout / 1000;
+		tvp = &tv;
+	}
+	else
+		tvp = NULL;
+
+	egrpp = fd_set_init(&egrp, dev, pendingMask, anyPendingError);
+	rgrpp = fd_set_init(&rgrp, dev, pendingMask, anyPendingInput);
+	wgrpp = fd_set_init(&wgrp, dev, pendingMask, anyPendingOutput);
+
+	status = select(dev + 1, rgrpp, wgrpp, egrpp, tvp);
+
+	if(status == -1)
+		isPending |= anyPendingError;
+	else
+	if(status > 0)
+	{
+		if(egrpp && FD_ISSET(dev, egrpp))
+			isPending |= anyPendingError;
+
+		if(rgrpp && FD_ISSET(dev, rgrpp))
+			isPending |= anyPendingInput;
+
+		if(wgrpp && FD_ISSET(dev, wgrpp))
+			isPending |= anyPendingOutput;
+	}
+#endif	//	HAVE_POLL
+#endif	//	WIN32
+
+	return (AnyPending) isPending;
+}
+
 bool Serial::isPending(Pending pending, timeout_t timeout)
 {
 #ifdef	WIN32



From MAILER-DAEMON Sun Sep 11 06:36:11 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EEPBw-0001LL-KE
	for mharc-bug-commoncpp@gnu.org; Sun, 11 Sep 2005 06:36:08 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EEPBp-0001IJ-FO
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 06:36:02 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EEPBl-0001Gc-VZ
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 06:35:59 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EEPBl-00012D-7i
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 06:35:57 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EEOzs-0001B3-Gi
	for bug-commoncpp@gnu.org; Sun, 11 Sep 2005 06:23:41 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Sun, 11 Sep 2005 03:23:15 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Sun, 11 Sep 2005 03:23:15 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBAEPPEPAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Subject: Patch: Add POLLNVAL to error values Serial::isPending tests
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 11 Sep 2005 10:36:04 -0000

This patch depends upon patches committed on "dev-bcb6-arm" branch
between revision tags "dev-bcb6-arm-0052" and "dev-bcb6-arm-0056".

This patch modifies the following files:

	ChangeLog
	src/serial.cpp

This patch is committed on "dev-bcb6-arm" branch between revision
tags "dev-bcb6-arm-0056" and "dev-bcb6-arm-0057".

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/ChangeLog,v
retrieving revision 1.18.2.6
retrieving revision 1.18.2.7
diff -u -p -r1.18.2.6 -r1.18.2.7
--- ChangeLog	11 Sep 2005 07:04:20 -0000	1.18.2.6
+++ ChangeLog	11 Sep 2005 10:19:21 -0000	1.18.2.7
@@ -1,4 +1,5 @@
 From Common C++ 1.3.18 to 1.3.19
+- add POLLNVAL to error values Serial::isPending tests
 - add Serial::AnyPending enumeration and Serial::anyPending method
 - fix Win32 CreateEvent returns NULL on failure, not INVALID_HANDLE_VALUE
 - fix indentation error in WIN32 aRead method
Index: src/serial.cpp
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/src/serial.cpp,v
retrieving revision 1.1.1.1.2.6
retrieving revision 1.1.1.1.2.7
diff -u -p -r1.1.1.1.2.6 -r1.1.1.1.2.7
--- src/serial.cpp	11 Sep 2005 07:04:20 -0000	1.1.1.1.2.6
+++ src/serial.cpp	11 Sep 2005 10:19:21 -0000	1.1.1.1.2.7
@@ -936,7 +936,13 @@ size_t Serial::getBufferSize(void)
 	return maxsize;
 }
 
-#if !defined(WIN32) && !defined(HAVE_POLL)
+#ifndef	WIN32
+#ifdef	HAVE_POLL
+static const unsigned int
+	pollMaskError = POLLERR | POLLHUP | POLLNVAL,
+	pollMaskInput = POLLIN | POLLPRI,
+	pollMaskOutput = POLLOUT;
+#else	//	! HAVE_POLL
 static fd_set *fd_set_init(	fd_set *pfd_set, const HANDLE dev,
 							const Serial::AnyPending pendingMask,
 							const Serial::AnyPending pendingSelect
@@ -950,7 +956,8 @@ static fd_set *fd_set_init(	fd_set *pfd_
 
 	return NULL;
 }
-#endif // !defined(WIN32) && !defined(HAVE_POLL)
+#endif	//	! HAVE_POLL
+#endif	//	! WIN32
 
 Serial::AnyPending Serial::anyPending(const AnyPending pendingMask, const timeout_t timeout)
 {
@@ -1094,11 +1101,11 @@ Serial::AnyPending Serial::anyPending(co
 		pfd.revents = 0;
 		pfd.events = 0;
 		if(pendingMask & anyPendingError)
-			pfd.events |= POLLERR | POLLHUP;
+			pfd.events |= pollMaskError;
 		if(pendingMask & anyPendingInput)
-			pfd.events |= POLLIN | POLLPRI;
+			pfd.events |= pollMaskInput;
 		if(pendingMask & anyPendingOutput)
-			pfd.events |= POLLOUT;
+			pfd.events |= pollMaskOutput;
 
 		status = poll(&pfd, 1, polltimeout);
 	} while(status == -1 && errno == EINTR);
@@ -1108,13 +1115,13 @@ Serial::AnyPending Serial::anyPending(co
 	else
 	if(status > 0)
 	{
-		if(pfd.revents & (POLLERR | POLLHUP))
+		if(pfd.revents & pollMaskError)
 			isPending |= anyPendingError;
 
-		if(pfd.revents & (POLLIN | POLLPRI))
+		if(pfd.revents & pollMaskInput)
 			isPending |= anyPendingInput;
 
-		if(pfd.revents & POLLOUT)
+		if(pfd.revents & pollMaskOutput)
 			isPending |= anyPendingOutput;
 	}
 #else	//	HAVE_POLL
@@ -1226,13 +1233,13 @@ bool Serial::isPending(Pending pending, 
 	switch(pending)
 	{
 	case pendingInput:
-		pfd.events = POLLIN | POLLPRI;
+		pfd.events = pollMaskInput;
 		break;
 	case pendingOutput:
-		pfd.events = POLLOUT;
+		pfd.events = pollMaskOutput;
 		break;
 	case pendingError:
-		pfd.events = POLLERR | POLLHUP;
+		pfd.events = pollMaskError;
 		break;
 	}
 



From MAILER-DAEMON Thu Sep 15 15:18:55 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EFzG2-0000b9-Um
	for mharc-bug-commoncpp@gnu.org; Thu, 15 Sep 2005 15:18:55 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EFzFv-0000UM-Ll
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 15:18:48 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EFzFs-0000Px-4I
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 15:18:44 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EFzFr-0000Nk-Jo
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 15:18:43 -0400
Received: from [142.58.101.21] (helo=rm-rstar.sfu.ca)
	by monty-python.gnu.org with esmtp
	(TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EFzFc-0002z8-R5
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 15:18:29 -0400
Received: from webmail.sfu.ca (jaguar3.nfs.sfu.ca [192.168.102.203])
	by rm-rstar.sfu.ca (8.13.4/8.13.4/SFU-5.0H) with ESMTP id
	j8FJIPcK010061
	for <bug-commoncpp@gnu.org>; Thu, 15 Sep 2005 12:18:25 -0700 (PDT)
Message-Id: <200509151918.j8FJIPcK010061@rm-rstar.sfu.ca>
Content-Type: text/html
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-Sender: tychung@popserver.sfu.ca
Date: Thu, 15 Sep 2005 12:18:25 -0700
MIME-Version: 1.0
X-Mailer: SFUwebmail 2.70
From: Tilson Chung <tychung@sfu.ca>
To: bug-commoncpp@gnu.org
X-Virus-Scanned: by antibody.sfu.ca running antivirus scanner
Subject: commoncpp2-1.3.19 "make" bug
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Tilson Chung <tychung@sfu.ca>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Sep 2005 19:18:51 -0000

Hi, <br>

&nbsp;&nbsp;&nbsp; I encountered the following when I give the "make"
command to QNX shell environment to compile commoncpp2-1.3.19.<br>

The OS I am using is QNX 6.3.0.&nbsp; And the commoncpp2-1.3.19 is configured under GCC2.95.3 version.&nbsp; Thanks.<br>

<br>

source='socket.cpp' object='socket.lo' libtool=yes \<br>

depfile='.deps/socket.Plo' tmpdepfile='.deps/socket.TPlo' \<br>

depmode=gcc /bin/sh ../autoconf/depcomp \<br>

/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include&nbsp;&nbsp;&nbsp; -I../src -DCCXX_EXPORT_LIBRARY&nbsp;
-D_GNU_SOURCE&nbsp; -I../include<br>

-g -O2 -c -o socket.lo socket.cpp<br>

&nbsp;g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src
-DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../include -g -O2 -c socket.cpp
-Wp,-MD,.deps/sock<br>

et.TPlo&nbsp; -fPIC -DPIC -o .libs/socket.o<br>

socket.cpp: In method `ost::UDPSocket::UDPSocket(const char *, ost::Socket::Family = IPV4)':<br>

socket.cpp:1286: aggregate `struct addrinfo hint' has incomplete type and cannot be initialized<br>

socket.cpp:1319: confused by earlier errors, bailing out<br>

make[1]: *** [socket.lo] Error 1<br>



From MAILER-DAEMON Thu Sep 15 20:02:08 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EG3g8-0003yy-8S
	for mharc-bug-commoncpp@gnu.org; Thu, 15 Sep 2005 20:02:08 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EG3g1-0003vT-8B
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 20:02:01 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EG3ft-0003rM-Aq
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 20:01:55 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EG3fs-0003qv-NT
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 20:01:52 -0400
Received: from [142.58.101.21] (helo=rm-rstar.sfu.ca)
	by monty-python.gnu.org with esmtp
	(TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EG3eq-0006VG-Hz
	for bug-commoncpp@gnu.org; Thu, 15 Sep 2005 20:00:52 -0400
Received: from webmail.sfu.ca (jaguar1.nfs.sfu.ca [192.168.102.201])
	by rm-rstar.sfu.ca (8.13.4/8.13.4/SFU-5.0H) with ESMTP id
	j8G00jsu021331
	for <bug-commoncpp@gnu.org>; Thu, 15 Sep 2005 17:00:45 -0700 (PDT)
Message-Id: <200509160000.j8G00jsu021331@rm-rstar.sfu.ca>
Content-Type: text/html
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-Sender: tychung@popserver.sfu.ca
Date: Thu, 15 Sep 2005 17:00:45 -0700
MIME-Version: 1.0
X-Mailer: SFUwebmail 2.70
From: Tilson Chung <tychung@sfu.ca>
To: bug-commoncpp@gnu.org
X-Virus-Scanned: by antibody.sfu.ca running antivirus scanner
Subject: commoncpp2-1.3.19 does not "make" successfully under QNX 6.3.0
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Tilson Chung <tychung@sfu.ca>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Sep 2005 00:02:03 -0000

I encountered "inaddr.cpp:274:implicit declaration of function 'int ost::inet_aton(...)'" when I configure commoncpp2-1.3.19 under QNX 6.3.0 with GCC2.95.3.&nbsp;&nbsp;<br>
So I went to&nbsp;/usr/qnx630/target/qnx6/usr/include/arpa/ and include the inet.h&nbsp;header file in the inaddr.cpp,&nbsp;&nbsp;and I also configure with './configure CXXFLAGS="-g -O2 -D__EXT_BSD"', but same thing "inaddr.cpp:274:implicit declaration of function 'int ost::inet_aton(...)'" happens.&nbsp;&nbsp;<br>
In addition, when I just define 'int inet_aton __P((const char *,struc in_addr*));' inside the inaddr.cpp file, it passes the implicit declaration error and gives me "socket.cpp:1286:aggregate 'struct addr info hint' has incomplete type and cannot be initialized"<br>
Please be so kind to help solving this problem, Thanks.



From MAILER-DAEMON Fri Sep 16 18:28:42 2005
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1EGOhG-0001gw-EN
	for mharc-bug-commoncpp@gnu.org; Fri, 16 Sep 2005 18:28:42 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1EGOhB-0001fq-DM
	for bug-commoncpp@gnu.org; Fri, 16 Sep 2005 18:28:37 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1EGOh9-0001eM-Cg
	for bug-commoncpp@gnu.org; Fri, 16 Sep 2005 18:28:36 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1EGOh9-0001dx-6f
	for bug-commoncpp@gnu.org; Fri, 16 Sep 2005 18:28:35 -0400
Received: from [66.166.200.188] (helo=berkeley.pino.net)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1EGOh3-0005lK-5U
	for bug-commoncpp@gnu.org; Fri, 16 Sep 2005 18:28:29 -0400
Received: from phoenix ([192.168.41.100]) by berkeley.pino.net
	(Post.Office MTA v3.5.3 release 223 ID# 0-55170U200L100S0V35)
	with SMTP id net; Fri, 16 Sep 2005 15:28:26 -0700
From: "Conrad T. Pino" <Conrad@Pino.com>
To: "Bug Common C++" <bug-commoncpp@gnu.org>
Date: Fri, 16 Sep 2005 15:28:26 -0700
Message-ID: <NBBBKGBBDBMONCPMINHBOENFFAAB.Conrad@Pino.com>
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.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Importance: Normal
Subject: Patch: Fix w32/Makefile.bcc error in clean target when -DBMODE=DEBUG
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Sep 2005 22:28:38 -0000

The following patch was committed on the trunk.

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/ChangeLog,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- ChangeLog	1 Sep 2005 05:58:01 -0000	1.18
+++ ChangeLog	16 Sep 2005 19:23:45 -0000	1.19
@@ -1,4 +1,5 @@
 From Common C++ 1.3.18 to 1.3.19
+- fix w32/Makefile.bcc error in clean target when -DBMODE=DEBUG
 - fix tests/thread1.cpp to compile with Microsoft Visual C++ 6.0
 - fix Microsoft build file line end convention from -kb to -ko
 - fix for w32 TCPSession connect issue
Index: w32/Makefile.bcc
===================================================================
RCS file: /cvsroot/gnutelephony/testing/commoncpp2/w32/Makefile.bcc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- w32/Makefile.bcc	30 Aug 2005 13:11:14 -0000	1.2
+++ w32/Makefile.bcc	16 Sep 2005 19:23:45 -0000	1.3
@@ -118,14 +118,16 @@ ALLLIBS=$(LIBFILES) import32.lib $(BCC32
 ALLLIBS1=$(ALLLIBS)
 ALLLIBS2=$(ALLLIBS) $(LIBBASE1).lib
 
-all: dirs $(RESFILE) $(PROJECT1) $(PROJECT2) cleanrel
+all: dirs $(RESFILE) $(PROJECT1) $(PROJECT2) cleansym
 
 cleanobj:: 
 	-@echo Deleting intermediate files for project
 	-@if exist $(OBJ)\*.obj del $(OBJ)\*.obj
 
-cleanrel:: 
-!if $(BMODE) == RELEASE
+cleansym:: 
+!if $(BMODE) == DEBUG
+	-@echo Keeping symbol files for project
+!elif $(BMODE) == RELEASE
 	-@echo Deleting symbol files for project
 	-@if exist $(BIN)\*.tds del $(BIN)\*.tds
 	-@if exist $(BIN)\*.map del $(BIN)\*.map



