> Hi Mark,
> 
> I have currently no idea, why this fails on sun.

Hi Tommi,

Thanks, I've worked around it on sun by declaring sss like:

<%session scope="global">
ServerSessionState sss;
</%session>

and then accessing sss from the sub-components.  This avoids passing
the pointer argument to the sub-components, which avoids the problem
on sun.

> But I reviewed applied the 
> patches for cxxtools. The patches for tntnet and tntdb will follow.
> 
> I did not apply all changes. Please check, if the current version compile on 
> sun. I'm curious about some headers you included like <string.h> in 
> tcpserverimpl.cpp or <stdio.h> in messageheader.cpp. I don't see, why you 
> included these. Either they slipped in by accident or you have issues.
> 
> Tommi

Thanks for applying some of the diffs to cxxtools.  I did svn up,
and svn revert of stuff, so that I have the same source code:

% svn up cxxtools
At revision 842.
% svn diff cxxtools
% 

Then I compiled stuff with Sun Studio C++ 12 with the Apache stdcxx library.
Sun Studio 12 update 1 will include a new option to use the Apache stdcxx
library.  Then all C++ libraries that are provided with Open Solaris by
Sun will be recompiled using the Apache stdcxx library (starting around
Aug 2009).

There will be a change though where the Apache stdcxx library will be
compiled using the Sun Solaris C header files, instead of the
Apache stdcxx C header files I am compiling it with.  The compilers below
for:

"directoryimpl.cpp", line 197: Error: PATH_MAX is not defined.

"fileimpl.cpp", line 75: Error: remove is not a member of file level.
"fileimpl.cpp", line 89: Error: FILE is not defined.

"processimpl.cpp", line 172: Error: The function "setenv" must have a prototype.
"processimpl.cpp", line 181: Error: The function "unsetenv" must have a 
prototype.

seem to be caused by the Apache stdcxx C library having a strict
interpretation of the C and C++ standards.  I am guessing those
particular errors may be fixed when the change is made to stdcxx to use
the Sun Solaris header files instead.  I am guessing the other C++ errors
though would remain without the diffs below.

--------------------------------------------------------------------------------

source='directoryimpl.cpp' object='libcxxtools_la-directoryimpl.lo' libtool=yes 
\
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. 
-I../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c -o 
libcxxtools_la-directoryimpl.lo `test -f 'directoryimpl.cpp' || echo 
'./'`directoryimpl.cpp
 CC -DHAVE_CONFIG_H -I. -I../include -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c 
directoryimpl.cpp  -KPIC -DPIC -o .libs/libcxxtools_la-directoryimpl.o
"directoryimpl.cpp", line 197: Error: PATH_MAX is not defined.
"directoryimpl.cpp", line 197: Error: An integer constant expression is 
required within the array subscript operator.
"directoryimpl.cpp", line 199: Error: PATH_MAX is not defined.
3 Error(s) detected.
make[2]: *** [libcxxtools_la-directoryimpl.lo] Error 1
make[2]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 13:57:13

--------------------------------------------------------------------------------

