[sugar] New xulrunner

Marco Pesenti Gritti mpg
Sun Apr 1 15:34:03 EDT 2007

On Thu, 2007-03-29 at 16:10 -0700, Guido van Rossum wrote:
> When I try this on my ubundu dapper box, I consistently get this
> problem building mozilla:
> c++ -o xulrunner-bin  -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  nsXULRunnerApp.o
> nsRegisterGREUnix.o   -lpthread    -L../../dist/bin -L../../dist/lib
> -L../../dist/bin -lmozjs ../../dist/lib/libxpcomglue_s.a
> -L../../dist/bin -Wl,-rpath-link,../../dist/bin -lxpcom -lxul
> -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
> -L/home/guido/xo/sugar-jhbuild/build/lib -lgtk-x11-2.0 -latk-1.0
> -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0
> -lcairo -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0
> -L../../gfx/cairo/cairo/src -lmozcairo -L../../gfx/cairo/libpixman/src
> -lmozlibpixman   -L/usr/X11R6/lib -lXrender -lfreetype -lfontconfig
> -L/usr/X11R6/lib -lX11  -ldl -lm
> /usr/local/google/home/guido/xo/sugar-jhbuild/build/lib/libpangoxft-1.0.so.0:
> undefined reference to `g_type_register_static_simple'
> /usr/local/google/home/guido/xo/sugar-jhbuild/build/lib/libpangoft2-1.0.so.0:
> undefined reference to `pango_quantize_line_geometry'
> /usr/local/google/home/guido/xo/sugar-jhbuild/build/lib/libpangoft2-1.0.so.0:
> undefined reference to `pango_font_describe_with_absolute_size'

I had access to a Dapper box today and I probably tracked this down
finally. It's a problem with the library search path. If you remove
-L/usr/lib or move it after -L/home/guido/xo/sugar-jhbuild/build/lib
linking should work.

I have not been able to find documentation on how -L works exactly
though I found that pkg-config is automatically stripping out
-L/usr/lib. Unfortunately mozilla does not use pkg-config so fixing it
would be more complicated.

I'm considering building against the internal mozilla nspr rather than
the system one.

Can you try to apply the attached patch to sugar-jhbuild?

Then you can do a full rebuild with:

rm -rf source/mozilla
sugar-jhbuild buildone mozilla

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jhbuild.patch
Type: text/x-patch
Size: 1362 bytes
Desc: not available
Url : http://mailman.laptop.org/pipermail/sugar/attachments/20070401/d96d3fa7/jhbuild.bin

More information about the Sugar-devel mailing list