summaryrefslogtreecommitdiff
path: root/recipes/librcf/files/rcf-0.4-g++-4.1.diff
blob: 8316d99162f1140a5d82607e2d23da7d60c416ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
diff -uNr RCF-0.4-orig/Makefile RCF-0.4/Makefile
--- RCF-0.4-orig/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ RCF-0.4/Makefile	2006-10-24 16:08:00.799705810 +0200
@@ -0,0 +1,32 @@
+#
+# Top level Makefile for RCF library and test programs
+#
+# Martin Dietze <dietze@4g-systems.com>
+#
+
+SUBDIRS = src test
+DESTDIR =
+prefix = /usr/local
+
+.PHONY: all clean test syntax shared install uninstall
+
+all:
+	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@ || exit 1; done
+
+shared:
+	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@ || exit 1; done
+
+install:
+	$(MAKE) -C src $@
+
+uninstall:
+	$(MAKE) -C src $@
+
+syntax:
+	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@ || exit 1; done
+
+test:
+	$(MAKE) -C $@ $@
+
+clean:
+	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@ || exit 1; done
diff -uNr RCF-0.4-orig/include/RCF/CheckRtti.hpp RCF-0.4/include/RCF/CheckRtti.hpp
--- RCF-0.4-orig/include/RCF/CheckRtti.hpp	2006-01-11 01:06:52.000000000 +0100
+++ RCF-0.4/include/RCF/CheckRtti.hpp	2006-10-19 10:03:09.000000000 +0200
@@ -24,7 +24,7 @@
             {}
         };
 
-        struct B
+        struct B : public A
         {
             virtual ~B()
             {}
@@ -35,7 +35,7 @@
             B b;
             // RTTI support not detected!
             // If you're using Visual C++, set "Enable Run-Time Type Info" to true, in the Project Properties | C/C++ | Language options,
-            dynamic_cast<A &>(b);
+            (void)dynamic_cast<A &>(b);
         }
     };
 
diff -uNr RCF-0.4-orig/include/RCF/EndpointBrokerService.hpp RCF-0.4/include/RCF/EndpointBrokerService.hpp
--- RCF-0.4-orig/include/RCF/EndpointBrokerService.hpp	2006-01-11 01:06:52.000000000 +0100
+++ RCF-0.4/include/RCF/EndpointBrokerService.hpp	2006-10-19 10:16:40.000000000 +0200
@@ -49,12 +49,12 @@
         friend class EndpointBrokerService;
         typedef RcfClient<I_EndpointServer> Client;
         typedef boost::shared_ptr<Client> ClientPtr;
+        ServerTransportPtr mServerTransportPtr;
         std::string mEndpointName;
-        std::string mEndpointServerPassword;
         std::string mEndpointClientPassword;
+        std::string mEndpointServerPassword;
         std::vector<SessionPtr> mConnections;
         ClientPtr mMasterConnection;
-        ServerTransportPtr mServerTransportPtr;
     };
 
     class EndpointBrokerService : 
diff -uNr RCF-0.4-orig/include/RCF/IpServerTransport.hpp RCF-0.4/include/RCF/IpServerTransport.hpp
--- RCF-0.4-orig/include/RCF/IpServerTransport.hpp	2006-02-04 01:01:22.000000000 +0100
+++ RCF-0.4/include/RCF/IpServerTransport.hpp	2006-10-19 10:17:56.000000000 +0200
@@ -87,10 +87,10 @@
         }
 
     private:
+        mutable ReadWriteMutex mReadWriteMutex;
         std::string mNetworkInterface;
         std::vector<std::string> mAllowedIps;
         std::vector<u_long> mAllowedAddrs;
-        mutable ReadWriteMutex mReadWriteMutex;
     };
 
 } // namespace RCF
diff -uNr RCF-0.4-orig/include/RCF/OpenSslEncryptionFilter.hpp RCF-0.4/include/RCF/OpenSslEncryptionFilter.hpp
--- RCF-0.4-orig/include/RCF/OpenSslEncryptionFilter.hpp	2006-01-11 01:06:54.000000000 +0100
+++ RCF-0.4/include/RCF/OpenSslEncryptionFilter.hpp	2006-10-19 10:44:20.000000000 +0200
@@ -28,6 +28,8 @@
         SslClient
     };
 
