[climm] Compile problem, gloox?

Stanimir Dragiev stanio at cs.tu-berlin.de
Mon Dec 3 23:24:02 CET 2007


Hi,

I am trying to compile climm-0.6.1 on a debian machine and
get some errors. I didn't found similar problems reported on
the net, so it seems only I miss some point. Any suggestions
are appreciated. 

(the problem occurs from micq-0.5.4.2 onwards. micq-0.5.4.1
did compile normally)

I took a look at the CLient class in
/usr/include/gloox/client.h and didn't find myself
setAutoPresence
setInitialPriority
what the compiler reports not to find too.

Find below the make output, as well as some lines from the
./configure output and the libgloox location.


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

stanio at machine:~/climm-0.6.1$ make
Making all in src
make[1]: Entering directory `/home/stanio/climm-0.6.1/src'
depbase=`echo jabber_base.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I. -I../include     -g -O2 -MT jabber_base.o -MD -MP -MF $depbase.Tpo -c -o jabber_base.o jabber_base.cpp
 &&\
        mv -f $depbase.Tpo $depbase.Po
jabber_base.cpp: In constructor ‘CLIMMXMPP::CLIMMXMPP(Connection*)’:
jabber_base.cpp:106: error: ‘class gloox::Client’ has no member named ‘setAutoPresence’
jabber_base.cpp:107: error: ‘class gloox::Client’ has no member named ‘setInitialPriority’
jabber_base.cpp:111: error: ‘class gloox::Client’ has no member named ‘fileDescriptor’
jabber_base.cpp: In function ‘bool DropAttrib(gloox::Tag*, const std::string&)’:
jabber_base.cpp:188: error: no matching function for call to ‘std::list<std::pair<std::basic_string<char, std::char_traits<char>, std: :allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_stri ng<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >: :erase(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)’
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/list.tcc:95: note: candidates are: typename std::list<_Tp, _Alloc >::iterator std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>) [with _Tp = std::pair<std::basic_string<char, std::char_traits<cha r>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<std::pai r<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocat or<char> > > >]
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:871: note:                 std::_List_iterator<_Tp> st d::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>) [with _Tp = std::pair<std::basic_string<char, std::cha r_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::alloca tor<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]
jabber_base.cpp: In member function ‘virtual void CLIMMXMPP::handleMessage(gloox::Stanza*)’:
jabber_base.cpp:639: error: invalid conversion from ‘gloox::Tag*’ to ‘gloox::Stanza*’
jabber_base.cpp: In member function ‘virtual void CLIMMXMPP::handlePresence(gloox::Stanza*)’:
jabber_base.cpp:708: error: invalid conversion from ‘gloox::Tag*’ to ‘gloox::Stanza*’
jabber_base.cpp: In member function ‘virtual void CLIMMXMPP::handleSubscription(gloox::Stanza*)’:
jabber_base.cpp:734: error: ‘class gloox::Stanza’ has no member named ‘show’
jabber_base.cpp: In member function ‘virtual void CLIMMXMPP::handleLog(gloox::LogLevel, gloox::LogArea, const std::string&)’:
jabber_base.cpp:768: error: ‘LogAreaClassConnection’ is not a member of ‘gloox’
jabber_base.cpp: In function ‘Event* ConnectionInitXMPPServer(Connection*)’:
jabber_base.cpp:976: error: cannot allocate an object of abstract type ‘CLIMMXMPP’
jabber_base.cpp:43: note:   because the following virtual functions are pure within ‘CLIMMXMPP’:
/usr/include/gloox/messagehandler.h:51: note:   virtual void gloox::MessageHandler::handleMessage(gloox::Stanza*, gloox::MessageSessio
n*)
make[1]: *** [jabber_base.o] Error 1
make[1]: Leaving directory `/home/stanio/climm-0.6.1/src'
make: *** [all-recursive] Error 1

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

and here some lines from ./configure, which apparently
detects XMPP (which means gloox, I assume.)
----------------------------

...
checking checking for variadic macro support... yes
checking whether to enable XMPP chat network (BETA)... yes
checking whether to enable MSN chat network (EXPERIMENTAL BROKEN INCOMPLETE)... no
checking whether to enable peer to peer connections... yes
checking whether to enable remote control FIFO... yes
checking whether to enable Tcl scripting... no
checking whether to enable SSL/TLS support... gnutls
checking whether to enable OTR support... no
...
--------------------------

and I have gloox7 installed (in a previous post on the list,
couple of days ago,  I found that gloox7 worked for at least
2 of you):
--------------------------
stanio at machine:~/climm-0.6.1$ whereis gloox
gloox: /usr/include/gloox
stanio at machine:~/climm-0.6.1$ whereis libgloox
libgloox: /usr/lib/libgloox.la /usr/lib/libgloox.a /usr/lib/libgloox.so
stanio at machine:~/climm-0.6.1$ ll  /usr/lib/libgloox.so
lrwxrwxrwx 1 root root 17 2007-12-03 21:45 /usr/lib/libgloox.so -> libgloox.so.7.0.0
-------------------------

I am currently using debian testing.

Linux machine 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux



Thanks a lot for your help.

--
greetz
stanio



More information about the climm-list mailing list