Hello,

Indeed, this is related to menuconfig, and how it handles TLS and SCTP. For TLS and SCTP, it's not about just setting a compile time flag, but there is also the need to set the TLS and SCTP shell variables, so that the tls/ folder is also compiled & linked.

I will fix this until 1.8 is released as stable.

Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 05/13/2012 02:41 AM, Daniel Goepp wrote:
I had the same thing, and the libraries are all there. I think it's related to how menuconfig works (or rather in this case doesn't). If you manually set in the Makefile, or set the environment variable:

export TLS=1

Seems to fix the problem for me anyway, but still testing.

-dg


On Sat, May 12, 2012 at 6:48 AM, Brian ipt <[email protected] <mailto:[email protected]>> wrote:

    On Sat, May 12, 2012 at 12:04 AM, Cindy Leung
    <[email protected] <mailto:[email protected]>> wrote:
    > Hello,
    >
    > I just got a copy of 1.8 from svn and enabled TLS in menuconfig.
     This is what I got during installation.
    > Any idea?
    >
    > Thanks!
    >
    >
    > Cindy
    >
    >
    >
    > Compiling lex.yy.c
    > Compiling cfg.tab.c
    > Linking opensips
    > main.o: In function `cleanup':
    > /usr/local/src/opensips_1_8/main.c:353: undefined reference to
    `destroy_tls'
    > main.o: In function `main':
    > /usr/local/src/opensips_1_8/main.c:1259: undefined reference to
    `pre_init_tls'
    > /usr/local/src/opensips_1_8/main.c:1380: undefined reference to
    `init_tls'
    > main.o: In function `main_loop':
    > /usr/local/src/opensips_1_8/main.c:784: undefined reference to
    `tls_init'
    > tcp_main.o: In function `tcpconn_new':
    > /usr/local/src/opensips_1_8/tcp_main.c:468: undefined reference
    to `tls_tcpconn_init'
    > tcp_main.o: In function `_tcpconn_rm':
    > /usr/local/src/opensips_1_8/tcp_main.c:571: undefined reference
    to `tls_tcpconn_clean'
    > tcp_main.o: In function `tcpconn_destroy':
    > /usr/local/src/opensips_1_8/tcp_main.c:1104: undefined reference
    to `tls_close'
    > tcp_main.o: In function `tcpconn_rm':
    > /usr/local/src/opensips_1_8/tcp_main.c:590: undefined reference
    to `tls_tcpconn_clean'
    > tcp_main.o: In function `tcp_send':
    > /usr/local/src/opensips_1_8/tcp_main.c:847: undefined reference
    to `tls_blocking_write'
    > tcp_main.o: In function `tcpconn_timeout':
    > /usr/local/src/opensips_1_8/tcp_main.c:1487: undefined reference
    to `tls_close'
    > /usr/local/src/opensips_1_8/tcp_main.c:1487: undefined reference
    to `tls_close'
    > /usr/local/src/opensips_1_8/tcp_main.c:1487: undefined reference
    to `tls_close'
    > /usr/local/src/opensips_1_8/tcp_main.c:1487: undefined reference
    to `tls_close'
    > /usr/local/src/opensips_1_8/tcp_main.c:1487: undefined reference
    to `tls_close'
    > tcp_main.o:/usr/local/src/opensips_1_8/tcp_main.c:1487: more
    undefined references to `tls_close' follow
    > tcp_read.o: In function `tcp_read_headers':
    > /usr/local/src/opensips_1_8/tcp_read.c:191: undefined reference
    to `tls_read'
    > tcp_read.o: In function `tcp_read_req':
    > /usr/local/src/opensips_1_8/tcp_read.c:452: undefined reference
    to `tls_fix_read_conn'
    > cfg.tab.o: In function `yyparse':
    > /usr/local/src/opensips_1_8/cfg.y:1394: undefined reference to
    `tls_server_domains'
    > /usr/local/src/opensips_1_8/cfg.y:1452: undefined reference to
    `tls_client_domains'
    > /usr/local/src/opensips_1_8/cfg.y:1461: undefined reference to
    `tls_client_domains'
    > /usr/local/src/opensips_1_8/cfg.y:1469: undefined reference to
    `tls_client_domains'
    > /usr/local/src/opensips_1_8/cfg.y:1477: undefined reference to
    `tls_client_domains'
    > /usr/local/src/opensips_1_8/cfg.y:845: undefined reference to
    `tls_log'
    > /usr/local/src/opensips_1_8/cfg.y:861: undefined reference to
    `tls_default_server_domain'
    > /usr/local/src/opensips_1_8/cfg.y:863: undefined reference to
    `tls_default_client_domain'
    > /usr/local/src/opensips_1_8/cfg.y:871: undefined reference to
    `tls_default_server_domain'
    > /usr/local/src/opensips_1_8/cfg.y:873: undefined reference to
    `tls_default_client_domain'
    > /usr/local/src/opensips_1_8/cfg.y:881: undefined reference to
    `tls_default_server_domain'

    Hi Cindy,

    Just a wild guess but have you installed openssl-dev or libssl-dev ?

    Brian

    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to