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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
01-05-2007, 11:14 AM
#1
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
01-05-2007, 11:27 AM
#2
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.
01-05-2007, 11:43 AM
#3
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?
01-05-2007, 12:21 PM
#4
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 ..
01-05-2007, 12:39 PM
#5
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?
01-05-2007, 01:04 PM
#6
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?
01-05-2007, 02:39 PM
#7
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?
01-05-2007, 03:14 PM
#8
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
02-10-2007, 07:28 PM
#9
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 ..
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 05:12 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News
LQ Podcast
LQ Radio