Re: GMime as an external dependency



2009/7/24 Bastien Nocera <hadess hadess net>:
> Heya,
>
> Yesterday I've replaced the RSS Podcast date parsing in totem-pl-parser
> to use GMime instead of evolution-data-server's libcamel, which should
> make it easier to build, and be lighter for dependencies.
>
> We require gmime-2.4, which is the current stable version.
>

For the record, in jhbuild gmime fails to build C# bindings

/opt/gnome2/bin/mcs -unsafe /out:gmime-sharp.dll /target:library
-r:/opt/gnome2/lib64/pkgconfig/../../lib/mono/gtk-sharp-2.0/pango-sharp.dll
-r:/opt/gnome2/lib64/pkgconfig/../../lib/mono/gtk-sharp-2.0/atk-sharp.dll
-r:/opt/gnome2/lib64/pkgconfig/../../lib/mono/gtk-sharp-2.0/gdk-sharp.dll
-r:/opt/gnome2/lib64/pkgconfig/../../lib/mono/gtk-sharp-2.0/gtk-sharp.dll
-r:/opt/gnome2/lib64/pkgconfig/../../lib/mono/gtk-sharp-2.0/glib-sharp.dll
  \
	-keyfile:./gmime-sharp.snk ./StreamWrapper.cs AssemblyInfo.cs generated/*.cs
generated/GMimeSharp.HeaderWriterNative.cs(10,10): error CS0246: The
type or namespace name `UnmanagedFunctionPointer' could not be found.
Are you missing a using directive or an assembly reference?

** (/opt/gnome2/lib/mono/1.0/mcs.exe:12233): WARNING **: Missing
method .ctor in assembly
/opt/gnome2/lib/mono/gac/glib-sharp/2.14.0.0__35e10195dab3c99f/glib-sharp.dll,
type System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute

** (/opt/gnome2/lib/mono/1.0/mcs.exe:12233): WARNING **: The class
System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute could
not be loaded, used in glib-sharp

** (/opt/gnome2/lib/mono/1.0/mcs.exe:12233): WARNING **: Can't find
custom attr constructor image:
/opt/gnome2/lib/mono/gac/glib-sharp/2.14.0.0__35e10195dab3c99f/glib-sharp.dll
mtoken: 0x0a0000d2

Unhandled Exception: Mono.CSharp.InternalErrorException:
generated/GMimeSharp.HeaderWriterNative.cs(13,24):
GMimeSharp.HeaderWriterInvoker --->
Mono.CSharp.InternalErrorException:
generated/GMimeSharp.HeaderWriterNative.cs(17,36):
GMimeSharp.HeaderWriterInvoker.__notify ---> System.TypeLoadException:
Could not load type
'System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute'
from assembly 'glib-sharp'.
  at (wrapper managed-to-native)
System.MonoCustomAttrs:GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase
(ICustomAttributeProvider obj, System.Type attributeType) [0x00000]
  at System.MonoCustomAttrs.GetCustomAttributes
(ICustomAttributeProvider obj, System.Type attributeType, Boolean
inherit) [0x00000]
  at System.MonoType.GetCustomAttributes (System.Type attributeType,
Boolean inherit) [0x00000]
  at Mono.CSharp.AttributeTester.GetObsoleteAttribute (System.Type
type) [0x00000]
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IResolveContext ec,
Boolean silent) [0x00000]
  at Mono.CSharp.MemberBase.ResolveMemberType () [0x00000]
  at Mono.CSharp.MemberBase.Define () [0x00000]
  at Mono.CSharp.Field.Define () [0x00000]
  at Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers
() [0x00000]
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers
() [0x00000]
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList mcal) [0x00000]
  at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList list) [0x00000]
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000]
  at Mono.CSharp.Class.DoDefineMembers () [0x00000]
  at Mono.CSharp.TypeContainer.Define () [0x00000]
  at Mono.CSharp.ClassOrStruct.Define () [0x00000]
  at Mono.CSharp.Class.Define () [0x00000]
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000]
  --- End of inner exception stack trace ---
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000]
  at Mono.CSharp.Driver.Compile () [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
make[2]: *** [gmime-sharp.dll] Errore 1
make[2]: uscita dalla directory
«/home/betatester/checkout/gnome2/gmime-2.4.7/mono»
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory «/home/betatester/checkout/gnome2/gmime-2.4.7»
make: *** [all] Errore 2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]