LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2015, 08:13 AM   #1
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Rep: Reputation: 77
Xulrunner fails to compile (solved)


I;m trying to build xulrunner from slackbuilds and after around 1/2 hour of building it failed with

collect2: error: ld returned 1 exit status
make[3]: *** [libxul.so] Error 1
make[3]: Leaving directory `/tmp/SBo/mozilla-release/toolkit/library'
make[2]: *** [libs_tier_platform] Error 2
make[2]: Leaving directory `/tmp/SBo/mozilla-release'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/tmp/SBo/mozilla-release'
make: *** [default] Error 2

On the slackbuild page it says

Note:
If you have to install jdk you need to run ". /etc/profile" before
trying to compile xurlrunner.

But I'm not sure what that means or how to do it.

Last edited by itsgregman; 02-26-2015 at 10:08 AM. Reason: solved
 
Old 02-26-2015, 09:25 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
hi itsgregman,

if you're feeling brave can you please check if this works for you?

http://ponce.cc/slackware/testing/xulrunner/14.1/

I tried to updated it in pair with stable's version of firefox (adapting the SlackBuild like the firefox's one): I used it here to build gnash and all went fine.

I also prepared packages to avoid other people the hassle of building it.

Quote:
Originally Posted by itsgregman View Post
Note:
If you have to install jdk you need to run ". /etc/profile" before
trying to compile xurlrunner.

But I'm not sure what that means or how to do it.
that means that you need some environment variables defined (namely JAVA_HOME) and java in yout PATH so, if you have just installed jdk, you have to issue in the terminal root shell that you will use to build xulrunner the command
Code:
. /etc/profile
(note the leading dot and the space after) that would take care of it.

Last edited by ponce; 02-26-2015 at 09:59 AM.
 
Old 02-26-2015, 09:49 AM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Jdk is the Java Development Kit you get from java.com and install with the SlackBuild script from the /extras on the installation disk.

Honestly, xulrunner isn't really needed as SeaMonkey and FireFox both include it, but it should still build.
 
Old 02-26-2015, 10:07 AM   #4
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Original Poster
Rep: Reputation: 77
Thank you ponce. I used your xulrunner and think I found my problem. After installing your package I installed vuze (which is why I needed xulrunner) and it still wouldn't start because java was missing. Looking at the slack docs i found I had to log out then back in for Java to be available. this is probably why xulrunner wouldnt build for me in the first place. After a restart vuse started normally so all is good now. I think they probably should include the information on the jdk slackbuild page that it requires a restart to be detected, that would possibly avoid any issues for others needing jdk as a dependency for something else.


edit

I just saw your edit, thanks for the additional info.

Last edited by itsgregman; 02-26-2015 at 12:06 PM.
 
  


Reply



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
[SOLVED] What happened to xulrunner Keith Hedger Linux From Scratch 3 12-15-2014 10:14 AM
[SOLVED] slackware 14.1 x64 xulrunner wont compile dumdadum Slackware 15 09-06-2014 09:13 PM
GCC fails to compile - Chapter 6.14 - C preprocessor "/lib/cpp" fails sanity check jaydoc Linux From Scratch 1 01-28-2009 05:17 PM
iASL fails to compile Simon Bridge Programming 1 11-20-2005 12:27 AM
xorg 6.8.0 fails to compile stumbles Linux - Software 0 09-26-2004 07:26 PM

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

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