[Mono-list] Buggy symlink to machine.config while compiling Mono from source

Christian Schneider mail at chrschn.de
Fri Feb 24 12:21:47 EST 2006


Hi all.

I was trying to compile Mono 1.1.13.2 from source on my Linux box. After
a while it stopped at the following error:

        MONO_PATH="../../class/lib/net_1_1_bootstrap:
        $MONO_PATH" /usr/src/packages/mono-1.1.13.2/runtime/mono-wrapper  ../../class/lib/net_1_1_bootstrap/sn.exe -q -R mscorlib.dll ../../class/mono.snk
        Couldn't sign the assembly mscorlib.dll with this key pair.

Investigating the problem I stumbled over a strange symlink in the
build-subdirectories "runtime/etc/mono/1.0" and "runtime/etc/mono/2.0":

        /usr/src/packages/mono-1.1.13.2/runtime/etc/mono/1.0/machine.config -> ../../../..//usr/src/packages/mono-1.1.13.2/data/net_1_1/machine.config
        
        /usr/src/packages/mono-1.1.13.2/runtime/etc/mono/2.0/machine.config -> ../../../..//usr/src/packages/mono-1.1.13.2/data/net_2_0/machine.config

After changing the symlinks as follows, Mono compiled just fine:

        /usr/src/packages/mono-1.1.13.2/runtime/etc/mono/1.0/machine.config -> ../../../../data/net_1_1/machine.config
        
        /usr/src/packages/mono-1.1.13.2/runtime/etc/mono/2.0/machine.config -> ../../../../data/net_2_0/machine.config

Perhaps this problem comes from the fact that I use a wrapper-script
"/usr/bin/conf64" that I use to set some environment variables for
compiling a package as x86_64 build (I also have a conf32 script). This
script then calls the configure script in the local directory. Thus,
configure actually got called as
"/usr/src/packages/mono-1.1.13.2/configure" and not "./configure". See
the first lines of the config.log:

        This file contains any messages produced by compilers while
        running configure, to aid debugging if configure makes a
        mistake.
        
        It was created by configure, which was
        generated by GNU Autoconf 2.59.  Invocation command line was
        
          $ /usr/src/packages/mono-1.1.13.2/configure --sysconfdir=/etc
        --prefix=/usr --libdir=/usr/lib64
        
        ## --------- ##
        ## Platform. ##
        ...

Hope you can fix this problem in the configure script, or where it might
come from.
-- 
Regards,

Christian Schneider



More information about the Mono-list mailing list