[wx-dev] Status of the SOC2006_SOCKET branch
Albert van Peppen
Albert at insad.nl
Mon Oct 2 02:41:06 PDT 2006
Ok, basically I thought there was just one error (if I use VC.NET 2005
in these samples), which involves time.h.
At first (after converting gsocket.cpp/gsocket.h/gsockmsw.cpp to DOS
format) the following list of problems remain:
<< See Build1.txt >>
Replacing
#include <sys/time.h>
With
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/wince/time.h"
#endif
Gave me another list of problems:
<< See Build2.txt >>
After remarking all the #warning statements (gsocket.h/gsockmsw.cpp)
gave me the following list:
<< See Build3.txt >>
Here is where the fun starts: The missing nerrno.h is placed in the
follwing type of code:
#if defined(__WATCOMC__)
#include "wx/wxprec.h"
#include <errno.h>
#include <nerrno.h>
#endif
Why is the code coded included? I am using VC.NET... I don't know! So I
commented out the #include <nerrno.h>
The second part is puzzling me as well. It is in the following code:
void PokeUInt16(void* p, uint16_t value)
{
#if defined(__arm__) or defined(__sparc__)
// Avoid aligment issues.
memcpy(p, &value, sizeof(uint16_t));
#else
*((uint16_t*)p) = value;
#endif
}
What I don't understand here is use of 'uint16_t' (It is only used in
this source) I would expect 'wxUint16'.
Same for 'uint16_t' which I replaced with 'wxUint32'.
The 'or' in the #ifdef puzzled me as well, so I replaced it with '||'.
Which left me with the last list of problems.
<< See Build4.txt >>
For which is didn't had a solution right at hand so maybe someone can
give me a little advise;
( I suppose the wxPROCESS_ENTER error is due to a problem in the HEAD
branch? So I skip this for now)
The problem still is in the code like:
#if defined(__WATCOMC__)
#include "wx/wxprec.h"
#include <errno.h>
// #include <nerrno.h>
#endif
Maybe somebody out ther knows about this issue where VC.NET thinks it's
a Watcom compiler??
It happens on VC.NET 2003 and on VC.NET 2005.
Regards,
Albert van Peppen
-------------- next part --------------
------ Build started: Project: html, Configuration: Debug Win32 ------
Compiling...
htmlpars.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\html\BuildLog.htm"
html - 1 error(s), 0 warning(s)
------ Build started: Project: html, Configuration: Release Win32 ------
Compiling...
htmlpars.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_msw\html\BuildLog.htm"
html - 1 error(s), 0 warning(s)
------ Build started: Project: core, Configuration: Release Win32 ------
Compiling...
gsockmsw.cpp
..\..\src\msw\gsockmsw.cpp : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
..\..\src\msw\gsockmsw.cpp(15) : fatal error C1021: invalid preprocessor command 'warning'
combocmn.cpp
..\..\src\common\combocmn.cpp(757) : error C2065: 'wxPROCESS_ENTER' : undeclared identifier
appcmn.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
Generating Code...
Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_msw\core\BuildLog.htm"
core - 4 error(s), 0 warning(s)
------ Build started: Project: core, Configuration: Debug Win32 ------
Compiling...
appcmn.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
combocmn.cpp
..\..\src\common\combocmn.cpp(757) : error C2065: 'wxPROCESS_ENTER' : undeclared identifier
gsockmsw.cpp
..\..\src\msw\gsockmsw.cpp : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
..\..\src\msw\gsockmsw.cpp(15) : fatal error C1021: invalid preprocessor command 'warning'
Generating Code...
Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\core\BuildLog.htm"
core - 4 error(s), 0 warning(s)
------ Build started: Project: net, Configuration: Release Win32 ------
Compiling...
url.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sockettable.cpp
..\..\src\common\sockettable.cpp(32) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
socket.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckstrm.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckipc.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckfile.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckaddr.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
protocol.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
http.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
gsocket.cpp
..\..\src\common\gsocket.cpp(35) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
gaddr.cpp
..\..\src\common\gaddr.cpp(16) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
ftp.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
fs_inet.cpp
..\..\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
Generating Code...
Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_msw\net\BuildLog.htm"
net - 13 error(s), 0 warning(s)
------ Build started: Project: net, Configuration: Debug Win32 ------
Compiling...
fs_inet.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
ftp.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
gaddr.cpp
..\..\src\common\gaddr.cpp(16) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
gsocket.cpp
..\..\src\common\gsocket.cpp(35) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
http.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
protocol.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckaddr.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckfile.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckipc.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sckstrm.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
socket.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
sockettable.cpp
..\..\src\common\sockettable.cpp(32) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
url.cpp
l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(51) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
Generating Code...
Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\net\BuildLog.htm"
net - 13 error(s), 0 warning(s)
========== Build: 0 succeeded, 6 failed, 34 up-to-date, 0 skipped ==========
-------------- next part --------------
1>------ Build started: Project: html, Configuration: Debug Win32 ------
1>Compiling...
2>------ Build started: Project: core, Configuration: Debug Win32 ------
2>Compiling...
1>htmlpars.cpp
2>appcmn.cpp
1>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
2>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
2>combocmn.cpp
1>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\html\BuildLog.htm"
1>html - 1 error(s), 0 warning(s)
2>..\..\src\common\combocmn.cpp(757) : error C2065: 'wxPROCESS_ENTER' : undeclared identifier
2>gsockmsw.cpp
2>..\..\src\msw\gsockmsw.cpp(29) : fatal error C1021: invalid preprocessor command 'warning'
2>Generating Code...
2>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\core\BuildLog.htm"
2>core - 3 error(s), 0 warning(s)
3>------ Build started: Project: net, Configuration: Debug Win32 ------
3>Compiling...
3>fs_inet.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>ftp.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>gaddr.cpp
3>..\..\src\common\gaddr.cpp(16) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
3>gsocket.cpp
3>..\..\src\common\gsocket.cpp(35) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
3>http.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>protocol.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>sckaddr.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>sckfile.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>sckipc.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>sckstrm.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>socket.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>sockettable.cpp
3>..\..\src\common\sockettable.cpp(37) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
3>url.cpp
3>l:\wxWidgetsTest\SOC2006_SOCKETS\include\wx/gsocket.h(415) : fatal error C1021: invalid preprocessor command 'warning'
3>Generating Code...
3>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\net\BuildLog.htm"
3>net - 13 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 17 up-to-date, 0 skipped ==========
-------------- next part --------------
1>------ Build started: Project: html, Configuration: Debug Win32 ------
1>Compiling...
2>------ Build started: Project: core, Configuration: Debug Win32 ------
2>Compiling...
1>htmlpars.cpp
2>appcmn.cpp
2>combocmn.cpp
1>Creating library...
2>..\..\src\common\combocmn.cpp(757) : error C2065: 'wxPROCESS_ENTER' : undeclared identifier
2>gsockmsw.cpp
1>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\html\BuildLog.htm"
1>html - 0 error(s), 0 warning(s)
2>..\..\src\msw\gsockmsw.cpp(801) : warning C4389: '==' : signed/unsigned mismatch
2>Generating Code...
2>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\core\BuildLog.htm"
2>core - 1 error(s), 1 warning(s)
3>------ Build started: Project: net, Configuration: Debug Win32 ------
3>Compiling...
3>fs_inet.cpp
3>ftp.cpp
3>gaddr.cpp
3>..\..\src\common\gaddr.cpp(16) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
3>gsocket.cpp
3>..\..\src\common\gsocket.cpp(35) : fatal error C1083: Cannot open include file: 'nerrno.h': No such file or directory
3>http.cpp
3>protocol.cpp
3>sckaddr.cpp
3>sckfile.cpp
3>sckipc.cpp
3>sckstrm.cpp
3>socket.cpp
3>..\..\src\common\socket.cpp(81) : error C2061: syntax error : identifier 'uint16_t'
3>..\..\src\common\socket.cpp(83) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
3>..\..\src\common\socket.cpp(83) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
3>..\..\src\common\socket.cpp(87) : error C2065: 'uint16_t' : undeclared identifier
3>..\..\src\common\socket.cpp(87) : error C2059: syntax error : ')'
3>..\..\src\common\socket.cpp(91) : error C2061: syntax error : identifier 'uint16_t'
3>..\..\src\common\socket.cpp(93) : error C2065: 'value' : undeclared identifier
3>..\..\src\common\socket.cpp(93) : error C2660: 'PokeUInt16' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(96) : error C2061: syntax error : identifier 'uint32_t'
3>..\..\src\common\socket.cpp(98) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
3>..\..\src\common\socket.cpp(98) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
3>..\..\src\common\socket.cpp(102) : error C2065: 'uint32_t' : undeclared identifier
3>..\..\src\common\socket.cpp(102) : error C2059: syntax error : ')'
3>..\..\src\common\socket.cpp(106) : error C2061: syntax error : identifier 'uint32_t'
3>..\..\src\common\socket.cpp(108) : error C2660: 'PokeUInt32' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(1470) : error C2660: 'PokeUInt16_BE' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(1471) : warning C4245: 'initializing' : conversion from 'int' to 'unsigned long', signed/unsigned mismatch
3>..\..\src\common\socket.cpp(1486) : error C2660: 'PokeUInt32_BE' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(1491) : error C2660: 'PokeUInt32_BE' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(1692) : warning C4245: 'initializing' : conversion from 'int' to 'unsigned long', signed/unsigned mismatch
3>..\..\src\common\socket.cpp(1705) : error C2660: 'PokeUInt32_BE' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(1717) : error C2660: 'PokeUInt16_BE' : function does not take 2 arguments
3>..\..\src\common\socket.cpp(1924) : fatal error C1021: invalid preprocessor command 'warning'
3>sockettable.cpp
3>..\..\src\common\sockettable.cpp(37) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
3>url.cpp
3>Generating Code...
3>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\net\BuildLog.htm"
3>net - 20 error(s), 6 warning(s)
========== Build: 1 succeeded, 2 failed, 17 up-to-date, 0 skipped ==========
-------------- next part --------------
1>------ Build started: Project: core, Configuration: Debug Win32 ------
1>Compiling...
1>combocmn.cpp
1>..\..\src\common\combocmn.cpp(757) : error C2065: 'wxPROCESS_ENTER' : undeclared identifier
1>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\core\BuildLog.htm"
1>core - 1 error(s), 0 warning(s)
2>------ Build started: Project: net, Configuration: Debug Win32 ------
2>Compiling...
2>gaddr.cpp
2>..\..\src\common\gaddr.cpp(17) : fatal error C1020: unexpected #endif
2>gsocket.cpp
2>..\..\src\common\gsocket.cpp(37) : fatal error C1020: unexpected #endif
2>socket.cpp
2>..\..\src\common\socket.cpp(1471) : warning C4245: 'initializing' : conversion from 'int' to 'unsigned long', signed/unsigned mismatch
2>..\..\src\common\socket.cpp(1692) : warning C4245: 'initializing' : conversion from 'int' to 'unsigned long', signed/unsigned mismatch
2>Generating Code...
2>Build log was saved at "file://l:\wxWidgetsTest\SOC2006_SOCKETS\build\msw\vc_mswd\net\BuildLog.htm"
2>net - 2 error(s), 2 warning(s)
========== Build: 0 succeeded, 2 failed, 18 up-to-date, 0 skipped ==========
More information about the wx-dev
mailing list