Hm... I imported imap.vcproj in Code::Blocks. I read the source of
imap.vcproj to see what happens with osdep.h. I see it is just copied
from imap/osdep/nt/os_nt.h. I am right?
I did it manualy. Copied os_nt.h to lib/imap/c-client/osdep.h.
Something compiles but there are some (over 50) errors that I do not
understand.

Here is the build log:
> -------------- Build: Debug_Win32 in imap --------------- 
> mingw32-gcc.exe -W -g -O0 -DWIN32 -D_DEBUG -D_LIB -DCHUNKSIZE=65536
> -Isrc\c-client -Isrc\osdep\nt -Isrc\charset
> -IC:\Programme\CodeBlocks\include  -c
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c
> -o debug\src\osdep\nt\ip4_nt.o 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:40:
> warning: "struct sockaddr" declared inside parameter list 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:40:
> warning: its scope is only this definition or declaration, which is
> probably not what you want 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:41:
> warning: "struct sockaddr" declared inside parameter list 

Ok, I ignore the warnings.

> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:42:
> error: syntax error before "size_t" 

I didn't see any syntax errors there.

etc...
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:43:
> error: syntax error before '*' token 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:44:
> error: syntax error before "size_t" 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:47:
> error: syntax error before "size_t" 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_sockaddrtostring': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:57:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:57:
> error: `PF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:57:
> error: (Each undeclared identifier is reported only once 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:57:
> error: for each function it appears in.) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:58:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_sockaddrtoport': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:69:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:69:
> error: `PF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:69:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> At top level: 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:80:
> error: syntax error before "size_t" 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_stringtoaddr': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:85:
> error: `text' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:85:
> warning: comparison between signed and unsigned 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:85:
> error: `NIL' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:87:
> error: `len' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:87:
> error: invalid application of `sizeof' to incomplete type `in_addr' 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:88:
> error: `family' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:88:
> error: `AF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:89:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> At top level: 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:99:
> error: syntax error before '*' token 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_newsockaddr': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:101:
> error: invalid application of `sizeof' to incomplete type `sockaddr'
>  
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:101:
> error: `len' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:101:
> error: invalid application of `sizeof' to incomplete type `sockaddr'
>  
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:101:
> warning: passing arg 1 of `memset' makes pointer from integer without
> a cast 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> At top level: 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:114:
> error: syntax error before "size_t" 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_sockaddr': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:117:
> error: `len' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:118:
> error: `family' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:119:
> error: `AF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:120:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:120:
> error: `PF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:122:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:122:
> error: `adr' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:122:
> error: `adrlen' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:124:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:124:
> error: `port' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:125:
> error: invalid application of `sizeof' to incomplete type
> `sockaddr_in' 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:128:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:128:
> error: `PF_UNSPEC' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_sockaddrtoname': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:142:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:142:
> error: `PF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:143:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:143:
> error: invalid application of `sizeof' to incomplete type `in_addr' 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:143:
> error: `AF_INET' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:143:
> warning: assignment makes pointer from integer without a cast 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:144:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:144:
> error: `NIL' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> At top level: 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:157:
> error: syntax error before "size_t" 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:
> In function `ip_nametoaddr': 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:160:
> error: `MAILTMPLEN' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:162:
> error: `name' undeclared (first use in this function) 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:165:
> warning: assignment makes pointer from integer without a cast 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:166:
> error: dereferencing pointer to incomplete type 
> D:\Garage\projekte\mahogany\mahoganySVN\lib\imap\src\osdep\nt\ip4_nt.c:167:
> error: `len' undeclared (first use in this function) Process
> terminated with status 1 (0 minutes, 1 seconds) 50 errors, 7 warnings


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-Developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to