[Users] 1.1.0-tls compile problem

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jul 14 19:37:36 CEST 2006


Hi Frank,

right - it was an extra bracket somewhere....please revert and apply 
this new patch.

regars,
bogdan


Frank Garcia wrote:

> Bogdan,
>
> Thanks for looking at this. The patch appears to have applied  
> cleanly, but I'm getting a syntax error now.
>
>
> ------------------------
>
> /usr/local/src/openser-1.1.0-tls$ patch < cfg.patch
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |
> |Index: cfg.y
> |===================================================================
> |RCS file: /cvsroot/openser/sip-server/cfg.y,v
> |retrieving revision 1.31
> |diff -u -r1.31 cfg.y
> |--- cfg.y      10 Jul 2006 13:37:02 -0000      1.31
> |+++ cfg.y      14 Jul 2006 15:32:01 -0000
> --------------------------
> Patching file cfg.y using Plan A...
> Hunk #1 succeeded at 854.
> Hmm...  Ignoring the trailing garbage.
> done
>
>
> /usr/local/src/openser-1.1.0-tls$ gmake
> yacc -d -b cfg cfg.y
> cfg.y: yacc finds 1 shift/reduce conflict
> flex cfg.lex
> Compiling lex.yy.c
> gcc  -g -O9 -funroll-loops  -Wcast-align  -Wall   -minline-all- 
> stringops -falign-loops -mcpu=athlon      -DNAME='"openser"' - 
> DVERSION='"1.1.0-notls"' -DARCH='"i386"' -DOS='"openbsd"' - 
> DCOMPILER='"gcc 3.3.5"' -D__CPU_i386 -D__OS_openbsd -D__SMP_no - 
> DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM  - 
> DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE - 
> DHAVE_RESOLV_RES -DF_MALLOC -DSTATISTICS  -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 lex.yy.c -o lex.yy.o
> Compiling cfg.tab.c
> gcc  -g -O9 -funroll-loops  -Wcast-align  -Wall   -minline-all- 
> stringops -falign-loops -mcpu=athlon      -DNAME='"openser"' - 
> DVERSION='"1.1.0-notls"' -DARCH='"i386"' -DOS='"openbsd"' - 
> DCOMPILER='"gcc 3.3.5"' -D__CPU_i386 -D__OS_openbsd -D__SMP_no - 
> DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM  - 
> DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE - 
> DHAVE_RESOLV_RES -DF_MALLOC -DSTATISTICS  -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 cfg.tab.c -o cfg.tab.o
> cfg.y: In function `yyparse':
> cfg.y:875: error: syntax error before ')' token
> gmake: *** [cfg.tab.o] Error 1
>
>
>
> On Jul 14, 2006, at 10:33 AM, Bogdan-Andrei Iancu wrote:
>
>> Hi Frank,
>>
>> could you confirm that the attached patch fix the compilation problem.
>>
>> regards,
>> Bogdan
>>
>> Frank Garcia wrote:
>>
>>> When compiling openser-1.1.0-tls I get the following error:
>>>
>>> $ gmake
>>> Compiling cfg.tab.c
>>> gcc  -g -O9 -funroll-loops  -Wcast-align  -Wall   -minline-all-  
>>> stringops -falign-loops -mcpu=athlon      -DNAME='"openser"' -  
>>> DVERSION='"1.1.0-notls"' -DARCH='"i386"' -DOS='"openbsd"' -  
>>> DCOMPILER='"gcc 3.3.5"' -D__CPU_i386 -D__OS_openbsd -D__SMP_no -  
>>> DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM  -  
>>> DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -  
>>> DHAVE_RESOLV_RES -DF_MALLOC -DSTATISTICS  -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 cfg.tab.c -o cfg.tab.o
>>> cfg.y: In function `yyparse':
>>> cfg.y:859: error: `IPTOS_MINCOST' undeclared (first use in this   
>>> function)
>>> cfg.y:859: error: (Each undeclared identifier is reported only once
>>> cfg.y:859: error: for each function it appears in.)
>>> gmake: *** [cfg.tab.o] Error 1
>>>
>>>
>>> 1.0.1-tls compiles cleanly on the same system, which is OpenBSD  
>>> 3.9- current i386. Any thoughts on getting past this error?
>>>
>>> Thanks,
>>>
>>> Frank
>>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cfg.y.patch
Url: http://lists.kamailio.org/pipermail/users/attachments/20060714/2a7d372e/attachment.txt 


More information about the Users mailing list