LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Headaches compiling Firefox 1.0.7 (https://www.linuxquestions.org/questions/linux-software-2/headaches-compiling-firefox-1-0-7-a-389516/)

dombrowsky 12-05-2005 01:09 PM

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

320mb 12-05-2005 09:08 PM

hmm, there is a newer version of firefox now.........v1.5
you might try it instead of v1.07

reddazz 12-05-2005 09:17 PM

Why not use a prebuilt binary?

auditek747 12-06-2005 01:27 AM

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

dombrowsky 12-19-2005 02:24 AM

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.

megaspaz 12-19-2005 02:43 AM

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.


All times are GMT -5. The time now is 02:33 PM.