Gtkmm-forge Digest, Vol 8, Issue 8



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 321990] Error building	libgnomevfs/libgnomevfsmm/uri.cc
      with SGI, Tru64 UNIX,	Sun C++ compilers (gnomemm (bugzilla.gnome.org))
   2. [Bug 395572] New: overloading ambiguity in	printoptions.cc
      with Sun Workshop 11 CC (gtkmm (bugzilla.gnome.org))
   3. [Bug 395572] overloading ambiguity in	printoptions.cc with
      Sun Workshop 11 CC (gtkmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Thu, 11 Jan 2007 18:03:20 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 321990] Error building
	libgnomevfs/libgnomevfsmm/uri.cc with SGI, Tru64 UNIX,	Sun C++
	compilers
To: gtkmm-forge lists sourceforge net
Message-ID: <20070111180320 34E4E6C40D0 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=321990

  gnomemm | gnome-vfsmm | Ver: 2.10





------- Comment #11 from Murray Cumming  2007-01-11 18:01 UTC -------
Many thanks.

> The tests for a) test whether the compiler can disambiguate const qualifiers in
> templated classes. That is needed for the TypeTraits class. But the
> Glib::unwrap function can still be broken, for example the DEC compiler copes
> well with templated classes, but not with templated functions. The tests need
> to probe for functions, too, or assuming that there are no implementations that
> have working functions, but broken classes, only test for templated functions

I'd like to see a test for this, so we can avoid adding code that isn't
necessary on other compilers. I don't see any changes to the test in these two
patches.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



------------------------------

Message: 2
Date: Thu, 11 Jan 2007 21:21:43 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 395572] New: overloading ambiguity in
	printoptions.cc with Sun Workshop 11 CC
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-395572-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=395572

  gtkmm | build | Ver: 2.10.x

           Summary: overloading ambiguity in printoptions.cc with Sun
                    Workshop 11 CC
           Product: gtkmm
           Version: 2.10.x
          Platform: Other
        OS/Version: opensolaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: build
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: mooney dogbert cc ndsu nodak edu
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


OS: x86_64-sun-solaris2.10
Toolchain: Sun Workshop 11 C & C++, with all relevant updates

I've built all of the gtkmm-2.10.6 prereqs (glib, gtk, cairo, glibmm, sigc++,
etc.) using Sun's Workshop 11 toolchain.

While attempting to build gtkmm-2.10.6, the C++ compiler complains about
overloading ambiguities in printoptions.cc:

 CC -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gtkmm\" -I../../gtk -I../../gtk
