[sugar] Sugar-jhbuild problem in mozilla?

Ryan Pavlik abiryan
Thu Jan 11 20:12:15 EST 2007


I bypassed this error by copying my firefox .pc files to xulrunner-*.pc 
files and running ./sugar-jhbuild -s mozilla.  I now get another error 
later on, in Xbook:


python setup.py install /home/ryan/srctrees/sugar-jhbuild/build
Traceback (most recent call last):
  File "setup.py", line 19, in ?
    from sugar.activity import bundlebuilder
  File 
"/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/activity/__init__.py", 
line 1, in ?
    import gtk
  File "/var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py", line 
48, in ?
    from gtk import _gtk
  File 
"/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/cairo/__init__.py", 
line 1, in ?
    from _cairo import *
ImportError: 
/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/cairo/_cairo.so: 
undefined symbol: cairo_pattern_get_rgba
*** error during stage install of xbook: Error running ['python', 
'setup.py', 'install', '/home/ryan/srctrees/sugar-jhbuild/build'] *** 
[30/38]


  [1] rerun stage install
  [2] ignore error and continue to done
  [3] give up on module
  [4] start shell
choice:


In #sugar, the following information was exchanged:
Yes, I have libcairo2-dev and the matching python lib installed.

ldd 
/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/cairo/_cairo.so 
| grep cairo
libcairo.so.2 => /home/ryan/srctrees/sugar-jhbuild/build/lib64/libcairo.so.2

nm /home/ryan/srctrees/sugar-jhbuild/build/lib64/libcairo.so.2 | grep 
cairo_pattern_get_rgba
000000000001f510 T cairo_pattern_get_rgba

Apparently these were pleasing answers, so I was passed along to the 
list for help.  Thanks!

Ryan

Ryan Pavlik wrote:
> Hello!  I have been trying to get Sugar going on my Ubuntu AMD64 Edgy 
> machine for about a week now.  Previous problems (glib 2.13, etc) had 
> been resolved, but I've been stuck at a Mozilla error for a while 
> now.  If this is a problem with my setup, a pointer to more 
> information or maybe a Mozilla bug would be appreciated.  Here's the 
> error:
> c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith 
> -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy 
> -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread 
> -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-z,defs 
> -Wl,-h,libxul.so -o libxul.so  nsStaticXULComponents.o       
> -Wl,--whole-archive ../../dist/lib/libxpcom_core.a 
> ../../dist/lib/libxpcom_compat.a ../../dist/lib/libunicharutil_s.a 
> ../../dist/lib/libucvutil_s.a ../../dist/lib/libgkgfx.a 
> ../../dist/lib/libgfxshared_s.a ../../dist/lib/libxulapp_s.a 
> ../../dist/lib/libgtkxtbin.a ../../dist/lib/libgfxpsshar.a 
> ../../dist/lib/libjsj.a ../../dist/lib/components/libxpcom_compat_c.a 
> ../../dist/lib/components/libxpconnect.a 
> ../../dist/lib/components/libnecko.a 
> ../../dist/lib/components/libuconv.a 
> ../../dist/lib/components/libi18n.a 
> ../../dist/lib/components/libjar50.a 
> ../../dist/lib/components/libpref.a 
> ../../dist/lib/components/libcaps.a ../../dist/lib/components/librdf.a 
> ../../dist/lib/components/libhtmlpars.a 
> ../../dist/lib/components/libimglib2.a 
> ../../dist/lib/components/libgkplugin.a 
> ../../dist/lib/components/libgklayout.a 
> ../../dist/lib/components/libdocshell.a 
> ../../dist/lib/components/libembedcomponents.a 
> ../../dist/lib/components/libwebbrwsr.a 
> ../../dist/lib/components/libeditor.a 
> ../../dist/lib/components/libnsappshell.a 
> ../../dist/lib/components/libtxmgr.a 
> ../../dist/lib/components/libcomposer.a 
> ../../dist/lib/components/libchrome.a 
> ../../dist/lib/components/libmozfind.a 
> ../../dist/lib/components/libappcomps.a 
> ../../dist/lib/components/libcommandlines.a 
> ../../dist/lib/components/libtoolkitcomps.a 
> ../../dist/lib/components/libxpinstall.a 
> ../../dist/lib/components/libjsd.a ../../dist/lib/components/libmork.a 
> ../../dist/lib/components/libucvmath.a 
> ../../dist/lib/components/libwidget_gtk2.a 
> ../../dist/lib/components/libnecko2.a 
> ../../dist/lib/components/libgfxps.a 
> ../../dist/lib/components/libgfx_gtk.a 
> ../../dist/lib/components/liboji.a 
> ../../dist/lib/components/libaccessibility.a 
> ../../dist/lib/components/libremoteservice.a  -Wl,--no-whole-archive 
> -Wl,-rpath-link,../../dist/bin -L../../dist/bin -L../../dist/lib 
> -L../../dist/lib -lmozjpeg -L../../dist/lib -lmozpng -L../../dist/bin 
> -lmozjs  -lz   -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl  
> -lX11   -lXft -lfontconfig   
> -L/home/ryan/srctrees/sugar-jhbuild/build/lib64   -lgtk-x11-2.0 
> -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 
> -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lXt 
> -lmozcairo -lmozlibpixman   -lXrender -lX11  -lfontconfig -lfreetype 
> -ldl -lm    /usr/bin/ld: ../../dist/lib/libxpcom_core.a(nsCOMPtr.o): 
> relocation R_X86_64_PC32 against 
> `nsGetServiceByContractIDWithError::operator()(nsID const&, void**) 
> const' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [libxul.so] Error 1
> make[2]: Leaving directory 
> `/home/ryan/srctrees/sugar-jhbuild/source/mozilla/toolkit/library'
> make[1]: *** [tier_50] Error 2
> make[1]: Leaving directory 
> `/home/ryan/srctrees/sugar-jhbuild/source/mozilla'
> make: *** [default] Error 2
> *** error during stage build of mozilla: Error running make   *** [22/39]
>
>
> Thanks for any help you can provide!
>
> Ryan
>


-- 
Ryan Pavlik
AbiWord Win32 Platform Maintainer, Art Lead: www.abisource.com
AbiWord Community Outreach Project: www.cleardefinition.com/oss/abi/blog/

"Optimism is the father that leads to achievement."
 -- Helen Keller

"The folder structure in a modern Linux distribution such as Ubuntu
was largely inspired by the original UNIX foundations that were
created by men with large beards and sensible jumpers."
 -- Jono Bacon, The Ubuntu Guide



More information about the Sugar-devel mailing list