Compiling OPENSIPS with TLS problem

2010-11-23
2013-05-09
  • Raymond Tan
    Raymond Tan
    2010-11-23

    I download the OPENSIPS 1.6.3 tar file.
    I enable the TLS=1 file inside the Makefile after performing tar -xvzf OPENSIPS-1.6.3.tar
    When i perform "gmake", there are a lot of invalid directory mainly /tls not found.
    Does this come with the OPENSIPS tar file or where could i get these files inside /tls?

    My purpose is to try to compile an OPENSIPS with TLS enable.
    So far i had not been successfully. I followed the tutorial guide for V1.4x but inside does not mentioned anything about /tls directory.

    Anyone got compile OPENSIPS with TLS enable successfully? could to share how do you do it?

    Really appreciate if someone could provide me some useful information.

     
  • Be sure you downloaded the tls-enabled tarball  (like opensips-1.6.3-tls_src.tar.gz )

    Regards,
    Bogdan

     
  • Raymond Tan
    Raymond Tan
    2010-11-24

    Hi Bogdan,

      Thank for your advice. Just noticed that the previous tar file i am using is no TLS.

      Today i just download the Opensip tar file with TLS.

      As usual, i comment out the TLS=1 inside the Makefile after performing tar -xvzf Opensip-1.6.3-tls_src.tar.gz

    Next i perform "make all" command.

    But i got this dailplan error. The error is as followed:

    make: Leaving directory `/home/st2800/openser-1.2.0/opensips-1.6.3-tls/modules/dialog'
    make: Entering directory `/home/st2800/openser-1.2.0/opensips-1.6.3-tls/modules/dialplan'
    make: Leaving directory `/home/st2800/openser-1.2.0/opensips-1.6.3-tls/modules/dialplan'
    make: Entering directory `/home/st2800/openser-1.2.0/opensips-1.6.3-tls/modules/dialplan'
    Compiling dialplan.c
    gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -mtune=pentium4 -DMOD_NAME='"dialplan"'    -DNAME='"opensips"' -DVERSION='"1.6.3-tls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.4.6"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC  -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/ssl/include -I/usr/local/include -I/usr/include/openssl -c dialplan.c -o dialplan.o
    In file included from dialplan.c:44:
    dialplan.h:35:18: pcre.h: No such file or directory
    In file included from dialplan.c:44:
    dialplan.h:46: error: syntax error before "pcre"
    dialplan.h:46: warning: no semicolon at end of struct or union
    dialplan.h:51: error: syntax error before '}' token
    dialplan.h:51: warning: type defaults to `int' in declaration of `dpl_node_t'
    dialplan.h:51: warning: type defaults to `int' in declaration of `dpl_node_p'
    dialplan.h:51: warning: data definition has no type or storage class
    dialplan.h:56: error: syntax error before "dpl_node_t"
    dialplan.h:56: warning: no semicolon at end of struct or union
    dialplan.h:57: warning: type defaults to `int' in declaration of `last_rule'
    dialplan.h:57: warning: data definition has no type or storage class
    dialplan.h:59: error: conflicting types for 'next'
    dialplan.h:50: error: previous declaration of 'next' was here
    dialplan.h:60: error: syntax error before '}' token
    dialplan.h:60: warning: type defaults to `int' in declaration of `dpl_index_t'
    dialplan.h:60: warning: type defaults to `int' in declaration of `dpl_index_p'
    dialplan.h:60: warning: data definition has no type or storage class
    dialplan.h:65: error: syntax error before "dpl_index_t"
    dialplan.h:65: warning: no semicolon at end of struct or union
    dialplan.h:66: error: conflicting types for 'next'
    dialplan.h:59: error: previous declaration of 'next' was here
    dialplan.h:66: error: conflicting types for 'next'
    dialplan.h:59: error: previous declaration of 'next' was here
    dialplan.h:67: error: syntax error before '}' token
    dialplan.h:67: warning: type defaults to `int' in declaration of `dpl_id_t'
    dialplan.h:67: warning: type defaults to `int' in declaration of `dpl_id_p'
    dialplan.h:67: warning: data definition has no type or storage class
    dialplan.h:85: error: syntax error before "select_dpid"
    dialplan.h:85: warning: type defaults to `int' in declaration of `select_dpid'
    dialplan.h:85: warning: data definition has no type or storage class
    dialplan.h:89: error: syntax error before "dpl_id_p"
    dialplan.h:90: error: syntax error before "dpl_node_t"
    dialplan.h:91: error: syntax error before "pcre"
    dialplan.h:101: error: syntax error before '*' token
    dialplan.h:101: warning: type defaults to `int' in declaration of `wrap_pcre_compile'
    dialplan.h:101: warning: data definition has no type or storage class
    dialplan.h:102: error: syntax error before '*' token
    dialplan.c: In function `dp_translate_f':
    dialplan.c:326: error: syntax error before "idp"
    dialplan.c:362: error: `idp' undeclared (first use in this function)
    dialplan.c:362: error: (Each undeclared identifier is reported only once
    dialplan.c:362: error: for each function it appears in.)
    dialplan.c: In function `mi_translate':
    dialplan.c:519: error: syntax error before "idp"
    dialplan.c:569: error: `idp' undeclared (first use in this function)
    dialplan.c: At top level:
    dialplan.c:630: error: syntax error before '*' token
    dialplan.c:631: warning: return type defaults to `int'
    dialplan.c: In function `wrap_pcre_compile':
    dialplan.c:632: error: `pcre' undeclared (first use in this function)
    dialplan.c:632: error: `ret' undeclared (first use in this function)
    dialplan.c:639: error: `pcre_malloc' undeclared (first use in this function)
    dialplan.c:640: error: `pcre_free' undeclared (first use in this function)
    dialplan.c:645: warning: implicit declaration of function `pcre_compile'
    dialplan.c: At top level:
    dialplan.c:658: error: syntax error before '*' token
    dialplan.c: In function `wrap_pcre_free':
    dialplan.c:660: error: `re' undeclared (first use in this function)
    make: ***  Error 1
    make: Leaving directory `/home/st2800/openser-1.2.0/opensips-1.6.3-tls/modules/dialplan'
    make: ***  Error 2

       In the end, it iseem that it does not install successfully.

       So from the error, is it possible to enlighten me what had happened?

    Thank and Regards,
    Raymond

     
  • you need to install pcre lib devel files - on debian is libpcre-dev package.

    Regards,
    Bogdan

     
  • Raymond Tan
    Raymond Tan
    2010-11-25

    Hi Bogdan,

        I went to this website http://packages.ubuntu.com/hardy/libpcre++-dev

    and download the following libpcre-dev tar file "libpcre++_0.9.5.orig.tar"

    Is this the correct package you referring to because i still encounter the same dialplan error?

    Regards,
    Raymond