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.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-05-2007, 10:14 AM
|
#1
|
|
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:
|
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
|
|
|
|
01-05-2007, 10:27 AM
|
#2
|
|
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.4 OpenSuSE 12.2
Posts: 9,896
|
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, 10:43 AM
|
#3
|
|
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:
|
My SELinux Setting is 'Disabled'.
The 'Modify SELinux Policy' Menu is deactivated.
Should I enable SELinux?
|
|
|
|
01-05-2007, 11:21 AM
|
#4
|
|
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.4 OpenSuSE 12.2
Posts: 9,896
|
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.
|
|
|
|
01-05-2007, 11:39 AM
|
#5
|
|
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:
|
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, 12:04 PM
|
#6
|
|
Member
Registered: May 2005
Posts: 255
Rep:
|
I was about to post the same problem trying to run garnome to build firefox, im in debian so any suggestions?
|
|
|
|
01-05-2007, 01:39 PM
|
#7
|
|
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:
|
I just upgraded my system from repository, but I still get the same error...
A bug in Firefox?
|
|
|
|
01-05-2007, 02:14 PM
|
#8
|
|
Member
Registered: May 2005
Posts: 255
Rep:
|
I dont think it is firefox because I am using a different version of firefox and have the same problem
|
|
|
|
02-10-2007, 06:28 PM
|
#9
|
|
LQ Newbie
Registered: Feb 2007
Distribution: Debian x86_64
Posts: 4
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
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 03:16 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
|
|