Screaming about QT Copy weirdness ;-)

Andras Mantia amantia at virtualartisans.com
Wed Oct 30 20:08:35 GMT 2002


Hi,
 
 Here an e-mail sent to the kde-devel list from one who has run into this 
problem. And he is not the only one, for some it seems to be impossible to 
compile kdelibs with a recent qt copy. Until now no solution was found / or 
posted. Even if it is not a kde error, I think the solution for this MUST go 
into a compilation FAQ and posted to the kde-devel list, as many will have 
such errors also in the future. I admit that I have no idea why do some get 
the error and others not. I'm one of the lucky guys who don't have 
problems...
 So I "scream" instead of others, just a Dirk requested. ;-)

Andras

----------  Forwarded Message  ----------

Subject: Someone else who can't compile...
Date: 2002. October 30., Wednesday 21:51
From: Simon MacMullen <simon at macmullen.fsnet.co.uk>
To: kde-devel at kde.org

I'm using gcc 2.95.4, automake 1.5, autoconf 2.53, debian 3.0.

qt-copy compiles fine (with  ./configure -system-zlib -qt-gif -system-libpng
-system-libjpeg   -plugin-imgfmt-mng -thread -no-stl -no-exceptions -debug
-fast -prefix /opt/qt3)

arts is also fine but then kdelibs bombs out with:

make[3]: Entering directory `/home/simon/source/kde/kdelibs/dcop'
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new
-DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT
-o libDCOP.la.closure libDCOP_la_closure.lo -R /opt/kde31/lib -R
/usr/X11R6/lib -version-info 5:0:1 -no-undefined -L/usr/X11R6/lib
-L/opt/kde31/lib  dcopstub.lo dcopref.lo dcopobject.lo dcopclient.lo
KDE-ICE/libkICE.la -lqt-mt  -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread
libtool: link: warning: `-version-info' is ignored for programs
.libs/dcopclient.o: In function `DCOPClient::staticMetaObject(void)':
.libs/dcopclient.o(.text+0x86cb): undefined reference to
`QMetaObject::new_metaobject(char const *, QMetaObject *, QMetaData const *,
int, QMetaData const *, int, QMetaProperty const *, int, QMetaEnum const *,
int, bool (*)(QObject *, int, int, QVariant *), QClassInfo const *, int)'
.libs/dcopclient.o: In function `DCOPClient::applicationRegistered(QCString
const &)':
.libs/dcopclient.o(.text+0x87be): undefined reference to
`static_QUType_varptr'
.libs/dcopclient.o(.text+0x87c3): undefined reference to
`QUType_varptr::set(QUObject *, void const *)'
.libs/dcopclient.o: In function `DCOPClient::applicationRemoved(QCString
 const &)':
.libs/dcopclient.o(.text+0x886c): undefined reference to
`static_QUType_varptr'
.libs/dcopclient.o(.text+0x8871): undefined reference to
`QUType_varptr::set(QUObject *, void const *)'
.libs/dcopclient.o: In function `DCOPClient::qt_static_property(QObject *,
int, int, QVariant *)':
.libs/dcopclient.o(.text+0x8ac9): undefined reference to
`QMetaObject::qt_static_property(QObject *, int, int, QVariant *)'
.libs/dcopclient.o: In function `__static_initialization_and_destruction_0':
.libs/dcopclient.o(.text+0x8b0e): undefined reference to
`QMetaObjectCleanUp::QMetaObjectCleanUp(char const *, QMetaObject
*(*)(void))'
.libs/dcopclient.o(.data+0x70): undefined reference to `static_QUType_varptr'
.libs/dcopclient.o(.data+0x8c): undefined reference to `static_QUType_varptr'
.libs/dcopclient.o: In function `QPtrList<DCOPObjectProxy>::replace(unsigned
int, DCOPObjectProxy const *)':
.libs/dcopclient.o(.QPtrList<DCOPObjectProxy>::gnu.linkonce.t.replace(unsigne
d int, DCOPObjectProxy const *)+0x20): undefined reference to
`QGList::replaceAt(unsigned int, void *)'
.libs/dcopclient.o: In function
`QPtrList<DCOPClientTransaction>::replace(unsigned int, DCOPClientTransaction
const *)':
.libs/dcopclient.o(.QPtrList<DCOPClientTransaction>::gnu.linkonce.t.replace(u
nsigned int, DCOPClientTransaction const *)+0x20): undefined reference to
`QGList::replaceAt(unsigned int, void *)'
.libs/dcopclient.o: In function `QPtrList<_IceConn>::replace(unsigned int,
_IceConn const *)':
.libs/dcopclient.o(.QPtrList<_IceConn>::gnu.linkonce.t.replace(unsigned int,
_IceConn const *)+0x20): undefined reference to `QGList::replaceAt(unsigned
int, void *)'
collect2: ld returned 1 exit status
make[3]: *** [libDCOP.la.closure] Error 1
make[3]: Leaving directory `/home/simon/source/kde/kdelibs/dcop'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simon/source/kde/kdelibs/dcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/source/kde/kdelibs'
make: *** [all] Error 2
simon at purple:~/source/kde/kdelibs$

It's been like this since the move to Qt 3.1, the recent qt-copy update
 didn't change anything. I've also removed qt-copy and kde* and re-checked
 out, to no avail.

Anyone got any ideas?

Cheers, Simon

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
>> <<

-------------------------------------------------------





More information about the kde-core-devel mailing list