+    class OpenSslEncryptionFilterImpl;
+
     /// Filter implementing the SSL encryption protocol, through the OpenSSL library.
     class OpenSslEncryptionFilter : public IdentityFilter, boost::noncopyable
     {
diff -uNr RCF-0.4-orig/include/RCF/PublishingService.hpp RCF-0.4/include/RCF/PublishingService.hpp
--- RCF-0.4-orig/include/RCF/PublishingService.hpp	2006-07-27 23:30:10.000000000 +0200
+++ RCF-0.4/include/RCF/PublishingService.hpp	2006-10-19 16:24:36.000000000 +0200
@@ -15,6 +15,7 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/utility.hpp>
 
+#include <RCF/ClientStub.hpp>
 #include <RCF/GetInterfaceName.hpp>
 #include <RCF/Service.hpp>
 #include <RCF/ThreadLibrary.hpp>
diff -uNr RCF-0.4-orig/include/RCF/RcfServer.hpp RCF-0.4/include/RCF/RcfServer.hpp
--- RCF-0.4-orig/include/RCF/RcfServer.hpp	2006-04-02 21:39:32.000000000 +0200
+++ RCF-0.4/include/RCF/RcfServer.hpp	2006-10-19 16:26:26.000000000 +0200
@@ -214,12 +214,12 @@
         ThreadSpecificSessionQueuePtr mThreadSpecificSessionQueuePtr;
         // eventually other specialized session queues...
 
-        volatile bool mServerThreadsStopFlag;
         Mutex mOpenedMutex;
         bool mOpened;
         
         Mutex mStartedMutex;
         bool mStarted;
+        volatile bool mServerThreadsStopFlag;
 
     public:
         
diff -uNr RCF-0.4-orig/include/RCF/StubFactory.hpp RCF-0.4/include/RCF/StubFactory.hpp
--- RCF-0.4-orig/include/RCF/StubFactory.hpp	2006-01-11 01:06:54.000000000 +0100
+++ RCF-0.4/include/RCF/StubFactory.hpp	2006-10-19 10:28:45.000000000 +0200
@@ -9,6 +9,7 @@
 #ifndef INCLUDE_RCF_STUBFACTORY_HPP
 #define INCLUDE_RCF_STUBFACTORY_HPP
 
+#include <RCF/ServerStub.hpp>
 #include <boost/shared_ptr.hpp>
 
 namespace RCF {
diff -uNr RCF-0.4-orig/include/RCF/SubscriptionService.hpp RCF-0.4/include/RCF/SubscriptionService.hpp
--- RCF-0.4-orig/include/RCF/SubscriptionService.hpp	2006-07-27 23:30:10.000000000 +0200
+++ RCF-0.4/include/RCF/SubscriptionService.hpp	2006-10-23 11:43:31.826971900 +0200
@@ -19,6 +19,7 @@
 
 #include <RCF/GetInterfaceName.hpp>
 #include <RCF/Service.hpp>
+#include <RCF/ServerStub.hpp>
 
 namespace RCF {
 
diff -uNr RCF-0.4-orig/include/RCF/TcpClientTransport.hpp RCF-0.4/include/RCF/TcpClientTransport.hpp
--- RCF-0.4-orig/include/RCF/TcpClientTransport.hpp	2006-02-05 05:52:38.000000000 +0100
+++ RCF-0.4/include/RCF/TcpClientTransport.hpp	2006-10-20 16:59:45.000000000 +0200
@@ -93,7 +93,7 @@
     class TcpClientTransport : public I_ClientTransport
     {
     public:
-        TcpClientTransport::TcpClientTransport(const TcpClientTransport &rhs);
+        TcpClientTransport(const TcpClientTransport &rhs);
         TcpClientTransport(const std::string &ip, int port);
         TcpClientTransport(sockaddr_in remoteAddr);
         TcpClientTransport(int fd);
@@ -131,8 +131,8 @@
         int fd;
         bool own;
 
-        std::size_t mBytesTransferred;
         int mError;
+        std::size_t mBytesTransferred;
 
         boost::shared_ptr< CloseFunctor > mCloseFunctor;
         std::vector<FilterPtr> mTransportFilters;
diff -uNr RCF-0.4-orig/include/RCF/TcpServerTransport.hpp RCF-0.4/include/RCF/TcpServerTransport.hpp
--- RCF-0.4-orig/include/RCF/TcpServerTransport.hpp	2006-02-07 21:37:16.000000000 +0100
+++ RCF-0.4/include/RCF/TcpServerTransport.hpp	2006-10-20 17:27:25.000000000 +0200
@@ -59,12 +59,12 @@
                 WritingData,
             };
 
+            Fd                  fd;
             State               state;
             std::vector<char>   readBuffer;
             std::size_t         readBufferRemaining;
             std::vector<char>   writeBuffer;
             std::size_t         writeBufferRemaining;
-            Fd                  fd;
         };
 
         typedef boost::shared_ptr<I_Session>        SessionPtr;
diff -uNr RCF-0.4-orig/include/RCF/ZlibCompressionFilter.hpp RCF-0.4/include/RCF/ZlibCompressionFilter.hpp
--- RCF-0.4-orig/include/RCF/ZlibCompressionFilter.hpp	2006-01-11 01:06:54.000000000 +0100
+++ RCF-0.4/include/RCF/ZlibCompressionFilter.hpp	2006-10-23 16:29:58.698611358 +0200
@@ -21,6 +21,9 @@
     static const int RCF_FILTER_ZLIB_COMPRESSION_STATELESS = 3;
 
     static const int RCF_FILTER_ZLIB_COMPRESSION_STATEFUL = 4;
+    
+    class ZlibCompressionReadFilter;
+    class ZlibCompressionWriteFilter;
 
     class ZlibCompressionFilter : public IdentityFilter, boost::noncopyable
     {
diff -uNr RCF-0.4-orig/include/RCF/util/Platform/Machine/ByteOrder.hpp RCF-0.4/include/RCF/util/Platform/Machine/ByteOrder.hpp
--- RCF-0.4-orig/include/RCF/util/Platform/Machine/ByteOrder.hpp	2006-09-13 17:02:32.000000000 +0200
+++ RCF-0.4/include/RCF/util/Platform/Machine/ByteOrder.hpp	2006-10-24 17:40:39.917363264 +0200
@@ -14,6 +14,8 @@
 #include "x86/ByteOrder.hpp"
 #elif defined(_M_IA64) || defined(_M_AMD64) || defined(_M_X64)
 #include "x86/ByteOrder.hpp"
+#elif defined(_MIPSEL) && _MIPSEL == 1
+#include "x86/ByteOrder.hpp"
 #else
 #include "UnknownMachine/ByteOrder.hpp"
 #endif
diff -uNr RCF-0.4-orig/include/RCF/util/UnusedVariable.hpp RCF-0.4/include/RCF/util/UnusedVariable.hpp
--- RCF-0.4-orig/include/RCF/util/UnusedVariable.hpp	2006-01-11 01:06:56.000000000 +0100
+++ RCF-0.4/include/RCF/util/UnusedVariable.hpp	2006-10-20 17:40:00.000000000 +0200
@@ -9,6 +9,10 @@
 #define INCLUDE_UTIL_UNUSEDVARIABLE_HPP
 
 // Eliminate unused variable warnings, eg for scoped lock objects
+#ifndef __GNUC__
 #define RCF_UNUSED_VARIABLE(x) ((void) x)
+#else
+#define RCF_UNUSED_VARIABLE(x)
+#endif
 
 #endif // ! INCLUDE_UTIL_UNUSEDVARIABLE_HPP
diff -uNr RCF-0.4-orig/include/SF/I_Stream.hpp RCF-0.4/include/SF/I_Stream.hpp
--- RCF-0.4-orig/include/SF/I_Stream.hpp	2006-01-11 01:07:00.000000000 +0100
+++ RCF-0.4/include/SF/I_Stream.hpp	2006-10-19 10:12:54.000000000 +0200
@@ -19,6 +19,7 @@
     class I_ContextRead
     {
     public:
+        virtual ~I_ContextRead(void) {}
         virtual void add(SF::UInt32 nid, const ObjectId &id) = 0;
         virtual void add(void *ptr, const std::type_info &objType, void *pObj ) = 0;
         virtual bool query(SF::UInt32 nid, ObjectId &id) = 0;
@@ -29,6 +30,7 @@
     class I_ContextWrite
     {
     public:
+        virtual ~I_ContextWrite(void) {}
         virtual void setEnabled(bool enable) = 0;
         virtual bool getEnabled() = 0;
         virtual void add(const ObjectId &id, SF::UInt32 &nid) = 0;
@@ -38,28 +40,33 @@
 
     class I_WithContextRead {
     public:
+        virtual ~I_WithContextRead(void) {}
         virtual I_ContextRead &getContext() = 0;
     };
 
     class I_WithContextWrite {
     public:
+        virtual ~I_WithContextWrite(void) {}
         virtual I_ContextWrite &getContext() = 0;
     };
 
     class I_LocalStorage {
     public:
+        virtual ~I_LocalStorage(void) {}
         virtual void set(const std::type_info &objType, void *) = 0;
         virtual void *get(const std::type_info &objType) = 0;
     };
 
     class I_WithLocalStorage {
     public:
+        virtual ~I_WithLocalStorage(void) {}
         virtual I_LocalStorage &getLocalStorage() = 0;
     };
 
     class I_Encoding
     {
     public:
+        virtual ~I_Encoding(void) {}
         virtual UInt32 getCount(DataPtr &data, const std::type_info &type) = 0;
         virtual void toData(DataPtr &data, void *pvObject, const std::type_info &type, int nCount) = 0;
         virtual void toObject(DataPtr &data, void *pvObject, const std::type_info &type, int nCount) = 0;
@@ -68,6 +75,7 @@
     class I_WithEncoding
     {
     public:
+        virtual ~I_WithEncoding(void) {}
         virtual I_Encoding &getEncoding() = 0;
     };
 
@@ -80,6 +88,7 @@
     class WithFormatWrite
     {
     public:
+        virtual ~WithFormatWrite(void) {}
         virtual void begin(const Node &) = 0;
         virtual void put(const DataPtr &) = 0;
         virtual void end() = 0;
@@ -88,6 +97,7 @@
     class WithFormatRead
     {
     public:
+        virtual ~WithFormatRead(void) {}
         virtual bool begin(Node &) = 0;
         virtual bool get(DataPtr &) = 0;
         virtual void end() = 0;
diff -uNr RCF-0.4-orig/include/SF/SerializeSmartPtr.hpp RCF-0.4/include/SF/SerializeSmartPtr.hpp
--- RCF-0.4-orig/include/SF/SerializeSmartPtr.hpp	2006-01-19 07:44:30.000000000 +0100
+++ RCF-0.4/include/SF/SerializeSmartPtr.hpp	2006-10-24 12:50:50.039809323 +0200
@@ -20,7 +20,6 @@
     template< template<typename> class SmartPtr, typename T >
     inline bool serializeSimpleSmartPtr(SmartPtr<T> **pps, SF::Archive &ar)
     {
-        bool bRet = false;
         if (ar.isRead()) {
             if (ar.isFlagSet(Archive::POINTER)) *pps = new SmartPtr<T>;
             T *pt = NULL;
diff -uNr RCF-0.4-orig/include/SF/SerializeStaticArray.hpp RCF-0.4/include/SF/SerializeStaticArray.hpp
--- RCF-0.4-orig/include/SF/SerializeStaticArray.hpp	2006-01-11 01:07:00.000000000 +0100
+++ RCF-0.4/include/SF/SerializeStaticArray.hpp	2006-10-23 17:02:39.489476120 +0200
@@ -2,6 +2,8 @@
 #ifndef INCLUDE_SF_SERIALIZESTATICARRAY_HPP
 #define INCLUDE_SF_SERIALIZESTATICARRAY_HPP
 
+#include <boost/type_traits.hpp>
+
 #include <SF/Archive.hpp>
 
 namespace SF {
diff -uNr RCF-0.4-orig/include/SF/Stream.hpp RCF-0.4/include/SF/Stream.hpp
--- RCF-0.4-orig/include/SF/Stream.hpp	2006-09-19 11:53:44.000000000 +0200
+++ RCF-0.4/include/SF/Stream.hpp	2006-10-19 10:14:35.000000000 +0200
@@ -221,7 +221,7 @@
     {
     public:
         OStream(std::ostream &os);
-        UInt32 OStream::writeRaw(const Byte8 *pBytes, UInt32 nLength);
+        UInt32 writeRaw(const Byte8 *pBytes, UInt32 nLength);
         
     private:
         void begin(const Node &node);
diff -uNr RCF-0.4-orig/include/SF/vector.hpp RCF-0.4/include/SF/vector.hpp
--- RCF-0.4-orig/include/SF/vector.hpp	2006-09-19 11:53:46.000000000 +0200
+++ RCF-0.4/include/SF/vector.hpp	2006-10-23 17:05:37.129355307 +0200
@@ -7,6 +7,7 @@
 #include <SF/SerializeDynamicArray.hpp>
 #include <SF/SerializeStl.hpp>
 #include <SF/Tools.hpp>
+#include <SF/Stream.hpp>
 
 namespace SF {
 
diff -uNr RCF-0.4-orig/src/Makefile RCF-0.4/src/Makefile
--- RCF-0.4-orig/src/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ RCF-0.4/src/Makefile	2006-10-24 16:08:09.684099349 +0200
@@ -0,0 +1,29 @@
+#
+# Makefile for RCF library
+#
+# Martin Dietze <dietze@4g-systems.com>
+#
+
+SUBDIRS = SF RCF
+DESTDIR =
+prefix = /usr/local
+
+.PHONY: all clean syntax shared install uninstall
+
+all:
+	$(MAKE) -C RCF $@
+
+shared:
+	$(MAKE) -C RCF $@
+
+install:
+	$(MAKE) -C RCF $@
+
+uninstall:
+	$(MAKE) -C RCF $@
+
+syntax:
+	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@ || exit 1; done
+
+clean:
+	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@ || exit 1; done
diff -uNr RCF-0.4-orig/src/RCF/AsyncFilter.cpp RCF-0.4/src/RCF/AsyncFilter.cpp
--- RCF-0.4-orig/src/RCF/AsyncFilter.cpp	2006-01-11 01:07:02.000000000 +0100
+++ RCF-0.4/src/RCF/AsyncFilter.cpp	2006-10-19 10:00:18.000000000 +0200
@@ -149,8 +149,8 @@
         ReadProxy(const std::string &buffer, FilterPtr filterPtr) : 
             mBuffer(buffer), 
             mchBuffer(mBuffer.c_str()),
-            mchBufferLength( static_cast<int>(mBuffer.length()) ),
             mchBufferPos(), 
+            mchBufferLength( static_cast<int>(mBuffer.length()) ),
             mFilterPtr(filterPtr)
         {}
 
diff -uNr RCF-0.4-orig/src/RCF/Makefile RCF-0.4/src/RCF/Makefile
--- RCF-0.4-orig/src/RCF/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ RCF-0.4/src/RCF/Makefile	2006-10-26 16:22:54.175209260 +0200
@@ -0,0 +1,123 @@
+#
+# Makefile for RCF library
+#
+# Martin Dietze <dietze@4g-systems.com>
+#
+
+MAJOR = 0
+VERSION = $(MAJOR).4
+
+O = .o
+A = .a
+D = .so
+
+.PHONY: all clean shared install uninstall mt st shared-st shared-mt
+
+CXX = g++
+#HAS_MM = yes
+AR = ar
+CDEFINES = -DRCF_USE_OPENSSL -DRCF_USE_ZLIB -DRCF_USE_SF_SERIALIZATION \
+	-DRCF_USE_BOOST_ASIO
+CPPFLAGS = -I../../include
+CXXTHREADS = -DRCF_USE_BOOST_THREADS
+CSHARED =
+CXXFLAGS = -ansi -Wall -Werror -O3
+DESTDIR =
+prefix = /usr/local
+
+OBJS = AsyncFilter.o ByteOrdering.o CheckRtti.o ClientInfo.o ClientStub.o \
+	ClientTransport.o CurrentSession.o EncodeMessage.o Endpoint.o \
+	EndpointBrokerService.o EndpointServerService.o Exception.o \
+	FilterService.o Idl.o InitDeinit.o IpAddress.o IpServerTransport.o \
+	Marshal.o MethodInvocation.o MulticastClientTransport.o \
+	ObjectFactoryService.o OpenSslEncryptionFilter.o Protocol/Protocol.o \
+	PublishingService.o Random.o RcfClient.o RcfServer.o \
+	SerializationProtocol.o ServerInterfaces.o ServerStub.o ServerTask.o \
+	ServerTransport.o Service.o Session.o StubEntry.o StubFactory.o \
+	SubscriptionService.o TcpAsioClientTransport.o \
+	TcpAsioServerTransport.o TcpAsioSynchronizedSocket.o \
+	TcpClientTransport.o TcpEndpoint.o \
+	TcpServerTransport.o ThreadLibrary.o TimedBsdSockets.o Token.o \
+	Tools.o UdpClientTransport.o UdpEndpoint.o UdpServerTransport.o \
+	UsingBsdSockets.o UsingOpenSsl.o ZlibCompressionFilter.o
+SOURCES = $(OBJS:%.o=%.cpp) RCF.cpp
+NAME = libRCF
+LIBMT = $(NAME)mt$A
+LIBST = $(NAME)st$A
+
+all:
+	$(MAKE) mt
+	$(MAKE) st
+
+mt: $(LIBMT)
+
+st: $(LIBST)
+
+shared:
+	$(MAKE) shared-mt
+	$(MAKE) shared-st
+
+shared-mt:
+	$(MAKE) -e LIBMT=$(NAME)mt$D CSHARED=-fPIC $(NAME)mt$D
+
+shared-st:
+	$(MAKE) -e LIBST=$(NAME)st$D CSHARED=-fPIC $(NAME)st$D
+
+syntax: $(OBJS)
+
+install: $(LIBMT) $(LIBST)
+	install -d -m 775 $(DESTDIR)$(prefix)/lib
+	if [ -f $(NAME)mt$(A) ]; then \
+	  install -m 664 $(NAME)mt$(A) $(DESTDIR)$(prefix)/lib; \
+	fi
+	if [ -f $(NAME)st$(A) ]; then \
+	  install -m 664 $(NAME)st$(A) $(DESTDIR)$(prefix)/lib; \
+	fi
+	if [ -f $(NAME)mt$(D).$(VERSION) ]; then \
+	  install -m 775 $(NAME)mt$(D).$(VERSION) $(DESTDIR)$(prefix)/lib; \
+	  ln -sf $(NAME)mt$(D).$(VERSION) $(DESTDIR)$(prefix)/lib/$(NAME)mt$(D).$(MAJOR); \
+	  ln -sf $(NAME)mt$(D).$(MAJOR) $(DESTDIR)$(prefix)/lib/$(NAME)mt$(D); \
+	fi
+	if [ -f $(NAME)st$(D).$(VERSION) ]; then \
+	  install -m 775 $(NAME)st$(D).$(VERSION) $(DESTDIR)$(prefix)/lib; \
+	  ln -sf $(NAME)st$(D).$(VERSION) $(DESTDIR)$(prefix)/lib/$(NAME)st$(D).$(MAJOR); \
+	  ln -sf $(NAME)st$(D).$(MAJOR) $(DESTDIR)$(prefix)/lib/$(NAME)st$(D); \
+	fi
+	install -d -m 775 $(DESTDIR)$(prefix)/include
+	cp -dpR ../../include/RCF $(DESTDIR)$(prefix)/include
+	cp -dpR ../../include/SF $(DESTDIR)$(prefix)/include
+
+uninstall: $(PROGRAM)
+	rm -f $(DESTDIR)$(prefix)/lib/$(NAME)[ms]t$A
+	rm -f $(DESTDIR)$(prefix)/lib/$(NAME)[ms]t$D
+	rm -f $(DESTDIR)$(prefix)/lib/$(NAME)[ms]t$D.$(MAJOR)
+	rm -f $(DESTDIR)$(prefix)/lib/$(NAME)[ms]t$D.$(VERSION)
+	rm -rf $(DESTDIR)$(prefix)/include/RCF
+	rm -rf $(DESTDIR)$(prefix)/include/SF
+
+lib%$(A): %.o
+	$(AR) cr $@ $^
+
+lib%$(D): %.o
+	$(CXX) $^ -shared -Wl,-soname,$@.$(MAJOR) -o $@.$(VERSION)
+	ln -sf $@.$(VERSION) $@.$(MAJOR)
+	ln -sf $@.$(MAJOR) $@
+
+clean:
+	rm -f $(NAME)[ms]t$(A) $(NAME)[ms]t$(D)* $(OBJS) RCF[ms]t.o *~ .depend
+
+%st.o: %.cpp
+	$(CXX) -c $(CSHARED) $(CPPFLAGS) $(CDEFINES) $(CXXFLAGS) $< -o $@
+
+%mt.o: %.cpp
+	$(CXX) -c $(CSHARED) $(CPPFLAGS) $(CDEFINES) $(CXXTHREADS) $(CXXFLAGS) $< -o $@
+
+%.o: %.cpp
+	$(CXX) -c $(CSHARED) $(CPPFLAGS) $(CDEFINES) $(CXXTHREADS) $(CXXFLAGS) $< -o $@
+
+.depend: $(SOURCES)
+	$(CXX) $(CPPFLAGS) $(CDEFINES) -MM $(SOURCES) >$@
+
+ifeq (yes,$(HAS_MM))
+sinclude .depend
+endif
diff -uNr RCF-0.4-orig/src/RCF/MulticastClientTransport.cpp RCF-0.4/src/RCF/MulticastClientTransport.cpp
--- RCF-0.4-orig/src/RCF/MulticastClientTransport.cpp	2006-01-18 08:32:18.000000000 +0100
+++ RCF-0.4/src/RCF/MulticastClientTransport.cpp	2006-10-19 10:24:44.000000000 +0200
@@ -25,11 +25,13 @@
     std::auto_ptr<I_ClientTransport> MulticastClientTransport::clone() const
     {
         RCF_THROW( ClientTransportException, "clone() not supported for MulticastClientTransport" );
+        return std::auto_ptr<I_ClientTransport>(NULL); /* keep the compiler happy */
     }
 
     EndpointPtr MulticastClientTransport::getEndpointPtr() const
     {
         RCF_THROW( ClientTransportException, "getEndpointPtr() not supported for MulticastClientTransport" );
+        return EndpointPtr(); /* keep the compiler happy */
     }
   
     int MulticastClientTransport::send(const std::string &data, unsigned int timeoutMs)
@@ -70,6 +72,7 @@
     int MulticastClientTransport::receive(std::string &, unsigned int)
     {
         RCF_THROW( ClientTransportException, "receive() not supported for MulticastClientTransport" );
+        return -1; /* keep the compiler happy */
     }
 
     bool MulticastClientTransport::isConnected()
diff -uNr RCF-0.4-orig/src/RCF/ObjectFactoryService.cpp RCF-0.4/src/RCF/ObjectFactoryService.cpp
--- RCF-0.4-orig/src/RCF/ObjectFactoryService.cpp	2006-04-03 14:49:40.000000000 +0200
+++ RCF-0.4/src/RCF/ObjectFactoryService.cpp	2006-10-19 10:30:26.000000000 +0200
@@ -69,8 +69,8 @@
     }
 
     ObjectFactoryService::ObjectFactoryService(unsigned int numberOfTokens, unsigned int clientStubTimeoutS) :
-        mClientStubTimeoutS(clientStubTimeoutS),
         mTokenFactory(numberOfTokens),
+        mClientStubTimeoutS(clientStubTimeoutS),
         mStubFactoryMapMutex(WriterPriority),
         mStopFlag()
     {
@@ -260,6 +260,7 @@
             RcfClient<I_ObjectFactory> factory(clientStub.releaseTransport());
             //ScopeGuard guard( boost::bind(&reinstateClientTransport, boost::ref(clientStub), boost::ref(factory)) );
             ScopeGuard guard = MakeGuard(reinstateClientTransport, boost::ref(clientStub), boost::ref(factory));
+            (void)guard; /* suppress unused var warning */
             RCF::Token token;
             bool ok = factory.createObject(RCF::Twoway, objectName, token);
             if (ok)
diff -uNr RCF-0.4-orig/src/RCF/OpenSslEncryptionFilter.cpp RCF-0.4/src/RCF/OpenSslEncryptionFilter.cpp
--- RCF-0.4-orig/src/RCF/OpenSslEncryptionFilter.cpp	2006-01-11 01:07:02.000000000 +0100
+++ RCF-0.4/src/RCF/OpenSslEncryptionFilter.cpp	2006-10-19 10:47:36.000000000 +0200
@@ -145,6 +145,9 @@
             sslRole(sslRole),
             certificateFile(certificateFile),
             certificateFilePassword(certificateFilePassword),
+            preState(Ready),
+            postState(Ready),
+            retry(),
             preBuffer(),
             preBufferOrig(),
             preBufferLen(),
@@ -152,11 +155,8 @@
             postBuffer(),
             postBufferLen(),
             postBufferRequested(),
-            preState(Ready),
-            postState(Ready),
-            bioBufferSize(bioBufferSize),
-            retry(),
             err(),
+            bioBufferSize(bioBufferSize),
             openSslEncryptionFilter(openSslEncryptionFilter)
     {
         init();
diff -uNr RCF-0.4-orig/src/RCF/TcpAsioServerTransport.cpp RCF-0.4/src/RCF/TcpAsioServerTransport.cpp
--- RCF-0.4-orig/src/RCF/TcpAsioServerTransport.cpp	2006-07-28 23:10:12.000000000 +0200
+++ RCF-0.4/src/RCF/TcpAsioServerTransport.cpp	2006-10-20 17:43:44.000000000 +0200
@@ -20,10 +20,10 @@
 namespace RCF {
 
     TcpAsioServerTransport::SessionState::SessionState(TcpAsioServerTransport &transport, DemuxerPtr demuxerPtr, ReadWriteMutexPtr readWriteMutexPtr) : 
-        mSynchronizedSocketPtr( new TcpAsioSynchronizedSocket(demuxerPtr, readWriteMutexPtr) ),
         mState(Ready),
         mReadBufferRemaining(),
         mWriteBufferRemaining(),
+        mSynchronizedSocketPtr( new TcpAsioSynchronizedSocket(demuxerPtr, readWriteMutexPtr) ),
         mReflecting(),
         mTransport(transport)
     {
@@ -596,11 +596,11 @@
 
     TcpAsioServerTransport::TcpAsioServerTransport(int port) :
         mDemuxerPtr(),
-        mCycleTimerPtr(),
-        mInterrupt(),
         mReadWriteMutexPtr( new ReadWriteMutex(ReaderPriority) ),
         mPort(port),
         mAcceptorPtr(),
+        mCycleTimerPtr(),
+        mInterrupt(),
         mStopFlag(),
         pServer()
     {}
diff -uNr RCF-0.4-orig/src/RCF/TcpClientTransport.cpp RCF-0.4/src/RCF/TcpClientTransport.cpp
--- RCF-0.4-orig/src/RCF/TcpClientTransport.cpp	2006-07-27 23:30:14.000000000 +0200
+++ RCF-0.4/src/RCF/TcpClientTransport.cpp	2006-10-20 17:05:35.000000000 +0200
@@ -336,7 +336,7 @@
             bufferLen = static_cast<int>(vec.size());
             ret = timedReceive(buffer, bufferLen);
 
-            if (ret == length)
+            if (ret == (int)length)
             {
                 data.clear();
                 data.append(&vec[0], length);
diff -uNr RCF-0.4-orig/src/RCF/TcpServerTransport.cpp RCF-0.4/src/RCF/TcpServerTransport.cpp
--- RCF-0.4-orig/src/RCF/TcpServerTransport.cpp	2006-01-11 01:07:02.000000000 +0100
+++ RCF-0.4/src/RCF/TcpServerTransport.cpp	2006-10-20 17:38:55.000000000 +0200
@@ -81,15 +81,15 @@
     }
 
     TcpServerTransport::TcpServerTransport(int port /*= 0*/) :
-        allowedIpsMutex(WriterPriority),
         FdPartitionCount(10),
         pSessionManager(),
-        networkInterface("0.0.0.0"),
-        maxPendingConnectionCount(100),
-        port(port),
-        selecting(),
+        acceptorFd(-1),
         mStopFlag(),
-        acceptorFd(-1)
+        selecting(),
+        allowedIpsMutex(WriterPriority),
+        port(port),
+        networkInterface("0.0.0.0"),
+        maxPendingConnectionCount(100)
     {}
 
     void TcpServerTransport::setSessionManager(I_SessionManager &sessionManager)
@@ -256,7 +256,7 @@
             readBufferRemaining -= ret;
             return 0;
         }
-        else if (ret == readBufferRemaining)
+        else if (ret == (int)readBufferRemaining)
         {
             // full packet has now been read
             if (sessionState.state == SessionState::ReadingDataCount)
diff -uNr RCF-0.4-orig/src/RCF/TimedBsdSockets.cpp RCF-0.4/src/RCF/TimedBsdSockets.cpp
--- RCF-0.4-orig/src/RCF/TimedBsdSockets.cpp	2006-01-27 21:42:30.000000000 +0100
+++ RCF-0.4/src/RCF/TimedBsdSockets.cpp	2006-10-20 17:37:39.000000000 +0200
@@ -81,7 +81,7 @@
             RCF_ASSERT(ret != 0);
             if (ret > 0)
             {
-                RCF_ASSERT(0 < ret && ret <= bytesRemaining);
+                RCF_ASSERT(0 < ret && ret <= (int)bytesRemaining);
                 bytesRemaining -= ret;
                 bytesSent += ret;
                 if (bytesRemaining == 0)
diff -uNr RCF-0.4-orig/src/RCF/UdpServerTransport.cpp RCF-0.4/src/RCF/UdpServerTransport.cpp
--- RCF-0.4-orig/src/RCF/UdpServerTransport.cpp	2006-02-14 15:23:26.000000000 +0100
+++ RCF-0.4/src/RCF/UdpServerTransport.cpp	2006-10-20 17:40:22.000000000 +0200
@@ -18,8 +18,8 @@
         pSessionManager(),
         port(port),
         fd(-1),
-        pollingDelayMs(),
-        mStopFlag()
+        mStopFlag(),
+        pollingDelayMs()
     {
     }
 
@@ -193,7 +193,7 @@
         *(int *)(&writeBuffer[0]) = dataLength;
         const sockaddr_in &remoteAddr = sessionStatePtr->remoteAddress.getSockAddr();
         int len = sendto(fd, &writeBuffer[0], static_cast<int>(writeBuffer.size()), 0, (const sockaddr *) &remoteAddr, sizeof(remoteAddr));
-        if (len != writeBuffer.size())
+        if (len != (int)writeBuffer.size())
         {
             RCF_THROW(ServerTransportException, "sendto() failed")(fd)(len)(writeBuffer.size());
         }
diff -uNr RCF-0.4-orig/src/RCF/ZlibCompressionFilter.cpp RCF-0.4/src/RCF/ZlibCompressionFilter.cpp
--- RCF-0.4-orig/src/RCF/ZlibCompressionFilter.cpp	2006-01-11 01:07:02.000000000 +0100
+++ RCF-0.4/src/RCF/ZlibCompressionFilter.cpp	2006-10-23 16:46:50.059387129 +0200
@@ -67,14 +67,14 @@
 
     ZlibCompressionReadFilter::ZlibCompressionReadFilter(ZlibCompressionFilter &filter, int bufferSize) :
         filter(filter),
+        d_stream_(),
+        mBuffer(bufferSize),
         preBuffer(),
         preBufferLen(),
         preBufferOrig(),
         preBufferLenOrig(),
         postBuffer(),
         postBufferLen(),
-        mBuffer(bufferSize),
-        d_stream_(),
         zerr_(Z_OK),
         err(),
         decompressionStateInited()
@@ -170,14 +170,14 @@
 
     ZlibCompressionWriteFilter::ZlibCompressionWriteFilter(ZlibCompressionFilter &filter, int bufferSize, bool stateful) :
         filter(filter),
+        c_stream_(),
+        mBuffer(bufferSize),
         preBuffer(),
         preBufferLen(),
         preBufferOrig(),
         preBufferLenOrig(),
         postBuffer(),
         postBufferLen(),
-        mBuffer(bufferSize),
-        c_stream_(),
         zerr_(Z_OK),
         err(),
         compressionStateInited(),
diff -uNr RCF-0.4-orig/src/SF/Makefile RCF-0.4/src/SF/Makefile
--- RCF-0.4-orig/src/SF/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ RCF-0.4/src/SF/Makefile	2006-10-24 17:43:53.113922445 +0200
@@ -0,0 +1,54 @@
+#
+# Makefile for SF source files
+# (for syntax check, i.e. to compile all sources separately)
+#
+# Martin Dietze <dietze@4g-systems.com>
+#
+
+O = .o
+A = .a
+D = .so
+
+.PHONY: all clean shared syntax
+
+CXX = g++
+#HAS_MM = yes
+AR = ar
+CDEFINES = -DRCF_USE_OPENSSL -DRCF_USE_ZLIB -DRCF_USE_SF_SERIALIZATION \
+	-DRCF_USE_BOOST_ASIO
+CPPFLAGS = -I../../include
+CXXTHREADS = -DRCF_USE_BOOST_THREADS
+CSHARED =
+CXXFLAGS = -ansi -Wall -Werror -O3
+prefix = /usr/local
+
+OBJS = Archive.o DataPtr.o deque.o Encoding.o Exception.o IBinaryStream.o \
+	INativeBinaryStream.o ITextStream.o I_Stream.o list.o map.o memory.o \
+	Node.o OBinaryStream.o ONativeBinaryStream.o OTextStream.o \
+	PortableTypes.o Registry.o scoped_ptr.o SerializeDynamicArray.o \
+	SerializeFundamental.o SerializePolymorphic.o Serializer.o \
+	SerializeSmartPtr.o SerializeStaticArray.o SerializeStl.o set.o \
+	SfNew.o shared_ptr.o Stream.o string.o Tools.o vector.o
+SOURCES = $(OBJS:%.o=%.cpp)
+
+all:
+	@echo "Nothing do be done for $@ in SF. Run $(MAKE) in the ../RCF directory."
+
+
+shared:
+	@echo "Nothing do be done for $@ in SF. Run $(MAKE) in the ../RCF directory."
+
+syntax: $(OBJS)
+
+clean:
+	rm -f $(OBJS) *~ .depend
+
+%.o: %.cpp
+	$(CXX) -c $(CSHARED) $(CPPFLAGS) $(CDEFINES) $(CXXTHREADS) $(CXXFLAGS) $< -o $@
+
+.depend: $(SOURCES)
+	$(CXX) $(CPPFLAGS) $(CDEFINES) -MM $(SOURCES) >$@
+
+ifeq (yes,$(HAS_MM))
+sinclude .depend
+endif
Binary files RCF-0.4-orig/src/SF/libSF.a and RCF-0.4/src/SF/libSF.a differ
diff -uNr RCF-0.4-orig/test/Makefile RCF-0.4/test/Makefile
--- RCF-0.4-orig/test/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ RCF-0.4/test/Makefile	2006-10-24 17:44:01.690302364 +0200
@@ -0,0 +1,163 @@
+#
+# Makefile for RCF test programs
+#
+# Martin Dietze <dietze@4g-systems.com>
+#
+
+O = .o
+A = .a
+D = .so
+
+.PHONY: all clean syntax test test-rcs-multi test-rcs-single test-rcs-filters
+
+CXX = g++
+#HAS_MM = yes
+AR = ar
+CDEFINES = -DRCF_USE_OPENSSL -DRCF_USE_ZLIB -DRCF_USE_SF_SERIALIZATION \
+	-DRCF_USE_BOOST_ASIO
+CPPFLAGS = -I../include
+CXXTHREADS = -DRCF_USE_BOOST_THREADS
+CXXFLAGS = -ansi -Wall -Wno-unused-function -Werror -O3
+LDFLAGS = -L../src/RCF
+LIBSMT = -lRCFmt -lboost_thread -lz -lssl
+LIBSST = -lRCFst -lboost_thread -lz -lssl
+
+PROGRAMS = Test_Binding Test_ClientConnectionDrop Test_ClientInfo \
+	Test_ClientTimeout Test_Client_Minimal Test_Client_Performance \
+	Test_CycleServer_St Test_CycleServer_Mt Test_Endpoint \
+	Test_FilterPerformance Test_Filters Test_General Test_Inheritance \
+	Test_InitDeinit Test_IpRestriction Test_Minimal \
+	Test_MultiThreadedServer Test_MultipleClient Test_NetworkPerformance \
+	Test_Notification Test_ObjectFactoryService Test_Performance \
+	Test_Polymorphic Test_Serialization Test_Server_Minimal \
+	Test_Server_Performance Test_SingleThreadedServer Test_StubSerialization
+OBJS = $(PROGRAMS:%=%.o) Test_SingleThreadedServer_St.o
+SOURCES = $(OBJS:%.o=%.cpp)
+NAME = libRCF
+LIB = $(NAME)$A
+
+test: all
+	@echo "From ze test its beginnink:"
+	$(MAKE) test-rcs-multi test-rcs-single
+	@if [ -f client.pem ] && [ -f server.pem ]; then \
+		echo $(MAKE) test-rcs-filters; \
+		$(MAKE) test-rcs-filters; \
+	else \
+		echo "client.pem and/or server.pem not found, skipping filter tests."; \
+	fi
+	@echo "Not run automatically:"
+	@echo "./Test_Client_Minimal"
+	@echo "./Test_Server_Minimal"
+	@echo "./Test_Client_Performance"
+	@echo "./Test_Server_Performance"
+	@echo "./Test_NetworkPerformance"
+	@echo "From ze test its end."
+
+
+test-rcs-multi:
+	./Test_Binding
+	./Test_ClientConnectionDrop
+	./Test_ClientInfo
+	./Test_ClientTimeout
+	./Test_CycleServer_Mt
+	./Test_Endpoint
+	./Test_General
+	./Test_Inheritance
+	./Test_InitDeinit
+	./Test_IpRestriction
+	./Test_Minimal
+	./Test_MultipleClient
+	./Test_MultiThreadedServer
+	./Test_Notification
+	./Test_ObjectFactoryService
+	./Test_Performance
+	./Test_Polymorphic
+	./Test_Serialization
+	./Test_StubSerialization
+
+test-rcs-single:
+	./Test_SingleThreadedServer
+	./Test_CycleServer_St
+
+test-rcs-filters:
+	./Test_FilterPerformance
+	./Test_Filters
+
+all: $(PROGRAMS)
+
+Test_Binding: Test_Binding.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_ClientConnectionDrop: Test_ClientConnectionDrop.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_ClientInfo: Test_ClientInfo.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_ClientTimeout: Test_ClientTimeout.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Client_Minimal: Test_Client_Minimal.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Client_Performance: Test_Client_Performance.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_CycleServer_Mt: Test_CycleServer_Mt.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Endpoint: Test_Endpoint.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_FilterPerformance: Test_FilterPerformance.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Filters: Test_Filters.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_General: Test_General.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Inheritance: Test_Inheritance.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_InitDeinit: Test_InitDeinit.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_IpRestriction: Test_IpRestriction.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Minimal: Test_Minimal.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_MultiThreadedServer: Test_MultiThreadedServer.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_MultipleClient: Test_MultipleClient.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_NetworkPerformance: Test_NetworkPerformance.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Notification: Test_Notification.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_ObjectFactoryService: Test_ObjectFactoryService.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Performance: Test_Performance.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Polymorphic: Test_Polymorphic.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Serialization: Test_Serialization.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Server_Minimal: Test_Server_Minimal.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_Server_Performance: Test_Server_Performance.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+Test_StubSerialization: Test_StubSerialization.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LIBSMT)
+
+Test_SingleThreadedServer: Test_SingleThreadedServer_St.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGSST) $(LIBSST)
+Test_CycleServer_St: Test_CycleServer_St.o
+	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGSST) $(LIBSST)
+
+clean:
+	rm -f $(PROGRAMS) $(OBJS) *~ .depend
+
+%_St.o: %.cpp
+	$(CXX) -c $(CPPFLAGS) $(CDEFINES) $(CXXFLAGS) $< -o $@
+
+%_Mt.o: %.cpp
+	$(CXX) -c $(CPPFLAGS) $(CDEFINES) $(CXXFLAGS) $(CXXTHREADS) $< -o $@
+
+%.o: %.cpp
+	$(CXX) -c $(CPPFLAGS) $(CDEFINES) $(CXXFLAGS) $(CXXTHREADS) $< -o $@
+
+.depend: $(SOURCES)
+	$(CXX) $(CPPFLAGS) $(CDEFINES) -MM $(SOURCES) >$@
+
+ifeq (yes,$(HAS_MM))
+sinclude .depend
+endif
diff -uNr RCF-0.4-orig/test/Test_Binding.cpp RCF-0.4/test/Test_Binding.cpp
--- RCF-0.4-orig/test/Test_Binding.cpp	2006-02-07 21:37:18.000000000 +0100
+++ RCF-0.4/test/Test_Binding.cpp	2006-10-24 10:43:51.099624209 +0200
@@ -25,7 +25,7 @@
 
     util::CommandLine::getSingleton().parse(argc, argv);
 
-    for (int i=0; i<RCF::getTransportFactories().size(); ++i)
+    for (int i=0; i<(int)RCF::getTransportFactories().size(); ++i)
     {
         RCF::TransportFactoryPtr transportFactoryPtr = RCF::getTransportFactories()[i];
         std::pair<RCF::ServerTransportPtr, RCF::ClientTransportAutoPtrPtr> transports = transportFactoryPtr->createTransports();
diff -uNr RCF-0.4-orig/test/Test_ClientConnectionDrop.cpp RCF-0.4/test/Test_ClientConnectionDrop.cpp
--- RCF-0.4-orig/test/Test_ClientConnectionDrop.cpp	2006-07-30 12:03:52.000000000 +0200
+++ RCF-0.4/test/Test_ClientConnectionDrop.cpp	2006-10-24 11:08:26.273040553 +0200
@@ -29,7 +29,7 @@
 
     util::CommandLine::getSingleton().parse(argc, argv);
 
-    for (int i=0; i<RCF::getTransportFactories().size(); ++i)
+    for (int i=0; i<(int)RCF::getTransportFactories().size(); ++i)
     {
         RCF::TransportFactoryPtr transportFactoryPtr = RCF::getTransportFactories()[i];
         std::pair<RCF::ServerTransportPtr, RCF::ClientTransportAutoPtrPtr> transports = transportFactoryPtr->createTransports();
diff -uNr RCF-0.4-orig/test/Test_ClientInfo.cpp RCF-0.4/test/Test_ClientInfo.cpp
--- RCF-0.4-orig/test/Test_ClientInfo.cpp	2006-01-10 19:56:54.000000000 +0100
+++ RCF-0.4/test/Test_ClientInfo.cpp	2006-10-24 11:23:39.441333027 +0200
@@ -35,7 +35,7 @@
 
     util::CommandLine::getSingleton().parse(argc, argv);
 
-    for (int i=0; i<RCF::getIpTransportFactories().size(); ++i)
+    for (int i=0; i<(int)RCF::getIpTransportFactories().size(); ++i)
     {
         RCF::TransportFactoryPtr transportFactoryPtr = RCF::getTransportFactories()[i];
         std::pair<RCF::ServerTransportPtr, RCF::ClientTransportAutoPtrPtr> transports = transportFactoryPtr->createTransports();
diff -uNr RCF-0.4-orig/test/Test_ClientTimeout.cpp RCF-0.4/test/Test_ClientTimeout.cpp
--- RCF-0.4-orig/test/Test_ClientTimeout.cpp	2006-03-25 23:37:02.000000000 +0100
+++ RCF-0.4/test/Test_ClientTimeout.cpp	2006-10-24 11:25:10.069308213 +0200
@@ -44,7 +44,7 @@
 {
     util::CommandLine::getSingleton().parse(argc, argv);
 
-    for (int i=0; i<RCF::getTransportFactories().size(); ++i)
+    for (int i=0; i<(int)RCF::getTransportFactories().size(); ++i)
     {
         RCF::TransportFactoryPtr transportFactoryPtr = RCF::getTransportFactories()[i];
         std::pair<RCF::ServerTransportPtr, RCF::ClientTransportAutoPtrPtr> transports = transportFactoryPtr->createTransports();
diff -uNr RCF-0.4-orig/test/Test_CycleServer.cpp RCF-0.4/test/Test_CycleServer.cpp
--- RCF-0.4-orig/test/Test_CycleServer.cpp	2006-01-04 08:55:06.000000000 +0100
+++ RCF-0.4/test/Test_CycleServer.cpp	2006-10-24 11:36:36.003409416 +0200
@@ -46,7 +46,7 @@
 {
     util::CommandLine::getSingleton().parse(argc, argv);
 
-    for (int i=0; i<RCF::getTransportFactories().size(); ++i)
+    for (int i=0; i<(int)RCF::getTransportFactories().size(); ++i)
     {
 
         RCF::TransportFactoryPtr transportFactoryPtr = RCF::getTransportFactories()[i];
@@ -107,7 +107,7 @@
             serverThread.reset( new boost::thread( boost::bind(serverThreadTask, boost::ref(server)) ) );
             server.addJoinFunctor(joinServerThread);
 
-            for (int i=0; i<numberOfTokens; ++i)
+            for (int i=0; i<(int)numberOfTokens; ++i)
             {
                 bool ok = RCF::createRemoteObject<I_Echo>(myClient);
                 BOOST_CHECK(ok);
@@ -118,7 +118,7 @@
 
             Platform::OS::Sleep(5);
 
-            for (int i=0; i<numberOfTokens; ++i)
+            for (int i=0; i<(int)numberOfTokens; ++i)
             {
                 bool ok = RCF::createRemoteObject<I_Echo>(myClient);
                 BOOST_CHECK(ok);
diff -uNr RCF-0.4-orig/test/Test_Endpoint.cpp RCF-0.4/test/Test_Endpoint.cpp
--- RCF-0.4-orig/test/Test_Endpoint.cpp	2006-02-07 21:37:18.000000000 +0100
+++ RCF-0.4/test/Test_Endpoint.cpp	2006-10-24 11:25:06.821165733 +0200
@@ -52,7 +52,7 @@
 
     util::CommandLine::getSingleton().parse(argc, argv);
 
-    for (int i=0; i<RCF::getTransportFactories().size(); ++i)
+    for (int i=0; i<(int)RCF::getTransportFactories().size(); ++i)
     {
         RCF::TransportFactoryPtr transportFactoryPtr = RCF::getTransportFactories()[i];
         std::pair<RCF::ServerTransportPtr, RCF::ClientTransportAutoPtrPtr> transports;
diff -uNr RCF-0.4-orig/test/Test_Filters.cpp RCF-0.4/test/Test_Filters.cpp
--- RCF-0.4-orig/test/Test_Filters.cpp	2006-04-03 20:33:04.000000000 +0200
+++ RCF-0.4/test/Test_Filters.cpp	2006-10-24 11:53:08.334995214 +0200
@@ -65,21 +65,21 @@
     {
         RcfClient<X> client(clientTransportAutoPtr->clone());
 
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+1 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+2 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+1 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+2 );
 
         client.getClientStub().setTransportFilters(filterChains[i]);
 
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+3 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+4 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+3 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+4 );
 
         if (removable)
         {
             client.getClientStub().setTransportFilters(std::vector<RCF::FilterPtr>());
         }
 
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+5 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+6 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+5 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+6 );
     }
     
 }
@@ -133,18 +133,18 @@
         const std::vector<RCF::FilterPtr> &filterChain = filterChains[i];
 
         RcfClient<X> client(clientEndpoint);
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+1 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+1 );
 
         client.getClientStub().setPayloadFilters(filterChain);
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+2 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+3 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+2 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+3 );
 
         client.getClientStub().setPayloadFilters(std::vector<RCF::FilterPtr>());
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+4 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+4 );
 
         client.getClientStub().setPayloadFilters(filterChain);
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+5 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+6 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+5 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+6 );
     }
 
 }
@@ -186,18 +186,18 @@
         const std::vector<RCF::FilterPtr> &filterChain = filterChains[i];
 
         RcfClient<X> client(clientEndpoint);
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+1 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+1 );
 
         client.getClientStub().setPayloadFilters(filterChain);
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+2 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+3 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+2 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+3 );
 
         client.getClientStub().setPayloadFilters(std::vector<RCF::FilterPtr>());
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+4 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+4 );
 
         client.getClientStub().setPayloadFilters(filterChain);
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+5 );
-        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*i+6 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+5 );
+        ret = client.func(RCF::Twoway); BOOST_CHECK( ret == 6*(int)i+6 );
     }
 
 }
diff -uNr RCF-0.4-orig/test/Test_Inheritance.cpp RCF-0.4/test/Test_Inheritance.cpp
--- RCF-0.4-orig/test/Test_Inheritance.cpp	2006-01-27 21:42:32.000000000 +0100
+++ RCF-0.4/test/Test_Inheritance.cpp	2006-10-24 12:20:07.734199170 +0200
@@ -8,6 +8,7 @@
 #include <RCF/util/CommandLine.hpp>
 #include <RCF/util/PortNumbers.hpp>
 
+/*
 // interface inheritance hierarchies
 //
 //A1 <- B1 <- C1 <-
@@ -23,6 +24,7 @@
 //A1 <- Y <-
 //
 // I_E <- E
+*/
 
 RCF_BEGIN(A1, "A1")
     RCF_METHOD_R0(std::string, funcA1)
diff -uNr RCF-0.4-orig/test/Test_IpRestriction.cpp RCF-0.4/test/Test_IpRestriction.cpp
--- RCF-0.4-orig/test/Test_IpRestriction.cpp	2006-02-07 21:37:18.000000000 +0100
+++ RCF-0.4/test/Test_IpRestriction.cpp	2006-10-24 12:27:45.390368243 +0200
@@ -33,7 +33,6 @@
     util::CommandLine::getSingleton().parse(argc, argv);
 
     std::string localIp = "localhost";
-    int localPort = 0;
 
     for (unsigned int i=0; i<RCF::getIpTransportFactories().size(); ++i)
     {
diff -uNr RCF-0.4-orig/test/Test_NetworkPerformance.cpp RCF-0.4/test/Test_NetworkPerformance.cpp
--- RCF-0.4-orig/test/Test_NetworkPerformance.cpp	2006-03-20 15:48:54.000000000 +0100
+++ RCF-0.4/test/Test_NetworkPerformance.cpp	2006-10-24 12:33:16.053031974 +0200
@@ -222,4 +222,5 @@
         RCF_VERIFY(0, "no protocol specified");
     }
 
-}
\ No newline at end of file
+}
+
diff -uNr RCF-0.4-orig/test/Test_Notification.cpp RCF-0.4/test/Test_Notification.cpp
--- RCF-0.4-orig/test/Test_Notification.cpp	2006-03-19 13:20:04.000000000 +0100
+++ RCF-0.4/test/Test_Notification.cpp	2006-10-24 12:34:35.896571773 +0200
@@ -127,9 +127,9 @@
 
             for (unsigned int k=0; k<events.size(); ++k)
             {
-                BOOST_CHECK(events[k].nA == k);
-                BOOST_CHECK(events[k].nB == k);
-                BOOST_CHECK(events[k].nC == k);
+                BOOST_CHECK(events[k].nA == (int)k);
+                BOOST_CHECK(events[k].nB == (int)k);
+                BOOST_CHECK(events[k].nC == (int)k);
             }
         }
 
diff -uNr RCF-0.4-orig/test/Test_ObjectFactoryService.cpp RCF-0.4/test/Test_ObjectFactoryService.cpp
--- RCF-0.4-orig/test/Test_ObjectFactoryService.cpp	2006-04-02 22:29:52.000000000 +0200
+++ RCF-0.4/test/Test_ObjectFactoryService.cpp	2006-10-24 12:37:14.587606124 +0200
@@ -78,7 +78,7 @@
         BOOST_CHECK( s == s0 );
         BOOST_CHECK(token != RCF::Token());
 
-        for (int j=0; j<numberOfTokens-1;++j)
+        for (int j=0; j<(int)numberOfTokens-1;++j)
         {
             ok = RCF::createRemoteObject<I_Echo>(client);
             BOOST_CHECK(ok);
diff -uNr RCF-0.4-orig/test/Test_Polymorphic.cpp RCF-0.4/test/Test_Polymorphic.cpp
--- RCF-0.4-orig/test/Test_Polymorphic.cpp	2006-04-03 14:33:42.000000000 +0200
+++ RCF-0.4/test/Test_Polymorphic.cpp	2006-10-24 12:45:11.860774284 +0200
@@ -288,7 +288,7 @@
                 spa = zClient.f2( typeid(C).name() ); BOOST_CHECK( dynamic_cast<C *>(spa.get()) != NULL );
             }
             {
-                A *pa = NULL;
+                //A *pa = NULL;
                 //xClient.f3(typeid(B).name(), pa); BOOST_CHECK( dynamic_cast<B *>(pa) != NULL );
                 //xClient.f3(typeid(C).name(), pa); BOOST_CHECK( dynamic_cast<C *>(pa) != NULL );
 
diff -uNr RCF-0.4-orig/test/Test_Serialization.cpp RCF-0.4/test/Test_Serialization.cpp
--- RCF-0.4-orig/test/Test_Serialization.cpp	2006-04-03 15:33:56.000000000 +0200
+++ RCF-0.4/test/Test_Serialization.cpp	2006-10-24 12:49:32.708372131 +0200
@@ -507,7 +507,7 @@
 
     // Single dimensional static array
     int pn1[SIZE];
-    for (int i=0;i<SIZE;i++)
+    for (int i=0;i<(int)SIZE;i++)
         pn1[i] = i-20;
 
     int pn2[SIZE];
diff -uNr RCF-0.4-orig/test/port.txt RCF-0.4/test/port.txt
--- RCF-0.4-orig/test/port.txt	1970-01-01 01:00:00.000000000 +0100
+++ RCF-0.4/test/port.txt	2006-10-24 15:51:18.531284783 +0200
@@ -0,0 +1 @@
+50271
\ No newline at end of file