Bug 306277 - Kopete doesn't build with libotr 5.0.0
Summary: Kopete doesn't build with libotr 5.0.0
Status: RESOLVED DUPLICATE of bug 306276
Alias: None
Product: kopete
Classification: Applications
Component: OTR Plugin (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-05 05:14 UTC by Andrea Scarpino
Modified: 2012-09-05 05:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Scarpino 2012-09-05 05:14:52 UTC
automoc4: empty source file: /build/src/kdenetwork-4.9.1/kopete/protocols/sms/ui/empty.cpp
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, OtrlNotifyLevel, const char*, const char*, const char*, const char*, const char*, const char*)’ to ‘void (*)(void*)’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘int (*)(void*, const char*, const char*, const char*, const char*)’ to ‘void (*)(void*, OtrlUserState, const char*, const char*, const char*, unsigned char*) {aka void (*)(void*, s_OtrlUserState*, const char*, const char*, const char*, unsigned char*)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘const char* (*)(void*, const char*)’ to ‘void (*)(void*, ConnContext*) {aka void (*)(void*, context*)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, const char*)’ to ‘void (*)(void*, ConnContext*) {aka void (*)(void*, context*)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, OtrlUserState, const char*, const char*, const char*, unsigned char*) {aka void (*)(void*, s_OtrlUserState*, const char*, const char*, const char*, unsigned char*)}’ to ‘void (*)(void*, ConnContext*, int) {aka void (*)(void*, context*, int)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*)’ to ‘int (*)(void*, ConnContext*) {aka int (*)(void*, context*)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, ConnContext*) {aka void (*)(void*, context*)}’ to ‘const char* (*)(void*, const char*, const char*)’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, ConnContext*) {aka void (*)(void*, context*)}’ to ‘void (*)(void*, const char*)’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, ConnContext*, int) {aka void (*)(void*, context*, int)}’ to ‘void (*)(void*, ConnContext*, unsigned int, const unsigned char*, size_t, const unsigned char*) {aka void (*)(void*, context*, unsigned int, const unsigned char*, long unsigned int, const unsigned char*)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘void (*)(void*, const char*)’ to ‘const char* (*)(void*, ConnContext*, OtrlErrorCode) {aka const char* (*)(void*, context*, OtrlErrorCode)}’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: error: invalid conversion from ‘int (*)(void*, ConnContext*) {aka int (*)(void*, context*)}’ to ‘void (*)(void*, const char*)’ [-fpermissive]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: warning: missing initializer for member ‘s_OtrlMessageAppOps::handle_smp_event’ [-Wmissing-field-initializers]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: warning: missing initializer for member ‘s_OtrlMessageAppOps::handle_msg_event’ [-Wmissing-field-initializers]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: warning: missing initializer for member ‘s_OtrlMessageAppOps::create_instag’ [-Wmissing-field-initializers]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: warning: missing initializer for member ‘s_OtrlMessageAppOps::convert_msg’ [-Wmissing-field-initializers]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: warning: missing initializer for member ‘s_OtrlMessageAppOps::convert_free’ [-Wmissing-field-initializers]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:334:1: warning: missing initializer for member ‘s_OtrlMessageAppOps::timer_control’ [-Wmissing-field-initializers]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp: In member function ‘int OtrlChatInterface::decryptMessage(QString*, const QString&, const QString&, const QString&, Kopete::ChatSession*)’:
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:388:200: error: too few arguments to function ‘int otrl_message_receiving(OtrlUserState, const OtrlMessageAppOps*, void*, const char*, const char*, const char*, const char*, char**, OtrlTLV**, ConnContext**, void (*)(void*, ConnContext*), void*)’
In file included from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:41:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/message.h:374:5: note: declared here
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:399:135: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:399:135: error: too few arguments to function ‘ConnContext* otrl_context_find(OtrlUserState, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)’
In file included from /usr/include/libotr/proto.h:24:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/authenticationwizard.h:29,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:36,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/context.h:139:15: note: declared here
In file included from /usr/include/QtCore/qstring.h:46:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:28,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/QtCore/qbytearray.h: In member function ‘int OtrlChatInterface::encryptMessage(QString*, const QString&, const QString&, const QString&, Kopete::ChatSession*)’:
/usr/include/QtCore/qbytearray.h:383:5: error: ‘QByteArray::operator QNoImplicitBoolCast() const’ is private
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:547:183: error: within this context
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:547:183: error: cannot convert ‘char**’ to ‘OtrlTLV* {aka s_OtrlTLV*}’ for argument ‘9’ to ‘gcry_error_t otrl_message_sending(OtrlUserState, const OtrlMessageAppOps*, void*, const char*, const char*, const char*, otrl_instag_t, const char*, OtrlTLV*, char**, OtrlFragmentPolicy, ConnContext**, void (*)(void*, ConnContext*), void*)’
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:555:149: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:555:149: error: too few arguments to function ‘ConnContext* otrl_context_find(OtrlUserState, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)’
In file included from /usr/include/libotr/proto.h:24:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/authenticationwizard.h:29,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:36,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/context.h:139:15: note: declared here
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:560:46: error: ‘otrl_message_fragment_and_send’ was not declared in this scope
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp: In member function ‘void OtrlChatInterface::disconnectSession(Kopete::ChatSession*)’:
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:591:228: error: too few arguments to function ‘void otrl_message_disconnect(OtrlUserState, const OtrlMessageAppOps*, void*, const char*, const char*, const char*, otrl_instag_t)’
In file included from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:41:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/message.h:384:6: note: declared here
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp: In member function ‘int OtrlChatInterface::privState(Kopete::ChatSession*)’:
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:627:223: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:627:223: error: too few arguments to function ‘ConnContext* otrl_context_find(OtrlUserState, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)’
In file included from /usr/include/libotr/proto.h:24:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/authenticationwizard.h:29,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:36,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/context.h:139:15: note: declared here
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp: In member function ‘void OtrlChatInterface::verifyFingerprint(Kopete::ChatSession*)’:
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:660:213: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:660:213: error: too few arguments to function ‘ConnContext* otrl_context_find(OtrlUserState, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)’
In file included from /usr/include/libotr/proto.h:24:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/authenticationwizard.h:29,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:36,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/context.h:139:15: note: declared here
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp: In member function ‘void OtrlChatInterface::initSMP(ConnContext*, Kopete::ChatSession*, const QString&)’:
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:756:213: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:756:213: error: too few arguments to function ‘ConnContext* otrl_context_find(OtrlUserState, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)’
In file included from /usr/include/libotr/proto.h:24:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/authenticationwizard.h:29,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:36,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/context.h:139:15: note: declared here
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp: In member function ‘void OtrlChatInterface::initSMPQ(ConnContext*, Kopete::ChatSession*, const QString&, const QString&)’:
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:768:213: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
/build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:768:213: error: too few arguments to function ‘ConnContext* otrl_context_find(OtrlUserState, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)’
In file included from /usr/include/libotr/proto.h:24:0,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/authenticationwizard.h:29,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.h:36,
                 from /build/src/kdenetwork-4.9.1/kopete/plugins/otr/otrlchatinterface.cpp:25:
/usr/include/libotr/context.h:139:15: note: declared here
make[2]: *** [kopete/plugins/otr/CMakeFiles/kopete_otr_shared.dir/otrlchatinterface.o] Error 1
make[1]: *** [kopete/plugins/otr/CMakeFiles/kopete_otr_shared.dir/all] Error 2
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1. Update libotr to 5.0.0
2. Try to build kopete
Actual Results:  
Build fails

Expected Results:  
it builds

KDE 4.9.1
libotr 5.0.0
Comment 1 Andrea Scarpino 2012-09-05 05:19:51 UTC

*** This bug has been marked as a duplicate of bug 306276 ***