LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-30-2015, 12:45 AM   #1
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
Error compiling webkitgtk with gtk2


I have LFS 7.8-Systemd, and I'm trying to build webkitgtk from BLFS, and I can't seem to make it work. I'm following http://www.linuxfromscratch.org/blfs...ebkitgtk2.html and building it against gtk2. I get the following error in make stage:

Code:
Creating hashtable for ../Source/JavaScriptCore/runtime/RegExpPrototype.cpp
  GEN      DerivedSources/JavaScriptCore/StringConstructor.lut.h
Creating hashtable for ../Source/JavaScriptCore/runtime/StringConstructor.cpp
  GEN      DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
/usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': /usr/lib/ruby/2.2.0/x86_64-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init - /usr/lib/ruby/2.2.0/x86_64-linux/digest/sha1.so (LoadError)
	from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from ../Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb:30:in `<main>'
GNUmakefile:82004: recipe for target 'DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h' failed
make: *** [DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h] Error 1
Googling didn't really turn up anything. The only suggestion seems to be install openssl (which I have the correct version).

Could someone point me in the right direction on how to debug this? I have all the dependencies built and installed without any obvious errors.

Last edited by kcirick; 11-30-2015 at 12:48 AM.
 
Old 12-01-2015, 06:34 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Looks like a problem with ruby, try reinstalling ruby, make sure you have installed ALL the required packages, webkit is one of those packages that require a lot of time and memory to build so make sure you have enough available either as real memory or swap space.
Failing that webkitgtk-2.4.8 builds OK, sometimes just going up or down a version can fix a lot of problems.
FYI dependency list for webkitgtk-2.4.8
Code:
keithhedger@LFSCerebro:~-> lfspkg -F webkitgtk-2.4.8
Found dependency pcre-8.36 
Found dependency libffi-3.2.1 
Found dependency expat-2.1.0 
Found dependency pkg-config-0.28 
Found dependency Python-2.7.9 
Found dependency libxml2-2.9.2 
Found dependency UnZip-6.0 
Found dependency docbook-xml-4.5 
Found dependency docbook-xsl-1.78.1 
Found dependency Itstool-2.0.2 
Found dependency libxslt-1.1.28 
Found dependency xmlto-0.0.26 
Found dependency gtk-doc-1.21 
Found dependency GLib-2.42.1 
Found dependency gobject-introspection-1.42.0 
Found dependency GStreamer1.0-1.4.5 
Found dependency gst-plugins-base1.0-1.4.5 
Found dependency ATK-2.14.0 
Found dependency cython-0.19.1 
Found dependency yasm-1.3.0 
Found dependency libjpeg-turbo-1.4.0 
Found dependency libpng-1.6.16 
Found dependency LibTIFF-4.0.3 
Found dependency gdk-pixbuf-2.31.2 
Found dependency Pixman-0.32.6 
Found dependency Cairo-1.14.0 
Found dependency icu4c-54.1 
Found dependency Which-2.20 
Found dependency FreeType-2.5.5 
Found dependency Harfbuzz-0.9.38 
Found dependency Fontconfig-2.11.1 
Found dependency util-macros-1.19.0 
Found dependency proto-7.7 
Found dependency libXau-1.0.8 
Found dependency xcb-proto-1.11 
Found dependency libxcb-1.11 
Found dependency xorg-libs-7.7 
Found dependency Pango-1.36.8 
Found dependency hicolor-icon-theme-0.14 
Found dependency gtk-2.24.26 
Found dependency SQLite-3.8.8.2 
Found dependency libsoup-2.48.1 
Found dependency libdrm-2.4.59 
Found dependency elfutils-0.161 
Found dependency libvdpau-0.8 
Found dependency LLVM-3.5.1 
Found dependency MesaLib-10.4.5 
Found dependency Ruby-2.2.0 
Found dependency libwebp-0.4.2 
Found dependency libsecret-0.18 
Found dependency webkitgtk-2.4.8
 
Old 12-02-2015, 10:27 AM   #3
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Original Poster
Rep: Reputation: 55
It is indeed a problem with ruby. I tried recompiling several times to no avail.

Then I read somewhere on Google land to build ruby without openssl, then install openssl afterwards. It seems to have done the trick. Webkitgtk now compiles fine. I think webkitgtk needs ruby only during the build (?), so I shouldn't run into any problems running any webkit browsers.

So, to summarize: Build ruby WITHOUT openssl, then build openssl afterwards before building webkitgtk.

I'll mark this one solved. Now I can move onto building chromium (another beast. Thankfully both Slackware and Arch has build script that I can use as a model)
 
Old 12-02-2015, 10:37 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Nice to know for the future.
I built chromium based on the Slackware scripts and it builds just fine but as you say a bit of a beast, the source download is HUGE!!!
 
  


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
Compiling webkitgtk on raspberry pi Bart_ Slackware - ARM 14 03-27-2021 11:37 AM
Error while installing webkitgtk from SBO l0rddarkf0rce Slackware 3 06-09-2015 02:42 PM
[SOLVED] webkitgtk compiling problem in 14.1 stormbr Slackware 9 11-12-2013 01:54 AM
compilation error webkitgtk trillobyte Slackware 2 03-11-2012 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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