/!\ This page is not a bug tracker. If you run into a problem not listed here, please file a bug.
When entering a new problem, please enter it above the others, and follow the format of the JhbuildIssues/JhbuildIssueTemplate for new problems/modules.

List of common errors for the module mozilla.

Error - R_X86_64_PC32 on amd64

Stage: make

/usr/bin/ld: nsSpecialSystemDirectory.o: relocation R_X86_64_PC32 against `nsHashtable::nsHashtable(unsigned int, int)' 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]: *** [libxpcom_compat.so] Error 1
make[2]: Leaving directory `/home/jrib/svn/gnome2/mozilla/xpcom/obsolete'
make[1]: *** [tier_2] Error 2
make[1]: Leaving directory `/home/jrib/svn/gnome2/mozilla'
make: *** [default] Error 2

Solution:

Create ~/.mozconfig containing:

ac_cv_visibility_pragma=no

make clean and rebuild

Error - Mozilla compilations fails during canvas build

Stage: make

make[4]: Entering directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content/canvas/src'
nsCanvasRenderingContext2D.cpp
c++ -o nsCanvasRenderingContext2D.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -D_IMPL_NS_LAYOUT  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/gfx -I../../../dist/include/layout -I../../../dist/include/widget -I../../../dist/include/dom -I../../../dist/include/js -I../../../dist/include/locale -I../../../dist/include/unicharutil -I../../../dist/include/webshell -I../../../dist/include/uriloader -I../../../dist/include/htmlparser -I../../../dist/include/necko -I../../../dist/include/view -I../../../dist/include/pref -I../../../dist/include/docshell -I../../../dist/include/xpconnect -I../../../dist/include/xuldoc -I../../../dist/include/caps -I../../../dist/include/editor -I../../../dist/include/imglib2 -I../../../dist/include/mimetype -I../../../dist/include/exthandler -I../../../dist/include/uconv -I../../../dist/include/intl -I../../../dist/include/plugin -I../../../dist/include/cairo -I../../../dist/include/libpixman -I../../../dist/include/content -I../../../dist/include -I../../../dist/include/nspr    -I../../../dist/sdk/include    -fPIC   -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 -I../../../dist/include/cairo -I/home/jhbuild/sid-ia32/build/include/gtk-2.0 -I/home/jhbuild/sid-ia32/build/lib/gtk-2.0/include -I/home/jhbuild/sid-ia32/build/include/atk-1.0 -I/home/jhbuild/sid-ia32/build/include/cairo -I/home/jhbuild/sid-ia32/build/include/pango-1.0 -I/home/jhbuild/sid-ia32/build/include/glib-2.0 -I/home/jhbuild/sid-ia32/build/lib/glib-2.0/include -I/home/jhbuild/sid-ia32/build/include -I/usr/include/freetype2 -I/usr/include/libpng12     -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsCanvasRenderingContext2D.pp nsCanvasRenderingContext2D.cpp
/home/jhbuild/sid-ia32/build/include/pango-1.0/pango/pangocairo.h:58: error: 'cairo_font_type_t' was not declared in this scope
/home/jhbuild/sid-ia32/build/include/pango-1.0/pango/pangocairo.h:60: error: 'cairo_font_type_t' does not name a type
nsCanvasRenderingContext2D.cpp:198: warning: 'PRBool FloatValidate(double, double, double)' defined but not used
make[4]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content/canvas/src'
make[3]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content/canvas'
make[2]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content'
make[1]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla'
make[4]: *** [nsCanvasRenderingContext2D.o] Error 1

Solution:

Create ~/.mozconfig containing:

ac_add_options --enable-system-cairo

make clean and rebuild

Error - Mozilla compilation fails when using GCC 4.0

Stage: make

make[4]: Entering directory `/home/murrayc/cvs/gnome214/mozilla/security/nss/lib/pki'
gcc -o Linux2.6_x86_glibc_PTH_OPT.OBJ/asymmkey.o -c -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -DNSS_3_4_CODE -UDEBUG -DNDEBUG -D_REENTRANT -I/home/murrayc/cvs/gnome214/mozilla/dist/include  -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/include -I/home/murrayc/cvs/gnome214/mozilla/dist/include/nspr -I/home/murrayc/cvs/gnome214/mozilla/dist/include/dbm -I../../../../dist/public/nspr  asymmkey.c
In file included from ../../../../dist/private/nss/nsspki1.h:57,
                 from nsspki.h:56,
                 from asymmkey.c:39:
