Runtime error with winelib and CreateMutex()

Jerry Thomas jto at consegna.co.uk
Mon Apr 23 12:55:59 CDT 2001


lawson_whitney at juno.com wrote:

> On Fri, 20 Apr 2001, Jerry Thomas wrote:
>
> >
> > Tried to run the executable:
> >
> > 1677 ~/Work/Wine/WinelibTest$ ls -l WinelibTest
> > lrwxrwxrwx    1 jto      jto            13 Apr 19 17:37 WinelibTest ->
> > /usr/bin/wine
> > 1678 ~/Work/Wine/WinelibTest$ WinelibTest
> > Invoking /wine  ...
> > Wine failed with return code 127
>
> Whose clever idea was winelauncher?

Squeeze me?

> >
> > and the shared object:
> >
> > 1679 ~/Work/Wine/WinelibTest$ WINEPRELOAD=WinelibTest.so wine
> > Wine called with no arguments.
> > Invoking /opt/wine/bin/wine.bin  ...
> >
> > but without success.
> >
> > Sorry to be so thick, but I must be missing something really simple here.
> >
> The problem is you are using an install of wine that is meant to be user
> friendly.  IME user-friendly is program-developer-hostile.
>
> It has wrapped the wine executable inside a shell script, so when you
> think you are running wine you are really running what I know as
> winelauncher.  I don't know how that is 'spoze to work for winelib
> programs, but I don't think it accounts for you trying to make a winelib
> program of your own.

Should I not be using Codeweaver's wine then?  I though the whole idea of
winelib
was to build and run Win32 apps on UNIX.  I'm not sure I can face trying to do
this
with the big app I am really wanting to port.

>
>
> try (in the directory where WinelibTest.so is)
>
> WINEPRELOAD=./WinelibTest.so /opt/wine/bin/wine.bin

Core dump.  Hmmm...

>
> (if /opt/wine/bin is in PATH, you don't need it on the command line, but
> I am not taking any chances :-)
> Or also you can remove the old symbolic link and make one to to
> /opt/wine/bin/wine.bin.
> (again in the directory where WinelibTest.so is)
>
> ln -s /opt/wine/bin/wine.bin WinelibTest

1130 ~/Work/Wine/WinelibTest$ rm WinelibTest
1131 ~/Work/Wine/WinelibTest$ ln -s /opt/wine/bin/wine.bin WinelibTest
1132 ~/Work/Wine/WinelibTest$ ls -l WinelibTest
lrwxrwxrwx    1 jto      jto            22 Apr 23 16:46 WinelibTest ->
/opt/wine/bin/wine.bin
1133 ~/Work/Wine/WinelibTest$ WinelibTest
wine: could not exec wineserver
1134 ~/Work/Wine/WinelibTest$ ls -l /opt/wine/bin/wineserver
-rwxr-xr-x    1 root     root       101744 Mar  8 13:20
/opt/wine/bin/wineserver

>
>
> Lawson
>
> By the accident of what statisticians call birth... - Richard Fariña
> ---cut here
>
> ________________________________________________________________
> GET INTERNET ACCESS FROM JUNO!
> Juno offers FREE or PREMIUM Internet access for less!
> Join Juno today!  For your FREE software, visit:
> http://dl.www.juno.com/get/tagj.




More information about the wine-users mailing list