[Mono-list] mkbundle and crosscompiling

Ben Maurer bmaurer at ximian.com
Wed Aug 24 22:45:42 EDT 2005


On Tue, 2005-08-23 at 10:08 +0200, Matthijs ter Woord wrote:
> Is it possible to use mkbundle on a 2.6 kernel distro and compile an
> executable which can run on a 2.4 kernel + glib combination?

Compiling something on the glibc post-rh9 and running it pre-rh9 is
risky. The version numbers for some functions changed. For example, we
know that rh9-built mono packages will *not* run on sles8. I don't think
there is any way around this.

You *can* build on 2.4 kernels and run on 2.6. (btw, I assume you meant
glibc not glib. glib may also have problems. Some of the newer versions
use macros to call functions that are only added in newer versions) The
safest path is to compile with the *oldest* distro you have and test on
*every* distro. This was the only way we felt safe building mono on only
one platform.

-- Ben




More information about the Mono-list mailing list