../../../../dist/private/nss/oiddata.h:46: error: array type has incomplete element type
make[4]: *** [Linux2.6_x86_glibc_PTH_OPT.OBJ/asymmkey.o] Error 1
make[4]: Leaving directory `/home/murrayc/cvs/gnome214/mozilla/security/nss/lib/pki'
make[3]: *** [libs] Error 2

Solution:

You need to apply the following changes to security/nss/lib/pki1/oiddata.h:

--- security/nss/lib/pki1/oiddata.h     4 Jan 2002 05:22:07 -0000       1.1
+++ security/nss/lib/pki1/oiddata.h     24 Aug 2005 15:23:34 -0000
@@ -36,14 +36,14 @@
 #define OIDDATA_H
 #ifdef DEBUG
-static const char OIDDATA_CVS_ID[] = "@(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name:  $ ; @(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name:  $";
+static const char OIDDATA_CVS_ID[] = "@(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name: MOZILLA_1_7_BRANCH $ ; @(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name: MOZILLA_1_7_BRANCH $";
 #endif /* DEBUG */
 #ifndef NSSPKI1T_H
 #include "nsspki1t.h"
 #endif /* NSSPKI1T_H */
-extern const NSSOID nss_builtin_oids[];
+extern const NSSOID *nss_builtin_oids;
 extern const PRUint32 nss_builtin_oid_count;
 /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/

An even better way to solve this is to apply the final patch of the bug (https://bugzilla.mozilla.org/show_bug.cgi?id=284386). If you are wondering why the problem still happens even if the bug is fixed, it is because gnome retrieve mozilla from a more stable branch than CVS HEAD of mozilla. So on this branch, the bug is still there, but should be fixed when a new stable developping branch will be released.

Error building p3p extension

Stage: make

make[2]: Leaving directory `/home/sc/Sviluppo/Gnome/mozilla/extensions/p3p/src'
/usr/bin/perl -I../../config ../../config/preprocessor.pl -DNAMESPACE=http://www.w3.org/2000/P3Pv1 \
        resources/content/p3p.xsl.in > p3p200005.xsl
/usr/bin/perl -I../../config ../../config/preprocessor.pl -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 \
        -DHAS_TMPL_RETENTION\
        resources/content/p3p.xsl.in > p3p200010.xsl
