[sugar] Re: Problem building sugar-jhbuild

Marco Pesenti Gritti mpg
Tue Jan 9 09:27:19 EST 2007


On Tue, 2007-01-09 at 06:27 -0300, gonzalo delgado wrote:
> 2007/1/8, gonzalo delgado <gonzalo at tuquito.org.ar>:
>         2007/1/8, Marco Pesenti Gritti <mpg at redhat.com>:
>                 
>                 Oh hrm, lib64, that's going to be interesting... We
>                 should fix jhbuild
>                 to get that path right I guess. Can you open a ticket?
>                 In the meantime
>                 you might want to just patch jhbuild to set the
>                 PYTHONPATH correctly on 
>                 your box.
>                 
>                 Marco
>                 
>         
>          Yeah, I solved it the quick'n'dirty way for now, just doing
>         "ln -s lib64 lib", hehe.
>          Thanks
>         
>         
>         -- 
>         Gonzalo Delgado.
> 
> I erased the sugar-jhbuild tree completely and started over again. I
> changed these lines in the sugar-jhbuild file:
> 
> path = 'lib/python2.4/site-packages'
> jhbuild.config.addpath ('PYTHONPATH', os.path.join(config.prefix,
> path))
> 
> path = 'lib/gtk-2.0/'
> jhbuild.config.addpath('GTK_PATH', os.path.join(config.prefix, path))
> 
> to this
> 
> path = 'lib64/python2.4/site-packages' 
> jhbuild.config.addpath('PYTHONPATH', os.path.join(config.prefix,
> path))
> 
> path = 'lib64/gtk-2.0/'
> jhbuild.config.addpath('GTK_PATH', os.path.join(config.prefix, path))
> 
>  I do "./sugar-jhbuild" and everything runs smoothly until:
> 
> *** Building xbook *** [30/38]
> python setup.py build
> Traceback (most recent call last):
>   File "setup.py", line 19, in ?
>     from sugar.activity import bundlebuilder
>   File
> "/home/gonzalo/codigo/sugar-jhbuild/build/lib64/python2.4/site-packages/sugar/activity/__init__.py", line 1, in ?
>     import gtk
>   File "/usr/lib64/python2.4/site-packages/gtk- 2.0/gtk/__init__.py",
> line 38, in ?
>     import gobject as _gobject
>   File "/usr/lib/python2.4/site-packages/gtk-2.0/gobject/__init__.py",
> line 30, in ?
>     from _gobject import *
> ImportError: /home/gonzalo/codigo/sugar-jhbuild/build/lib64/libgthread- 2.0.so.0: undefined symbol: clock_gettime
> *** error during stage build of xbook: Error running ['python',
> 'setup.py', 'build'] *** [30/38]


It's actually a glib bug. See:

http://bugzilla.gnome.org/show_bug.cgi?id=394641

Marco



More information about the Sugar-devel mailing list