[Users] 1.1.0-tls compile problem
Frank Garcia
fg-lists at ipnat.net
Fri Jul 14 22:55:17 CEST 2006
That did it -- it compiles now.
Thanks!
Frank
On Jul 14, 2006, at 12:37 PM, Bogdan-Andrei Iancu wrote:
> 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
>>>
>
> 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 17:36:34 -0000
> @@ -854,19 +854,25 @@
> tos=IPTOS_THROUGHPUT;
> } else if (strcasecmp($3,"IPTOS_RELIABILITY")) {
> tos=IPTOS_RELIABILITY;
> -#if !defined(__OS_solaris) || !defined(__OS_netbsd)
> +#if defined(IPTOS_MINCOST)
> } else if (strcasecmp($3,"IPTOS_MINCOST")) {
> tos=IPTOS_MINCOST;
> #endif
> +#if defined(IPTOS_LOWCOST)
> + } else if (strcasecmp($3,"IPTOS_LOWCOST")) {
> + tos=IPTOS_LOWCOST;
> +#endif
> } else {
> yyerror("invalid tos value - allowed: "
> "IPTOS_LOWDELAY,IPTOS_THROUGHPUT,"
> - "IPTOS_RELIABILITY,IPTOS_LOWCOST"
> -#if !defined(__OS_solaris) || !defined(__OS_netbsd)
> - ",IPTOS_MINCOST\n");
> -#else
> - "\n");
> + "IPTOS_RELIABILITY"
> +#if defined(IPTOS_LOWCOST)
> + ",IPTOS_LOWCOST"
> #endif
> +#if !defined(IPTOS_MINCOST)
> + ",IPTOS_MINCOST"
> +#endif
> + "\n");
> }
> }
> | TOS EQUAL error { yyerror("number expected"); }
More information about the Users
mailing list