LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-14-2005, 04:17 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Compiling Firefox for Slackware.


Back in LFS, i compile firefox with the following parameters,
http://www.linuxfromscratch.org/blfs...t/firefox.html

I'm wondering if its the same more or less to compile firefox for Slackware.. Or if i really need all that o_O

How would you compile it?
 
Old 07-14-2005, 04:34 AM   #2
Hal
Member
 
Registered: Oct 2003
Location: East Anglia, England
Distribution: Dapper Drake / Slackware
Posts: 151

Rep: Reputation: 30
Ignore this if you wanted to compile for configuration, or performance or something, but you can just pick up the binary from here:

ftp://ftp.mozilla.org/pub/mozilla.or...x-1.0.5.tar.gz

Just extract and you'll have firefox.
 
Old 07-14-2005, 04:41 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Hmm, yea i saw the binaries before, but i thought might as well tailor and compile it for my system.. =/
 
Old 07-14-2005, 05:07 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
<insert typically long drawn out background essay here>

In closing:

My compiled Firefox (for x86_64) was slower than the one I downloaded (for x86) off Mozilla's site. It was somewhat distressing, but, lesson learnt: the Mozilla dev team know what they're doing better than I do =D

- Piete.
 
Old 07-14-2005, 05:09 AM   #5
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
I've always compiled Firefox for Slack, using the latest BLFS book as a guide.

It gets awkward only if you want to create a Slackware package (which I do), because you need the five or so files that are created by running firefox as root the first time.

Next time I'm at my Slack box, I'll post the exact ./configure line I use - if you like.
 
Old 07-14-2005, 05:23 AM   #6
sybille
Member
 
Registered: Dec 2004
Location: France
Posts: 41

Rep: Reputation: 15
Xushi--

You can see the options used when Firefox was built by tying "about:buildconfig" into the Firefox address bar.

Here are the options used by the Firefox 1.0.5 binary from Mozilla.org that I installed yesterday:

Code:
about:buildconfig

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler  Version 	                                     Compiler flags
gcc 	  gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -pthread -pipe
c++ 	  gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) -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 -I/usr/X11R6/include

Configure arguments
--disable-ldap
--disable-mailnews
--enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs,negotiateauth
--enable-crypto
--disable-composer
--enable-single-profile
--disable-profilesharing
--disable-debug
'--enable-optimize=-Os -freorder-blocks -fno-reorder-functions -gstabs+'
--disable-tests
--enable-official-branding
--enable-default-toolkit=gtk2
--enable-xft
--disable-freetype2
--enable-static
--disable-shared
So if those options seem OK to you, or at least OK enough, then there would be no real need to compile a custom version of Firefox, although at the same time it couldn't hurt anything to compile against the specific libraries on your system.

Are you on 64 bit right now? If so, you might take a look at the Gentoo on AMD64 forum. The advice there is to use the 32 bit binary for Firefox rather than compiling, so that 32-bit plugins will work (I think that's the argument, anyway).

Last edited by sybille; 07-14-2005 at 05:25 AM.
 
Old 07-14-2005, 05:36 AM   #7
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
No, i'm on 32 bit right now. And i guess i'll leave the compilation till a later date when i'm on 64 bit..

I tried it and got
configure: error: Could not compile basic X program.

And i can't be bothered to see whats wrong since there already exist binaries for x86 .. When i'm on 64 bit ill give it another go..
 
Old 07-14-2005, 05:51 AM   #8
sybille
Member
 
Registered: Dec 2004
Location: France
Posts: 41

Rep: Reputation: 15
Well, if and when you do decide to look into it further, my guess would be that you're needing the x-11 devel package. As I understand it, that's what allows XFT and freetype support to be compiled in, among other things.
 
Old 07-14-2005, 07:02 AM   #9
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Thanks sybille, well since i started this thread, i might as well go ahead and compile it

Here's another ./configure error btw...
Code:
creating pr/src/memory/Makefile
creating pr/src/misc/Makefile
creating pr/src/threads/Makefile
creating pr/tests/Makefile
creating pr/tests/dll/Makefile
creating pr/src/pthreads/Makefile
configure: warning: Recreating autoconf.mk with updated nspr-config output
 
Old 07-14-2005, 08:04 AM   #10
sybille
Member
 
Registered: Dec 2004
Location: France
Posts: 41

Rep: Reputation: 15
Is that an error or is it just informing you that automake.mk has been changed to include options that you've specified?

Did the config process abort right there? If not, then I wouldn't worry too much about that particular warning.

I'm far from an expert on compiling, though.
 
Old 07-14-2005, 08:58 AM   #11
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Sorry, yes, the configure stopped right there. I'm not sure if that's good or bad.. running make works, but i wanted to ask just to check if it mised anything in configure or not.
 
Old 07-14-2005, 10:27 AM   #12
sybille
Member
 
Registered: Dec 2004
Location: France
Posts: 41

Rep: Reputation: 15
Well, like I said, I'm not a compiling expert. But if it were my system, if that was the only warning in ./configure, and then if make seemed to roll along just fine, I wouldn't worry about it.

You should probably wait for a more informed opinion that however, if you're planning to wait.
 
Old 07-14-2005, 10:40 AM   #13
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Quote:
Originally posted by piete
<insert typically long drawn out background essay here>
Thank you so much for making my morning that much more enjoyable!

I am starting to feel like a deadbeat Slackware user, using slackpackages that others have compiled and posted on the web!
I guess I had better move pkg making further up my "Learn to do" list!
 
Old 07-14-2005, 11:28 AM   #14
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Well so far it works, appart from the annoying user profile thing that popps up again... Whenever i want to start more than one instance of FF, it forces me to choose another user profile.. Last time i saw that was in FF 0.9
 
Old 07-14-2005, 11:57 AM   #15
sybille
Member
 
Registered: Dec 2004
Location: France
Posts: 41

Rep: Reputation: 15
That's controlled by the startup script for Firefox, which is the file named "firefox" (as opposed to "firefox-bin") in /usr/lib or wherever you installed the application. You might try editing that script.

But I think that this is supposed to prevent other programs from possibly messing up the profile by writing to the profile folder when it's in use - that's why it's locked and a second session cannot start up. See: http://kb.mozillazine.org/Profile_in_use

I don't know that there is anything on my Linux system that would try to write to my profile folder, but maybe it's a security thing? It doesn't bug me, because I'd rather open a new tab in my existing window than a new window altogether. But everyone has his or her own preferences.

Anyway, glad to hear that it compiled OK. I'm jealous that it went so fast (lightening fast, from my perspective. My computer is so old and slow that I only compile things when there is absolutely no other alternative!)

Last edited by sybille; 07-14-2005 at 12:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.1 Why not Ship Firefox 1.0? rovitotv Slackware 41 03-03-2006 04:05 PM
Compiling Firefox with i686 optimizations? Jacksteruk309 Linux - Newbie 3 10-19-2005 12:22 PM
Firefox not starting up(slackware 10.1) unosaso Linux - Software 7 02-24-2005 11:52 AM
Mass-Compiling Possible with Slackware 10? DreameR-X Linux - Newbie 2 12-05-2004 09:48 PM
No international fonts when compiling firefox from source with xft elconde Linux - Software 1 06-20-2004 07:02 PM


All times are GMT -5. The time now is 09:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration