[Devel] Compile problems on FreeBSD

Norman Brandinger norm at goes.com
Tue Nov 22 17:04:26 CET 2005


I just pulled the most current CVS.  There were errors compiling main.c 
and cfg.tab.c

To get past the first set of compile problems I

added

#include <netinet/in_systm.h>

before

#include <netinet/in.h>
#include <netinet/ip.h>

Now the following error is produced.

gcc -g -O9 -funroll-loops  -Wcast-align  -Wall  -minline-all-stringops 
-falign-loops      -DNAME='"openser"' -DVERSION='"1.1.0-dev2 "' 
-DARCH='"x86_64"' -DOS='"freebsd"' -DCOMPILER='"gcc 3.4"' -D__CPU_x86_64 
-D__OS_freebsd -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC 
-DSHM_MEM  -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP 
-DDISABLE_NAGLE -DHAVE_RESOLV_RES -DF_MALLOC  -DFAST_LOCK 
-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_SOCKADDR_SA_LEN 
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD 
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_CONNECT_ECONNRESET_BUG -c cfg.tab.c -o 
cfg.tab.o
cfg.y: In function `yyparse':
cfg.y:740: error: syntax error before '}' token
cfg.y:748: error: `IPTOS_LOWCOST' undeclared (first use in this function)
cfg.y:748: error: (Each undeclared identifier is reported only once
cfg.y:748: error: for each function it appears in.)
gmake: *** [cfg.tab.o] Error 1

Adding a semicolon as follows fixed the problem noted above on line 740.

 yyerror("invalid tos value");

An egrep -R IPTOS_LOWCOST * produced no variable definition so I'm at a 
loss as to how to correct the problemidentified on line 748.

Regards,
Norm




More information about the Devel mailing list