Cygwin building part 2

Steven Edwards Steven_Ed4153 at yahoo.com
Wed Apr 30 11:46:49 CDT 2003


We have 5 bugs that are preventing building on cygwin. Not that it will 
work after it builds but lets get it to build first and then worry about 
running. Some of these seem like they are simple while others like the 
kernel32 building are very complex. I will see if I can fix the winsock 
bug tonight.

1. We cannot build kernel32 with the current CVS
http://www.winehq.org/hypermail/wine-devel/2003/04/0765.html

2. when building wininet on cygwin we get this:

internet.o(.text+0x1365): In function `InternetCloseHandle':
/cygdrive/g/src/wine-dev/wine/dlls/wininet/internet.c:670: undefined 
reference t
o `___wine_exception_handler'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1

3. With winsock we are getting this:

gcc -c -I. -I. -I../../include -I../../include  -D_REENTRANT 
-D__WINESRC__ -DUSE
_WS_PREFIX -Wall -mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith 
-g -O2 -o
 socket.o socket.c
socket.c:286: `IP_HDRINCL' undeclared here (not in a function)
socket.c:286: initializer element is not constant
socket.c:286: (near initialization for `ws_ip_map[6][1]')
socket.c:286: initializer element is not constant
socket.c:286: (near initialization for `ws_ip_map[6]')
socket.c:287: initializer element is not constant
socket.c:287: (near initialization for `ws_ip_map[7]')
socket.c:288: initializer element is not constant
socket.c:288: (near initialization for `ws_ip_map[8]')
socket.c:289: initializer element is not constant
socket.c:289: (near initialization for `ws_ip_map[9]')
make[1]: *** [socket.o] Error 1

4. miscemu fails to build
main.c:34: warning: implicit declaration of function `exit'
gcc -o wine  main.o  -L../libs/wine -lwine -L../libs/port -lwine_port
main.o(.text+0x51): In function `main':
/cygdrive/g/src/wine-dev/wine/miscemu/main.c:32: undefined reference to 
`_wine_i
nit'
collect2: ld returned 1 exit status

5. There is no get/set_thread_context support. This patch by David 
Fraser stubs it.

Index: context_i386.c
===================================================================
RCS file: /home/wine/wine/server/context_i386.c,v
retrieving revision 1.28
diff -u -r1.28 context_i386.c
--- context_i386.c    22 Mar 2003 21:00:09 -0000    1.28
+++ context_i386.c    30 Apr 2003 16:39:35 -0000
@@ -78,7 +78,26 @@
 #define PTRACE_SETDBREGS PT_SETDBREGS
 #endif
 
-#ifdef linux
+#if defined(__CYGWIN__)
+
+/* retrieve a thread context */
+static void get_thread_context( struct thread *thread, unsigned int
+flags, CONTEXT *context )
+{
+    /* FIXME: implement this */
+    file_set_error();
+}
+
+
+/* set a thread context */
+static void set_thread_context( struct thread *thread, unsigned int
+flags, const CONTEXT *context )
+{
+    /* FIXME: implement this */
+    file_set_error();
+}
+
+#elif defined(linux)
 #ifdef HAVE_SYS_USER_H
 # include <sys/user.h>
 #endif




More information about the wine-devel mailing list