Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-15-2012, 09:56 PM   #1
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 74
Unable to build webkitgtk

Every time I try to build webkitgtk, the compilation fails with the following error:

JavaScriptCore/wtf/ByteArray.cpp: In static member function ‘static WTF::PassRefPtr<WTF::ByteArray> WTF::ByteArray::create(size_t)’:
JavaScriptCore/wtf/ByteArray.cpp:34:54: error: expected type-specifier before ‘ptrdiff_t’
JavaScriptCore/wtf/ByteArray.cpp:34:54: error: expected ‘>’ before ‘ptrdiff_t’
JavaScriptCore/wtf/ByteArray.cpp:34:54: error: expected ‘(’ before ‘ptrdiff_t’
JavaScriptCore/wtf/ByteArray.cpp:34:54: error: ‘ptrdiff_t’ was not declared in this scope
JavaScriptCore/wtf/ByteArray.cpp:34:54: note: suggested alternative:
/usr/lib64/gcc/x86_64-slackware-linux/4.6.2/../../../../include/c++/4.6.2/x86_64-slackware-linux/bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
JavaScriptCore/wtf/ByteArray.cpp:34:88: error: expected ‘)’ before ‘]’ token
JavaScriptCore/wtf/ByteArray.cpp:34:89: error: expected ‘]’ before ‘;’ token
make[1]: *** [JavaScriptCore/wtf/libJavaScriptCore_la-ByteArray.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/SBo/webkit-1.3.4'
make: *** [all] Error 2
rm DerivedSources/WebCore/JSSVGFilterPrimitiveStandardAttributes.cpp DerivedSources/WebCore/JSSVGTests.cpp DerivedSources/WebCore/JSSVGURIReference.cpp DerivedSources/WebCore/JSSVGExternalResourcesRequired.cpp DerivedSources/WebCore/JSSVGTransformable.cpp DerivedSources/WebCore/JSSVGZoomAndPan.cpp DerivedSources/WebCore/JSSVGAnimatedPathData.cpp DerivedSources/WebCore/JSSVGFitToViewBox.cpp DerivedSources/WebCore/JSSVGViewSpec.cpp DerivedSources/WebCore/JSSVGLocatable.cpp DerivedSources/WebCore/JSSVGAnimatedPoints.cpp DerivedSources/WebCore/JSSVGStylable.cpp DerivedSources/WebCore/JSElementTimeControl.cpp DerivedSources/WebCore/JSSVGLangSpace.cpp
this is the third time I've tried to do this, and it takes about 2 hours before it reaches this error, so I'm not really able to try a bunch of little tweaks to try to fix it myself. Has anyone encountered compile errors similar to this, and if so, what have you done to fix it? Im running slackware -current x64 with multilib.

Last edited by trademark91; 03-15-2012 at 09:59 PM.
Old 03-16-2012, 10:03 AM   #2
Registered: Oct 2010
Location: Pittsburgh, PA
Distribution: Slackware
Posts: 270

Rep: Reputation: 87
From here:

it looks like, since you are using GCC 4.6

You will need to patch these.
Include to <stddef.h> must be replace by <cstdef>.

The post is for a different app, but the same error makes me think it is likely the same issue.
Old 03-16-2012, 06:34 PM   #3
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Rep: Reputation: 33
I was able to build webkitgtk-1.3.4 in stable. I'm using GCC4.5 so it looks like this may be the problem.

Best regards
Old 03-17-2012, 11:47 PM   #4
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Original Poster
Rep: Reputation: 74
Thanks. I installed alienbob's package, because I didnt want to deal with patching or downgrading gcc.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
compilation error webkitgtk trillobyte Slackware 2 03-11-2012 06:07 PM
Is there a WebKitGTK browser that will allow me to highlight text on a webpage? Advice Pro Linux - Software 1 02-11-2012 02:18 PM
[SOLVED] Wrong Chinese font in webkitgtk stozi Linux - Software 0 05-05-2010 02:06 AM
LXer: WebKitGTK+ hackfest improves HTML renderer for GNOME apps LXer Syndicated Linux News 0 01-07-2010 03:10 PM
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 10:26 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration