After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 493057 - Gtkmm fails to build on Mac OS X Tiger 10.4.10
Gtkmm fails to build on Mac OS X Tiger 10.4.10
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.12.x
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-11-03 14:04 UTC by Alberto Ruiz
Modified: 2007-11-05 11:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Alberto Ruiz 2007-11-03 14:04:20 UTC
Please describe the problem:
I'm building the trunk version of gtkmm using the imendio's jhbuild moduleset for Mac OS X and I get the following error:

widget.cc: In function 'void<unnamed>::Widget_signal_style_changed_callback(GtkWidget*, GtkStyle*, void*)':
widget.cc:812: error: 'Style' was not declared in this scope
widget.cc:812: error: template argument 1 is invalid
widget.cc:812: error: missing '>' to terminate the template argument list
widget.cc:812: error: template argument 2 is invalid
widget.cc:822: error: expected type-specifier before 'SlotType'
widget.cc:822: error: expected `>' before 'SlotType'
widget.cc:822: error: expected `(' before 'SlotType'
widget.cc:822: error: 'SlotType' was not declared in this scope
widget.cc:822: error: expected primary-expression before '>' token
widget.cc:823: error: expected `)' before ';' token

---------

gtkmm/style.h is included, so I don't understand what's missing here.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Alberto Ruiz 2007-11-03 14:09:47 UTC
Using Gtk::Widget fixed the problem, which is weird since it's using the Gtk namespae explicitely in the previous line.
Comment 2 Alberto Ruiz 2007-11-03 14:10:38 UTC
Sorry,  Gtk::Style :P
Comment 3 Murray Cumming 2007-11-03 15:39:03 UTC
A patch (against svn) would be welcome. You probably need to change the .hg/.ccg file.
 
Comment 4 Alberto Ruiz 2007-11-03 16:42:02 UTC
I changed this in widget.cc:

809: static void Widget_signal_style_changed_callback(GtkWidget* self, GtkStyle* p0,void* data)
810: {
811:   using namespace Gtk;
812:   typedef sigc::slot< void,const Glib::RefPtr<Style>& > SlotType;
813: 
812:   // Do not try to call a signal on a disassociated wrapper.

To this:

809: static void Widget_signal_style_changed_callback(GtkWidget* self, GtkStyle* p0,void* data)
810: {
811:   using namespace Gtk;
812:   typedef sigc::slot< void,const Glib::RefPtr<Gtk::Style>& > SlotType;
813: 
812:   // Do not try to call a signal on a disassociated wrapper.
Comment 5 Murray Cumming 2007-11-03 21:03:28 UTC
Could you please try this tarball:
http://www.murrayc.com/misc/gtkmm-2.12.1test.tar.gz
Hopefully it fixes the build for you.

Comment 6 Alberto Ruiz 2007-11-04 01:47:12 UTC
It worked! Great work, are you going to commit the change to mainstream?
Comment 7 Murray Cumming 2007-11-04 12:06:18 UTC
Yes, I have commited that to trunk and the gtkmm-2-12 branchs. Tell me if you need a tarball release. Thanks for finding the problem.
Comment 8 Alberto Ruiz 2007-11-04 14:19:20 UTC
It would be nice to have a tarball release so we can update the jhbuild moduleset for gtk-osx
Comment 9 Murray Cumming 2007-11-05 11:26:26 UTC
I have just release a tarball.