LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-15-2012, 08:56 PM   #1
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 73
Unable to build webkitgtk


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

Code:
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 08:59 PM.
 
Old 03-16-2012, 09:03 AM   #2
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Pittsburgh, PA
Distribution: Slackware
Posts: 226

Rep: Reputation: 54
From here:
http://lists.digital-forensic.org/pi...-September.txt

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, 05:34 PM   #3
trillobyte
Member
 
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, 10:47 PM   #4
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

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


Reply


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 05: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 01:18 PM
[SOLVED] Wrong Chinese font in webkitgtk stozi Linux - Software 0 05-05-2010 01:06 AM
LXer: WebKitGTK+ hackfest improves HTML renderer for GNOME apps LXer Syndicated Linux News 0 01-07-2010 02: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 09:26 AM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration