[Mono-devel-list] Build error on OSX
Robert Shade
rshade at dvsconsulting.com
Tue Nov 11 12:58:06 EST 2003
I've seen this problem myself... it seems that the OSX linker does not
know what --version-script is. I also found somewhere that it's
because --version-script is only for setting specific options for ELF
binaries... OSX uses Mach.
To fix this, comment out the line in mono/mini/Makefile.am that reads
libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
and rerun autogen.sh
Perhaps someone who is better at the auto* toolset could make this
conditional for OSX?
rob
On Nov 11, 2003, at 12:02 PM, Mike Flippin wrote:
> gcc -dynamiclib -flat_namespace -undefined suppress -o
> .libs/libmono.0.dylib .libs/mini.o .libs/trace.o .libs/dominators.o
> .libs/cfold.o .libs/regalloc.o .libs/inssel.o .libs/helpers.o
> .libs/liveness.o .libs/ssa.o .libs/driver.o .libs/debug-mini.o
> .libs/linear-scan.o .libs/aot.o .libs/graph.o .libs/mini-ppc.o
> .libs/exceptions-ppc.o .libs/tramp-ppc.o -all_load
> ../../mono/metadata/.libs/libmonoruntime.a
> ../../mono/metadata/.libs/libmetadata.a
> ../../mono/io-layer/.libs/libwapi.a
> ../../mono/utils/.libs/libmonoutils.a -lpthread -lm
> -Wl,-version-script=./ldscript -install_name /usr/lib/libmono.0.dylib
> -compatibility_version 1 -current_version 1.0
> /usr/bin/libtool: unknown option character `e' in:
> -version-script=./ldscript
> Usage: /usr/bin/libtool -static [-] file [...] [-filelist
> listfile[,dirname]] [-arch_only arch] [-sacLT]
> Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
> listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
> [-compatibility_version #] [-current_version #] [-seg1addr 0x#]
> [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#]
> [-seg_addr_table <filename>] [-seg_addr_table_filename
> <file_system_path>] [-all_load] [-noall_load]
> make[4]: *** [libmono.la] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I have libtool from GNU in /usr/local/bin, which is the first entry in
> my path. Also, for those interested in .NET on OSX, it would seem that
> if you build the SS CLI from MSDN on Jaguar that it'll run just fine
> on Panther.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list