Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697108 - dev-dotnet/gtk-sharp-2.12.21 : ./TestRange.cs(35,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
Summary: dev-dotnet/gtk-sharp-2.12.21 : ./TestRange.cs(35,6): error CS0104: `Range' is...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords: PATCH
: 725390 733250 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-10 08:44 UTC by Kobboi
Modified: 2020-07-19 23:34 UTC (History)
10 users (show)

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


Attachments
build.log (build.log,115.71 KB, text/plain)
2019-10-10 08:45 UTC, Kobboi
Details
gtk-range-vs-mono-range-ambiguous.patch (gtk-range-vs-mono-range-ambiguous.patch,2.72 KB, patch)
2019-10-15 18:56 UTC, Greg Turner
Details | Diff
Patch reformatted for Portage (gtk-range-vs-mono-range-ambiguous.patch,380 bytes, patch)
2020-07-01 17:39 UTC, Alexander Brüning
Details | Diff
A DOS format patch. (gtk-range-vs-mono-range-ambiguous.patch,347 bytes, patch)
2020-07-05 16:13 UTC, Brian McKee
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2019-10-10 08:44:44 UTC
Using mono 6.4.0.198

(...)
Making all in test
make[3]: Entering directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21/sample/test'
/usr/bin/mcs -out:WidgetViewer.exe -r:../../glib/glib-sharp.dll -r:../../pango/pango-sharp.dll -r:../../atk/atk-sharp.dll -r:../../gdk/gdk-sharp.dll -r:../../gtk/gtk-sharp.dll ./TestCheckButton.cs ./TestColorSelection.cs ./TestRadioButton.cs ./TestRange.cs ./TestStatusbar.cs ./TestDialog.cs ./TestFlipping.cs ./TestSizeGroup.cs ./TestCombo.cs ./TestComboBox.cs ./WidgetViewer.cs
./TestCombo.cs(17,14): warning CS0612: `Gtk.Combo' is obsolete
./TestRange.cs(35,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
/usr/lib64/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
./TestRange.cs(35,13): error CS0030: Cannot convert type `Gtk.HScale' to `System.Range'
./TestRange.cs(42,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
/usr/lib64/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
./TestRange.cs(42,13): error CS0030: Cannot convert type `Gtk.HScrollbar' to `System.Range'
./TestRange.cs(62,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
/usr/lib64/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
./TestRange.cs(62,13): error CS0030: Cannot convert type `Gtk.VScale' to `System.Range'
./TestCombo.cs(31,20): warning CS0612: `Gtk.Combo' is obsolete
Compilation failed: 6 error(s), 2 warnings
make[3]: *** [Makefile:504: WidgetViewer.exe] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21/sample/test'
make[2]: *** [Makefile:439: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21/sample'
make[1]: *** [Makefile:454: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21'
make: *** [Makefile:382: all] Error 2
 * ERROR: dev-dotnet/gtk-sharp-2.12.21::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-dotnet/gtk-sharp-2.12.21::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-dotnet/gtk-sharp-2.12.21::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21'
 * S: '/var/tmp/portage/dev-dotnet/gtk-sharp-2.12.21/work/gtk-sharp-2.12.21'
(...)

Reproducible: Always
Comment 1 Kobboi 2019-10-10 08:45:23 UTC
Created attachment 592360 [details]
build.log
Comment 2 Kobboi 2019-10-10 08:45:45 UTC
Portage 2.3.76 (python 2.7.16-final-0, kobboi/samsonov, gcc-9.2.0, glibc-2.29-r5, 4.19.75 x86_64)
=================================================================
System uname: Linux-4.19.75-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:    32781140 total,  11732224 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: 6b16febfab91c66d96c31b01f3343843bd0742f3

sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.4 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.15.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            6.4.0-r5::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

gentoo
    location: /var/cache/kobboi/gentoo
    sync-type: git
    sync-uri: https://github.com/kobboi/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="ssh://christophe@10.8.0.6/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups cxx dbus djvu dri dts dvd dvdr eds egl emboss encode evo exif fam ffmpeg flac fluidsynth fortran frei0r gdbm gif glade glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle iconv icu introspection ipv6 jpeg lcms ldap libass libnotify libsecret libtirpc mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba sdl seccomp smartcard smp spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Kobboi 2019-10-10 10:56:00 UTC
Compiles fine with mono-6.0.0.334
Comment 4 Greg Turner 2019-10-15 18:56:10 UTC
Created attachment 592826 [details, diff]
gtk-range-vs-mono-range-ambiguous.patch

Upstream's solution
Comment 5 Jack 2019-10-23 02:43:06 UTC
That patch works for me, also on mono 6.4.0.198.
Comment 6 Phazeus 2020-02-29 06:42:34 UTC
Patch works, thanks a lot, Greg!
Comment 7 Andrew 2020-04-21 11:42:03 UTC
That patch works for me, also on mono 6.6.0.161
Comment 8 J L 2020-04-23 14:12:01 UTC
Same issue as original reporter, and the patch works for me as well. Mono 6.6.0.161.
Comment 9 Clayton Clarke 2020-05-22 03:29:42 UTC
If this issue has been fixed for more than a year then how come such an old version of sharp is still in the tree. If not an version bump could the relevant patch above be added to the ebuild in the tree?
Comment 10 João P. Teixeira 2020-06-17 21:16:12 UTC
Patch works. Thanks, Greg!
Comment 11 Alexander Brüning 2020-07-01 17:39:19 UTC
Created attachment 647322 [details, diff]
Patch reformatted for Portage
Comment 12 Alexander Brüning 2020-07-01 17:42:09 UTC
This is still an issue with dev-dotnet/gtk-sharp-2.12.21 using dev-lang/mono-6.6.0.161

I was unable to use the previously submitted patch ad-hoc (downloaded to /etc/portage/patches/dev-dotnet/gtk-sharp-2.12.21/gtk-range-vs-mono-range-ambiguous.patch), had to reformat it so it would apply. Afterwards emerging gtk-sharp worked.
Comment 13 Brian McKee 2020-07-05 16:13:33 UTC
Created attachment 647830 [details, diff]
A DOS format patch.

I don't know if the <CR> will survive being attached to this unix log.
Comment 14 Brian McKee 2020-07-05 16:15:14 UTC
I had a problem getting Alexander's patch to apply. I ended up generating my own with DOS formatting. I'm not certain the <CR> will show up in my attachment.

We should consider adding an option to the patch command to ignore dos / unix formatting differences.
Comment 15 Brian McKee 2020-07-05 16:17:14 UTC
Unfortunately, the DOS formatting does not survive the attachment process. Sorry.
Comment 16 Larry the Git Cow gentoo-dev 2020-07-18 20:05:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28d37bb050204162e4854346cc87d0960dec923

commit b28d37bb050204162e4854346cc87d0960dec923
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-07-18 20:03:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-07-18 20:03:49 +0000

    dev-dotnet/gtk-sharp: fix build
    
    This is a long-standing bug with a simple patch to fix
    an ambiguous property reference.
    
    Closes: https://bugs.gentoo.org/697108
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gtk-sharp-2.12.21-mono-ambiguous-range.patch    | 15 +++++++++++++++
 dev-dotnet/gtk-sharp/gtk-sharp-2.12.21.ebuild             |  4 ++++
 2 files changed, 19 insertions(+)
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-18 20:07:24 UTC
*** Bug 725390 has been marked as a duplicate of this bug. ***
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-19 23:34:35 UTC
*** Bug 733250 has been marked as a duplicate of this bug. ***