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 511708 - svn build failed: No conversion from const gchar* to const Glib::ustring&
svn build failed: No conversion from const gchar* to const Glib::ustring&
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
2.4.x
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-01-24 03:50 UTC by José Alburquerque
Modified: 2008-01-26 12:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Patch to fix gtkmm compile error (1.61 KB, patch)
2008-01-24 03:53 UTC, José Alburquerque
none Details | Review

Description José Alburquerque 2008-01-24 03:50:37 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:
Comment 1 José Alburquerque 2008-01-24 03:53:14 UTC
Created attachment 103608 [details] [review]
Patch to fix gtkmm compile error
Comment 2 Murray Cumming 2008-01-24 10:38:38 UTC
I can't reproduce this error. What branch are you using of glibmm and gtkmm?
Comment 3 José Alburquerque 2008-01-24 16:22:18 UTC
(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.
Comment 4 José Alburquerque 2008-01-24 16:24:42 UTC
(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.
Comment 5 José Alburquerque 2008-01-24 19:29:32 UTC
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.
Comment 6 José Alburquerque 2008-01-24 21:16:29 UTC
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.
Comment 7 Murray Cumming 2008-01-25 07:10:16 UTC
Sorry, but until I can reproduce this, you'll have to just make the change locally.
Comment 8 José Alburquerque 2008-01-25 17:49:27 UTC
(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.
Comment 9 Murray Cumming 2008-01-26 12:46:39 UTC
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.