Unexpected message from winebuild...

juraj juraj at syncad.com
Wed Apr 2 03:22:36 CST 2003

Hi Kevin,

I had similar problem with winemaker when I used winemaker's --wrap 
option. I hacked winemaker script (see attachment) and managed to get 
rid of "...could not open .def file for...". If you see it, the 
difference is that .dll extension was removed from libnames in 
makefiles. I.e. there is only kernel32 instead of kernel32.dll, and so 
on. This helped me to get rid of problem with missing .def file.The 
second adjustment is related to incorrect generation of wrapper exe 
spec.c file.

However, I'm not sure it's correct hack (that's the reason I didn't post 
it to wine-patches yet) since I have still troubles with running wrapped 
application - simple hello world example.

The problem I have is that GetProcAddress couldn't find the WinMain() of 
my hello world app. After a little debugging and inspection of .spec.c 
file  it seems the problem is with winebuild and not with winemaker 
(__wine_spec_exports is resolved to NULL and that's bad...). But I need 
to investigate little more yet.

Anyways I got information from #winehq irc channel that winemaker is 
beeing deprecated, and that I should try to use winegcc with winewrap 
instead. But I'm not sure whether these two guys are able to cope with 
wrapping. I wasn't able to find some documentation about them and 
winewrap alone throws segmentation fault in my current build (updated & 
build today, about 3 hours ago).

-------------- next part --------------
Index: tools/winemaker
RCS file: /home/wine/wine/tools/winemaker,v
retrieving revision 1.63
diff -u -r1.63 winemaker
--- tools/winemaker	27 Mar 2003 18:36:27 -0000	1.63
+++ tools/winemaker	31 Mar 2003 20:53:53 -0000
@@ -1001,7 +1001,7 @@
 	@$wrapper[$T_FLAGS]=$TF_WRAPPER | (@$target[$T_FLAGS] & $TF_MFC);
-	@$wrapper[$T_DLLS]=[ "kernel32.dll", "user32.dll" ];
+	@$wrapper[$T_DLLS]=[ "kernel32", "user32" ];
 	push @{@$wrapper[$T_LIBRARIES]}, "dl";
 	push @{@$wrapper[$T_SOURCES_C]},"@$wrapper[$T_NAME]_wrapper.c";
@@ -1650,7 +1650,6 @@
   my $path=$_[0];
   my $target=$_[1];
   my $app_name=@$target[$T_NAME];
-  $app_name=~ s/\.exe$//;
   return generate_from_template("$path${app_name}_wrapper.c","wrapper.c",[

More information about the wine-devel mailing list