<div dir="ltr">Hello again,<div><br></div><div>It smells a bit like, but this time for libraries and not executables:</div><div><br></div><div><a href="https://bugs.winehq.org/show_bug.cgi?id=50731">https://bugs.winehq.org/show_bug.cgi?id=50731</a><br></div><div><a href="https://bugs.winehq.org/show_bug.cgi?id=50755">https://bugs.winehq.org/show_bug.cgi?id=50755</a><br></div><div><br></div><div>But that is first broken in 6.3 and i am running 6.2.</div><div><br>And again, it only breaks for winelib created libs and not executables.</div><div><br></div><div>Thanks,</div><div><br></div><div>/pedro</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre. 5. mar. 2021 kl. 16.49 skrev Peter Dons Tychsen <<a href="mailto:donpedro.list@gmail.com">donpedro.list@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">BTW: my setup is:<div><br></div><div>uname -a<br>Linux localhost.localdomain 5.10.15-100.fc32.x86_64 #1 SMP Wed Feb 10 17:52:05 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux<br></div><div><br></div><div>wine --version<br>wine-6.2 (Staging)<br></div><div><br></div><div>Thanks,</div><div><br></div><div>/pedro</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre. 5. mar. 2021 kl. 16.35 skrev Peter Dons Tychsen <<a href="mailto:donpedro.list@gmail.com" target="_blank">donpedro.list@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi WineHQ,<div><br></div><div>I have an older library that i have create using winelib (and an application that uses it). It use to work fine. In later wine builds this does not work any more.</div><div><br></div><div>I have tried allot of different combinations, and i cannot seem to get was has broken.<br><br></div><div>1) Every time a call is made into the library the program crashes immediately. </div><div>2) If i compile all the files into one program from the beginning the program works fine.</div><div>3) Using "winemaker" to create a library and app shows the exact same problem.</div><div></div><div>4) It seems to be related to importing the library or maybe the calling convention?</div><div><br></div><div>I have a feeling this is just broken somewhere, or have i done something wrong all along, and first now do i get punished for it because something changed? Again, winemaker shows the exact same problem.</div><div><br></div><div>I created a simple library setup to test it (a tiny lib and tine app):</div><div><br></div><div>commands: </div><div><br></div><div>winegcc -Wall -Werror -mwindows -mno-cygwin -fPIC -g -O0 -c lib.c -o lib.o<br></div><div>winegcc -Wall -Werror -mwindows -mno-cygwin -fPIC -g -O0 -c test.c -o test.o<br>winegcc -shared -olibtest.so lib.o -mwindows -mno-cygwin<br>winegcc -Wl,-rpath,"\$ORIGIN" -mwindows -mno-cygwin -ltest -L. test.o -otest.exe<br></div><div><br></div><div>---<br></div><div><br></div><div>lib.c (library):</div><div><br></div><div>#include <stdio.h><br>#include <stdlib.h><br><br>void lib_call(void)<br>{<br>  printf("oh\n");<br>  exit(0);<br>}<br></div><div><br></div><div>---<br></div><div><br></div><div>test.c (app):</div><div><br></div><div>#include <windows.h><br></div><div><br>extern void lib_call(void);<br><br>INT WINAPI WinMain(HINSTANCE inst, HINSTANCE prev_inst, PSTR cmd_line, INT cmd_show)<br>{<br>  lib_call();<br>  return 0;<br>}<br></div><div><br></div><div>---</div><div><br></div><div>Can anyone figure this out. I would be very thankful.</div><div><br></div><div>Thanks,</div><div><br></div><div>/pedro</div></div>
</blockquote></div>
</blockquote></div>