../../config/preprocessor.pl: invalid argument to -D: HAS_TMPL_RETENTIONresources/content/p3p.xsl.in
make[1]: *** [p3p200010.xsl] Error 255
make[1]: *** Deleting file `p3p200010.xsl'

Solution:

You need to apply the following changes to extensions/p3p/Makefile:

--- Makefile.old        2006-02-27 00:10:54.000000000 +0100
+++ Makefile    2006-02-27 00:12:34.000000000 +0100
@@ -44,8 +44,7 @@
 
 MODULE = p3p
 DIRS      = public src
-CHROME_DEPS = p3p200005.xsl p3p200010.xsl p3p200012.xsl p3p200109.xsl \
-       p3p200201.xsl
+CHROME_DEPS = p3p200005.xsl p3p200010.xsl p3p200012.xsl p3p200109.xsl p3p200201.xsl
 
 PP = $(PERL) -I$(topsrcdir)/config $(topsrcdir)/config/preprocessor.pl
 
@@ -56,29 +55,20 @@
 
 p3p200005.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2000/P3Pv1 \
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2000/P3Pv1 $< > $@
 
 p3p200010.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 \
-       -DHAS_TMPL_RETENTION\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 -DHAS_TMPL_RETENTION $< > $@
 
 p3p200012.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2000/12/P3Pv1 \
-       -DHAS_CALL_OURS\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2000/12/P3Pv1 -DHAS_CALL_OURS $< > $@
 
 p3p200109.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2001/09/P3Pv1 \
-       -DHAS_CALL_OURS\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2001/09/P3Pv1 -DHAS_CALL_OURS $< > $@
 
 p3p200201.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2002/01/P3Pv1 \
-       -DHAS_CALL_OURS -DHAS_PURPOSE_SRC\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2002/01/P3Pv1 -DHAS_CALL_OURS -DHAS_PURPOSE_SRC $< > $@

Error - zip not found

Stage: configure

checking for zip... no
configure: error: zip not found in $PATH

Explanation:

  • zip binary is needed.

Solution:

  • You have to install zip binary, zip in Debian.

-I../../../dist/include/layout -I../../../dist/include/widget -I../../../dist/include/dom -I../../../dist/include/js -I../../../dist/include/locale -I../../../dist/include/unicharutil -I../../../dist/include/webshell -I../../../dist/include/uriloader -I../../../dist/include/htmlparser -I../../../dist/include/necko -I../../../dist/include/view -I../../../dist/include/pref -I../../../dist/include/docshell -I../../../dist/include/xpconnect -I../../../dist/include/xuldoc -I../../../dist/include/caps -I../../../dist/include/editor -I../../../dist/include/imglib2 -I../../../dist/include/mimetype -I../../../dist/include/exthandler -I../../../dist/include/uconv -I../../../dist/include/intl -I../../../dist/include/plugin -I../../../dist/include/cairo -I../../../dist/include/libpixman -I../../../dist/include/content -I../../../dist/include -I../../../dist/include/nspr -I../../../dist/sdk/include -fPIC -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 -I../../../dist/include/cairo -I/home/jhbuild/sid-ia32/build/include/gtk-2.0 -I/home/jhbuild/sid-ia32/build/lib/gtk-2.0/include -I/home/jhbuild/sid-ia32/build/include/atk-1.0 -I/home/jhbuild/sid-ia32/build/include/cairo -I/home/jhbuild/sid-ia32/build/include/pango-1.0 -I/home/jhbuild/sid-ia32/build/include/glib-2.0 -I/home/jhbuild/sid-ia32/build/lib/glib-2.0/include -I/home/jhbuild/sid-ia32/build/include -I/usr/include/freetype2 -I/usr/include/libpng12 -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsCanvasRenderingContext2D.pp nsCanvasRenderingContext2D.cpp /home/jhbuild/sid-ia32/build/include/pango-1.0/pango/pangocairo.h:58: error: 'cairo_font_type_t' was not declared in this scope /home/jhbuild/sid-ia32/build/include/pango-1.0/pango/pangocairo.h:60: error: 'cairo_font_type_t' does not name a type nsCanvasRenderingContext2D.cpp:198: warning: 'PRBool FloatValidate(double, double, double)' defined but not used make[4]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content/canvas/src' make[3]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content/canvas' make[2]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla/content' make[1]: Leaving directory `/home/jhbuild/sid-ia32/checkout/gnome2/mozilla' make[4]: *** [nsCanvasRenderingContext2D.o] Error 1 }}}

Solution:

Create ~/.mozconfig containing:

ac_add_options --enable-system-cairo

make clean and rebuild

Error - Mozilla compilation fails when using GCC 4.0

Stage: make

