1 Apr 21:37
Re: New xulrunner
Marco Pesenti Gritti <mpg <at> redhat.com>
2007-04-01 19:37:12 GMT
2007-04-01 19:37:12 GMT
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 Marco
diff --git a/build-scripts/sugar-base.modules b/build-scripts/sugar-base.modules
index 9385e03..9dc91cd 100644
--- a/build-scripts/sugar-base.modules
+++ b/build-scripts/sugar-base.modules
@@ -31,7 +31,7 @@
module="autoconf/autoconf-2.60.tar.bz2" version="2.60"
size="1019170" md5sum="019609c29d0cbd9110c38480304aafc8" />
</autotools>
- <mozillamodule id="mozilla" autogenargs="--with-system-nspr --with-system-nss
--with-system-jpeg --with-system-zlib --with-system-png --with-pthreads --disable-strip
--disable-tests --disable-debug --disable-installer --enable-optimize --enable-xinerama
--enable-default-toolkit=cairo-gtk2 --disable-xprint --enable-pango --enable-svg
--enable-canvas --enable-application=xulrunner --disable-javaxpcom --disable-gnomeui
--disable-gnomevfs --enable-extensions=default,cookie" cvsroot="mozilla.org" projects="xulrunner">
+ <mozillamodule id="mozilla" autogenargs="--with-pthreads --disable-strip --disable-tests
--disable-debug --disable-installer --enable-optimize --enable-xinerama
--enable-default-toolkit=cairo-gtk2 --disable-xprint --enable-pango --enable-svg
--enable-canvas --enable-application=xulrunner --disable-javaxpcom --disable-gnomeui
--disable-gnomevfs --enable-extensions=default,cookie" cvsroot="mozilla.org" projects="xulrunner">
<dependencies>
</dependencies>
</mozillamodule>
_______________________________________________ Sugar mailing list Sugar <at> laptop.org http://mailman.laptop.org/mailman/listinfo/sugar
RSS Feed