LinuxQuestions.org
Review your favorite Linux distribution.
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 11-25-2010, 10:17 PM   #1
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 61

Rep: Reputation: 23
Unhappy qt4.Slackbuild problems compiling qt4


I have installed Slackware 13.1(64bit) on my laptop. I did not however install qt4, I installed qt3 and the KDE3.5.10 Desktop environment from Slam64 12.2. I've been trying to compile the qt4.Slackbuild library form Slackbuild (12.2), as it is suppose to be able to coexist with qt3. It seem to error out while compiling. :

Code:
make[1]: Entering directory `/tmp/SBo/qt-x11-opensource-src-4.7.1/src/script'
/tmp/SBo/qt-x11-opensource-src-4.7.1/bin/qmake -spec ../../mkspecs/linux-g++-64 -o Makefile script.pro
make[1]: Leaving directory `/tmp/SBo/qt-x11-opensource-src-4.7.1/src/script'
make[1]: Entering directory `/tmp/SBo/qt-x11-opensource-src-4.7.1/src/script'
compiling ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp
compiling ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_exec.cpp
compiling ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_tables.cpp
compiling ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_ucp_searchfuncs.cpp
compiling ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_xclass.cpp
compiling ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp
In file included from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:28:
../3rdparty/javascriptcore/JavaScriptCore/API/JSBasePrivate.h:46: error: 'size_t' has not been declared
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:33,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Identifier.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSAPIValueWrapper.h:28,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstanceCache.h:43: error: 'GregorianDateTime' does not name a type
../3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstanceCache.h:45: error: 'GregorianDateTime' does not name a type
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h:27,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/NumericStrings.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:38,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Identifier.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSAPIValueWrapper.h:28,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:301: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:301: error: expected ';' before 'static'
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:302: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:302: error: expected ';' before 'static'
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h:27,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/NumericStrings.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:38,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Identifier.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSAPIValueWrapper.h:28,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h: In static member function 'static QTJSC::UStringImpl& QTJSC::UStringImpl::null()':
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:183: error: 's_null' was not declared in this scope
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h: In static member function 'static QTJSC::UStringImpl& QTJSC::UStringImpl::empty()':
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:184: error: 's_empty' was not declared in this scope
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Identifier.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSAPIValueWrapper.h:28,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:29,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h: At global scope:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:136: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:136: error: expected ';' before 'void'
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:137: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:137: error: expected ';' before 'void'
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:138: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:138: error: expected ';' before 'void'
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:139: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:139: error: expected ';' before 'void'
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:25,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h: In function 'QTJSC::JSCell* QTJSC::getJSFunction(QTJSC::JSGlobalData&, QTJSC::JSValue)':
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:44: error: 'class QTJSC::JSGlobalData' has no member named 'jsFunctionVPtr'
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:25,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h: At global scope:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h:54: error: ISO C++ forbids declaration of 'JS_EXPORTDATA' with no type
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h:54: error: expected ';' before 'const'
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:25,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h: In member function 'virtual const QTJSC::ClassInfo* QTJSC::JSArray::classInfo() const':
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h:108: error: 'info' was not declared in this scope
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h: In function 'bool QTJSC::isJSArray(QTJSC::JSGlobalData*, QTJSC::JSValue)':
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h:139: error: 'class QTJSC::JSGlobalData' has no member named 'jsArrayVPtr'
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h: In function 'bool QTJSC::isJSArray(QTJSC::JSGlobalData*, QTJSC::JSCell*)':
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSArray.h:141: error: 'class QTJSC::JSGlobalData' has no member named 'jsArrayVPtr'
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/StringObject.h:25,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/StringPrototype.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30,
                 from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSString.h: At global scope:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSString.h:65: error: expected initializer before ':' token
../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:112: error: expected '}' at end of input
make[1]: *** [obj/release/JSBase.o] Error 1
make[1]: Leaving directory `/tmp/SBo/qt-x11-opensource-src-4.7.1/src/script'
make: *** [sub-script-make_default-ordered] Error 2
I thought I'd ask for help to see if anyone has an ideal on how to overcome these errors.
 
Old 11-26-2010, 03:40 PM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Actually you do not need to install any of this old packages. 13.0 and 13.1 comes with compatibility packages of KDE3 and QT3. You can install them as well. Check /extra on the DVD. QT4 is specially created to live with QT3 as it's not compatible with QT3. You can install both of them on the same system without stepping on anything.

However kde-compat packages at /extra is not much. It has just base system. YOu may tryto compile some more for your system with build scripts from old systems.

About your compile error: It feels like compiler fails or You have wrong version of something. Use qt3 package from extra and qt4 from /l. They will work without any problem.
 
Old 11-26-2010, 03:53 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
.... And it's not quite clear, what you are doing.
Quote:
Entering directory `/tmp/SBo/qt-x11-opensource-src-4.7.1
The default Slackware 13.1 - 64 = qt-4.6.2_2d3d3e5-x86_64-1

Slackware 12.2 has version 4.5.1
http://slackbuilds.org/repository/12.2/libraries/qt4/
> qt-x11-opensource-src-4.5.1.tar.bz2

.....
 
Old 11-26-2010, 04:31 PM   #4
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Did you see parallel builds (make -j)? Sometimes parallel builds cause really weird problems.
 
  


Reply

Tags
compiling, error, qt4, slackware


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
Compiling Qt4.6 application blackcore Programming 3 06-06-2010 03:47 PM
[SOLVED] Error when compiling app against Qt4 Doug Hutcheson Linux - Software 6 12-16-2009 11:59 PM
qt4.SlackBuild won't compile qt-4.5.3 on Slack-12.2 based distro silencestone Slackware 8 11-09-2009 06:57 AM
starting qt4 - compiling problem divukman Programming 1 07-14-2007 11:25 PM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM


All times are GMT -5. The time now is 05:38 AM.

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