<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>Im trying to compile TLS module in my kamailio. Below is my console log. It came up with lots of warnings and errors. But it generates the tls.so. What im supposed to do now and how to fix it?<br><br>xxx@ubuntu:/usr/local/src/kamailio-4.1/kamailio$ sudo make -C modules/tls<br>make: Entering directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'<br>make: Leaving directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'<br>make: Entering directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'<br>CC (gcc) [M tls.so] tls_bio.o<br>CC (gcc) [M tls.so] tls_cfg.o<br>CC (gcc) [M tls.so] tls_config.o<br>CC (gcc) [M tls.so] tls_ct_wrq.o<br>CC (gcc) [M tls.so] tls_domain.o<br>In file included from tls_domain.c:39:0:<br>tls_domain.c: In function āload_certā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:506:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_cert:");<br> ^<br>tls_domain.c: In function āload_ca_listā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:536:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_ca_list:");<br> ^<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:543:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_ca_list:");<br> ^<br>tls_domain.c: In function āload_crlā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:575:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_crl:");<br> ^<br>tls_domain.c: In function āload_private_keyā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:990:5: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_private_key:");<br> ^<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:998:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_private_key:");<br> ^<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_domain.c:1005:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("load_private_key:");<br> ^<br>CC (gcc) [M tls.so] tls_dump_vf.o<br>CC (gcc) [M tls.so] tls_init.o<br>CC (gcc) [M tls.so] tls_locking.o<br>CC (gcc) [M tls.so] tls_mod.o<br>CC (gcc) [M tls.so] tls_rpc.o<br>CC (gcc) [M tls.so] tls_select.o<br>CC (gcc) [M tls.so] tls_server.o<br>In file included from tls_server.c:52:0:<br>tls_server.c: In function ātls_complete_initā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_server.c:192:3: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("Failed to create SSL or BIO structure:");<br> ^<br>tls_server.c: In function ātls_shutdownā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_server.c:521:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR("SSL error:");<br> ^<br>tls_server.c: In function ātls_encode_fā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_server.c:798:5: note: in expansion of macro āTLS_ERRā<br> TLS_ERR(err_src);<br> ^<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_server.c:832:5: note: in expansion of macro āTLS_ERRā<br> TLS_ERR(err_src);<br> ^<br>tls_server.c: In function ātls_read_fā:<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_server.c:1186:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR(err_src);<br> ^<br>tls_util.h:52:6: warning: variable āretā set but not used [-Wunused-but-set-variable]<br> int ret; \<br> ^<br>tls_server.c:1220:4: note: in expansion of macro āTLS_ERRā<br> TLS_ERR(err_src);<br> ^<br>CC (gcc) [M tls.so] tls_util.o<br>CC (gcc) [M tls.so] tls_verify.o<br>LD (gcc) [M tls.so] tls.so<br>make: Leaving directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'<br><br><br><div><hr id="stopSpelling"></div> </div></body>
</html>