I was trying to build Firefox on Linux along with JSSh extension so that
I can create a custom XPI. I somehow got it build with no errors but
when I tried to use the XPI I got the following error while starting
Firefox after installing the extension.
./run-mozilla.sh: line 451: 1912 Segmentation fault "$prog" ${1+"$@"}
Following are the errors that I encountered and somehow got passed them
don't know if that was the correct way to resolve them or not.
My .mozconfig file looks like this: (in mozilla directory)
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/fx-jssh
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
ac_add_options --enable-extensions=default,jssh,webservices
When I run ./configure it gives error like this:
--enable-application=APP is required.
This option is provided in mozconfig don't know why it was not getting
picked up.
I was able to overcome this by using "./configure
--enable-application=browser". Is this correct way to do this?
After configuring when i used "make -f client.mk" it ends with error
saying that there already exists a build.
I overcome this by using "make" command and everything got compiled with
no errors. Is this correct way?
Also when I used the following in .mozconfig:
. $topsrcdir/browser/config/mozconfig
I got error that No such file for directory browser/config/mozconfig
(though it exists)
I am guessing that I am not placing .mozconfig file at correct place.
Sorry for such a long mail. Any helps will be appreciated.
Regards,
Angrez
Running ./configure doesn't look at .mozconfig. You should be using 'make -f
client.mk build' instead. The build documentation is pretty clear about that,
last I checked...
> I was able to overcome this by using "./configure
> --enable-application=browser". Is this correct way to do this?
No. The correct way is to follow the build instructions. ;)
> After configuring when i used "make -f client.mk" it ends with error
> saying that there already exists a build.
Right, since you configured a sourcedir build.
> I overcome this by using "make" command and everything got compiled with
> no errors. Is this correct way?
No. The correct way is to follow the build instructions.
-Boris
Actually, it does. See
http://lxr.mozilla.org/seamonkey/source/configure#6
and
http://lxr.mozilla.org/seamonkey/source/build/autoconf/mozconfig2configure
--
Andrew Schultz
ajsc...@verizon.net
http://www.sens.buffalo.edu/~ajs42/
If you invoke "../configure" from fx-jssh, your object directory, it
should work.
But, as Boris said, you're better off following the build instructions.
http://developer.mozilla.org/en/docs/Build_Documentation
It does look at .mozconfig. It just doesn't look at the mk_add_options
options.
To get an objdir build without client.mk:
mkdir fx-jssh # or whatever name you want
cd fx-jssh
../configure
I tried building Firefox again using "make -f client.mk build" but I got
following error this time:
configure.in : --enable-application=APP is required
My .mozconfig looks like this:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/fx-jssh
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
ac_add_options --enable-extensions=default,jssh,webservices
--enable-application=browser is there. I don't know why this option is
not being picked up.
Any help will be appreciated.
Regards,
Angrez
Sounds like it doesn't find your mozconfig. How did you name the file
and where did you put it?
my file name is .mozconfig and I placed it in "mozilla" directory.
- Angrez
I tried building it again and while configuring and checking for the
necessary libraries for building it does output the following to the
console:
Adding options from .mozconfig:
--enable-application=browser
--enable-extensions=default,jssh,webservices.
Also the OBJDIR that I specify in the mozconfig file also gets created.
So I think its finding the .mozconfig file. But I don't have any clue
why it ends in the error like:
--enable-application=APP is required
Can anyone help me in this?
- Angrez
Though my .mozconfig has following option:
mk_add_options --enable-application=browser
- Angrez
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
You want to use ac_add_options (options for configure), not
mk_add_options (options for client.mk).
-David
--
L. David Baron <URL: http://dbaron.org/ >
Technical Lead, Layout & CSS, Mozilla Corporation
I think that was a typo, I do have ac_add_options
--enable-application=browser in my .mozconfig while. I'll check it again
though. But I am sure I have correct .mozconfig as I used the same for
building Firefox on Windows.
- Angrez
Perhaps your mozconfig file uses windows line-endings, while it should
use unix ones?
Thanks Christian for pointing in right direction. It was indeed the
line-endings that was the problem.
I have one another question. I build Firefox with extension JSSh. Now
when I start the custom build Firefox with '-jssh' option it works fine.
But when I create 'XPI' and try it on another installation of Firefox
(Firefox 1.0.4), I get segmentation fault in 'run-mozilla.sh'.
The same process works fine in Windows i.e. compile Firefox, Create XPI
use on other Firefox installation.
Any helps will be appreciated here.
Regards,
Angrez