[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    automoc issue, or kdegames issue?
From:       Benjamin Reed <rangerrick () gmail ! com>
Date:       2009-03-11 18:12:42
Message-ID: 57eba2250903111112l3cfb3dd6uf9fca7491258653b () mail ! gmail ! com
[Download RAW message or body]

I'm up to kdegames 4.2.1 in my packaging run on OSX, and I'm hitting
an odd issue.  Ksirk is failing with this error:

---(snip!)---
[ 64%] Building CXX object
ksirk/ksirk/iris/src/CMakeFiles/iris_ksirk.dir/iris_ksirk_automoc.o
In file included from
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/iris_ksirk_automoc.cpp:26:
                
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:20:
                
error: redefinition of ‘const uint qt_meta_data_ByteStream []’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:20:
                
error: ‘const uint qt_meta_data_ByteStream [38]’ previously defined
here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:41:
                
error: redefinition of ‘const char qt_meta_stringdata_ByteStream []’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:41:
                
error: ‘const char qt_meta_stringdata_ByteStream [96]’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:47:
                
error: redefinition of ‘const QMetaObject
ByteStream::staticMetaObject’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:47:
                
error: ‘const QMetaObject ByteStream::staticMetaObject’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:52:
                
error: redefinition of ‘const QMetaObject* ByteStream::metaObject()
const’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:52:
                
error: ‘virtual const QMetaObject* ByteStream::metaObject() const’
previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:57:
                
error: redefinition of ‘void* ByteStream::qt_metacast(const char*)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:57:
                
error: ‘virtual void* ByteStream::qt_metacast(const char*)’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:65:
                
error: redefinition of ‘int ByteStream::qt_metacall(QMetaObject::Call,
int, void**)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:65:
                
error: ‘virtual int ByteStream::qt_metacall(QMetaObject::Call, int,
void**)’ previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:85:
                
error: redefinition of ‘void ByteStream::connectionClosed()’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:85:
                
error: ‘void ByteStream::connectionClosed()’ previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:91:
                
error: redefinition of ‘void ByteStream::delayedCloseFinished()’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:91:
                
error: ‘void ByteStream::delayedCloseFinished()’ previously defined
here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:97:
                
error: redefinition of ‘void ByteStream::readyRead()’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:97:
                
error: ‘void ByteStream::readyRead()’ previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:103:
                
error: redefinition of ‘void ByteStream::bytesWritten(int)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:103:
                
error: ‘void ByteStream::bytesWritten(int)’ previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:110:
                
error: redefinition of ‘void ByteStream::error(int)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_bytestream.cpp:110:
                
error: ‘void ByteStream::error(int)’ previously defined here
In file included from
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/iris_ksirk_automoc.cpp:29:
                
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:20:
                
error: redefinition of ‘const uint qt_meta_data_SocksUDP []’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:20:
                
error: ‘const uint qt_meta_data_SocksUDP [23]’ previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:40:
                
error: redefinition of ‘const char qt_meta_stringdata_SocksUDP []’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:40:
                
error: ‘const char qt_meta_stringdata_SocksUDP [55]’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:45:
                
error: redefinition of ‘const QMetaObject SocksUDP::staticMetaObject’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:45:
                
error: ‘const QMetaObject SocksUDP::staticMetaObject’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:50:
                
error: redefinition of ‘const QMetaObject* SocksUDP::metaObject()
const’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:50:
                
error: ‘virtual const QMetaObject* SocksUDP::metaObject() const’
previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:55:
                
error: redefinition of ‘void* SocksUDP::qt_metacast(const char*)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:55:
                
error: ‘virtual void* SocksUDP::qt_metacast(const char*)’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:63:
                
error: redefinition of ‘int SocksUDP::qt_metacall(QMetaObject::Call,
int, void**)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:63:
                
error: ‘virtual int SocksUDP::qt_metacall(QMetaObject::Call, int,
void**)’ previously defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:80:
                
error: redefinition of ‘void SocksUDP::packetReady(const QByteArray&)’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:80:
                
error: ‘void SocksUDP::packetReady(const QByteArray&)’ previously
defined here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:85:
                
error: redefinition of ‘const uint qt_meta_data_SocksClient []’
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:85:
                
error: ‘const uint qt_meta_data_SocksClient [73]’ previously defined
here
/sw/src/fink.build/kdegames4-x11-4.2.1-1/kdegames-4.2.1/build/ksirk/ksirk/iris/src/moc_socks.cpp:115:
                
error: redefinition of ‘const char qt_meta_stringdata_SocksClient []’
---(snip!)---

Looking at the iris_ksirk_automoc.cpp, it has the same file included
multiple times:

---(snip!)---
/* This file is autogenerated, do not edit
-DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS
-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS
*/
#include "moc_filetransfer.cpp"
#include "moc_bytestream.cpp"
#include "moc_ndns.cpp"
#include "moc_objectsession.cpp"
#include "moc_socks.cpp"
#include "moc_xmpp.cpp"
#include "moc_zlibdecompressor.cpp"
#include "moc_qjdns.cpp"
#include "moc_netnames.cpp"
#include "moc_xmpp_stream.cpp"
#include "moc_base64.cpp"
#include "moc_xmpp_task.cpp"
#include "moc_httppoll.cpp"
#include "moc_zlibcompressor.cpp"
#include "moc_httpconnect.cpp"
#include "moc_processquit.cpp"
#include "moc_simplesasl.cpp"
#include "moc_xmpp_discoinfotask.cpp"
#include "moc_bsocket.cpp"
#include "moc_safedelete.cpp"
#include "moc_xmpp_ibb.cpp"
#include "moc_bytestream.cpp"
#include "moc_randrandomnumbergenerator.cpp"
#include "moc_xmpp_client.cpp"
#include "moc_socks.cpp"
#include "moc_servsock.cpp"
#include "moc_zlibdecompressor.cpp"
#include "moc_xmpp_clientstream.cpp"
#include "moc_srvresolver.cpp"
#include "moc_httppoll.cpp"
#include "moc_zlibcompressor.cpp"
#include "moc_securestream.cpp"
#include "moc_xmpp_task.cpp"
#include "moc_common.cpp"
#include "moc_compressionhandler.cpp"
#include "moc_jdnsshared.cpp"
#include "moc_netavailability.cpp"
#include "moc_netinterface.cpp"
#include "moc_s5b.cpp"
#include "moc_httpconnect.cpp"
#include "moc_xmpp_tasks.cpp"
---(snip!)---

The CMakeLists.txt for ksirk has this moc setup:

---(snip!)---
kde4_moc_headers(iris_ksirk
irisnet/corelib/jdnsshared.h
irisnet/corelib/netavailability.h
irisnet/corelib/netinterface.h
irisnet/corelib/netnames.h
irisnet/corelib/objectsession.h
irisnet/noncore/processquit.h
jdns/qjdns.h
xmpp/base/randrandomnumbergenerator.h
xmpp/base64/base64.h
xmpp/cutestuff/bsocket.h
xmpp/cutestuff/bytestream.h
xmpp/cutestuff/httpconnect.h
xmpp/cutestuff/socks.h
xmpp/cutestuff/httppoll.h
xmpp/sasl/digestmd5proplist.cpp
xmpp/sasl/digestmd5response.cpp
xmpp/sasl/plainmessage.cpp
xmpp/xmpp-core/xmpp.h
xmpp/xmpp-core/xmpp_clientstream.h
xmpp/xmpp-core/xmpp_stream.h
xmpp/xmpp-core/securestream.h
xmpp/xmpp-core/simplesasl.h
xmpp/xmpp-im/s5b.h
xmpp/xmpp-im/xmpp_client.h
xmpp/xmpp-im/xmpp_task.h
xmpp/zlib/common.h
xmpp/zlib/zlibcompressor.h
xmpp/zlib/zlibdecompressor.h
)
---(snip!)---


...any ideas what's going wrong?

-- 
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development

Blog: http://www.raccoonfink.com/
Music: http://music.raccoonfink.com/
 
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic