Hello,
I'm trying to compile the presence module for flexisip, but looks like some changes to other parts of flexisip haven't flowed back to this module in a while.
I tried to patch the most obious issues, my current efforts are summarized here:
https://gist.github.com/e5766f704d69c3a9017cI also need to use -fpermissive to go around some templates errors.
With the patch compilations goes a bit further but still fails with this error:
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/sofia-sip-1.13 -D_REENTRANT -DCONFIG_DIR=\"/etc/flexisip\" -DORTP_DEBUG_MODE -Wall -Werror -fno-strict-aliasing -I/usr/libxsd/ -DBELLE_SIP_USE_STL -DENABLE_PUSHNOTIFICATION -I/usr/include -pthread -g -O1 -std=c++0x -march=native -O2 -pipe -fomit-frame-pointer -fpermissive -c -o module-presence.o module-presence.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include/g++-v4/istream:39:0,
from /usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include/g++-v4/sstream:38,
from configmanager.hh:37,
from module.hh:29,
from module-presence.cc:19:
/usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include/g++-v4/ostream: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = ModulePresence]’:
module-presence.cc:70:13: required from here
/usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include/g++-v4/ostream:604:12: error: cannot bind ‘std::basic_ostream<char>’ lvalue to ‘std::basic_ostream<char>&&’
__os << __x;
^
/usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include/g++-v4/ostream:602:5: note: initializing argument 1 of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = ModulePresence]’
operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
^
Makefile:1216: recipe for target 'module-presence.o' failed
Any idea on how to fix this?
Thanks,