GNOME Bugzilla – Bug 511708
svn build failed: No conversion from const gchar* to const Glib::ustring&
Last modified: 2008-01-26 12:46:39 UTC
Please describe the problem: When building gstreamermm with jhbuild, I ran into the following build error for gtkmm and thought that it could be fixed by including a conversion to fix it: Making all in src make[3]: Entering directory `/usr/src/jhbuild-sources/gtkmm/atk/src' /opt/jhbuild-root/lib64/glibmm-2.4/proc/gmmproc -I ../../tools/m4 --defs . action . ./../atkmm No conversion from const gchar* to const Glib::ustring& defined (line: 0, parameter name: desc) m4 failed with exit code 1. Aborting... make[3]: *** [.stamps/stamp-action] Error 1 I included the conversion in glbmm/tools/m4/convert_glib.m4 because I thought that it might be used elsewhere, but please feel free to move it elsewhere (gtkmm/tools/m4/convert_atk.m4). I also modified the file path in tests/giomm_simple/main.cc to be general in testing giomm. I hope these changes are useful. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 103608 [details] [review] Patch to fix gtkmm compile error
I can't reproduce this error. What branch are you using of glibmm and gtkmm?
(In reply to comment #2) > I can't reproduce this error. What branch are you using of glibmm and gtkmm? > It looks like gtkmm-2-12. I think I must have not configured jhbuild correctly. Is there a reason why it's using this branch? Sorry about the report.
(In reply to comment #3) > (In reply to comment #2) > > I can't reproduce this error. What branch are you using of glibmm and gtkmm? > > > > It looks like gtkmm-2-12. I think I must have not configured jhbuild > correctly. Is there a reason why it's using this branch? Sorry about the > report. > For glibmm it's the trunk.
I managed to get the trunk of gtkmm checked out instead of version 2.12 (the reason I'm getting 2.12 is that I have jhbuild configured to use gnome-2.22.modules and from what I've seen gnome-2.22 will be using 2.12). However, even with the trunk of gtkmm, I still get the same error (don't really know why?) so I'm leaving this bug open.
Final comment for now: The compile error goes away when I build gtkmm (both trunk and 2.12) with the distribution installed version 2.14.2 of glibmm.
Sorry, but until I can reproduce this, you'll have to just make the change locally.
(In reply to comment #7) > Sorry, but until I can reproduce this, you'll have to just make the change > locally. > No problem. If it can't be reproduced, it's probably just on this system. Didn't mean to too quickly report when it's probably no bug at all.
I now experienced the problem and fixed it in gtkmm and in cluttermm. 2008-01-26 Murray Cumming <murrayc@murrayc.com> * atk/src/action.hg: * atk/src/editabletext.hg: * atk/src/image.hg: * atk/src/object.hg: * atk/src/streamablecontent.hg: * gtk/src/celllayout.hg: * gtk/src/cellrenderer.hg: * gtk/src/cellrendereraccel.hg: * gtk/src/cellrenderertext.hg: * gtk/src/cellrenderertoggle.hg: * gtk/src/entry.hg: * gtk/src/entrycompletion.hg: * gtk/src/recentchooser.hg: * gtk/src/statusbar.hg: * gtk/src/style.hg: * gtk/src/textview.hg: Added conversions from const gchar* to const ustring&, to fix the build I guess I removed this from a convert_*.m4 file, to discourage people from returning const ustring& from methods. Bug #511708 (José Alburquerque). Thanks.