mail-archives/mono-osx/2009-October/002557.html

111 строки
5.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] mkbundle fails on Snow Leopard or Mono 2.4.2.3
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20mkbundle%20fails%20on%20Snow%20Leopard%20or%20Mono%202.4.2.3&In-Reply-To=be1da43f0910202355j5fd03fe9sa3b775e0484dd0d9%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="002552.html">
<LINK REL="Next" HREF="002553.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] mkbundle fails on Snow Leopard or Mono 2.4.2.3</H1>
<B>Duane Wandless</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20mkbundle%20fails%20on%20Snow%20Leopard%20or%20Mono%202.4.2.3&In-Reply-To=be1da43f0910202355j5fd03fe9sa3b775e0484dd0d9%40mail.gmail.com"
TITLE="[Mono-osx] mkbundle fails on Snow Leopard or Mono 2.4.2.3">duane at wandless.net
</A><BR>
<I>Fri Oct 23 13:46:04 EDT 2009</I>
<P><UL>
<LI>Previous message: <A HREF="002552.html">[Mono-osx] mkbundle fails on Snow Leopard or Mono 2.4.2.3
</A></li>
<LI>Next message: <A HREF="002553.html">[Mono-osx] libsqlite3.0.dylib - SQLITE_ENABLE_COLUMN_METADATA required
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2557">[ date ]</a>
<a href="thread.html#2557">[ thread ]</a>
<a href="subject.html#2557">[ subject ]</a>
<a href="author.html#2557">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Well I have a workaround. Luckily mkbundle reads the environment variable
AS. So I added to my login shell:
export AS=&quot;as -arch i386&quot;
And now mkbundle works again. I do not know why `as` is failing. The
`arch` for my system is i386.
Thanks.
On Wed, Oct 21, 2009 at 2:55 AM, Laurent Etiemble &lt;
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">laurent.etiemble at gmail.com</A>&gt; wrote:
&gt;<i> Hello,
</I>&gt;<i>
</I>&gt;<i> I did not noticed problems with mkbundle on Snow Leopard. But, I
</I>&gt;<i> already have this kind of error with an assembly containing a space in
</I>&gt;<i> its name. I suggest you to take a look at the symbol file to check if
</I>&gt;<i> symbol name is not screwed by a forbidden character.
</I>&gt;<i>
</I>&gt;<i> Regards, Laurent Etiemble.
</I>&gt;<i>
</I>&gt;<i> 2009/10/21 Duane Wandless &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">duane at wandless.net</A>&gt;:
</I>&gt;<i> &gt; Hopefully someone can help. I had not run this step in awhile. Since I
</I>&gt;<i> &gt; last ran this I've upgraded to Snow Leopard and Mono version 2.4.2.3.
</I>&gt;<i> &gt; I am trying to use mkbundle like this:
</I>&gt;<i> &gt;&gt; mkbundle -o test.c -oo libtest.a --nomain -c -L System.dll test.dll
</I>&gt;<i> &gt; OS is: Darwin
</I>&gt;<i> &gt; Sources: 1 Auto-dependencies: False
</I>&gt;<i> &gt; embedding: /Users/dwandless/PixSrc/sandbox/testmkbundle/test.dll
</I>&gt;<i> &gt; Compiling:
</I>&gt;<i> &gt; as -o libtest.a temp.s
</I>&gt;<i> &gt; temp.s:2:unknown section type: symbol_stubs
</I>&gt;<i> &gt; temp.s:2:Rest of line ignored. 1st junk character valued 112 (p).
</I>&gt;<i> &gt; [Fail]
</I>&gt;<i> &gt; To workaround this I let it fail, then run:
</I>&gt;<i> &gt;&gt; as -o libtest.a temp.s -arch i386
</I>&gt;<i> &gt; Which then produces the .a file. The contents of test.dll are
</I>&gt;<i> &gt; extraordinarily simple. namespace test { public class test1 { public
</I>&gt;<i> void
</I>&gt;<i> &gt; func() { } } }, something like that.
</I>&gt;<i> &gt; Am I missing something? Is there a better way than having it fail?
</I>&gt;<i> Which
</I>&gt;<i> &gt; of course messes up the make system.
</I>&gt;<i> &gt; Thanks,
</I>&gt;<i> &gt; Duane
</I>&gt;<i> &gt; _______________________________________________
</I>&gt;<i> &gt; Mono-osx mailing list
</I>&gt;<i> &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
</I>&gt;<i> &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;
</I>&gt;<i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20091023/0c5295c2/attachment.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20091023/0c5295c2/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="002552.html">[Mono-osx] mkbundle fails on Snow Leopard or Mono 2.4.2.3
</A></li>
<LI>Next message: <A HREF="002553.html">[Mono-osx] libsqlite3.0.dylib - SQLITE_ENABLE_COLUMN_METADATA required
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2557">[ date ]</a>
<a href="thread.html#2557">[ thread ]</a>
<a href="subject.html#2557">[ subject ]</a>
<a href="author.html#2557">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>