<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Artlav</id>
	<title>CBLFS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Artlav"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/Artlav"/>
	<updated>2026-05-22T17:50:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=XULRunner&amp;diff=21205</id>
		<title>XULRunner</title>
		<link rel="alternate" type="text/html" href="?title=XULRunner&amp;diff=21205"/>
		<updated>2011-07-24T14:14:39Z</updated>

		<summary type="html">&lt;p&gt;Artlav: Fixing compile errors with GCC 4.6&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Source:&lt;br /&gt;
| http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/{{XULRunner-Version}}/source/xulrunner-{{XULRunner-Version}}.source.tar.bz2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications that are as rich as Firefox and Thunderbird. It will provide mechanisms for installing, upgrading, and uninstalling these applications. XULRunner will also provide libxul, a solution which allows the embedding of Mozilla technologies in other projects and products.|https://developer.mozilla.org/en/XULRunner}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[Gtk2]]&lt;br /&gt;
* [[libIDL]]&lt;br /&gt;
* [[Zip]]&lt;br /&gt;
=== Recommended ===&lt;br /&gt;
* [[NSS]]&lt;br /&gt;
* [[Curl]] (Required for Crash Reporter)&lt;br /&gt;
* [[ALSA]]&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[Unzip]]&lt;br /&gt;
* [[libgnomeui]]&lt;br /&gt;
&lt;br /&gt;
{{Mozilla-mozconfig-base|xulrunner|xulrunner-{{XULRunner-Version}}}}&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib ==&lt;br /&gt;
&lt;br /&gt;
Fix a handful of compilation errors with gcc4:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc &amp;amp;&amp;amp;&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc &amp;amp;&amp;amp;&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc&lt;br /&gt;
&lt;br /&gt;
There are several incompatibilities with GCC 4.6.&lt;br /&gt;
If you get compile errors about &lt;br /&gt;
nsEnumeratorUtils.cpp:115:27: error: uninitialized const EmptyEnumeratorImpl::kInstance &lt;br /&gt;
then you need to get a patch from here: &lt;br /&gt;
https://bugzilla.mozilla.org/show_bug.cgi?id=623126&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk build&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk install&lt;br /&gt;
&lt;br /&gt;
Some applications rely on headers which have moved. Create symlinks to accommodate these:&lt;br /&gt;
&lt;br /&gt;
 ln -sv npfunctions.h /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/stable/npupp.h&lt;br /&gt;
 ln -sv npfunctions.h /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/npupp.h&lt;br /&gt;
&lt;br /&gt;
=== 50-xulrunner.sh ===&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using the [[Bash Startup Files]] create an addition for firefox with the following commands, otherwise make sure the enviornment variables are set in your profile:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-xulrunner.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-xulrunner.sh&lt;br /&gt;
 &lt;br /&gt;
 export PATH=&amp;quot;${PATH}:/opt/xulrunner-{{XULRunner-Version}}/bin&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}/opt/xulrunner-{{XULRunner-Version}}/lib/pkgconfig&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-xulrunner.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
== Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 32Bit ===&lt;br /&gt;
&lt;br /&gt;
Fix a handful of compilation errors with gcc4:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc &amp;amp;&amp;amp;&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc &amp;amp;&amp;amp;&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc&lt;br /&gt;
&lt;br /&gt;
Use the following command to append your &#039;&#039;&#039;.mozconfig&#039;&#039;&#039; with 32bit specific flags:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt;&amp;gt; .mozconfig &amp;lt;&amp;lt; EOF&lt;br /&gt;
 export CC=&amp;quot;gcc ${BUILD32}&amp;quot;&lt;br /&gt;
 export CXX=&amp;quot;g++ ${BUILD32}&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH32}&amp;quot;&lt;br /&gt;
 export USE_ARCH=32&lt;br /&gt;
 ac_add_options --host=$CLFS_TARGET32&lt;br /&gt;
 ac_add_options --build=$CLFS_TARGET32&lt;br /&gt;
 mk_add_options CONFIG_GUESS=$CLFS_TARGET32&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Adjust some hardwired paths for arch-dependent config files:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s/gre\.d/&amp;amp;-32/g&#039; $(grep -lr &#039;gre\.d&#039; *)&lt;br /&gt;
&lt;br /&gt;
==== x86 ====&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk OS_TEST=x86 build&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk OS_TEST=x86 install&lt;br /&gt;
 mv -v /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/js-config{,-32}.h&lt;br /&gt;
 mv -v /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/mozilla-config{,-32}.h&lt;br /&gt;
&lt;br /&gt;
==== ppc64 ====&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk OS_TEST=powerpc build&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk OS_TEST=ppc install&lt;br /&gt;
 mv -v /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/js-config{,-32}.h&lt;br /&gt;
 mv -v /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/mozilla-config{,-32}.h&lt;br /&gt;
