Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113259 - gtk-sharp-2.4.0 fails to compile: Cannot convert type `GLib.Object' to `Pango.Context' via a built-in conversion
Summary: gtk-sharp-2.4.0 fails to compile: Cannot convert type `GLib.Object' to `Pango...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-22 09:37 UTC by Ed Catmur
Modified: 2007-06-23 14:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-11-22 09:37:09 UTC
Generation Summary:
  Enums: 52  Structs: 17  Boxed: 3  Opaques: 11  Interfaces: 0  Objects: 21 
Callbacks: 8
  Properties: 8  Signals: 9  Methods: 438  Constructors: 25  Throttled: 3
Total Nodes: 595

cp ../gtk-sharp.snk .
cp ../AssemblyInfo.cs .
/usr/bin/mcs  -nowarn:0169,0612,0618 -unsafe -out:gdk-sharp.dll -target:library
/r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:Mono.Cairo.dll
generated/*.cs ./EventButton.cs ./EventClient.cs ./EventConfigure.cs
./EventCrossing.cs ./Event.cs ./EventDND.cs ./EventExpose.cs ./EventFocus.cs
./EventKey.cs ./EventMotion.cs ./EventProperty.cs ./EventProximity.cs
./EventScroll.cs ./EventSelection.cs ./EventSetting.cs ./EventVisibility.cs
./EventWindowState.cs ./Key.cs ./Size.cs ./TextProperty.cs AssemblyInfo.cs
generated/PangoHelper.cs(17,55): error CS0039: Cannot convert type `GLib.Object'
to `Pango.Context' via a built-in conversion
generated/PangoHelper.cs(51,55): error CS0039: Cannot convert type `GLib.Object'
to `Pango.Context' via a built-in conversion
Compilation failed: 2 error(s), 0 warnings
make[3]: *** [gdk-sharp.dll] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gtk-sharp-2.4.0/work/gtk-sharp-2.4.0/gdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gtk-sharp-2.4.0/work/gtk-sharp-2.4.0/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk-sharp-2.4.0/work/gtk-sharp-2.4.0'
make: *** [all] Error 2

!!! ERROR: dev-dotnet/gtk-sharp-2.4.0 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

This is with mono-1.1.10, btw.
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2005-11-22 11:18:05 UTC
What versions of gtk-sharp do you currently have installed? (ie please respond
with the output of `equery l gtk-sharp`) I'm going to guess you have some
gtk-sharp-2.5.x version installed, which is freaking things out. If that's the
case, please unmerge *all* *-sharp-2.5.x stuff you have installed and then try
again. Thanks.
Comment 2 Ed Catmur 2005-11-22 15:09:30 UTC
Yah, I had the 2.5.92 versions installed.

And yeah, removing the whole of that series makes it compile OK. (well, up to
gtk-sharp so far; 3 to go.) Perhaps a pkg_setup warning?
Comment 3 Johan Segolsson 2005-11-28 03:29:58 UTC
The same problem occures if 2.6 is installed, If I unemerge all 2.6 packages
first then 2.4 will compile, however when you have installed 2.4 you have to
reemerge all packages that depend on any *-sharp package (that is all 2.5.* or
2.6 packages you just unemerged)

Does revdep-rebuild work with c# packages?
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2005-11-29 13:38:14 UTC
Johan: sadly no. Someone posted a small stand-alone utility on the forums that
performed a similar function, and I suggested they integrate it into
revdep-rebuild. I've not seen any progress on that yet though.

@all: I'll add a check + useful error message this week sometime.
Comment 5 Ed Catmur 2005-11-29 20:15:44 UTC
Yeah, sorry about that. The internals of revdep-rebuild don't really lend
themselves to adding new object file formats; I'd like to make the fix but it'd
need a fairly complete redesign.
Comment 6 Jurek Bartuszek (RETIRED) gentoo-dev 2007-06-23 14:20:25 UTC
Since gtk-sharp-2.4/2.5 is not in portage now, this bug seems a bit outdated and a solution/workaround has already been proposed, I'm closing it.