trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Odd tdelibs build error

From: Darrell Anderson <humanreadable@...>
Date: Mon, 16 Jan 2012 11:01:18 -0800 (PST)
I just posted a tdelibs FTBFS error a few messages back. I decided to run the build again with NUMJOBS=-j1. This time I did not receive the same tdelfeditor errors. This time I received the following errors:

=================================================
In file included from /dev/shm/tdelibs/dcop/dcopclient.cpp:2285:
/dev/shm/tdelibs.build/dcop/dcopclient.moc:121: error: ISO C++ forbids declaration of 'QCString' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:121: error: expected ',' or '...' before '&' token
/dev/shm/tdelibs.build/dcop/dcopclient.moc:121: error: prototype for 'void DCOPClient::applicationRegistered(int)' does not match any in class 'DCOPClient'
/dev/shm/tdelibs/dcop/dcopclient.h:745: error: candidate is: void DCOPClient::applicationRegistered(const TQCString&)
/dev/shm/tdelibs.build/dcop/dcopclient.moc:134: error: ISO C++ forbids declaration of 'QCString' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:134: error: expected ',' or '...' before '&' token
/dev/shm/tdelibs.build/dcop/dcopclient.moc:134: error: prototype for 'void DCOPClient::applicationRemoved(int)' does not match any in class 'DCOPClient'
/dev/shm/tdelibs/dcop/dcopclient.h:754: error: candidate is: void DCOPClient::applicationRemoved(const TQCString&)
/dev/shm/tdelibs.build/dcop/dcopclient.moc:166: error: ISO C++ forbids declaration of 'QCString' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:166: error: expected ',' or '...' before '&' token
/dev/shm/tdelibs.build/dcop/dcopclient.moc:166: error: prototype for 'void DCOPClient::callBack(int, int)' does not match any in class 'DCOPClient'
/dev/shm/tdelibs/dcop/dcopclient.h:794: error: candidate is: void DCOPClient::callBack(int, const TQCString&, const TQByteArray&)
/dev/shm/tdelibs.build/dcop/dcopclient.moc: In member function 'virtual bool DCOPClient::qt_emit(int, TQUObject*)':
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: expected primary-expression before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: expected ')' before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: expected primary-expression before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: expected ')' before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: expected primary-expression before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: expected ')' before 'const'
make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
make[2]: Leaving directory `/dev/shm/tdelibs.build'
make[1]: *** [dcop/CMakeFiles/DCOP-shared.dir/all] Error 2
make[1]: Leaving directory `/dev/shm/tdelibs.build'
make: *** [all] Error 2
=================================================

tdelibs/dcop/dcopclient.cpp:2285:

#include <dcopclient.moc>

I don't know anything yet about moc files. Would somebody provide a short course while I'm looking through the web to learn more?

I'm thinking the errors mean tqt3 and tqtinterface might not be building or installing correctly because there should not be any references to QString. They should be TQString.

Both tqt3 and tqtinterface built without errors.

Darrell