service.cpp: In static member function 'static void
sipwitch::service::publish(const char*)':
service.cpp:256:28: error: invalid conversion from 'const sockaddr*' to
'sockaddr*' [-fpermissive]
host = resolver.getAddr();
This was easy enough to fix, just add a const to the type of the
variable "host".
Unfortunately after doing so the build failed with.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time
-D_FORTIFY_SOURCE=2 -I../inc -DHAVE_PTHREAD -pthread -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wall -c
uri.cpp -fPIC -DPIC -o .libs/uri.o
uri.cpp: In static member function ‘static bool
sipwitch::uri::resolve(const char*, char*, size_t)’:
uri.cpp:176:35: error: invalid conversion from ‘const sockaddr*’ to
‘sockaddr*’ [-fpermissive]
address = resolver.getAddr();
^
uri.cpp:179:20: error: ‘service’ is not a member of ‘ucommon::Socket’
port = Socket::service(address);
^
Makefile:498: recipe for target 'uri.lo' failed
make[3]: *** [uri.lo] Error 1
I presume the first of those errors will be another easy fix, but I have
no idea about the second one.