LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 01-05-2007, 10:14 AM   #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
Fedora5: Firefox 2.0.0.1 compilation failure


Hi.

I tried to compile a new version of Firefox from source under Fedora Core 5.

The last time I did it with 2.0RC3 "Bon Echo" things went niceley.

When I was compiling this time, I did exactly the same steps as I did back then, made a .mozconfig with

Code:
. $HOME/mozilla/browser/config/mozconfig
mk_add_options MOZ_CO_PROJECT=browser
in it, and placed it into the directory I was compiling in ($HOME/mozilla).

I invoked the compiling process with.

$ make -f client.mk build

Like it is told on the mozilla.org page (http://developer.mozilla.org/en/docs/Build_and_Install).

It starts compiling, but after about 5 min, the process breaks, with the following error:

Code:
rm -f libxpcom_core.so
c++  -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  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-z,defs -Wl,-h,libxpcom_core.so -o libxpcom_core.so  pldhash.o nsCOMPtr.o nsComponentManagerUtils.o nsDebug.o nsID.o nsIInterfaceRequestorUtils.o nsINIParser.o nsMemory.o nsTraceRefcnt.o nsWeakReference.o nsGREGlue.o nsVersionComparator.o nsTHashtable.o nsTArray.o nsGenericFactory.o nsXPComInit.o nsStringAPI.o       -Wl,--whole-archive ../../dist/lib/libxpcomds_s.a ../../dist/lib/libxpcomio_s.a ../../dist/lib/libxpcomcomponents_s.a ../../dist/lib/libxpcomthreads_s.a ../../dist/lib/libxpcomproxy_s.a ../../dist/lib/libxpcombase_s.a ../../dist/lib/libxptcall.a ../../dist/lib/libxptinfo.a ../../dist/lib/libxpt.a ../../dist/lib/libxptcmd.a ../../dist/lib/libstring_s.a  -Wl,--no-whole-archive  -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm
/usr/bin/ld: nsCOMPtr.o: relocation R_X86_64_PC32 against `nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[4]: *** [libxpcom_core.so] Error 1
gmake[4]: Leaving directory `/home/bereziak/mozilla/xpcom/build'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/bereziak/mozilla/xpcom'
gmake[2]: *** [tier_2] Error 2
gmake[2]: Leaving directory `/home/bereziak/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/bereziak/mozilla'
make: *** [build] Error 2
What am I doing wrong?

Please help

--polemon
 
Old 01-05-2007, 10:27 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,375

Rep: Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911
It should be an issue of the SElinux policy. Check the SElinux settings: under System --> Administration --> Security Level and Firewall. Go into the SElinux tab, and click on Modify SElinux Policy. Under Compatibility look for the voice "Allow the use of shared libraries with Text Relocation". If it is unchecked, check it and try to recompile.
If it works, you may restore the previous setting when you have done.
 
Old 01-05-2007, 10:43 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
My SELinux Setting is 'Disabled'.

The 'Modify SELinux Policy' Menu is deactivated.

Should I enable SELinux?
 
Old 01-05-2007, 11:21 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,375

Rep: Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911
No. In this case my guess was wrong! Sorry, but I have no other ideas right now.

PS - Probably this will help: http://www.gentoo.org/proj/en/base/a...?part=1&chap=3

Last edited by colucix; 01-05-2007 at 11:28 AM.
 
Old 01-05-2007, 11:39 AM   #5
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 compiler suggests recompiling with -fPIC, but libxpcom_core.so is being compiled with the -fPIC option (see the errormsg above).

Any Ideas?
 
Old 01-05-2007, 12:04 PM   #6
android6011
Member
 
Registered: May 2005
Posts: 255

Rep: Reputation: 30
I was about to post the same problem trying to run garnome to build firefox, im in debian so any suggestions?
 
Old 01-05-2007, 01:39 PM   #7
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
I just upgraded my system from repository, but I still get the same error...

A bug in Firefox?
 
Old 01-05-2007, 02:14 PM   #8
android6011
Member
 
Registered: May 2005
Posts: 255

Rep: Reputation: 30
I dont think it is firefox because I am using a different version of firefox and have the same problem
 
Old 02-10-2007, 06:28 PM   #9
kindofblue
LQ Newbie
 
Registered: Feb 2007
Distribution: Debian x86_64
Posts: 4

Rep: Reputation: 0
Hello! I had the same problem this morning. Hopefully you're not still dealing with it, but just in case this website provides a workaround. It's not the same error message you and I were getting, but it seems to do the trick anyway-- After a distclean, I'm back in business! (though I still can't say for sure at this point whether or not it will finish )

Last edited by kindofblue; 02-10-2007 at 06:29 PM.
 
  


Reply

Tags
compile, fedora 5, firefox


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x server failure after kernel compilation lazyboy001 Linux - Kernel 2 11-10-2006 05:18 AM
Kiozen Compilation Failure DaBlade Linux - Software 4 12-18-2005 05:49 AM
mplayerplugin: compilation failure kaon Slackware 18 09-02-2005 05:50 AM
mono compilation failure tamtam Programming 1 04-16-2005 07:33 AM
winex compilation failure garfield81 Linux - Software 9 08-27-2004 02:59 PM


All times are GMT -5. The time now is 12:43 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