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
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users
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
@@ -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"); }
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users