make[4]: Entering directory `/home/murrayc/cvs/gnome214/mozilla/security/nss/lib/pki'
gcc -o Linux2.6_x86_glibc_PTH_OPT.OBJ/asymmkey.o -c -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -DNSS_3_4_CODE -UDEBUG -DNDEBUG -D_REENTRANT -I/home/murrayc/cvs/gnome214/mozilla/dist/include  -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/include -I/home/murrayc/cvs/gnome214/mozilla/dist/include/nspr -I/home/murrayc/cvs/gnome214/mozilla/dist/include/dbm -I../../../../dist/public/nspr  asymmkey.c
In file included from ../../../../dist/private/nss/nsspki1.h:57,
                 from nsspki.h:56,
                 from asymmkey.c:39:
../../../../dist/private/nss/oiddata.h:46: error: array type has incomplete element type
make[4]: *** [Linux2.6_x86_glibc_PTH_OPT.OBJ/asymmkey.o] Error 1
make[4]: Leaving directory `/home/murrayc/cvs/gnome214/mozilla/security/nss/lib/pki'
make[3]: *** [libs] Error 2

Solution:

You need to apply the following changes to security/nss/lib/pki1/oiddata.h:

--- security/nss/lib/pki1/oiddata.h     4 Jan 2002 05:22:07 -0000       1.1
+++ security/nss/lib/pki1/oiddata.h     24 Aug 2005 15:23:34 -0000
@@ -36,14 +36,14 @@
 #define OIDDATA_H
 #ifdef DEBUG
-static const char OIDDATA_CVS_ID[] = "@(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name:  $ ; @(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name:  $";
+static const char OIDDATA_CVS_ID[] = "@(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name: MOZILLA_1_7_BRANCH $ ; @(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name: MOZILLA_1_7_BRANCH $";
 #endif /* DEBUG */
 #ifndef NSSPKI1T_H
 #include "nsspki1t.h"
 #endif /* NSSPKI1T_H */
-extern const NSSOID nss_builtin_oids[];
+extern const NSSOID *nss_builtin_oids;
 extern const PRUint32 nss_builtin_oid_count;
 /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/