-I../../pango -I../../pango -I../../atk -I../../atk -I../../gdk -I../../gdk
-I../../gtk -I../../gtk -I/local/gnu/include/glibmm-2.4
-I/local/gnu/lib/64/glibmm-2.4/include -I/local/gnu/include/sigc++-2.0
-I/local/gnu/lib/64/sigc++-2.0/include -I/local/gnu/include/glib-2.0
-I/local/gnu/lib/64/glib-2.0/include -I/local/include/cairomm-1.0
-I/local/include/cairo -I/local/gnu/include/gtk-2.0
-I/local/gnu/lib/64/gtk-2.0/include -I/local/gnu/include/atk-1.0
-I/local/gnu/include/pango-1.0 -I/local/gnu/include/gtk-unix-print-2.0 -mt
-I/local/gnu/include/glib-2.0 -I/local/gnu/lib/64/glib-2.0/include
-I/local/gnu/include -I/local/include -xO3 -KPIC -xtarget=native -xarch=amd64
-I/local/gnu/include -I/local/include -c printoperation.cc  -KPIC -DPIC -o
.libs/printoperation.o
"printoperation.cc", line 90: Error: Overloading ambiguity between
"Glib::unwrap<Gtk::PageSetup>(const Glib::RefPtr<const Gtk::PageSetup>&)" and
"Glib::unwrap<const Gtk::PageSetup>(const Glib::RefPtr<const
Gtk::PageSetup>&)".
"printoperation.cc", line 91: Error: Overloading ambiguity between
"Glib::unwrap<Gtk::PrintSettings>(const Glib::RefPtr<const
Gtk::PrintSettings>&)" and "Glib::unwrap<const Gtk::PrintSettings>(const
Glib::RefPtr<const Gtk::PrintSettings>&)".
"printoperation.cc", line 104: Error: Overloading ambiguity between
"Glib::unwrap<Gtk::PageSetup>(const Glib::RefPtr<const Gtk::PageSetup>&)" and
"Glib::unwrap<const Gtk::PageSetup>(const Glib::RefPtr<const
Gtk::PageSetup>&)".
"printoperation.cc", line 105: Error: Overloading ambiguity between
"Glib::unwrap<Gtk::PrintSettings>(const Glib::RefPtr<const
Gtk::PrintSettings>&)" and "Glib::unwrap<const Gtk::PrintSettings>(const
Glib::RefPtr<const Gtk::PrintSettings>&)".
"printoperation.cc", line 106: Warning (Anachronism): Formal argument done_cb
of type extern "C" void(*)(_GtkPageSetup*,void*) in call to
gtk_print_run_page_setup_dialog_async(_GtkWindow*, _GtkPageSetup*,
_GtkPrintSettings*, extern "C" void(*)(_GtkPageSetup*,void*), void*) is being
passed void(*)(_GtkPageSetup*,void*).
"printoperation.cc", line 598: Warning (Anachronism): Assigning
void(*)(void*,void*) to extern "C" void(*)(void*,void*).
"printoperation.cc", line 623: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*,GtkPrintOperationResult) to extern "C"
void(*)(_GtkPrintOperation*,GtkPrintOperationResult).
"printoperation.cc", line 624: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*,_GtkPrintContext*) to extern "C"
void(*)(_GtkPrintOperation*,_GtkPrintContext*).
"printoperation.cc", line 625: Warning (Anachronism): Assigning
int(*)(_GtkPrintOperation*,_GtkPrintContext*) to extern "C"
int(*)(_GtkPrintOperation*,_GtkPrintContext*).
"printoperation.cc", line 626: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*,_GtkPrintContext*,int,_GtkPageSetup*) to extern "C"
void(*)(_GtkPrintOperation*,_GtkPrintContext*,int,_GtkPageSetup*).
"printoperation.cc", line 627: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*,_GtkPrintContext*,int) to extern "C"
void(*)(_GtkPrintOperation*,_GtkPrintContext*,int).
"printoperation.cc", line 628: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*,_GtkPrintContext*) to extern "C"
void(*)(_GtkPrintOperation*,_GtkPrintContext*).
"printoperation.cc", line 629: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*) to extern "C" void(*)(_GtkPrintOperation*).
"printoperation.cc", line 630: Warning (Anachronism): Assigning
_GtkWidget*(*)(_GtkPrintOperation*) to extern "C"
_GtkWidget*(*)(_GtkPrintOperation*).
"printoperation.cc", line 631: Warning (Anachronism): Assigning
void(*)(_GtkPrintOperation*,_GtkWidget*) to extern "C"
void(*)(_GtkPrintOperation*,_GtkWidget*).
"printoperation.cc", line 632: Warning (Anachronism): Assigning
int(*)(_GtkPrintOperation*,_GtkPrintOperationPreview*,_GtkPrintContext*,_GtkWindow*)
to extern "C"
int(*)(_GtkPrintOperation*,_GtkPrintOperationPreview*,_GtkPrintContext*,_GtkWindow*).
4 Error(s) and 12 Warning(s) detected.
gmake[5]: *** [printoperation.lo] Error 1
gmake[5]: Leaving directory `/local/src/RPM/BUILD/gtkmm-2.10.6/gtk/gtkmm'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/local/src/RPM/BUILD/gtkmm-2.10.6/gtk/gtkmm'
gmake[3]: *** [all-recursive] Error 1


My C++ is weak, so I'm not able to make any useful suggestion about how the
errors might be avoided.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



------------------------------

Message: 3
Date: Thu, 11 Jan 2007 22:29:36 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 395572] overloading ambiguity in
	printoptions.cc with Sun Workshop 11 CC
To: gtkmm-forge lists sourceforge net
Message-ID: <20070111222936 092E26C410D box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=395572

  gtkmm | build | Ver: 2.10.x





------- Comment #1 from Marko Anastasov  2007-01-11 22:27 UTC -------
Created an attachment (id=80087)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=80087&action=view)
patch that attempts to fix this

I was wondering how come that this is the only file being reported, but actualy
this is the only place (in .ccg files) where unwrap is called for a const
RefPtr<const T>. Such RefPtr and an unwrap() appear in style.ccg, in
set_bg_pixmap(), starting at line 173, but it is first cast_const() to a
RefPtr<T> and then that new pointer is passed to unwrap_copy(). Which is a
different case.

So my guess is that if these unwrap() calls are first called to return to an
explicit const GtkSomeType*, then these errors would not be reported.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 8, Issue 8
*****************************************



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