&lt;br /&gt;
=== 64Bit ===&lt;br /&gt;
&lt;br /&gt;
Fix a handful of compilation errors with gcc4:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc &amp;amp;&amp;amp;&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc &amp;amp;&amp;amp;&lt;br /&gt;
 sed -i &#039;1i\#include &amp;lt;stdio.h&amp;gt;&#039; toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc&lt;br /&gt;
&lt;br /&gt;
Use the following command to append your &#039;&#039;&#039;.mozconfig&#039;&#039;&#039; with 64bit specific flags:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt;&amp;gt; .mozconfig &amp;lt;&amp;lt; EOF&lt;br /&gt;
 ac_add_options --libdir=/opt/xulrunner-{{XULRunner-Version}}/lib64&lt;br /&gt;
 export CC=&amp;quot;gcc ${BUILD64}&amp;quot;&lt;br /&gt;
 export CXX=&amp;quot;g++ ${BUILD64}&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH64}&amp;quot;&lt;br /&gt;
 export USE_ARCH=64&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
{{Note|For PPC64, CFLAGS and CXXFLAGS may neeed to include &#039;&#039;-mminimal-toc&#039;&#039; to avoid automatic multiple&lt;br /&gt;
TOCs.}}&lt;br /&gt;
&lt;br /&gt;
Adjust some hardwired paths for arch-dependent config files:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s/gre\.d/&amp;amp;-64/g&#039; $(grep -lr &#039;gre\.d&#039; *)&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk build&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make -f client.mk install&lt;br /&gt;
 mv -v /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/js-config{,-64}.h&lt;br /&gt;
 mv -v /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/mozilla-config{,-64}.h&lt;br /&gt;
&lt;br /&gt;
Some applications rely on headers which have moved. Create symlinks to accommodate these:&lt;br /&gt;
&lt;br /&gt;
 ln -sv npfunctions.h /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/stable/npupp.h&lt;br /&gt;
 ln -sv npfunctions.h /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/npupp.h&lt;br /&gt;
&lt;br /&gt;
==== Creating Generic Stub Headers ====&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/js-config.h &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 /* js-config.h - Stub Header  */&lt;br /&gt;
 #ifndef __STUB__XULRUNNER_JS_CONFIG_H__&lt;br /&gt;
 #define __STUB__XULRUNNER_JS_CONFIG_H__&lt;br /&gt;
 &lt;br /&gt;
 #if defined(__x86_64__) || \&lt;br /&gt;
     defined(__sparc64__) || \&lt;br /&gt;
     defined(__arch64__) || \&lt;br /&gt;
     defined(__powerpc64__) || \&lt;br /&gt;
     defined (__s390x__)&lt;br /&gt;
 # include &amp;quot;js-config-64.h&amp;quot;&lt;br /&gt;
 #else&lt;br /&gt;
 # include &amp;quot;js-config-32.h&amp;quot;&lt;br /&gt;
 #endif&lt;br /&gt;
 &lt;br /&gt;
 #endif /* __STUB__XULRUNNER_JS_CONFIG_H__ */&lt;br /&gt;
 EOF&lt;br /&gt;
 cat &amp;gt; /opt/xulrunner-{{XULRunner-Version}}/include/xulrunner-{{XULRunner-Version}}/unstable/mozilla-config.h &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 /* mozilla-config.h - Stub Header  */&lt;br /&gt;
 #ifndef __STUB__XULRUNNER_MOZILLA_CONFIG_H__&lt;br /&gt;
 #define __STUB__XULRUNNER_MOZILLA_CONFIG_H__&lt;br /&gt;
 &lt;br /&gt;
 #if defined(__x86_64__) || \&lt;br /&gt;
     defined(__sparc64__) || \&lt;br /&gt;
     defined(__arch64__) || \&lt;br /&gt;
     defined(__powerpc64__) || \&lt;br /&gt;
     defined (__s390x__)&lt;br /&gt;
 # include &amp;quot;mozilla-config-64.h&amp;quot;&lt;br /&gt;
 #else&lt;br /&gt;
 # include &amp;quot;mozilla-config-32.h&amp;quot;&lt;br /&gt;
 #endif&lt;br /&gt;
 &lt;br /&gt;
 #endif /* __STUB__XULRUNNER_MOZILLA_CONFIG_H__ */&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 50-xulrunner.sh ===&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using the [[Bash Startup Files]] create an addition for firefox with the following commands, otherwise make sure the enviornment variables are set in your profile:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-xulrunner.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-xulrunner.sh&lt;br /&gt;
 &lt;br /&gt;
 export PATH=&amp;quot;${PATH}:/opt/xulrunner-{{XULRunner-Version}}/bin&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH32=&amp;quot;${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}/opt/xulrunner-{{XULRunner-Version}}/lib/pkgconfig&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATHN32=&amp;quot;${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}/opt/xulrunner-{{XULRunner-Version}}/lib32/pkgconfig&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH64=&amp;quot;${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}/opt/xulrunner-{{XULRunner-Version}}/lib64/pkgconfig&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-xulrunner.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
[[Category:GUI Clients]]&lt;/div&gt;</summary>
		<author><name>Artlav</name></author>
	</entry>
</feed>