An even better way to solve this is to apply the final patch of the bug (https://bugzilla.mozilla.org/show_bug.cgi?id=284386). If you are wondering why the problem still happens even if the bug is fixed, it is because gnome retrieve mozilla from a more stable branch than CVS HEAD of mozilla. So on this branch, the bug is still there, but should be fixed when a new stable developping branch will be released.

Error building p3p extension

Stage: make

make[2]: Leaving directory `/home/sc/Sviluppo/Gnome/mozilla/extensions/p3p/src'
/usr/bin/perl -I../../config ../../config/preprocessor.pl -DNAMESPACE=http://www.w3.org/2000/P3Pv1 \
        resources/content/p3p.xsl.in > p3p200005.xsl
/usr/bin/perl -I../../config ../../config/preprocessor.pl -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 \
        -DHAS_TMPL_RETENTION\
        resources/content/p3p.xsl.in > p3p200010.xsl
../../config/preprocessor.pl: invalid argument to -D: HAS_TMPL_RETENTIONresources/content/p3p.xsl.in
make[1]: *** [p3p200010.xsl] Error 255
make[1]: *** Deleting file `p3p200010.xsl'

Solution:

You need to apply the following changes to extensions/p3p/Makefile:

--- Makefile.old        2006-02-27 00:10:54.000000000 +0100
+++ Makefile    2006-02-27 00:12:34.000000000 +0100
@@ -44,8 +44,7 @@
 
 MODULE = p3p
 DIRS      = public src
-CHROME_DEPS = p3p200005.xsl p3p200010.xsl p3p200012.xsl p3p200109.xsl \
-       p3p200201.xsl
+CHROME_DEPS = p3p200005.xsl p3p200010.xsl p3p200012.xsl p3p200109.xsl p3p200201.xsl
 
 PP = $(PERL) -I$(topsrcdir)/config $(topsrcdir)/config/preprocessor.pl
 
@@ -56,29 +55,20 @@
 
 p3p200005.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2000/P3Pv1 \
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2000/P3Pv1 $< > $@
 
 p3p200010.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 \
-       -DHAS_TMPL_RETENTION\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 -DHAS_TMPL_RETENTION $< > $@
 
 p3p200012.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2000/12/P3Pv1 \
-       -DHAS_CALL_OURS\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2000/12/P3Pv1 -DHAS_CALL_OURS $< > $@
 
 p3p200109.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2001/09/P3Pv1 \
-       -DHAS_CALL_OURS\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2001/09/P3Pv1 -DHAS_CALL_OURS $< > $@
 
 p3p200201.xsl: resources/content/p3p.xsl.in Makefile.in
        @$(RM) -f $@
-       $(PP) -DNAMESPACE=http://www.w3.org/2002/01/P3Pv1 \
-       -DHAS_CALL_OURS -DHAS_PURPOSE_SRC\
-       $< > $@
+       $(PP) -DNAMESPACE=http://www.w3.org/2002/01/P3Pv1 -DHAS_CALL_OURS -DHAS_PURPOSE_SRC $< > $@

Error - undefined reference to nsHashtable

Stage: build

nsSpecialSystemDirectory.cpp:(.text+0x446): undefined reference to `nsHashtable::Get(nsHashKey*)'
nsSpecialSystemDirectory.cpp:(.text+0x497): undefined reference to `nsHashtable::Get(nsHashKey*)'
nsSpecialSystemDirectory.cpp:(.text+0x514): undefined reference to `nsHashKey::~nsHashKey()'
nsSpecialSystemDirectory.cpp:(.text+0x522): undefined reference to `nsHashKey::~nsHashKey()'
nsSpecialSystemDirectory.o: In function `SystemDirectoriesKey::~SystemDirectoriesKey()':
nsSpecialSystemDirectory.cpp:(.text._ZN20SystemDirectoriesKeyD0Ev[SystemDirectoriesKey::~SystemDirectoriesKey()]+0x26): undefined reference to `nsHashKey::~nsHashKey()'
nsSpecialSystemDirectory.o: In function `SystemDirectoriesKey::~SystemDirectoriesKey()':
nsSpecialSystemDirectory.cpp:(.text._ZN20SystemDirectoriesKeyD1Ev[SystemDirectoriesKey::~SystemDirectoriesKey()]+0x21): undefined reference to `nsHashKey::~nsHashKey()'
nsSpecialSystemDirectory.o:(.data.rel.ro._ZTV20SystemDirectoriesKey[vtable for SystemDirectoriesKey]+0x1c): undefined reference to `nsHashKey::Write(nsIObjectOutputStream*) const'
/usr/bin/ld: libxpcom_compat.so: hidden symbol `nsHashtable::Get(nsHashKey*)' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output

Explanation:

The bug concerned seems to be : GCC4.0 - relocation R_X86_64_PC32 against `memcpy@@GLIBC_2.2.5′ can not be used.

The bug still present with GCC 4.2 in Feisty.

Solution:

http://benjamin.smedbergs.us/blog/2005-10-27/gcc-40-workaround/

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/102518/

You can run apt-get -b source firefox and move firefox-2.0.0.12+2nobinonly+2/build-tree/mozilla in your jhbuild checkout directory.

Error - Package xft was not found in the pkg-config search path

Stage: Configure

checking for xft... Package xft was not found in the pkg-config search path. Perhaps you should add the directory containing `xft.pc' to the PKG_CONFIG_PATH environment variable No package 'xft' found
configure: error: Library requirements (xft) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

Cause: Development headers for xft are missing.

Solution: Install libxft-dev

Error - Mozilla compilations fails during layout build

Stage: Compilation

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,libgklayout.so -o libgklayout.so  nsLayoutModule.o nsContentHTTPStartup.o nsContentDLF.o nsLayoutStatics.o    -L/opt/gnome2/lib    -Wl,--whole-archive ../../dist/lib/libgkbase_s.a ../../dist/lib/libgkgeneric_s.a ../../dist/lib/libgkforms_s.a ../../dist/lib/libgkstyle_s.a ../../dist/lib/libgkprinting_s.a ../../dist/lib/libgktable_s.a ../../dist/lib/libgkxulbase_s.a ../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconcvs_s.a ../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a ../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkconxmldoc_s.a ../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxuldoc_s.a ../../dist/lib/libgkview_s.a ../../dist/lib/libjsdombase_s.a ../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a ../../dist/lib/libjsdomstorage_s.a  ../../dist/lib/libgkxultree_s.a ../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgkconxultmpl_s.a  ../../dist/lib/libinspector_s.a  ../../dist/lib/libgkmathmlcon_s.a ../../dist/lib/libgkmathmlbase_s.a  ../../dist/lib/libgkcontentxtf_s.a ../../dist/lib/libgkxtfbase_s.a  -Wl,--no-whole-archive -L../../dist/bin -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom -lxpcom_core  -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -L/opt/gnome2/lib -lpthread -ldl -L../../dist/bin -lmozjs  -L/opt/gnome2/lib   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0    -L/opt/gnome2/lib   -lcairo    -Wl,--version-script -Wl,../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm    
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o): In function `nsCanvasRenderingContext2D::Destroy()':
nsCanvasRenderingContext2D.cpp:(.text+0x1ff7): undefined reference to `XFreePixmap'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
nsCanvasRenderingContext2D.cpp:(.text+0x5f28): undefined reference to `XRenderFindStandardFormat'
nsCanvasRenderingContext2D.cpp:(.text+0x5f4b): undefined reference to `XListPixmapFormats'
nsCanvasRenderingContext2D.cpp:(.text+0x5f86): undefined reference to `XFree'
nsCanvasRenderingContext2D.cpp:(.text+0x5fd0): undefined reference to `XCreatePixmap'
collect2: Error: ld returned 1 exit status
make[3]: *** [libgklayout.so] Erreur 1
make[3]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla/layout/build »
make[2]: *** [libs] Erreur 2
make[2]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla/layout »
make[1]: *** [tier_9] Erreur 2
make[1]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla »
make: *** [default] Erreur 2

