Hi All, I wanted to compile KDE4 for Solaris using SunStudio 11 I have used the default Sun tools
Compiler = /usr/bin/cc make = /usr/ccs/bin/make I was trying to compile qt-copy with Sun Studio on Solaris Express 11 First i ran ran ./configure with the following options: ./configure -qt-gif -no-exceptions -debug -no-separate-debug-info -fast \ -system-libpng -system-libjpeg -system-zlib -qdbus -nomake examples \ -nomake demos -prefix qt4.3-beta (as mentioned in KDE techbase article) configure runs flawlessly, then i get the following errors: ==================BEGIN LOG OUTPUT=========================== bash-3.00$ make cd /export/home/manish/qt-copy/src/tools/moc/ && make -f Makefile CC -c -O2 -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -I../../../mkspecs/solaris-cc -I. -I../../corelib/arch/generic -I/include -I. -I/include/QtCore -I. -I. -I/usr/sfw/include -I../../corelib/arch/generic -I/include -I. -I/include/QtCore -I. -I. -I/usr/sfw/include -o ./moc.o moc.cpp "parser.h", line 27: Error: Could not open include file<QStack>. "symbols.h", line 28: Error: Could not open include file<QString>. "symbols.h", line 29: Error: Could not open include file<QHash>. "symbols.h", line 30: Error: Could not open include file<QVector>. "symbols.h", line 31: Error: Could not open include file<QDebug>. "symbols.h", line 38: Error: ")" expected instead of "&". "symbols.h", line 41: Error: Type name expected instead of "QByteArray". "symbols.h", line 40: Error: a is not defined. "symbols.h", line 39: Error: Cannot use const char* to initialize int. "symbols.h", line 39: Error: int is not a structure type. "symbols.h", line 53: Error: uint is not defined. "symbols.h", line 55: Error: uchar must be initialized. "symbols.h", line 55: Error: "," expected instead of "*". "symbols.h", line 55: Error: Use ";" to terminate declarations. "symbols.h", line 55: Error: Multiple declaration for uchar. "symbols.h", line 55: Error: uchar must be initialized. "symbols.h", line 55: Error: "," expected instead of "*". "symbols.h", line 57: Error: uint is not defined. "symbols.h", line 58: Error: uint is not defined. "symbols.h", line 61: Error: p is not defined. "symbols.h", line 105: Error: ")" expected instead of "&". "symbols.h", line 115: Error: Type name expected instead of "QByteArray". "symbols.h", line 108: Error: lexem is not defined. "symbols.h", line 114: Error: Could not find a match for SubArray::SubArray(const int, const int, const int) needed in Symbol::operator SubArray() const. "symbols.h", line 120: Error: Q_MOVABLE_TYPE is not defined. Compilation aborted, too many Error messages. *** Error code 1 make: Fatal error: Command failed for target `moc.o' Current working directory /export/home/manish/qt-copy/src/tools/moc *** Error code 1 make: Fatal error: Command failed for target `sub-moc-make_default-ordered' ===================END LOG OUTPUT=========================== Then after cleaning up the dir, i run configure as is, without any switches. While doing a make, i get: ================BEGIN LOG OUTPUT============================== cd /export/home/manish/qt-copy/src/tools/moc/ &&dmake -f Makefile /export/home/manish/qt-copy/bin/qmake -spec ../../../mkspecs/solaris-cc -unix -o Makefile moc.pro cd /export/home/manish/qt-copy/src/tools/rcc/ &&dmake -f Makefile /export/home/manish/qt-copy/bin/qmake -spec ../../../mkspecs/solaris-cc -unix -o Makefile rcc.pro cd /export/home/manish/qt-copy/src/tools/uic/ &&dmake -f Makefile /export/home/manish/qt-copy/bin/qmake -spec ../../../mkspecs/solaris-cc -unix -o Makefile uic.pro cd /export/home/manish/qt-copy/src/corelib/ &&dmake -f Makefile /export/home/manish/qt-copy/bin/qmake -spec ../../mkspecs/solaris-cc -unix -o Makefile corelib.pro WARNING: DESTDIR: Cannot access directory '/usr/local/Trolltech/Qt-4.3.0beta/lib' CC -c -D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -mt -KPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/solaris-cc -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qglobal.o global/qglobal.cpp "../../include/QtCore/../../src/corelib/thread/qatomic.h", line 111: Warning: value hides QBasicAtomic::value. "../../include/QtCore/../../src/corelib/thread/qatomic.h", line 111: Error: The function "q_atomic_fetch_and_add_int" must have a prototype. "../../include/QtCore/../../src/corelib/thread/qatomic.h", line 114: Warning: value hides QBasicAtomic::value. "../../include/QtCore/../../src/corelib/thread/qatomic.h", line 114: Error: The function "q_atomic_fetch_and_add_acquire_int" must have a prototype. "../../include/QtCore/../../src/corelib/thread/qatomic.h", line 117: Warning: value hides QBasicAtomic::value. "../../include/QtCore/../../src/corelib/thread/qatomic.h", line 117: Error: The function "q_atomic_fetch_and_add_release_int" must have a prototype. 3 Error(s) and 3 Warning(s) detected. *** Error code 3 dmake: Fatal error: Command failed for target `.obj/release-shared/qglobal.o' Current working directory /export/home/manish/qt-copy/src/corelib *** Error code 1 dmake: Fatal error: Command failed for target `sub-corelib-make_default-ordered' Build Failed Total time: 8 seconds ====================END LOG OUTPUT================================== Since qt-copy must be built before I can get onto KDE4, can someone please tell me how to compile qt-copy? Thanks in advance!! Manish Chakravarty
begin:vcard fn:Manish Chakravarty n:Chakravarty;Manish org:SpikeSource Inc;Solution Engineering adr:;;;Bangalore;;;India email;internet:[EMAIL PROTECTED] title:Associate Software Developer tel;work:+91-8041810800 tel;fax:+91-8041810800 tel;pager:+91-9901030104 tel;home:+91-9901030104 tel;cell:+91-9901030104 x-mozilla-html:TRUE url:http://manish-chaks.livejournal.com version:2.1 end:vcard
signature.asc
Description: OpenPGP digital signature
_______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org