% svn diff cxxtools
Index: cxxtools/src/directoryimpl.cpp
===================================================================
--- cxxtools/src/directoryimpl.cpp      (revision 842)
+++ cxxtools/src/directoryimpl.cpp      (working copy)
@@ -34,6 +34,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <limits.h>
 
 namespace cxxtools {
 
% 

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

source='fileimpl.cpp' object='libcxxtools_la-fileimpl.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. 
-I../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c -o 
libcxxtools_la-fileimpl.lo `test -f 'fileimpl.cpp' || echo './'`fileimpl.cpp
 CC -DHAVE_CONFIG_H -I. -I../include -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c fileimpl.cpp  
-KPIC -DPIC -o .libs/libcxxtools_la-fileimpl.o
"fileimpl.cpp", line 75: Error: remove is not a member of file level.
"fileimpl.cpp", line 89: Error: FILE is not defined.
"fileimpl.cpp", line 89: Error: f is not defined.
"fileimpl.cpp", line 89: Error: The function "fopen" must have a prototype.
"fileimpl.cpp", line 90: Error: f is not defined.
"fileimpl.cpp", line 93: Error: f is not defined.
6 Error(s) detected.
make[2]: *** [libcxxtools_la-fileimpl.lo] Error 1
make[2]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 14:00:18

--------------------------------------------------------------------------------

% svn diff cxxtools/src/fileimpl.cpp 
Index: cxxtools/src/fileimpl.cpp
===================================================================
--- cxxtools/src/fileimpl.cpp   (revision 842)
+++ cxxtools/src/fileimpl.cpp   (working copy)
@@ -34,6 +34,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <cstdio>
+#include <stdio.h>
 
 namespace cxxtools {
 
% 

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

source='mime.cpp' object='libcxxtools_la-mime.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. 
-I../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c -o 
libcxxtools_la-mime.lo `test -f 'mime.cpp' || echo './'`mime.cpp
 CC -DHAVE_CONFIG_H -I. -I../include -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c mime.cpp  
-KPIC -DPIC -o .libs/libcxxtools_la-mime.o
"mime.cpp", line 156: Error: hex is not a member of std.
1 Error(s) detected.
make[2]: *** [libcxxtools_la-mime.lo] Error 1
make[2]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 14:02:50

--------------------------------------------------------------------------------

% svn diff cxxtools/src/mime.cpp    
Index: cxxtools/src/mime.cpp
===================================================================
--- cxxtools/src/mime.cpp       (revision 842)
+++ cxxtools/src/mime.cpp       (working copy)
@@ -32,6 +32,7 @@
 #include <cxxtools/log.h>
 #include <stdlib.h>
 #include <vector>
+#include <ios>
 #include <sstream>
 #include <fstream>
 #include <stdexcept>
% 

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

source='processimpl.cpp' object='libcxxtools_la-processimpl.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. 
-I../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c -o 
libcxxtools_la-processimpl.lo `test -f 'processimpl.cpp' || echo 
'./'`processimpl.cpp
 CC -DHAVE_CONFIG_H -I. -I../include -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c 
processimpl.cpp  -KPIC -DPIC -o .libs/libcxxtools_la-processimpl.o
"processimpl.cpp", line 172: Error: The function "setenv" must have a prototype.
"processimpl.cpp", line 181: Error: The function "unsetenv" must have a 
prototype.
2 Error(s) detected.
make[2]: *** [libcxxtools_la-processimpl.lo] Error 1
make[2]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 14:16:48

--------------------------------------------------------------------------------

% svn diff cxxtools/src/processimpl.cpp
Index: cxxtools/src/processimpl.cpp
===================================================================
--- cxxtools/src/processimpl.cpp        (revision 842)
+++ cxxtools/src/processimpl.cpp        (working copy)
@@ -27,6 +27,7 @@
 #include "iodeviceimpl.h"
 
 #include <cstdio>
+#include <stdlib.h>
 #include <vector>
 #include <signal.h>
 #include <errno.h>
% 

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

source='tcpserverimpl.cpp' object='libcxxtools_la-tcpserverimpl.lo' libtool=yes 
\
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. 
-I../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c -o 
libcxxtools_la-tcpserverimpl.lo `test -f 'tcpserverimpl.cpp' || echo 
'./'`tcpserverimpl.cpp
 CC -DHAVE_CONFIG_H -I. -I../include -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c 
tcpserverimpl.cpp  -KPIC -DPIC -o .libs/libcxxtools_la-tcpserverimpl.o
"tcpserverimpl.cpp", line 146: Error: The function "memset" must have a 
prototype.
1 Error(s) detected.
make[2]: *** [libcxxtools_la-tcpserverimpl.lo] Error 1
make[2]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 15:10:07

--------------------------------------------------------------------------------

% svn diff cxxtools/src/tcpserverimpl.cpp 
Index: cxxtools/src/tcpserverimpl.cpp
===================================================================
--- cxxtools/src/tcpserverimpl.cpp      (revision 842)
+++ cxxtools/src/tcpserverimpl.cpp      (working copy)
@@ -45,6 +45,8 @@
 
 log_define("cxxtools.net.tcpserverimpl")
 
+using std::memset;
+
 namespace cxxtools {
 
 namespace net {
% 

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

source='tcpstream.cpp' object='libcxxtools_la-tcpstream.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. 
-I../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c -o 
libcxxtools_la-tcpstream.lo `test -f 'tcpstream.cpp' || echo './'`tcpstream.cpp
 CC -DHAVE_CONFIG_H -I. -I../include -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses -D_REENTRANT -mt -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c tcpstream.cpp  
-KPIC -DPIC -o .libs/libcxxtools_la-tcpstream.o
"tcpstream.cpp", line 46: Error: ioctl is not a member of file level.
"tcpstream.cpp", line 46: Error: FIONREAD is not defined.
2 Error(s) detected.
make[2]: *** [libcxxtools_la-tcpstream.lo] Error 1
make[2]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 15:13:25

--------------------------------------------------------------------------------

% svn diff cxxtools/src/tcpstream.cpp
Index: cxxtools/src/tcpstream.cpp
===================================================================
--- cxxtools/src/tcpstream.cpp  (revision 842)
+++ cxxtools/src/tcpstream.cpp  (working copy)
@@ -26,7 +26,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
  */
 
+#include "config.h"
 #include <cxxtools/net/tcpstream.h>
+#include <unistd.h>
 #include <sys/ioctl.h>
 #ifdef HAVE_SYS_FILIO_H
 #include <sys/filio.h>
% 

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

source='messageheader.cpp' object='messageheader.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
        /bin/bash ../../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H 
-I. -I../../src -I../../include  -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER 
-I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include -I/usr/sfw/include 
-I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public -I/usr/gnu/include 
-I/usr/gnu/include/ncurses  -g -xdebugformat=stabs -xs -mt -library=no%Cstd 
-features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib -R/h/goanna/1/a_5.10_m64/c/lib 
-lstd15D -xtarget=opteron -m64 -c -o messageheader.lo messageheader.cpp
 CC -DHAVE_CONFIG_H -I. -I../../src -I../../include -D_RWSTDDEBUG 
-D_RWSTD_NO_DEBUG_ITER -I/h/goanna/1/a_5.10_m64/c/include -I/usr/xpg4/include 
-I/usr/sfw/include -I/h/goanna/1/oracle/oracle/product/10.2.0/db_1/rdbms/public 
-I/usr/gnu/include -I/usr/gnu/include/ncurses -g -xdebugformat=stabs -xs -mt 
-library=no%Cstd -features=tmplife -L/h/goanna/1/a_5.10_m64/c/lib 
-R/h/goanna/1/a_5.10_m64/c/lib -lstd15D -xtarget=opteron -m64 -c 
messageheader.cpp  -KPIC -DPIC -o .libs/messageheader.o
"messageheader.cpp", line 103: Error: The function "sprintf" must have a 
prototype.
1 Error(s) detected.
make[1]: *** [messageheader.lo] Error 1
make[1]: Leaving directory `/h/goanna/2/ta/tntnet/cxxtools/src/http'
gmake: *** [all-recursive] Error 1

Compilation exited abnormally with code 2 at Sat Apr 25 15:40:32

--------------------------------------------------------------------------------

% svn diff cxxtools/src/http/messageheader.cpp 
Index: cxxtools/src/http/messageheader.cpp
===================================================================
--- cxxtools/src/http/messageheader.cpp (revision 842)
+++ cxxtools/src/http/messageheader.cpp (working copy)
@@ -30,6 +30,7 @@
 #include <cxxtools/clock.h>
 #include <cctype>
 #include <sstream>
+#include <cstdio>
 
 namespace cxxtools {
 
@@ -100,7 +101,7 @@
     static const char* monthn[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
                                    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
     char buffer[80];
-    sprintf(buffer, "%s, %02d %s %d %02d:%02d:%02d GMT",
+    std::sprintf(buffer, "%s, %02d %s %d %02d:%02d:%02d GMT",
                     wday[dayOfWeek], day, monthn[month-1], year, hour, min, 
sec);
 
     return std::string(buffer);
% 

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

Or here are all the diffs above again in one place:

% svn diff cxxtools                           
Index: cxxtools/src/tcpserverimpl.cpp
===================================================================
--- cxxtools/src/tcpserverimpl.cpp      (revision 842)
+++ cxxtools/src/tcpserverimpl.cpp      (working copy)
@@ -45,6 +45,8 @@
 
 log_define("cxxtools.net.tcpserverimpl")
 
+using std::memset;
+
 namespace cxxtools {
 
 namespace net {
Index: cxxtools/src/directoryimpl.cpp
===================================================================
--- cxxtools/src/directoryimpl.cpp      (revision 842)
+++ cxxtools/src/directoryimpl.cpp      (working copy)
@@ -34,6 +34,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <limits.h>
 
 namespace cxxtools {
 
Index: cxxtools/src/http/messageheader.cpp
===================================================================
--- cxxtools/src/http/messageheader.cpp (revision 842)
+++ cxxtools/src/http/messageheader.cpp (working copy)
@@ -30,6 +30,7 @@
 #include <cxxtools/clock.h>
 #include <cctype>
 #include <sstream>
+#include <cstdio>
 
 namespace cxxtools {
 
@@ -100,7 +101,7 @@
     static const char* monthn[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
                                    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
     char buffer[80];
-    sprintf(buffer, "%s, %02d %s %d %02d:%02d:%02d GMT",
+    std::sprintf(buffer, "%s, %02d %s %d %02d:%02d:%02d GMT",
                     wday[dayOfWeek], day, monthn[month-1], year, hour, min, 
sec);
 
     return std::string(buffer);
Index: cxxtools/src/processimpl.cpp
===================================================================
--- cxxtools/src/processimpl.cpp        (revision 842)
+++ cxxtools/src/processimpl.cpp        (working copy)
@@ -27,6 +27,7 @@
 #include "iodeviceimpl.h"
 
 #include <cstdio>
+#include <stdlib.h>
 #include <vector>
 #include <signal.h>
 #include <errno.h>
Index: cxxtools/src/mime.cpp
===================================================================
--- cxxtools/src/mime.cpp       (revision 842)
+++ cxxtools/src/mime.cpp       (working copy)
@@ -32,6 +32,7 @@
 #include <cxxtools/log.h>
 #include <stdlib.h>
 #include <vector>
+#include <ios>
 #include <sstream>
 #include <fstream>
 #include <stdexcept>
Index: cxxtools/src/fileimpl.cpp
===================================================================
--- cxxtools/src/fileimpl.cpp   (revision 842)
+++ cxxtools/src/fileimpl.cpp   (working copy)
@@ -34,6 +34,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <cstdio>
+#include <stdio.h>
 
 namespace cxxtools {
 
Index: cxxtools/src/tcpstream.cpp
===================================================================
--- cxxtools/src/tcpstream.cpp  (revision 842)
+++ cxxtools/src/tcpstream.cpp  (working copy)
@@ -26,7 +26,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
  */
 
+#include "config.h"
 #include <cxxtools/net/tcpstream.h>
+#include <unistd.h>
 #include <sys/ioctl.h>
 #ifdef HAVE_SYS_FILIO_H
 #include <sys/filio.h>
% 

-- 

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to