http://bugs.winehq.org/show_bug.cgi?id=25900
Summary: build fails dlls/httpapi/httpapi_main.c on caos NSA 0.9 x86_64 Product: Wine Version: 1.3.12 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: cjnitta@gmail.com
I have tried building wine versions 1.2.1, 1.2.2, and 1.3.12 on caos NSA 0.9 x86_64. All versions have the same behavior when I try to build them.
When I try to build I get the following error on httpapi_main.c: gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -g -O2 -o httpapi_main.o httpapi_main.c In file included from ../../include/http.h:25, from httpapi_main.c:27: ../../include/ws2tcpip.h:57: error: conflicting types for 'socklen_t' /usr/include/unistd.h:245: error: previous declaration of 'socklen_t' was here make[1]: *** [httpapi_main.o] Error 1 make[1]: Leaving directory `/home/cnitta/wine-1.3.12/dlls/httpapi' make: *** [dlls/httpapi] Error 2
I have tried adding #define USE_WS_PREFIX as discussed in: http://www.mail-archive.com/wine-devel@winehq.org/msg53614.html
It will compile httpapi_main.c, but then fails on internettransport.c: gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -g -O2 -o internettransport.o internettransport.c In file included from internettransport.c:23: ../../include/ws2tcpip.h:57: error: conflicting types for 'socklen_t' /usr/include/unistd.h:245: error: previous declaration of 'socklen_t' was here make[1]: *** [internettransport.o] Error 1 make[1]: Leaving directory `/home/cnitta/wine-1.3.12/dlls/inetcomm' make: *** [dlls/inetcomm] Error 2
Applying the same fix to internettransport.c causes many other problems such as "storage size of 'hints' isn't known", etc.
This seems somewhat similar to the problems associated with OpenBSD, bug 16660.