<br><br><br><div class="gmail_quote">On Thu, May 13, 2010 at 3:26 PM, Bernie Innocenti <span dir="ltr"><<a href="mailto:bernie@codewiz.org">bernie@codewiz.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El Thu, 13-05-2010 a las 10:28 -0300, Daniel Castelo escribió:<br>
<div class="im">> When I run the last version of jhbuild ./sugar-jhbuild run<br>
> sugar-emulator the emulator doesn't start.<br>
> This is the Shell.log output:<br>
><br>
> 1273756965.523033 DEBUG root: STARTUP: Loading the mesh view<br>
> 1273756965.558274 DEBUG root: Not an activity icon <_MyIcon object at<br>
> 0x9d091bc (SugarFavoritesMyIcon at 0x9dad488)><br>
> 1273756965.558593 DEBUG root: Not an activity icon<br>
> <CurrentActivityIcon object at 0x9d0948c (CanvasIcon at 0x9dad500)><br>
> 1273756965.612840 DEBUG sugar.presence.presenceservice: Reused proxy<br>
> <Buddy object at 0x9cffe14 (sugar+presence+buddy+Buddy at 0x98c2d00)><br>
> python: symbol lookup<br>
> error: /home/latu/sugar-jhbuild5May/install/lib/gtk-2.0/2.10.0/engines/libsugar.so: undefined symbol: gtk_widget_is_sensitive<br>
<br>
</div>Are you perhaps using an old Linux distribution?<br></blockquote><div><br>I am using Fedora 11. Maybe is time to update me. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
sugar-artwork will silently miscompile if GTK does not contain some of<br>
the required symbols.<br>
<br>
I've posted a patch to make it fail noisily (see below). Benjamin, can<br>
you ACK it, please?<br>
<br>
Besides, we should probably update <a href="http://configure.ac" target="_blank">configure.ac</a> to require the minimum<br>
version of GTK which contains gtk_widget_is_sensitive().<br>
<br>
<br>
<br>
From: Bernie Innocenti <<a href="mailto:bernie@codewiz.org">bernie@codewiz.org</a>><br>
Date: Tue, 11 May 2010 18:44:12 -0400<br>
Subject: [PATCH] sugar-artwork: stricter compiler flags<br>
Organization: Sugar Labs Foundation<br>
X-Subversion: sucks<br>
<br>
WARN_CFLAGS was already used in gtk/engine/Makefile.am, but not<br>
initialized by configure.<br>
<br>
For backwards compatibility, GCC's by default is very permissive.<br>
In my case, it was silently miscompiling code which was calling<br>
a non-existent GTK function. For this particular case, the<br>
proposed WARN_CFLAGS should make the build fail early in this case.<br>
<br>
I'm not proposing -Werror because it frequetly results in broken<br>
builds for trivial reasons when distros update the toolchain.<br>
<br>
Signed-off-by: Bernie Innocenti <<a href="mailto:bernie@codewiz.org">bernie@codewiz.org</a>><br>
Reviewed-by: James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
Tested-by: James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
---<br>
<a href="http://configure.ac" target="_blank">configure.ac</a> | 6 +++++-<br>
1 files changed, 5 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index f32dd32..c9f5c26 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -11,6 +11,10 @@ AM_DISABLE_STATIC<br>
<br>
PKG_PROG_PKG_CONFIG([0.19])<br>
<br>
+dnl These catch plenty of subtle bugs and miscompilation problems<br>
+WARN_CFLAGS="-Wall -W -Werror=implicit-function-declaration"<br>
+AC_SUBST(WARN_CFLAGS)<br>
+<br>
AC_PROG_CC<br>
AC_HEADER_STDC<br>
AC_PROG_LIBTOOL<br>
@@ -21,7 +25,7 @@ if test -z "$ICON_SLICER"; then<br>
fi<br>
<br>
PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.0,,<br>
- AC_MSG_ERROR([GTK+-2.0 is required to compile<br>
redhat-artwork]))<br>
+ AC_MSG_ERROR([GTK+-2.0 is required to compile<br>
sugar-artwork]))<br>
<br>
GDK_PIXBUF2_CFLAGS=`$PKG_CONFIG --cflags gdk-pixbuf-2.0`<br>
GDK_PIXBUF2_LIBS=`$PKG_CONFIG --libs gdk-pixbuf-2.0`<br>
--<br>
1.7.0.1<br>
<font color="#888888"><br>
--<br>
// Bernie Innocenti - <a href="http://codewiz.org/" target="_blank">http://codewiz.org/</a><br>
\X/ Sugar Labs - <a href="http://sugarlabs.org/" target="_blank">http://sugarlabs.org/</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ing. Daniel Castelo<br>Plan Ceibal - Área Técnica<br>Avda. Italia 6201<br>Montevideo - Uruguay.<br>Tel.: 601.57.73 Interno 2228<br>E-mail : <a href="mailto:dcastelo@plan.ceibal.edu.uy">dcastelo@plan.ceibal.edu.uy</a><br>