Error installing opensips - dialplan.so

Anonymous
2010-08-05
2013-05-09
  • Anonymous - 2010-08-05

    Hi,
    I'm trying to install opensips 1.6.3 notls version and when I make make all include_modules="mysql" get this error:



    UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -c dialplan.c -o dialplan.o
    In file included from dialplan.c:44:
    dialplan.h:35:18: error: pcre.h: No such file or directory
    In file included from dialplan.c:44:
    dialplan.h:46: error: expected specifier-qualifier-list before ‘pcre’
    dialplan.h:91: error: expected declaration specifiers or ‘…’ before ‘pcre’
    dialplan.h:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    dialplan.h:102: error: expected ‘)’ before ‘*’ token
    dialplan.c:630: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    dialplan.c:658: error: expected ‘)’ before ‘*’ token
    make: ***  Error 1
    make: Leaving directory `/opt/opensips/modules/dialplan'
    make: ***  Error 2

    I've installed all the dependencies required, my system is a Centos 5.4.

    Thanks for your help.

     
  • Anonymous - 2010-08-05

    Thanks, It works fine!!!
    Segaste

     
  • fxtech

    fxtech - 2010-08-07

    Hi Bogdan,

    I encountered the same compile error with dialplan.c and was able to resolve it by installing pcre-devel module. But now I am facing a compile error on another file hash.c. This is the error I get:

    make: Entering directory `/home/downloads/opensips-1.6.3/modules/localcache'
    Compiling hash.c
    gcc -fPIC -DPIC -g -DMOD_NAME='"localcache"'    -DNAME='"opensips"' -DVERSION='"1.6.3-notls"' -DARCH='"s390x"' -DOS='"linux"' -DCOMPILER='"gcc 3.4.6"' -D__CPU_s390x -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  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DUSE_SYSV_SEM   -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -c hash.c -o hash.o
    hash.c: In function `lcache_htable_destroy':
    hash.c:86: error: syntax error before "me1"
    make: ***  Error 1
    make: Leaving directory `/home/downloads/opensips-1.6.3/modules/localcache'
    make: ***  Error 2
    #

    Seems like another dependency needs to be installed not sure which one.

    System: RHEL 4 64 bit on IBM s390x

    Thanks,
    fxtech

    # make all include_modules="mysql"

    Please le tme

     
  • Bogdan-Andrei Iancu

    Hi fxtech,

    Please update from SVN and try again. There was a small syntax issue (compiler dependent) in the localcache module.

    Regards,
    Bogdan

     
  • fxtech

    fxtech - 2010-08-08

    Hi Bogdan,

    I compiled by just updating hash.c and compiled. Let me know if that is fine or if I should grab everything and then compile.

    Thanks for all the help.

     
  • Bogdan-Andrei Iancu

    Hi fxtech,

    getting only the hash.c is enough. I'm glad the fix did the job for you.

    Regards,
    Bogdan

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks