On 11/22/2011 09:12 PM, Wayne Blaszczyk wrote:
On 23/11/11 06:54, Claus Regelmann wrote:
On 11/22/2011 01:43 PM, Martin Ward wrote:
On 22/11/11 11:49, Wayne Blaszczyk wrote:
On 11/11/11 00:33, DJ Lucas wrote:
On 11/09/2011 06:07 PM, Jeremy Henty wrote:
Bruce Dubbs wrote:
Andrew Benton wrote:
Yes, with wget I downloaded
ftp://ftp.mozilla.org/pub/firefox/releases/8.0/source/firefox-8.0.source.tar.bz2
It compiled on a 3.1 kernel without patching.
I'd appreciate knowing the instructions you used. I can't do it yet
because I haven't put X on my development system yet.
I'm not the person you replied to, but here are my notes on
Firefox-[78]* anyway...
You must configure cairo with --enable-tee .
If you haven't installed yasm then you must disable webm video.
Jeremy
Guys, just in case you are not aware, we should probably consider using
external npapi. We can of course, fix anything that is using the
incorrect version scheme, but looking to the future, that might be a bit
of work (OpenJDK specifically will be a PITA, don't know about other
open source plug-ins).
-- DJ Lucas
I am having problems with Firefox 8 myself.
I've built xulrunner and firefox separately with no problems, but when I
try to execute firefox, it comes back with the following message:
Could not read application.ini
Googling comes up with a lot of hits, but no real solutions.
Strace produces the following:
mmap(0x7f5a2c600000, 1048576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5a2c600000
stat("/usr/local/bin/firefox", 0x7fff5744a408) = -1 ENOENT (No such file
or directory)
stat("/bin/firefox", 0x7fff5744a408) = -1 ENOENT (No such file or
directory)
stat("/usr/bin/firefox", {st_mode=S_IFREG|0755, st_size=65128, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
access("/usr/bin/xulrunner/libxpcom.so", R_OK) = -1 ENOTDIR (Not a
directory)
open("/usr/bin/application.ini", O_RDONLY) = -1 ENOENT (No such file or
directory)
write(2, "Could not read application.ini\n", 31Could not read
application.ini
) = 31
exit_group(1)
Not sure why it would be checking /usr/bin/xulrunner/libxpcom.so since
/usr/bin/xulrunner is a symbolic link to a script.
Anyway copying the application.ini file to /usr/bin, just takes it to
the next problem:
Could not find the Mozilla runtime.
It seems to me that it is confusing /usr/lib with /usr/bin ?
The mozconfig I used is pretty much the same as what is current in the
BLFS book with slight alterations.
Any pointers to what the problem might be?
Thanks,
Wayne.
Sounds like you need to put in a symbolic link from /usr/bin/firefox ->
/usr/lib/firefox/firefox or similar, I believe this was missing in 8.0,
but fixed in 8.0.1
martin
I got the same problem. I think it's a mozilla bug.
I'm just compiling xulrunner with the following patch. Be patient or try it
yourself!
----------------------------------------------------------------------------------
--- mozilla-release/xulrunner/stub/nsXULStub.cpp 2011-11-15
08:25:26.000000000 +0100
+++ mozilla-release-cr/xulrunner/stub/nsXULStub.cpp 2011-11-22
18:39:00.000000000 +0100
@@ -266,7 +266,7 @@
strncpy(tmpPath, argv[0], sizeof(tmpPath));
lastSlash = strrchr(tmpPath, '/');
if (lastSlash) {
- *lastSlash = 0;
+ // *lastSlash = 0;
realpath(tmpPath, iniPath);
} else {
const char *path = getenv("PATH");
@@ -378,7 +378,7 @@
nsINIParser parser;
rv = parser.Init(iniPath);
if (NS_FAILED(rv)) {
- fprintf(stderr, "Could not read application.ini\n");
+ fprintf(stderr, "Could not read application.ini: '%s'\n",iniPath);
return 1;
}
--------------------------------------------------------------------------------------------
Claus
I'll be patient, I'm just heading off to work.
BTW, version 8.0.1 did not fix the problem.
Wayne.
Patch not successfull !!! But it gives us some hints!
-----------------------------------------------
*rgc@rgc4:~$ firefox*
Could not read application.ini: '/usr/bin/application.ini' <<<- almost expected
*rgc@rgc4:~$ ls -l /usr/bin/firefox*
lrwxrwxrwx 1 root root 30 Nov 22 23:12 /usr/bin/firefox ->
/usr/lib/firefox-8.0.1/firefox
*rgc@rgc4:~$ /usr/bin/firefox*
Could not read application.ini: '/usr/lib/firefox-8.0.1*/firefox/*application.ini' <<<--- AAAAAH, there's an xtra 'firefox' in the
path !!!!???
*rgc@rgc4:~$ xulrunner /usr/lib/firefox-8.0.1/application.ini *<<<--- firefox runs
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is
not supported! This is an application bug!
failed to create drawable
rgc@rgc4:~$
-------------------------------------------------
I first built xulrunner, then firefox, and I used my personal BASH-based
build-scripts. I'll append these scripts.
Examine them.
Next lets futher compare the code of nsXULStub.cpp in 3.6.23 (which works) with
the current 8.0.1 one.
Claus
#!/bin/bash
#======================
# LFS install script
#======================
# set -x
# . ../local/env.xorg
#LFSID=XXX
LFSID=`basename $0 .ins` ##
PKFIL=firefox-8.0.1.source.tar.xz
PKDIR=mozilla-release
XULRUNNERVER=8.0.1
. ins.prolog || exit 8
# place install scripts for needed packets here
SQLITE.ins || exit 8
CAIRO.ins || exit 8
LIBJPEG.ins || exit 8
LIBPNG.ins || exit 8
LIBPNG14.ins || exit 8
ZLIB.ins || exit 8
NSS.ins || exit 8
NSPR.ins || exit 8
echo "+++ installing package $LFSID=$PKFIL"
LFSSTARTSEC=`date +'%s'`
tar -Jxvf $LFSPKD/$PKFIL || exit 8
pushd $PKDIR
xzcat $LFSPKD/xulrunner-8.0.1-stub-1.patch.xz >__tmpp || exit 8
patch -Np1 -i __tmpp || exit 8
cat > .mozconfig << EOF
# This file contains the options used in the Xulrunner build. You may
# need to specify additional options for your specific build needs.
# Use the information provided by running './configure --help' to
# help you determine if you need to add any additional options.
# Some additional options can be added by uncommenting the examples
# in this file or adding options by inserting a line containing
# 'ac_add_options --some-option-you-need'. Be aware that some accepted
# options, such as '--with-system-bz2', do not affect the build.
# specify that we want to build xulrunner
ac_add_options --enable-application=xulrunner
# Create an object directory and specify to build the package in that
# directory. If desired, modify the location of the object directory
# to a directory inside the source tree by removing '../' from the
# line below.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build
# Specify the installation prefix. If you would prefer Xulrunner
# installed in a different prefix, modify the line below to fit
# your needs (the config will always be written to /etc/gre.d)
ac_add_options --prefix=/usr
# apply a minimal level of optimization (-O)
ac_add_options --enable-optimize
# These options are used so that the Xulrunner binaries are linked to
# the system-installed copies of the specified libraries instead of
# the source tree code which may not be the most recent versions.
# With the exception of libsqlite3, the libraries are statically linked.
# (Options to use system installed libraries)
# Using the shipped version of libsqlite3 has been reported to cause
# problems with other applications which were using sqlite3.
# Only comment this line if you know exactly what you are doing!
ac_add_options --enable-system-sqlite
# Comment this only if you want to use whatever patched version of cairo
# is in the shipped mozilla tree, together with the system headers.
ac_add_options --enable-system-cairo
# Comment this if you did not build libjpeg before GTK+-2.
ac_add_options --with-system-jpeg
# These two options enable support for building Xulrunner with
# system-installed versions of the Network Security Services (NSS)
# and Netscape Portable Runtime (NSPR) libraries. Comment them if
# you wish to use the included copies (not recommended).
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
# Comment this if you have not built png with the apng patch.
ac_add_options --with-system-png
# The pthreads option is only used when building nspr
# Uncomment this if you build the included nspr.
#ac_add_options --with-pthreads
# zlib is included in LFS. Do not comment this line.
ac_add_options --with-system-zlib
# (Options to disable parts of the package)
# This option is used to disable the a11y support in the Xulrunner
# binaries. Comment out this option if you require a11y support.
ac_add_options --disable-accessibility
# Uncomment this if you did not build curl.
ac_add_options --disable-crashreporter
# Comment this if you have built dbus-glib.
ac_add_options --disable-dbus
# Comment this if you have gnome-vfs and libgnomeui, and wish to
# integrate xulrunner into your gnome desktop
ac_add_options --disable-gnomevfs
# Comment this if you have wireless-tools installed and wish to use the new
# Necko WiFi scanning.
ac_add_options --disable-necko-wifi
# Comment this if you have installed libnotify.
ac_add_options --disable-libnotify
# This option is added so that the Mozilla Installer program is not
# built or installed. The program is not required for a BLFS
# installation of Xulrunner.
ac_add_options --disable-installer
# If you enable javaxpcom, you must have a java compiler installed.
ac_add_options --disable-javaxpcom
# This option is added so that test libraries and programs are not
# built. These would only be required for debugging purposes.
ac_add_options --disable-tests
# Disable the updater, which is not appropriate if you build from source
ac_add_options --disable-updater
# (options to add extra parts of the package)
# Use the anti-phishing measures (a blacklist of sites).
ac_add_options --enable-safe-browsing
# This option is used so that the debugging symbols are removed from
# the installed binaries during the installation process. Comment out
# this option if you may have a need to retain the debugging symbols
# in the installed binaries (the resulting binaries will be about 7MB
# bigger).
ac_add_options --enable-strip
# Uncomment this option if you desire support for dual-monitor
# display using the X-Window Xinerama libraries.
#ac_add_options --enable-xinerama
# This option identifies the default binary directory of the Xulrunner
# installation and is used to locate Xulrunner's installed files. This
# option is is only used for development purposes.
ac_add_options --with-default-mozilla-five-home=/usr/lib/xulrunner-$XULRUNNERVER
EOF
#sed 's@stable@unstable@' \
# -i xulrunner/installer/mozilla-js.pc.in || exit 8
echo "Requires: nspr" >>xulrunner/installer/libxul-embedding.pc.in
make -f client.mk build || exit 8
make -f client.mk install || exit 8
install -v -d -m644 /usr/lib/mozilla
cp -av /usr/lib/xulrunner-$XULRUNNERVER/plugins /usr/lib/mozilla
rm -rf /usr/lib/xulrunner-$XULRUNNERVER/plugins
ln -sv /usr/lib/mozilla/plugins /usr/lib/xulrunner-$XULRUNNERVER
chown -Rv root:root /usr/lib/xulrunner-* /usr/bin/xulrunner
ln -sfv xulrunner-devel-$XULRUNNERVER/lib/lib{xul,xpcom,mozjs}.so /usr/lib
popd
rm -rf $PKDIR
ldconfig
. ins.epilog || exit 8
#!/bin/bash
#======================
# LFS install script
#======================
# set -x
# . ../local/env.xorg
#LFSID=XXX
LFSID=`basename $0 .ins` ##
PKFIL=firefox-8.0.1.source.tar.xz
FIREFOXVER=8.0.1
PKDIR=mozilla-release
XULRUNNERVER=8.0.1
. ins.prolog || exit 8
# call install scripte for needed packets here
XULRUNNER.ins || exit 8
echo "+++ installing package $LFSID=$PKFIL"
LFSSTARTSEC=`date +'%s'`
tar -Jxvf $LFSPKD/$PKFIL || exit 8
pushd $PKDIR
xzcat $LFSPKD/xulrunner-8.0.1-stub-1.patch.xz >__tmpp || exit 8
patch -Np1 -i __tmpp || exit 8
cat > .mozconfig << EOF
# This file contains the options used in the Firefox build. You may
# need to specify additional options for your specific build needs.
# Use the information provided by running './configure --help' to
# help you determine if you need to add any additional options.
# Some additional options can be added by uncommenting the examples
# in this file or adding options by inserting a line containing
# 'ac_add_options --some-option-you-need'. Be aware that some accepted
# options, such as '--with-system-bz2', do not affect the build.
# Specify that Firefox should be built. Note that this line is commented out
# because it is redundant with the next setting.
#ac_add_options --enable-application=browser
# Use the default settings specified in the source tree. The
# --enable-application=browser is set in this file.
. \$topsrcdir/browser/config/mozconfig
# Create an object directory and specify to build the package in that
# directory. If desired, modify the location of the object directory
# to a directory inside the source tree by removing '../' from the
# line below.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build
# Specify the installation prefix. If you would prefer Firefox installed in a
# different prefix, modify the line below to fit your needs.
ac_add_options --prefix=/usr
# Apply a minimal level of optimization (-O).
ac_add_options --enable-optimize
# These options are used so that the Firefox binaries are linked to
# the system-installed copies of the specified libraries instead of
# the source tree code which may not be the most recent versions.
# With the exception of libsqlite3, the libraries are statically linked.
# (Options to use system installed libraries)
# Using the shipped version of libsqlite3 has been reported to cause
# problems with other applications which were using sqlite3.
# Only comment this line if you know exactly what you are doing!
ac_add_options --enable-system-sqlite
# Comment this only if you want to use whatever patched version of cairo
# is in the shipped mozilla tree, together with the system headers.
ac_add_options --enable-system-cairo
# Comment this if you have not installed lcms.
ac_add_options --enable-system-lcms
# Uncomment this if you have installed Hunspell
#ac_add_options --enable-system-hunspell
# Uncomment this if you have installed startup-notification
#ac_add_options --enable-startup-notification
# Comment this if you did not build libjpeg before GTK+-2.
ac_add_options --with-system-jpeg
# These two options enable support for building Xulrunner with
# system-installed versions of the Network Security Services (NSS)
# and Netscape Portable Runtime (NSPR) libraries. Comment them if
# you wish to use the included copies (not recommended).
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
# Comment this if you have not built png with the apng patch.
ac_add_options --with-system-png
# The pthreads option is only used when building nspr
# Uncomment this if you build the included nspr.
#ac_add_options --with-pthreads
# Zlib is included in LFS. Do not comment this line.
ac_add_options --with-system-zlib
# (Options to disable parts of the package)
# This option is used to disable the a11y support in the Xulrunner
# binaries. Comment out this option if you require a11y support.
ac_add_options --disable-accessibility
# Uncomment this if you did not build cURL.
ac_add_options --disable-crashreporter
# Comment this if you have built DBus-Glib.
ac_add_options --disable-dbus
# Comment this if you have Gnome-VFS and libgnomeui, and wish to
# integrate Firefox into your Gnome desktop
ac_add_options --disable-gnomevfs
# Comment this if you have wireless-tools installed and wish to use the new
# Necko WiFi scanning.
ac_add_options --disable-necko-wifi
# Comment this if you have installed libnotify.
ac_add_options --disable-libnotify
# This option is added so that the Mozilla Installer program is not
# built or installed. The program is not required for a BLFS
# installation of Xulrunner.
ac_add_options --disable-installer
# If you enable javaxpcom, you must have a java compiler installed.
ac_add_options --disable-javaxpcom
# This option is added so that test libraries and programs are not
# built. These would only be required for debugging purposes.
ac_add_options --disable-tests
# Disable the updater, which is not appropriate if you build from source.
ac_add_options --disable-updater
# (options to add extra parts of the package)
# This option causes the installed Firefox binaries to have the official
# Firefox name embedded in them. Due to license restrictions, you
# may not distribute binaries created using this option. It also
# means you get a popup EULA when you first run Firefox.
ac_add_options --enable-official-branding
# Use the anti-phishing measures (a blacklist of sites).
ac_add_options --enable-safe-browsing
# This option is used so that the debugging symbols are removed from
# the installed binaries during the installation process. Comment out
# this option if you may have a need to retain the debugging symbols
# in the installed binaries (the resulting binaries will be about 7MB
# bigger).
ac_add_options --enable-strip
# Uncomment this option if you desire support for dual-monitor
# display using the X-Window Xinerama libraries.
#ac_add_options --enable-xinerama
# This option identifies the default binary directory of the Firefox
# installation and is used to locate Firefox's installed files. This
# option is is only used for development purposes.
ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-$FIREFOXVER
# Point to the Xulrunner libraries - comment these for a standalone browser.
ac_add_options --with-system-libxul
ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-$XULRUNNERVER
EOF
make -f client.mk build || exit 8
make -f client.mk install || exit 8
ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-$FIREFOXVER
ln -v -sf firefox /usr/bin/netscape
popd
rm -rf $PKDIR firefox-build
ldconfig
. ins.epilog || exit 8
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page