[Mono-dev] Problem with PPC/PPC64 and disabling builds against the static libs
Toshio Kuratomi
a.badger at gmail.com
Wed Apr 15 19:54:35 EDT 2009
Toshio Kuratomi <a.badger <at> gmail.com> writes:
>
> The package I've just built for Fedora does this (links /usr/bin/mono against
> the static libmono.a and then removes the static libraries prior to finishing
> the package). The concern I have with this strategy long-term is that programs
> wanting to embed the mono runtime will be linking against the dynamic
> libmono.so. If this is causing issues for /usr/bin/mono and we don't know what
> the trigger is, isn't this a potential problem for them as well?
>
A little poking looks like I was right about this problem :-(
On ppc, with the statically compiled mono-2.4 final, trying to use the embedding
samples yields this:
cd mono-2.4/samples/embed
gcc -o teste teste.c `pkg-config --cflags --libs mono` -lm
mcs test.cs
./teste test.exe
Segmentation fault
And:
cd mono-2.4/samples/embed
gcc -Wall -o test-invoke test-invoke.c `pkg-config --cflags --libs mono` -lm
mcs invoke.cs
./test-invoke invoke.exe
Segmentation fault
-Toshio
More information about the Mono-devel-list
mailing list