Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157195 - dev-dotnet/gtk-sharp-2.8.0 can't compile
Summary: dev-dotnet/gtk-sharp-2.8.0 can't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-05 02:20 UTC by cirpo
Modified: 2007-08-07 23:50 UTC (History)
2 users (show)

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 cirpo 2006-12-05 02:20:13 UTC
when i try to compile gtk-sharp i get these errors:

cp ../gtk-sharp.snk .
cp ../AssemblyInfo.cs .
/usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -nowarn:0169,0612,0618 -unsafe -out:gdk-sharp.dll -target:library /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/1.0/Mono.Cairo.dll   generated/*.cs ./EventButton.cs ./EventClient.cs ./EventConfigure.cs ./EventCrossing.cs ./Event.cs ./EventDND.cs ./EventExpose.cs ./EventFocus.cs ./EventGrabBroken.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(52,55): error CS0039: Cannot convert type `GLib.Object' to `Pango.Context' via a built-in conversion
generated/PangoRenderer.cs(19,47): error CS1502: The best overloaded method match for `Pango.Renderer.Renderer(GLib.GType)' has some invalid arguments
generated/PangoRenderer.cs(19,47): error CS1503: Argument GLib.GType: Cannot conver from equally named types from different assemblies GLib.GType (from glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f) and GLib.GType (from glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f)
generated/PangoRenderer.cs(34,5): error CS1502: The best overloaded method match for `GLib.Object.CreateNativeObject(string[], GLib.Value[])' has some invalid arguments
generated/PangoRenderer.cs(34,5): error CS1503: Argument GLib.Value[]: Cannot conver from equally named types from different assemblies GLib.Value[] (from glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f) and GLib.Value[] (from glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f)
Compilation failed: 6 error(s), 0 warnings
make[3]: *** [gdk-sharp.dll] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtk-sharp-2.8.0/work/gtk-sharp-2.8.0/gdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gtk-sharp-2.8.0/work/gtk-sharp-2.8.0/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk-sharp-2.8.0/work/gtk-sharp-2.8.0'
make: *** [all] Error 2

!!! ERROR: dev-dotnet/gtk-sharp-2.8.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  gtk-sharp-2.8.0.ebuild, line 63:   Called die





Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.12.6
Last Sync: Mon, 04 Dec 2006 21:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/musicbrainz /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/gechi-stable /usr/portage/local/layman/kpex-media"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi adns aiglx alsa amarok amazon amuled apache2 aqua_theme arts artworkextra async audiofile automount avahi avalon bash-completion beagle berkdb bidi bitmap-fonts bittorrent bl blender-game bluetooth bonobo bookmarks bzip2 cairo calendar cdinstall cdparanoia cdr cdrom chroot clearcase cli commercial cpudetection cracklib crypt cscope css csv cups curl custom-cflags custom-flags customlog daap dbus depth32 dhcp divx djvu dlloader doc dri dts dvb dvbplayer dvd dvdr dvdread dvi eds elibc_glibc emoticon encode esd examples exscalibar extrafilters extraicons extramodules extras fam fame fastcgi fbcon fbdev fbsplash ffmpeg firefox flac flash font-server fontconfig foomaticdb fortran fping freetts fuse fusion gaim galago gdbm gif gimp gimpprint glade glep glitz glut gmail gmedia gnokii gnome gnome-print gnomecanvas gnomedb gnustep gphoto2 gpm gps graphviz gstreamer gtalk gtk gtk2 gtkhtml gtkspell guile h323 hal hddtemp html http httpd iconv imagemagick imlib immqt-bc innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipod ipv6 irda isdnlog it jabber jack java javascript jikes jingle jpeg jpeg2k kaspersky kde kdgraphics kdm kdrive kernel_linux ladspa lame latex lcd ldap libcaca libg++ libnotify lirc lm_sensors logrotate logwatch lzo mad madwifi math matroska mbrola mikmod ming mjpeg mmx mmxext mod mono mozcalendar mozilla mp3 mp4 mp4live mpe-sdk mpeg mpeg2 mplayer multicall musepack musicbrainz mysql nautilus ncurses netbeans network nextaw nls nptl nptlonly nsplugin nvidia nvtv objc objc++ objc-gc ogg openal opengl openssh openssl opera oss p2p pam pcre pdf perl php plugin png postfix postgres ppds pppd python qt3 qt4 quicktime quotas rar readline real realmedia reflection remote rhythmbox rtc ruby samba scanner screen sdl sdl-sound sensord session slang snmp sound sox speech speedo speex spell spl sql sqlite sqlite3 sse sse-filters sse2 ssl stream submenu subtitles subversion svg svga swat tagwriting tcpd tga themes theora threads thumbnail tiff timidity tk trace transcode translator trayicon truetype truetype-fonts tv_check tv_pick_cgi type1 type1-fonts ucs2 udev uml unicode usb userland_GNU v4l v4l2 vcd vdr vfat video_cards_nvidia videos vim vim-pager vim-with-x visual visualization vnc vncviewer voice vorbis web webdav webpresence widescreen wifi win32codecs wireshark wma wmp x11vnc x264 xanim xbase xchatdccserver xface xfs xim xine xinerama xinetd xml xorg xosd xpm xprint xscreensaver xsettings xsl xterm xv xvid xvmc xvnc yaepg zeroconf zip zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rob Elvin 2007-01-21 21:24:48 UTC
Me too, same error:

cp ../gtk-sharp.snk .
cp ../AssemblyInfo.cs .
/usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -nowarn:0169,0612,0618 -unsafe -out:gdk-sharp.dll -target:library /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/1.0/Mono.Cairo.dll   generated/*.cs ./EventButton.cs ./EventClient.cs ./EventConfigure.cs ./EventCrossing.cs ./Event.cs ./EventDND.cs ./EventExpose.cs ./EventFocus.cs ./EventGrabBroken.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(52,55): error CS0039: Cannot convert type `GLib.Object' to `Pango.Context' via a built-in conversion
generated/PangoRenderer.cs(19,47): error CS1502: The best overloaded method match for `Pango.Renderer.Renderer(GLib.GType)' has some invalid arguments
generated/PangoRenderer.cs(19,47): error CS1503: Argument GLib.GType: Cannot conver from equally named types from different assemblies GLib.GType (from glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f) and GLib.GType (from glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f)
generated/PangoRenderer.cs(34,5): error CS1502: The best overloaded method match for `GLib.Object.CreateNativeObject(string[], GLib.Value[])' has some invalid arguments
generated/PangoRenderer.cs(34,5): error CS1503: Argument GLib.Value[]: Cannot conver from equally named types from different assemblies GLib.Value[] (from glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f) and GLib.Value[] (from glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f)
Compilation failed: 6 error(s), 0 warnings
make[3]: *** [gdk-sharp.dll] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtk-sharp-2.8.0/work/gtk-sharp-2.8.0/gdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gtk-sharp-2.8.0/work/gtk-sharp-2.8.0/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk-sharp-2.8.0/work/gtk-sharp-2.8.0'
make: *** [all] Error 2

!!! ERROR: dev-dotnet/gtk-sharp-2.8.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  gtk-sharp-2.8.0.ebuild, line 63:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Sempron(tm)   2400+
Gentoo Base System version 1.12.6
Last Sync: Sun, 14 Jan 2007 19:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://terminus.fearsedge.com/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://terminus.fearsedge.com/gentoo-portage"
USE="3dnow 3dnowext X aac acpi aim alsa alsa_cards_ca0106 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm avi berkdb bitmap-fonts cdr cli cracklib crypt cups dbus dga directfb dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode esd evo fam ffmpeg flac foomaticdb fortran gif glut gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv imlib input_devices_keyboard input_devices_mouse isdnlog java joystick jpeg kde kernel_linux libg++ libwww linguas_en_GB live mad mbox mikmod mmx mmxext mono motif mp3 mpeg msn musicbrainz ncurses net network nls nocd nowlistening nptl nptlonly nsplugin nvidia offensive ogg opengl oscar oss pam pcre pda pdf pdflib perl png ppds pppd python qt3 qt4 quicktime readline real reflection samba scanner sdl seamonkey session spell spl sse ssl subversion svg tcpd tiff timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs x86 xcomposite xml xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Olivier Crete (RETIRED) gentoo-dev 2007-01-28 18:24:08 UTC
I can also reproduce with mono 1.2.2.1, gtk-sharp-2.10 does not exhibit this problem.
Comment 3 David Heaps 2007-02-06 05:20:45 UTC
The exact same error is displayed while compiling 2.8.2.
Comment 4 Jurek Bartuszek (RETIRED) gentoo-dev 2007-08-07 23:50:07 UTC
Since 2.10.0 is stable and the bug is not present in that version, closing.