[Mono-winforms-list] Re: Error running monostub.exe.so after following directions

2a5gjx302@sneakemail.com 2a5gjx302@sneakemail.com
Sun, 27 Apr 2003 09:56:51 -0500

Another update: While monostub was building, I remember seeing a number of
'pkg-config' errors, something about how it couldn't find package 'mono'
and that I should tell it where to find mono.pc. As I am fairly new to
linux, I didn't really know what this was about, but I've done a bit more
digging and it seems that basically monostub wasn't linked against the mono
libraries. There was no mention of mono.pc anywhere, but I found a file by
that name in the 'mono' project from CVS (after build).

I should also mention that the monostub build process (as of CVS from the
24th of April) is broken with the version of wine I have (20030408). Some
of the arguments to 'winebuild' need '--' instead of '-' before them, for

in the makefile:
winebuild -D -sym monostub.exe.tmp.o -o monostub.exe.spec.c -exe
monostub.exe -mgui -L/usr/local/lib/wine -lcomdlg32 -lshell32 -luser32
-lgdi32 -lkernel32

what my winebuild wants:
winebuild -D -sym monostub.exe.tmp.o -o monostub.exe.spec.c
--exe=monostub.exe -mgui -L/usr/local/lib/wine -lcomdlg32 -lshell32
-luser32 -lgdi32 -lkernel32

in the makefile:
winebuild -o monostub.exe.dbg.c -debug -C. monostub.c

what my winebuild wants:
winebuild -o monostub.exe.dbg.c --debug -C. monostub.c

Finally, I have it running monostub.exe.so, but it hangs on 'Initializing
the Boehm GC...' and eventually segfaults. I thought I had installed the
'libgc-wine' to which the SWF.txt file provided a link, but just to be
sure, I checked, and it turns out that the link given does not provide a
new libgc.so for applications to link against. Instead, it builds a
gc.dll.so, which I have no clue how to use. The README.QUICK seems to be
for a different makefile; the provided makefile has a block of text at the
top that says it was generated by WineMaker. Just for kicks, I tried using
gc.dll.so as my libgc.so, but it does not run when compiled in that
configuration as gc.dll.so does not export the symbols that libgc.so does.

At 07:16 PM 27/04/2003 +0200, Alexandre Pigolkine wrote:
>I hope that I can help, but I need more information.
>Which version of Mono do you have installed ?
>Please execute 'ldd /usr/local/lib/wine/monostub.exe.so' 
>to check that all references can be resolved.

I am using mono from CVS on the 24th of April, built using the monocharge
from the 20th. Here is the output from the command you specified:

linsux:/monocvs/mcs/class/System.Windows.Forms/System.Windows.Forms# ldd
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40023000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4008f000)
        libdl.so.2 => /lib/libdl.so.2 (0x40093000)
        libmono.so.0 => /usr/local/lib/libmono.so.0 (0x40096000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x401a7000)
        libm.so.6 => /lib/i686/libm.so.6 (0x401d7000)
        libgc.so.1 => /usr/lib/libgc.so.1 (0x401f9000)
        libwine.so.1 => /usr/local/lib/libwine.so.1 (0x40227000)
        libntdll.dll.so => /usr/local/lib/libntdll.dll.so (0x4023e000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x40324000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40329000)
        librt.so.1 => /lib/librt.so.1 (0x4033e000)
        libwine_unicode.so.1 => /usr/local/lib/libwine_unicode.so.1
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Actually, I just realized that you wanted the installed file, here is
confirmation that it is the same file:

linsux:/monocvs/mcs/class/System.Windows.Forms/System.Windows.Forms# ln -i
monostub.exe.so /usr/local/lib/wine/monostub.exe.so
2081814 monostub.exe.so 2081814 /usr/local/lib/wine/monostub.exe.so

What next? :-)