LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-27-2006, 12:29 PM   #1
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 18, Ubuntu 11.10, Ubuntu Server 11.10, DamnSmallLinux 3.4.4, FreeDOS 1.1, OpenBSD 5.0
Posts: 194

Rep: Reputation: 31
error on Firefox-2.0 compile


Hi, I'm using Ubuntu 6.06 on my Laptop.

I still have Firefox 1.5.0.7 installed and I want to upgrade to Firefox 2.0.
Since I couldn't find it in the repositories, I decided to install it manually.

The Binary version crashes at start, with the well known "Segmentation fault" Error.

So I decidet to compile it myself.

I dowloaded the sources, and made a .mozconfig file with the following lines:

Code:
. $HOME/mozilla/browser/config/mozconfig
mk_add_options MOZ_CO_PROJECT=browser
this file is where I unpacked my Firefox sources to (the mozilla/ directory).

Now when I try to build the browser with the following command:

$ make -f client.mk build

The configuration seems to go well in the first place, but eventually I get the following error:

Code:
collect2: ld returned 1 exit status
make[4]: *** [libxpcom_core.so] Error 1
make[4]: Leaving directory `/home/bereziak/mozilla/xpcom/build'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/home/bereziak/mozilla/xpcom'
make[2]: *** [tier_2] Error 2
make[2]: Leaving directory `/home/bereziak/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/bereziak/mozilla'
make: *** [build] Error 2
and above that, many thousand lines of errormessages (over 2000).

anyone else had a similar error?

please help!

--polemon

Last edited by polemon; 11-27-2006 at 12:44 PM.
 
Old 11-27-2006, 12:48 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I'm not an Ubuntu user, but according to Ubuntu's online package directory, Firefox-2.0 is available in the Edgy repos. Don't know if you can use Edgy repos in 6.06. If so, this might be an option.

Alot of the Firefox plug-ins and add-ons for 1.5 won't work with 2.0 yet. I know because I'm using 2.0 on my CLFS system. Just so you know.

In any event, you need to post the actual error message(s). What you posted is purely informational and doesn't really tell anyone what the error was that caused the build to fail. Maybe you should try again and pipe the output to a file that you can scan and pull out the error that started the whole mess.
Code:
make -f client.mk build 2>&1 | tee ../firefox.log
If you're building on a 64-bit system, you'll need to add ac_cv_visibility_pragma=no to the .mozconfig or Firefox won't build. That's also a pretty sparse .mozconfig file.
 
Old 11-28-2006, 09:26 AM   #3
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 18, Ubuntu 11.10, Ubuntu Server 11.10, DamnSmallLinux 3.4.4, FreeDOS 1.1, OpenBSD 5.0
Posts: 194

Original Poster
Rep: Reputation: 31
The problem is, i don't think that posting the whole error log is a good idea, since it's upt to an MB of text.
It's not a 64Bit System, I tried building this on.

Interestingly though, Compilation on my 64Bit system went off without a hinch.
I did nearly exactly what i did on my 64bit system, but for some reason it's not working...
 
Old 11-28-2006, 10:10 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,916
Blog Entries: 29

Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
Why bother to compile it? Either install from the Edgy repos or just unpack the Mozilla Firefox tarball, either one work quite well.
 
Old 11-28-2006, 11:25 AM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
As I stated in my previous post, Ubuntu Edgy has Firefox-2.0 in it's repo. craigevil confirms my suspicion that Edgy repos can be used with 6.06. You should use that if you can.

If you want to build Firefox from source, you're going to have to provide the actual error. That's why I recommended dumping the 'make' output to a file that you can browse at your convenience for the actual error at the beginning of the chain. What you posted in your original post contains no useful troubleshooting information.

@craigevil: Cool location! Michigan, I presume?
 
  


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
Firefox 1.5.0.7 compile fails; missing nsICookiePromptService.h weibullguy Linux - Software 0 10-27-2006 02:55 PM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
How to compile firefox standalone? jon_k Linux - Software 1 12-22-2004 03:17 AM
Firefox, compile error Scarebyte Linux - Software 4 11-04-2004 03:55 PM
compile error: #error unknown processor family kmack2001 Linux - Newbie 0 02-14-2004 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:47 AM.

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