Cause: X11 and Xrender libraries missing in command line.

Solution: Add

EXTRA_DSO_LDOPTS += \
                -lXrender \
                -lX11 \
                $(NULL)

in the local Makefile (mozilla/layout/build/Makefile). It isn't the best way for a long time, but it'is working. If somebody have a proper solution...

Error - grep command failed

Stage: Compilation

make[4]: entrant dans le répertoire « /home/yannick/checkout/gnome2/mozilla/security/nss/lib/nss »
grep -v ';-' nss.def | sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > Linux2.6_x86_glibc_PTH_OPT.OBJ/nss.def
Unmatched [ in regex; marked by <-- HERE in m/ \.*/*../certhigh/[ <-- HERE 00mLinux2.6_x86_glibc_PTH_OPT.OBJ/certhtml.o / at -e line 1.
make[4]: *** [../certhigh/Linux2.6_x86_glibc_PTH_OPT.OBJ/certhtml.o] Erreur 255
make[4]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla/security/nss/lib/nss »
make[3]: *** [libs] Erreur 2
make[3]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla/security/nss/lib »
make[2]: *** [libs] Erreur 2
make[2]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla/security/manager »
make[1]: *** [tier_50] Erreur 2
make[1]: quittant le répertoire « /home/yannick/checkout/gnome2/mozilla »
make: *** [default] Erreur 2

Solution: Use gcc instead of colorgcc, and make instead of colormake !

Error - Build error with Fontconfig on Ubuntu 8.10

Stage: Compilation

nsFontMetricsPS.o: In function `nsXftEntry::nsXftEntry(_FcPattern*)':
nsFontMetricsPS.cpp:(.text+0x1c14): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x1c49): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x1c7e): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x1cb6): undefined reference to `FcPatternGetInteger'
nsFontMetricsPS.o: In function `nsXftEntry::nsXftEntry(_FcPattern*)':
nsFontMetricsPS.cpp:(.text+0x1d64): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x1d99): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x1dce): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x1e06): undefined reference to `FcPatternGetInteger'
nsFontMetricsPS.o: In function `nsFontPSXft::FindFont(unsigned short, nsFont const&, nsFontMetricsPS*)':
nsFontMetricsPS.cpp:(.text+0x299b): undefined reference to `FcCharSetHasChar'
nsFontMetricsPS.cpp:(.text+0x2ca2): undefined reference to `FcPatternCreate'
nsFontMetricsPS.cpp:(.text+0x2dc5): undefined reference to `FcPatternAddInteger'
nsFontMetricsPS.cpp:(.text+0x2df3): undefined reference to `FcPatternAddInteger'
nsFontMetricsPS.cpp:(.text+0x2e11): undefined reference to `FcConfigSubstitute'
nsFontMetricsPS.cpp:(.text+0x2e1f): undefined reference to `FcDefaultSubstitute'
nsFontMetricsPS.cpp:(.text+0x2e4f): undefined reference to `FcFontSort'
nsFontMetricsPS.cpp:(.text+0x2ece): undefined reference to `FcPatternGetBool'
nsFontMetricsPS.cpp:(.text+0x2f11): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x2f5c): undefined reference to `FcPatternGetString'
nsFontMetricsPS.cpp:(.text+0x2fa7): undefined reference to `FcPatternGetCharSet'
nsFontMetricsPS.cpp:(.text+0x2fcb): undefined reference to `FcCharSetCopy'
nsFontMetricsPS.cpp:(.text+0x307c): undefined reference to `FcFontSetDestroy'
nsFontMetricsPS.cpp:(.text+0x308a): undefined reference to `FcPatternDestroy'
nsFontMetricsPS.o: In function `nsFontMetricsPS::~nsFontMetricsPS()':
nsFontMetricsPS.cpp:(.text+0x3922): undefined reference to `FcCharSetDestroy'
nsFontMetricsPS.o: In function `nsFontMetricsPS::~nsFontMetricsPS()':
nsFontMetricsPS.cpp:(.text+0x3bda): undefined reference to `FcCharSetDestroy'
nsFontMetricsPS.o: In function `nsFontMetricsPS::~nsFontMetricsPS()':
nsFontMetricsPS.cpp:(.text+0x3d02): undefined reference to `FcCharSetDestroy'
../../../dist/lib/libgfxshared_s.a(nsFontConfigUtils.o): In function `NS_AddFFRE(_FcPattern*, nsCString*, int)':
nsFontConfigUtils.cpp:(.text+0x1f9): undefined reference to `FcPatternAddWeak'
nsFontConfigUtils.cpp:(.text+0x230): undefined reference to `FcPatternAdd'
../../../dist/lib/libgfxshared_s.a(nsFontConfigUtils.o): In function `NS_AddLangGroup(_FcPattern*, nsIAtom*)':
nsFontConfigUtils.cpp:(.text+0x339): undefined reference to `FcPatternAddString'
nsFontConfigUtils.cpp:(.text+0x358): undefined reference to `FcPatternAddString'
collect2: ld returned 1 exit status
make[4]: *** [libgfxps.so] Error 1
make[4]: Leaving directory `/home/sivanderlinden/Workspaces/gnome2/mozilla/gfx/src/ps'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/home/sivanderlinden/Workspaces/gnome2/mozilla/gfx/src'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/home/sivanderlinden/Workspaces/gnome2/mozilla/gfx'
make[1]: *** [tier_9] Error 2
make[1]: Leaving directory `/home/sivanderlinden/Workspaces/gnome2/mozilla'
make: *** [default] Error 2

Solution: See https://bugzilla.mozilla.org/show_bug.cgi?id=465445 and apply the patch.


CategoryJhbuildIssues

Projects/Jhbuild/Issues/mozilla (last edited 2013-11-25 16:29:21 by WilliamJonMcCann)