[Mono-bugs] [Bug 322760] gmcs fails to find existing assembly while linking

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 3 17:02:33 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=322760

User meebey at meebey.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=322760#c5





--- Comment #5 from Mirco Bauer <meebey at meebey.net>  2008-11-03 15:02:33 MST ---
Re-tested with -r instead of -pkg:
meebey at redbull:~/tmp$ gmcs  -r:/usr/lib/mono/1.0/Mono.Cairo.dll
-r:/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll
-r:/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll test.cs

** (/usr/lib/mono/2.0/gmcs.exe:30125): WARNING **: The following assembly
referenced from
/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll could not
be loaded:
     Assembly:   Mono.Cairo    (assemblyref_index=2)
     Version:    1.0.5000.0
     Public Key: 0738eb9f132ed756
The assembly was not found in the Global Assembly Cache, a path listed in the
MONO_PATH environment variable, or in the location of the executing assembly
(/usr/lib/mono/gtk-sharp-2.0).


** (/usr/lib/mono/2.0/gmcs.exe:30125): WARNING **: Could not load file or
assembly 'Mono.Cairo, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: test.cs(5,28):
                     Block being compiled: [test.cs(5,48):,test.cs(9,9):]
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Cairo,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of
its dependencies.
Internal compiler error at test.cs(5,28):: exception caught while emitting
MethodBuilder [Test::Main]

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'Mono.Cairo, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Cairo, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=0738eb9f132ed756'
  at (wrapper managed-to-native)
System.Reflection.MonoMethodInfo:get_method_info
(intptr,System.Reflection.MonoMethodInfo&)
  at System.Reflection.MonoMethod.get_Attributes () [0x00000] 
  at System.Reflection.MethodBase.get_IsVirtual () [0x00000] 
  at Mono.CSharp.MemberCache.AddMethods (BindingFlags bf, System.Type type)
[0x00000] 
  at Mono.CSharp.MemberCache.AddMethods (System.Type type) [0x00000] 
  at Mono.CSharp.MemberCache..ctor (IMemberContainer container) [0x00000] 
  at Mono.CSharp.TypeHandle..ctor (System.Type type) [0x00000] 
  at Mono.CSharp.TypeHandle.GetTypeHandle (System.Type t) [0x00000] 
  at Mono.CSharp.TypeHandle.GetMemberCache (System.Type t) [0x00000] 
  at Mono.CSharp.TypeManager.MemberLookup_FindMembers (System.Type t,
MemberTypes mt, BindingFlags bf, System.String name, System.Boolean&
used_cache) [0x00000] 
  at Mono.CSharp.TypeManager.RealMemberLookup (System.Type invocation_type,
System.Type qualifier_type, System.Type queried_type, MemberTypes mt,
BindingFlags original_bf, System.String name, IList almost_match) [0x00000] 
  at Mono.CSharp.TypeManager.MemberLookup (System.Type invocation_type,
System.Type qualifier_type, System.Type queried_type, MemberTypes mt,
BindingFlags original_bf, System.String name, IList almost_match) [0x00000] 
  at Mono.CSharp.Expression.MemberLookup (System.Type container_type,
System.Type qualifier_type, System.Type queried_type, System.String name,
MemberTypes mt, BindingFlags bf, Location loc) [0x00000] 
  at Mono.CSharp.Expression.MemberLookup (System.Type container_type,
System.Type qualifier_type, System.Type queried_type, System.String name,
Location loc) [0x00000] 
  at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression right_side) [0x00000] 
  at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags
flags) [0x00000] 
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags
flags) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.SimpleAssign.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags
flags) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.EmitContext
ec) [0x00000] 
  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters
ip, IMethodData md, System.Boolean& unreachable) [0x00000] 
meebey at redbull:~/tmp$ 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list