[SR-Users] Compiling TLS module

Kamrul Khan dodul at live.com
Fri Oct 17 19:45:16 CEST 2014


Hi,

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?

xxx at ubuntu:/usr/local/src/kamailio-4.1/kamailio$ sudo make -C modules/tls
make: Entering directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'
make: Leaving directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'
make: Entering directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'
CC (gcc) [M tls.so]             tls_bio.o
CC (gcc) [M tls.so]             tls_cfg.o
CC (gcc) [M tls.so]             tls_config.o
CC (gcc) [M tls.so]             tls_ct_wrq.o
CC (gcc) [M tls.so]             tls_domain.o
In file included from tls_domain.c:39:0:
tls_domain.c: In function âload_certâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:506:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("load_cert:");
    ^
tls_domain.c: In function âload_ca_listâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:536:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("load_ca_list:");
    ^
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:543:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("load_ca_list:");
    ^
tls_domain.c: In function âload_crlâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:575:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("load_crl:");
    ^
tls_domain.c: In function âload_private_keyâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:990:5: note: in expansion of macro âTLS_ERRâ
     TLS_ERR("load_private_key:");
     ^
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:998:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("load_private_key:");
    ^
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_domain.c:1005:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("load_private_key:");
    ^
CC (gcc) [M tls.so]             tls_dump_vf.o
CC (gcc) [M tls.so]             tls_init.o
CC (gcc) [M tls.so]             tls_locking.o
CC (gcc) [M tls.so]             tls_mod.o
CC (gcc) [M tls.so]             tls_rpc.o
CC (gcc) [M tls.so]             tls_select.o
CC (gcc) [M tls.so]             tls_server.o
In file included from tls_server.c:52:0:
tls_server.c: In function âtls_complete_initâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_server.c:192:3: note: in expansion of macro âTLS_ERRâ
   TLS_ERR("Failed to create SSL or BIO structure:");
   ^
tls_server.c: In function âtls_shutdownâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_server.c:521:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR("SSL error:");
    ^
tls_server.c: In function âtls_encode_fâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_server.c:798:5: note: in expansion of macro âTLS_ERRâ
     TLS_ERR(err_src);
     ^
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_server.c:832:5: note: in expansion of macro âTLS_ERRâ
     TLS_ERR(err_src);
     ^
tls_server.c: In function âtls_read_fâ:
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_server.c:1186:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR(err_src);
    ^
tls_util.h:52:6: warning: variable âretâ set but not used [-Wunused-but-set-variable]
  int ret;             \
      ^
tls_server.c:1220:4: note: in expansion of macro âTLS_ERRâ
    TLS_ERR(err_src);
    ^
CC (gcc) [M tls.so]             tls_util.o
CC (gcc) [M tls.so]             tls_verify.o
LD (gcc) [M tls.so]             tls.so
make: Leaving directory `/usr/local/src/kamailio-4.1/kamailio/modules/tls'


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141017/4525b5a1/attachment.html>


More information about the sr-users mailing list