LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 01-05-2007, 11:14 AM   #1
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 11, Ubuntu 9.10, Ubuntu Server 9.10, DamnSmallLinux 3.4.4, FreeDOS 1.0, OpenBSD 4.5
Posts: 191
Thanked: 0
Fedora5: Firefox 2.0.0.1 compilation failure


[Log in to get rid of this advertisement]
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
polemon is offline  
Tag This Post , , ,
Reply With Quote
Old 01-05-2007, 11:27 AM   #2
colucix
Guru
 
Registered: Sep 2003
Location: Bologna, Italia
Distribution: OpenSUSE 11.1 CentOS 5.4 VectorLinux 6.0
Posts: 5,129
Thanked: 464
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.
colucix is offline     Reply With Quote
Old 01-05-2007, 11:43 AM   #3
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 11, Ubuntu 9.10, Ubuntu Server 9.10, DamnSmallLinux 3.4.4, FreeDOS 1.0, OpenBSD 4.5
Posts: 191
Thanked: 0

Original Poster
My SELinux Setting is 'Disabled'.

The 'Modify SELinux Policy' Menu is deactivated.

Should I enable SELinux?
polemon is offline     Reply With Quote
Old 01-05-2007, 12:21 PM   #4
colucix
Guru
 
Registered: Sep 2003
Location: Bologna, Italia
Distribution: OpenSUSE 11.1 CentOS 5.4 VectorLinux 6.0
Posts: 5,129
Thanked: 464
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 12:28 PM..
colucix is offline     Reply With Quote
Old 01-05-2007, 12:39 PM   #5
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 11, Ubuntu 9.10, Ubuntu Server 9.10, DamnSmallLinux 3.4.4, FreeDOS 1.0, OpenBSD 4.5
Posts: 191
Thanked: 0

Original Poster
The compiler suggests recompiling with -fPIC, but libxpcom_core.so is being compiled with the -fPIC option (see the errormsg above).

Any Ideas?
polemon is offline     Reply With Quote
Old 01-05-2007, 01:04 PM   #6
android6011
Member
 
Registered: May 2005
Posts: 255
Thanked: 0
I was about to post the same problem trying to run garnome to build firefox, im in debian so any suggestions?
android6011 is offline     Reply With Quote
Old 01-05-2007, 02:39 PM   #7
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 11, Ubuntu 9.10, Ubuntu Server 9.10, DamnSmallLinux 3.4.4, FreeDOS 1.0, OpenBSD 4.5
Posts: 191
Thanked: 0

Original Poster
I just upgraded my system from repository, but I still get the same error...

A bug in Firefox?
polemon is offline     Reply With Quote
Old 01-05-2007, 03:14 PM   #8
android6011
Member
 
Registered: May 2005
Posts: 255
Thanked: 0
I dont think it is firefox because I am using a different version of firefox and have the same problem
android6011 is offline     Reply With Quote
Old 02-10-2007, 07:28 PM   #9
kindofblue
LQ Newbie
 
Registered: Feb 2007
Distribution: Debian x86_64
Posts: 4
Thanked: 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 07:29 PM..
kindofblue is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
x server failure after kernel compilation lazyboy001 Linux - Kernel 2 11-10-2006 06:18 AM
Kiozen Compilation Failure DaBlade Linux - Software 4 12-18-2005 06:49 AM
mplayerplugin: compilation failure kaon Slackware 18 09-02-2005 06:50 AM
mono compilation failure tamtam Programming 1 04-16-2005 08:33 AM
winex compilation failure garfield81 Linux - Software 9 08-27-2004 03:59 PM


All times are GMT -5. The time now is 05:12 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration