LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2005, 01:09 PM   #1
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
Headaches compiling Firefox 1.0.7


Finally, after 2 days of going through library and linking hell, I finally got Firefox 1.0.7 compiled from the sources on my Debian box. I came across some problems which required patches, such as a patch to the most recent FreeType-2.1.9 and another random patch to fix some type issues (like 'PRUint32' not existing).

I finally got to linking, and hit a brick wall. It kept coming up with multiply defined symbols during final linking:

../../dist/lib/components/libtypeaheadfind.a(nsTypeAheadFind.o): In function `nsTypeAheadFind::QueryInterface(nsID const&, void**)':
nsTypeAheadFind.o(.text+0x750): multiple definition of `nsTypeAheadFind::QueryInterface(nsID const&, void**)'
../../dist/lib/components/libtoolkitcomps.a(nsTypeAheadFind.o)(.text+0x6d0): first defined here
/usr/bin/ld: Warning: size of symbol `nsTypeAheadFind::QueryInterface(nsID const&, void**)' changed from 205 to 730 in ../../dist/lib/components/
../../dist/lib/components/libtypeaheadfind.a(nsTypeAheadFind.o): In function `nsTypeAheadFind::AddRef()':
nsTypeAheadFind.o(.text+0x1d0): multiple definition of `nsTypeAheadFind::AddRef()'
../../dist/lib/components/libtoolkitcomps.a(nsTypeAheadFind.o)(.text+0x50): first defined here
../../dist/lib/components/libtypeaheadfind.a(nsTypeAheadFind.o): In function `nsTypeAheadFind::Release()':
nsTypeAheadFind.o(.text+0x1e0): multiple definition of `nsTypeAheadFind::Release()'
../../dist/lib/components/libtoolkitcomps.a(nsTypeAheadFind.o)(.text+0x60): first defined here
../../dist/lib/components/libtypeaheadfind.a(nsTypeAheadFind.o): In function `nsTypeAheadFind::~nsTypeAheadFind()':
nsTypeAheadFind.o(.text+0x3250): multiple definition of `nsTypeAheadFind::~nsTypeAheadFind()'
../../dist/lib/components/libtoolkitcomps.a(nsTypeAheadFind.o)(.text+0x3220): first defined here
/usr/bin/ld: Warning: size of symbol `nsTypeAheadFind::~nsTypeAheadFind()' changed from 369 to 564 in ../../dist/lib/components/libtypeaheadfind.
../../dist/lib/components/libtypeaheadfind.a(nsTypeAheadFind.o): In function `nsTypeAheadFind::~nsTypeAheadFind()':

the only way to fix it was to disable extensions, which leaves me with a crippled firefox.

Anyone seen this before? I saw a few references to it other places on the web, but no answers.

thanks,
-dave
 
Old 12-05-2005, 09:08 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
hmm, there is a newer version of firefox now.........v1.5
you might try it instead of v1.07
 
Old 12-05-2005, 09:17 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Why not use a prebuilt binary?
 
Old 12-06-2005, 01:27 AM   #4
auditek747
Member
 
Registered: Feb 2004
Location: Ohio, USA
Distribution: Arch Linux
Posts: 464

Rep: Reputation: 30
I don't know if this helps but,
I have never compiled Firefox on linux.
I always grab a tarball from mozilla's ftp,
extract it to /usr/local, then link /usr/local/firefox/firefox
to /usr/local/bin/firefox.
Firefox can then be started with the command
Code:
firefox
or added to whatever menu you use.
Plugins can be installed to /usr/local/firefox/plugins .
I'm not talking about a source tarball of course, they
offer prebuilts as well.
I've always done it this way since 0.8, and I'm running 1.5
now with no probs.
This is on Slackware 10.2
 
Old 12-19-2005, 02:24 AM   #5
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
no prebuilts!

I usually build everything that I can to make sure that I have bug free copies. In my experience, it's less of a headache to build something from source than it is to install the packages. That's assuming you've got all the libraries installed, that is. In this case the firefox installer wouldn't work on my debian machine, so I figured building it would be just as easy.

It turns out that I wasn't building the most recent version. It built cleanly eventually, but the extensions still don't work. I tried installing some extensions but it refuses to show up in the extensions list.
 
Old 12-19-2005, 02:43 AM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what options are you using? I've just successfully built 1.0.7 for my redhat 7.3 box, but I had to compile a static only build. Also, from the build instructions, if you don't specify extensions, the build process will pick the best extension option for you.

So if you're specifying the extensions in the configure stage, try to leave out that option and let the build system choose the 'proper' extension set.

Like you, I myself, most of the time would rather build from source, but, I have to honestly say, imo, building mozilla products is one of the most unenjoyable things to do.
 
  


Reply



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
Compiling Firefox with i686 optimizations? Jacksteruk309 Linux - Newbie 3 10-19-2005 12:22 PM
Compiling Firefox for Slackware. xushi Slackware 29 07-19-2005 02:56 PM
X Headaches roc Slackware - Installation 3 07-14-2005 10:53 AM
QT headaches Pi Man Linux - Software 2 10-16-2004 11:20 PM
No international fonts when compiling firefox from source with xft elconde Linux - Software 1 06-20-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration