[OpenSIPS-Users] opensips on openbsd

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Apr 15 12:24:27 CEST 2009


Hi Mark,

It seams there are some differences on OpensBSD - unfortunately I have 
no access to such a server :(..

But, for the uintptr_t stuff, I made a fix to remove it (it wasn't 
really necessary).

I also tried to make a blind fix for the nathelper module.

So, please update from SVN and give it another try.


Thanks and regards,
Bogdan

>
> Hi list,
>
> my first posting... anyone using opensips on OpenBSD here?
> I am having trouble with the install.
>
> Initially I get this error:
>
> > # gmake
> > yacc -d -b cfg cfg.y
> > cfg.y: yacc finds 1 shift/reduce conflict
> > flex cfg.lex
> > Compiling action.c
> > gcc  -g -O9 -funroll-loops  -Wcast-align  -Wall 
>  -minline-all-stringops -falign-loops -mcpu=pentium4     
> -DNAME='"opensips"' -DVERSION='"1.5.1-notls"' -DARCH='"i386"' 
> -DOS='"openbsd"' -DCOMPILER='"gcc 3.3.5"' -D__CPU_i386 -D__OS_openbsd 
> -D__SMP_no -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  -DFAST_LOCK -DADAPTIVE_WAIT 
> -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_SOCKADDR_SA_LEN 
>  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_MSGHDR_MSG_CONTROL 
> -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_KQUEUE 
> -DHAVE_SELECT -c action.c -o action.o
> > action.c: In function `do_action':
> > action.c:810: error: `uintptr_t' undeclared (first use in this function)
> > action.c:810: error: (Each undeclared identifier is reported only once
> > action.c:810: error: for each function it appears in.)
> > action.c:810: error: syntax error before "a"
> > gmake: *** [action.o] Error 1
>
> which can be fixed by including <inttypes.h>
>
> when I run gmake install I get this:
>
> HAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_KQUEUE -DHAVE_SELECT 
> -c rtpproxy_stream.c -o rtpproxy_stream.o
> rtpproxy_stream.c: In function `rtpproxy_stream':
> rtpproxy_stream.c:78: error: elements of array `v' have incomplete type
> rtpproxy_stream.c:79: warning: excess elements in struct initializer
> rtpproxy_stream.c:79: warning: (near initialization for `v[0]')
> rtpproxy_stream.c:79: warning: excess elements in struct initializer
> rtpproxy_stream.c:79: warning: (near initialization for `v[0]')
> rtpproxy_stream.c:80: warning: excess elements in struct initializer
> rtpproxy_stream.c:80: warning: (near initialization for `v[1]')
> rtpproxy_stream.c:80: warning: excess elements in struct initializer
> rtpproxy_stream.c:80: warning: (near initialization for `v[1]')
> rtpproxy_stream.c:81: warning: excess elements in struct initializer
> rtpproxy_stream.c:81: warning: (near initialization for `v[2]')
> rtpproxy_stream.c:81: warning: excess elements in struct initializer
> rtpproxy_stream.c:81: warning: (near initialization for `v[2]')
> rtpproxy_stream.c:82: warning: excess elements in struct initializer
> rtpproxy_stream.c:82: warning: (near initialization for `v[3]')
> rtpproxy_stream.c:82: warning: excess elements in struct initializer
> rtpproxy_stream.c:82: warning: (near initialization for `v[3]')
> rtpproxy_stream.c:83: warning: excess elements in struct initializer
> rtpproxy_stream.c:83: warning: (near initialization for `v[4]')
> rtpproxy_stream.c:83: warning: excess elements in struct initializer
> rtpproxy_stream.c:83: warning: (near initialization for `v[4]')
> rtpproxy_stream.c:84: warning: excess elements in struct initializer
> rtpproxy_stream.c:84: warning: (near initialization for `v[5]')
> rtpproxy_stream.c:84: warning: excess elements in struct initializer
> rtpproxy_stream.c:84: warning: (near initialization for `v[5]')
> rtpproxy_stream.c:85: warning: excess elements in struct initializer
> rtpproxy_stream.c:85: warning: (near initialization for `v[6]')
> rtpproxy_stream.c:85: warning: excess elements in struct initializer
> rtpproxy_stream.c:85: warning: (near initialization for `v[6]')
> rtpproxy_stream.c:86: warning: excess elements in struct initializer
> rtpproxy_stream.c:86: warning: (near initialization for `v[7]')
> rtpproxy_stream.c:86: warning: excess elements in struct initializer
> rtpproxy_stream.c:86: warning: (near initialization for `v[7]')
> rtpproxy_stream.c:87: warning: excess elements in struct initializer
> rtpproxy_stream.c:87: warning: (near initialization for `v[8]')
> rtpproxy_stream.c:87: warning: excess elements in struct initializer
> rtpproxy_stream.c:87: warning: (near initialization for `v[8]')
> rtpproxy_stream.c:88: warning: excess elements in struct initializer
> rtpproxy_stream.c:88: warning: (near initialization for `v[9]')
> rtpproxy_stream.c:88: warning: excess elements in struct initializer
> rtpproxy_stream.c:88: warning: (near initialization for `v[9]')
> rtpproxy_stream.c:89: warning: excess elements in struct initializer
> rtpproxy_stream.c:89: warning: (near initialization for `v[10]')
> rtpproxy_stream.c:89: warning: excess elements in struct initializer
> rtpproxy_stream.c:89: warning: (near initialization for `v[10]')
> rtpproxy_stream.c:78: error: array size missing in `v'
> rtpproxy_stream.c:78: error: storage size of `v' isn't known
> rtpproxy_stream.c:78: warning: unused variable `v'
> rtpproxy_stream.c: In function `rtpproxy_stop_stream':
> rtpproxy_stream.c:165: error: elements of array `v' have incomplete type
> rtpproxy_stream.c:166: warning: excess elements in struct initializer
> rtpproxy_stream.c:166: warning: (near initialization for `v[0]')
> rtpproxy_stream.c:166: warning: excess elements in struct initializer
> rtpproxy_stream.c:166: warning: (near initialization for `v[0]')
> rtpproxy_stream.c:167: warning: excess elements in struct initializer
> rtpproxy_stream.c:167: warning: (near initialization for `v[1]')
> rtpproxy_stream.c:167: warning: excess elements in struct initializer
> rtpproxy_stream.c:167: warning: (near initialization for `v[1]')
> rtpproxy_stream.c:168: warning: excess elements in struct initializer
> rtpproxy_stream.c:168: warning: (near initialization for `v[2]')
> rtpproxy_stream.c:168: warning: excess elements in struct initializer
> rtpproxy_stream.c:168: warning: (near initialization for `v[2]')
> rtpproxy_stream.c:169: warning: excess elements in struct initializer
> rtpproxy_stream.c:169: warning: (near initialization for `v[3]')
> rtpproxy_stream.c:169: warning: excess elements in struct initializer
> rtpproxy_stream.c:169: warning: (near initialization for `v[3]')
> rtpproxy_stream.c:170: warning: excess elements in struct initializer
> rtpproxy_stream.c:170: warning: (near initialization for `v[4]')
> rtpproxy_stream.c:170: warning: excess elements in struct initializer
> rtpproxy_stream.c:170: warning: (near initialization for `v[4]')
> rtpproxy_stream.c:171: warning: excess elements in struct initializer
> rtpproxy_stream.c:171: warning: (near initialization for `v[5]')
> rtpproxy_stream.c:171: warning: excess elements in struct initializer
> rtpproxy_stream.c:171: warning: (near initialization for `v[5]')
> rtpproxy_stream.c:172: warning: excess elements in struct initializer
> rtpproxy_stream.c:172: warning: (near initialization for `v[6]')
> rtpproxy_stream.c:172: warning: excess elements in struct initializer
> rtpproxy_stream.c:172: warning: (near initialization for `v[6]')
> rtpproxy_stream.c:173: warning: excess elements in struct initializer
> rtpproxy_stream.c:173: warning: (near initialization for `v[7]')
> rtpproxy_stream.c:173: warning: excess elements in struct initializer
> rtpproxy_stream.c:173: warning: (near initialization for `v[7]')
> rtpproxy_stream.c:174: warning: excess elements in struct initializer
> rtpproxy_stream.c:174: warning: (near initialization for `v[8]')
> rtpproxy_stream.c:174: warning: excess elements in struct initializer
> rtpproxy_stream.c:174: warning: (near initialization for `v[8]')
> rtpproxy_stream.c:165: error: array size missing in `v'
> rtpproxy_stream.c:165: error: storage size of `v' isn't known
> rtpproxy_stream.c:165: warning: unused variable `v'
> gmake[1]: *** [rtpproxy_stream.o] Error 1
> gmake[1]: Leaving directory `/tmp/opensips-1.5.1-notls/modules/nathelper'
> gmake: *** [modules] Error 2
>
> any pointers for a newbie please?
>
> Thanks,
> Mark
>




More information about the Users mailing list